Public report of BlenMiner/NowUI, published 17 November 2026. It has the same score, grades and number of
findings as the full report. The details of security findings (where they are in the code, which known
vulnerabilities and which passwords or keys were found) are left out, so nobody can use them against the project.
Public
Executive reportMeasured under the Code Assurance Index, an open standard for code quality, using its published scoring rules (rubric version 2026.11.4). Assert signed this survey and filed it in the standard's public register, where anyone can look it up by its survey ID. Check this survey →
Signed and filed in the standard's public register, 17 November 2026, 04:29 UTC · Survey ID cd_23006852a1e74d7f8c1a540626570be0
BlenMiner/NowUI
Measured 17 November 2026, 04:28 UTC, at code version 58eee09
Code coverage is not measured: No coverage collector is wired up.
Boundary Type-Coupling is not measured: Bounded contexts not declared.
CAI scoreWeak
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 large codebase: 176,885 lines of product code in 25 projects, tests not counted · Estimated rebuild effort: about 3.7 person-years · Weakest lens: Security and Compliance, 30.6
Findings by how serious they are
74 critical1436 serious105 minor
6 dimensions are left out of the score. For each one, we either couldn't measure it in this code, or found no evidence of the safeguard we look for, such as a tested backup restore. They count neither for nor against the score, and Limitations lists each one with its reason.
This survey was produced by
Canine Code Analyzer
Producer
Canine Development
Analyzer
Canine Code Analyzer engine 1.0.0
Measured
17 November 2026, 04:28 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 ▸
64of 64 dimensions measured by tools.
1603of 1615 findings point to an exact file and line, so you can open each one in the code. The other 12 concern the repository as a whole, such as missing documentation.
64dimensions across 6 lenses, read from 176,885 lines of product code in 25 projects.
BlenMiner/NowUI falls short of our standard for production, in part because we found no encryption of stored data, no key vault and no enforced HTTPS. It scores 42.3 out of 100 and is rated Weak, and 31 of its 74 critical findings are security problems in the build pipeline and in the packages it uses.
Security and Compliance, at 30.6, is the weakest lens and counts most in the score. The best first step is encrypting the sensitive stored data and keeping its keys in a vault, worth about 10.8 points. Handling the discarded errors comes next, worth about 2.9 points. Raising Security and Compliance to 70 would lift the score to about 52.8.
Twenty pipeline tools are referenced by a changeable name, so the build pipeline can be tampered with. Eleven known security holes in the packages the code depends on can be used by attackers. Pinning each tool to an exact version and updating the vulnerable packages would close both risks. The 31 sets of compiler warnings switched off in projects need turning back on in the build file.
The product code is 176,885 lines, about €540,000 to rebuild.
A lens is capped at Adequate while one of its dimensions scores below 4 out of 10, however well the rest of the lens does. That way a serious problem in one place always shows in the lens's rating.
How the score is built: what each lens counts forThe lenses don't count equally. The weakest lens counts most, the next weakest a little less, and so on, so a weak area pulls the score down instead of being averaged away. In the bar below, each part's width shows how much that lens counts and its colour shows its rating. Improving the widest part moves the score most, and as that lens improves, it counts for less, because another lens becomes the weakest.
If Security and Compliance rose from 30.6 to 70, the lowest score rated Strong, the score would rise from 42.3 to about 52.8.
Code composition: what the lines of code are
Business logic 33%Supporting code 31%Tests 36%Code analyzers 0%
Rebuild cost: about €540,000 · Estimate
Cost to rebuild
€170,000 to €900,000, for 2,915 to 9,484 hours of work, about 3.7 person-years for 2 to 8 engineers
Difficulty of the problem
Standard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write.
Quality factor
×0.7 at a score of 42. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it.
Size
Large: 176,885 lines of product code
Comment lines
The estimate prices 162,410 lines. Comment lines count towards the size of 176,885 lines but aren't priced as work.
What it is not
Not a quotation: nobody has offered to build it for that. Not a valuation: it says nothing about what the business is worth. Not a certified figure: no professional has signed it as one.
How the estimate is made: We price the hours a team would need to write this code again, at €60 to €95 an hour. Declarations and boilerplate are priced at a fast rate and logic at a slower one, and the logic is then multiplied by the difficulty of the problem and by the quality factor. The estimate can be about 30% off either way, and it moves most with the hourly rate and the difficulty.
Top priorities
The three actions that raise the score most for the work they take. The full ranked list is in the Roadmap.
1
Encrypt sensitive data at rest (ASP.NET Core Data Protection / column encryption) and manage keys in a vault.
Skip if delegated to infra (Postgres TDE, KMS, etc.).
Raises the score by about 10.8 points · Medium effort · Data Protection
2
Resolve the 8 EmptyCatchBlock finding(s) in Explicit Debt — start with NowFilePicker.cs (4), LoadedScene.cs (2), NowNumericExpression.cs.
Raises the score by about 2.9 points · Low effort · Explicit Debt
3
Resolve the 9 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (9).
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 €540,000 to build again, about 3.7 person-years of work. Its weakest lens is Security and Compliance, at 30.6 (Weak). Security and Compliance is about how well the product is protected, and how it handles personal data. Because the weakest lens counts most in the score, work on Security and Compliance also moves the score most.
Based on: the rebuild estimate · the Security and Compliance grade · how much each lens counts
What to do: Start with the Security and Compliance actions in Top priorities.
If you do one thing first · First action
Encrypt sensitive data at rest (ASP.NET Core Data Protection / column encryption) and manage keys in a vault. Of all the actions in this report, it raises the score most for the work it takes: about 10.8 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.6 out of 10. Code at that level is slower to change than clean code, and we estimate the extra work at 4% to 8% on every change. The history of the code shows how much it changes: about 200,875 lines over the last 90 days, which is about 814,660 lines a year. At that pace, the extra work comes to an estimated 72.4 to 434.2 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.
Architecture — module dependency graph
Project dependencies, layered top-to-bottom; arrows show direction. Any dashed red edge points upward or sideways, which only happens where the projects form a dependency cycle. A graph without cycles has none.
Architecture: which parts of the code depend on which
The code is divided into modules, groups of code that each handle one part of the product, and a module depends on another when it uses code from it. The table lists the modules both down the side and across the top, in an order where each module should only use modules listed above it. A number in a cell means the module on that row uses the module in that column, and it counts the pairs of building blocks (types) that connect them. The one thing to look for is a mark above the diagonal line. It means two or more modules use each other in a loop (a dependency cycle), so none of them can be changed, tested or released on its own.
30 modules, with 50 dependencies between them. 2 loops run through 5 of the modules, marked above the diagonal.
Which modules use which. The module on each row uses the module in each column, and the number counts the pairs of types that connect them. A cell above the diagonal is part of a loop.
Unity.Collections.LowLevel.Unsafe uses Unity.Collections, so a change to Unity.Collections can break Unity.Collections.LowLevel.Unsafe, while a change to Unity.Collections.LowLevel.Unsafe can't break Unity.Collections.
Position
Below the diagonal: Unity.Collections.LowLevel.Unsafe uses a module listed above it, which is the healthy direction.
15→16 UnityEngine.Rendering uses UnityEnginepart of a loop✕
Connections
20 pairs of types, where a type in UnityEngine.Rendering uses a type in UnityEngine.
UnityEngine.Rendering uses UnityEngine, so a change to UnityEngine can break UnityEngine.Rendering, while a change to UnityEngine.Rendering can't break UnityEngine.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
15→17 UnityEngine.Rendering uses NowUI.Enginepart of a loop✕
Connections
4 pairs of types, where a type in UnityEngine.Rendering uses a type in NowUI.Engine.
UnityEngine.Rendering uses NowUI.Engine, so a change to NowUI.Engine can break UnityEngine.Rendering, while a change to UnityEngine.Rendering can't break NowUI.Engine.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
UnityEngine uses Unity.Collections, so a change to Unity.Collections can break UnityEngine, while a change to UnityEngine can't break Unity.Collections.
Position
Below the diagonal: UnityEngine uses a module listed above it, which is the healthy direction.
UnityEngine uses UnityEngine.SceneManagement, so a change to UnityEngine.SceneManagement can break UnityEngine, while a change to UnityEngine can't break UnityEngine.SceneManagement.
Position
Below the diagonal: UnityEngine uses a module listed above it, which is the healthy direction.
UnityEngine uses UnityEngine.Rendering, so a change to UnityEngine.Rendering can break UnityEngine, while a change to UnityEngine can't break UnityEngine.Rendering.
Position
Below the diagonal: UnityEngine uses a module listed above it, which is the healthy direction.
16→17 UnityEngine uses NowUI.Enginepart of a loop✕
Connections
8 pairs of types, where a type in UnityEngine uses a type in NowUI.Engine.
NowUI.Engine uses UnityEngine.Rendering, so a change to UnityEngine.Rendering can break NowUI.Engine, while a change to NowUI.Engine can't break UnityEngine.Rendering.
Position
Below the diagonal: NowUI.Engine uses a module listed above it, which is the healthy direction.
101 pairs of types, where a type in NowUI.Engine uses a type in UnityEngine. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
3 pairs of types, where a type in Unity.Mathematics uses a type in UnityEngine.
The types involved
Unity.Mathematics.float2 → UnityEngine.Vector2
Unity.Mathematics.float3 → UnityEngine.Vector3
Unity.Mathematics.float4 → UnityEngine.Vector4
Direction
Unity.Mathematics uses UnityEngine, so a change to UnityEngine can break Unity.Mathematics, while a change to Unity.Mathematics can't break UnityEngine.
Position
Below the diagonal: Unity.Mathematics uses a module listed above it, which is the healthy direction.
NowUI.Internal uses Unity.Collections, so a change to Unity.Collections can break NowUI.Internal, while a change to NowUI.Internal can't break Unity.Collections.
Position
Below the diagonal: NowUI.Internal uses a module listed above it, which is the healthy direction.
NowUI.Internal uses UnityEngine.Rendering, so a change to UnityEngine.Rendering can break NowUI.Internal, while a change to NowUI.Internal can't break UnityEngine.Rendering.
Position
Below the diagonal: NowUI.Internal uses a module listed above it, which is the healthy direction.
46 pairs of types, where a type in NowUI.Internal uses a type in UnityEngine. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
NowUI.Internal uses Unity.Mathematics, so a change to Unity.Mathematics can break NowUI.Internal, while a change to NowUI.Internal can't break Unity.Mathematics.
Position
Below the diagonal: NowUI.Internal uses a module listed above it, which is the healthy direction.
NowUI uses UnityEngine.InputSystem, so a change to UnityEngine.InputSystem can break NowUI, while a change to NowUI can't break UnityEngine.InputSystem.
Position
Below the diagonal: NowUI uses a module listed above it, which is the healthy direction.
364 pairs of types, where a type in NowUI uses a type in UnityEngine. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
28 pairs of types, where a type in NowUI uses a type in NowUI.Internal. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
26 pairs of types, where a type in NowUI.CodeEditor uses a type in NowUI. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
NowUI.Desktop uses UnityEngine.InputSystem, so a change to UnityEngine.InputSystem can break NowUI.Desktop, while a change to NowUI.Desktop can't break UnityEngine.InputSystem.
Position
Below the diagonal: NowUI.Desktop uses a module listed above it, which is the healthy direction.
27 pairs of types, where a type in NowUI.NodeGraph uses a type in UnityEngine. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
54 pairs of types, where a type in NowUI.Sdf uses a type in UnityEngine. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).
OWASP category
Findings
Severity
A05:2025 — Injection
23
High / Critical
A03:2025 — Software Supply Chain Failures
21
High / Critical
Roadmap
Top priorities: Encrypt sensitive data at rest (ASP.NET Core Data Protection / column encryption) and manage keys in a vault. Skip if delegated to infra (Postgres TDE, KMS, etc.); Resolve the 9 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (9); Resolve the 2 WriteOnlyPrivateField finding(s) in Explicit Debt — start with NowBadge.cs, PerformanceTesting.cs.
Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.
Do this
Helps
Effort
Dimension
Encrypt sensitive data at rest (ASP.NET Core Data Protection / column encryption) and manage keys in a vault. Skip if delegated to infra (Postgres TDE, KMS, etc.).
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 — 74
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 — 1436
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 — 105
Recorded, with no effect on how the codebase functions.
Present so the survey is complete, not because it needs doing.
Could not be resolved — 6
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 64 evaluated dimensions are computed by tools and static analysis; no language model sets or judges any of them. Overall confidence is 0.9, the weighted average across measured dimensions.
Every figure here is one of two kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10.
What we checked — 64 dimensions across the health lenses
Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality — in one coherent pass. A surface report typically covers a handful.
How to trust any code-health report — three questions
Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 1603 of 1615 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
Is there a tool behind the number? Every score below names the method that produced it: Roslyn, git or a scanner, not a narrative.
Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
This report answers yes to all three. That's the bar to hold any assessment to.
Tools & methods
The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.
Method
Backs
Version
Evaluator
Roslyn static analysis
Complexity, cohesion, coupling, dead code, API surface, layering
What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.
D8 Code Coverage — not measured this run — 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. Coverage NOT MEASURED: `--collect:"XPlat Code Coverage"` names a data collector that ships in the `coverlet.collector` package, and this repository wires up none — no test project references it and no runsettings declares one. The absence of coverage here is therefore not evidence about the suite or about our analyzer environment: without a collector, `--collect` produces nothing even from a suite that builds and passes. Add a `coverlet.collector` PackageReference to the test project(s) (or commit the Cobertura/OpenCover/lcov report your CI produces) and real coverage will be measured. It is excluded from the score rather than counted as a near-zero defect. You can widen what we reach: add the `coverlet.collector` package to the test projects to enable coverage (or commit the Cobertura/OpenCover/lcov report your CI produces).
D10 Test Quality — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. The 3,434 test(s) behind this row are the ones the C# collector could read, and this repository also carries at least 3 test source file(s) (.py, .mjs) that it cannot: it parses C# syntax and matches C# test attributes, so a vitest/jest/JUnit/pytest-style suite is invisible to it. Skipped tests, zero-assertion tests and the other quality signals on this row are UNMEASURED in that suite — their absence from the counts above is a gap in this analyzer's language coverage, not a finding that those tests are sound.
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. `dotnet list package` did not return usable output (restore or query failed); no outdated/vulnerable/deprecated data to assess. The tool said: `dotnet list package` exited 1 with no output.
D14 License Compliance — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This repository declares package.json, but the licence verdict published here was taken over its NuGet package dependencies. Nothing was read about its npm dependencies' licensing in either direction, and a clean score on this card must not be read as covering them.
D14 License Compliance — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This repository declares a Unity UPM manifest (Packages/manifest.json or a package's package.json), but the licence verdict published here was taken over its NuGet package dependencies. Nothing was read about its Upm dependencies' licensing in either direction, and a clean score on this card must not be read as covering them.
D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-maintainer repository — bus factor is not applicable (3 contributor(s) across 485 commit(s) sampled, automation and bot accounts excluded). One of them holds 97% of the history; the other 2 hold 1.5% each on average, below the 5% at which there is somebody to hand the work to. That is a single maintainer with drive-by contributors, not a team whose knowledge has concentrated — so the bus factor is not applicable and there is nothing here for the owner to act on.
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.
D19 Documentation Quality — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This kind did not reach the 95 % precision gate in three adjudicated runs (docs/plans/deterministic-engine/adjudication/D19-sample3-v3.md), so by the pre-registered fallback it publishes no row until a re-measurement shows it does. The candidates are counted here, not reported as findings, and the score does not include them.
D21 Naming Consistency — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. PREREGISTRATION version 20's fallback (adjudication D21-sample3-v3): this rule kind was adjudicated below the 95 % precision gate, so its candidates are counted here and not published, and the score covers only the acronym-spelling and awaitable-suffix rules. The kind returns as rows only after it shows a measured precision; this says nothing about whether these names are consistent.
D21 Naming Consistency — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. PREREGISTRATION version 20's fallback (adjudication D21-sample3-v3): this rule kind was adjudicated below the 95 % precision gate, so its candidates are counted here and not published, and the score covers only the acronym-spelling and awaitable-suffix rules. The kind returns as rows only after it shows a measured precision; this says nothing about whether these names are consistent.
D23 Boundary Type-Coupling — 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. Large codebase (138,452 production LoC in the .NET projects) with no declared bounded contexts — cross-boundary type coupling is unassessed Bounded contexts cannot be inferred from a codebase that is not physically organised by them (D-321), so with none declared there are no boundaries for the coupling pass to measure across. You can widen what we reach: name this codebase's bounded contexts (≥2 module groups, e.g. per subsystem) so cross-boundary type coupling can 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 — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. Each source language's comment syntax, and the code a comment annotates in it, needs its own proof before D24 judges it. Until then those comments are left unread, not counted as clean.
D32 Data Compliance (PII/GDPR) — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `Assets/NowUI/Runtime/Controls/NowComboBox.cs`, `Assets/NowUI/Runtime/Controls/NowContextMenu.cs`, `Assets/NowUI/Runtime/Controls/NowDatePicker.cs`, `Assets/NowUI/Runtime/Controls/NowDropdown.cs`, `Assets/NowUI/Runtime/Controls/NowFilePicker.cs`, … (+6 more) produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
AX2 Stateful singletons — 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. 65 further occurrence(s) are not listed individually; the score already reflects all 105.
AXB1 Runtime evidence locked — no reproducible boot — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Subject: 2 markup document(s) — HTML, Razor, JSX, Vue, Svelte or server templates. The Runtime Evidence tier boots an app only via docker-compose, an Aspire AppHost, a Dockerfile, an npm dev script, a web service's own toolchain entry point (cargo, go, dotnet, Python, Spring Boot), or an Android app's own Gradle wrapper (run on an emulator); an Apple or Flutter app needs a host it lacks. None applied, so no live runtime a11y/egress/header evidence was collected. You can widen what we reach: add a docker-compose.yml (or an Aspire AppHost) that brings the app up with its dependencies. We then boot it in an isolated sandbox and gathers real runtime evidence — you change nothing in your pipeline (no CI step, no SDK).
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.
X10 Duplicated predicate — 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. 57 further occurrence(s) are not listed individually; the score already reflects all 97.
Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.
Limitations & what we did not check
We assess the repository exactly as committed, and only the repository. By design we do not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.
D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
D11 Test Reliability: Flakiness is inferred from history/markers — we run the suite once (for coverage), not the repeated runs under varied conditions that reveal nondeterminism, so a flaky test never recorded as failing is invisible here.
D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
D18 Solution Shape: Build integrity reflects whether the solution compiled in this environment — a build that needs a private feed, a specific SDK, or a generated file absent from the repo can read as broken when it is merely unreproducible here.
D19 Documentation Quality: Documentation quality publishes two things only: a runnable or packaged unit with no example, and a multi-project root README that maps none of its parts. It does not judge clarity, and its other checks (overview, licence, boilerplate, structure, empty sections, XML-doc coverage) are withheld after adjudication: their candidates are counted in the card's gaps, not shown as rows. A false statement in a document is M4's; units are .NET projects only.
D20 ADR Quality: ADR quality checks the structure of the decision records present: it cannot know about decisions made and never recorded, and it does not judge how well a record argues its case. Records in a language the section lexicon does not cover are not evaluated.
D21 Naming Consistency: Naming consistency compares each name with the convention its structural peers follow in this repository: it cannot tell whether a consistently used name is a good one, and languages other than C# and TypeScript are not measured.
D22 Internal API Consistency: API consistency compares the call shapes of members that play the same role on the exposed C# surface: whether the API suits its callers is not measured, and surfaces in other languages are not measured.
D24 Comment Value: Comment value is measured as redundancy only: a comment that repeats its code's words is found, but a paraphrase in other words, a vague comment, or one the code contradicts is not, and whether a comment is valuable is not claimed. Comments in other scripts or languages, and outside C#, are not judged.
D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
D27 Navigability: Indirection/navigability is structural — it measures hops to follow a call, not whether that indirection buys real flexibility or just ceremony.
D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
M4 Documentation accuracy: Documentation accuracy checks links, versions and artefact counts against the tree: other claims (paths, commands, settings, routes) are read but not checked, and it cannot run the onboarding or measure how long a real new joiner takes.
P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
What it measures: How tangled the control flow is — methods with many branches are hard to test and change.
Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.
259 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was NowCodeEditor.Draw at 196. A further 26 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 NowMarkupDocument.KindOf at 50 — they are counted neither in the figure above nor in this dimension's score. 8 files carry no cyclomatic complexity row at all for this reason — every one of their over-threshold methods was excluded, so the exclusion is disclosed nowhere in the file itself: Assets/NowUI/Runtime/NowEase.cs (NowEase.Evaluate at 33), Standalone/NowUI.Engine/Graphics/Texture2D.cs (Texture2D.BytesPerPixel at 30), Assets/NowUI/Runtime/Controls/NowTextInput.cs (NowTextInputFrame.hasActivity.get at 25), Assets/NowUI/Runtime/NowTextAnimation.cs (NowTextUnitCursor.IsContinuation at 25), Standalone/NowUI.Engine/Graphics/RenderTexture.cs (RenderTexture.BytesPerPixel at 19), and 3 more not listed here. They are named here because the per-file figures other dimensions report are taken BEFORE this exclusion, so such a file can show a high maximum complexity elsewhere in this report and nothing here, with nothing to reconcile the two.
+ 244 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 1 body over 120 down to 120 or less in Cyclomatic Complexity — start with NowCodeEditor.Draw (cyclomatic 196). — Refactoring it lifts Cyclomatic Complexity from 5.3 to about 5.8/10.
Detailed fixes: d1_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: How hard the code is for a person to follow, beyond raw branching.
Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.
+ 307 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 1 body over 240 down to 240 or less in Cognitive Complexity — start with NowCodeEditor.Draw (cognitive 384). — Refactoring it lifts Cognitive Complexity from 3.9 to about 4.5/10.
Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D3 · God Classes7.6 / 10Strong✓ Tool-verified
What it measures: Over-large classes that try to do too much ("god classes").
Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.
Resolve the 73 TooManyMethods finding(s) in God Classes — start with NowSdf.cs (3), NowValueControls.cs (3), NowLayout.cs (2). — One of this dimension's main actionable groups (73 warning-level).
Resolve the 53 FileTooLong finding(s) in God Classes — start with nowui-gl.js (2), NowNodeGraph.cs, NowSdf.cs. — One of this dimension's main actionable groups (53 warning-level).
Resolve the 37 MethodTooLong finding(s) in God Classes — start with Now.cs (5), NowMesh.cs (4), NowSdf.cs (3). — One of this dimension's main actionable groups (37 warning-level).
Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: How much of the production code is copy-pasted: the share of production lines inside a reported copy (every copy of a duplicated block or of an edited member, each line once), 10 at none and 0 at a quarter of the lines.
Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), scored on the share of production lines inside a reported copy (each line once; 10 at none, 0 at a quarter). Deterministic.
144 duplicated block group(s) detected. 6.6 % of the production lines (9,113 of 138,452) are in a reported copy. A further 224 rows report members as variants of one another; the share counts each copied line once, however many rows cite it. 2 of the 368 are in trees this repository does not ship — vendored, example/demo, project-template, fixture and benchmark code — and are ranked below the shipped groups rather than excluded from them: the duplication there is real and is still counted in this dimension's score. The dimensions that publish a production-file census leave those trees out of theirs, so this count is deliberately drawn over the wider population.
Edited copy of a member (11 corresponding lines) · ×10Assets/NowUI/Runtime/NowEffectsMesh.cs:410
Edited copy of a member (3 corresponding lines) · ×10Standalone/NowUI.Engine/Math/Vector3.cs:788
+ 121 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 17 Duplicated block (5 lines × 2) finding(s) in Code Duplication — start with Vector3.cs (2), NowFilePicker.cs (2), NowMaterialControlRenderer.cs (2). — One of this dimension's main actionable groups (17 warning-level).
Resolve the 14 Edited copy of a member (9 corresponding lines) finding(s) in Code Duplication — start with Vector3.cs (2), Material.cs (2), NowDialogs.cs. — One of this dimension's main actionable groups (14 warning-level).
Resolve the 13 Duplicated block (10 lines × 2) finding(s) in Code Duplication — start with NowControlBuilders.cs (2), NowNodeGraph.cs (2), NowViewStack.cs. — One of this dimension's main actionable groups (13 warning-level).
Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D5 · Coupling9.7 / 10Stronggated by 1 serious finding✓ Tool-verified
What it measures: Whether volatile projects sit underneath others that depend on them (so their churn ripples upward), and whether project dependencies form cycles. A widely-depended-on but stable shared/kernel project is healthy, not penalised.
Method: Dependency cycles via elementary-DFS over real .csproj references, plus Martin instability (afferent/efferent) per project. Exhaustive over the reference graph, deterministic.
Coverage: Exhaustive · type-level: afferent/efferent coupling + cycles computed over every production type — the population is all types, not a name convention.
Off the main sequence: NowUI.RuntimeStandalone/NowUI.Runtime/NowUI.Runtime.csproj:1
What to do
Resolve the 1 Off the main sequence finding(s) in Coupling — start with NowUI.Runtime.csproj. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d5_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether a class's methods are focused on a single responsibility.
Method: LCOM4 cohesion per production class with at least two methods: connected components of methods sharing state or calls, computed syntactically. Deterministic, not a proxy.
Coverage: Exhaustive · type-level: LCOM4 cohesion computed over every production class — the population is all types, not a name convention.
Resolve the 3 Low cohesion finding(s) in Cohesion (LCOM4) — start with NowThemeAsset.cs, NowNodeGraph.cs, Texture.cs. — One of this dimension's main actionable groups (3 warning-level).
Detailed fixes: d6_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D10 · Test Quality10.0 / 10Stronggated by 5 serious findings✓ Tool-verified
What it measures: Whether the tests truly assert behaviour rather than just running the code.
Method: Per-test assertions, skips, and mock references analyzed via Roslyn; structured skip-reason tags (BUG:/ENV:) separate documented deferrals from debt. Deterministic.
0 skipped, 5 zero-assertion, no mocking-framework packages referenced (hand-written doubles or no mocking) across 3434 tests. Measured on the C# suite only — at least 3 test source file(s) (.py, .mjs) went unread, so its test quality is unmeasured and is not in these counts.
No assertions: CancellationClosesConnectionsWaitingForRequestHeaders · ×5Standalone/NowUI.Native.Tests/BrowserServerTests.cs:100
What to do
Resolve the 5 No assertions finding(s) in Test Quality — start with NowLottieBurstTessellatorTests.cs (2), NowRuntimePerformanceTests.cs (2), BrowserServerTests.cs. — One of this dimension's main actionable groups (5 warning-level).
Detailed fixes: d10_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D11 · Test Reliability10.0 / 10Exemplary✓ Tool-verified
What it measures: Whether the tests pass reliably, with no flakiness.
Method: Suite re-run N times within tiered wall-clock budgets (unit to e2e); tests failing non-deterministically across runs flagged; guarded tests retried when #if guards detected.
What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.
Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.
What it measures: Whether the licenses of third-party packages are compatible with your policy.
Method: Third-party package licenses resolved from declared package metadata and checked against the configured policy (allow/deny/copyleft). Deterministic; clean = no incompatible license found at metadata depth.
0 of 129 packages use a banned license. ★ DEPTH: this repository's MSBuild projects declare 11 direct `PackageReference`(s), and 109 further package(s) were reached beyond them by closing the graph over nuget.org's own nuspec dependency graph — so a banned licence pulled in only by a dependency's OWN dependencies is inside this verdict. A package whose licence nuget.org could not be asked for is not graded, and version ranges are taken at their lower bound, so this is the closure as that graph states it rather than a restored consumer's exact resolution. ★ COVERAGE OF THIS VERDICT: it grades this repository's NuGet package dependencies and nothing else. The repository also declares package.json and a Unity UPM manifest (Packages/manifest.json or a package's package.json), and the licences of those dependency graphs were NOT read by this pass — a gap in this engine's coverage, not a statement about them. So this result says the graded closure carries no banned licence; it does NOT say this repository's licensing is clear.
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.
Top hotspots: Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs (9×196=1764); Assets/NowUI/Extensions/Sdf/NowSdf.cs (19×33=627); Assets/NowUI/Runtime/Now.cs (14×36=504) Repeated repair below the complexity floor: Assets/NowUI/Runtime/NowMaterialControlRenderer.cs (3 of 4 changes were fixes); Assets/NowUI/Runtime/NowGUI.cs (3 of 4 changes were fixes); Assets/NowUI/Runtime/NowDrawList.cs (3 of 3 changes were fixes)
Resolve the 20 Hotspot finding(s) in Churn × Complexity Hotspots — start with NowCodeEditor.cs, NowSdf.cs, Now.cs. — One of this dimension's main actionable groups (20 warning-level).
Resolve the 3 Repeated repair finding(s) in Churn × Complexity Hotspots — start with NowMaterialControlRenderer.cs, NowGUI.cs, NowDrawList.cs. — One of this dimension's main actionable groups (3 warning-level).
Detailed fixes: d15_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Acknowledged debt left in the code — TODOs, dead code, suppressed warnings.
Method: Roslyn syntactic debt markers (suppressions/TODO/FIXME/HACK/empty-catch/commented-code/Obsolete) plus SymbolFinder dead-code analysis; weighted-debt-per-KLoC density deducted 2.0x per unit. Deterministic, exhaustive.
NoWarnInCsproj repeated across 10 filesStandalone/NowUI.Engine/NowUI.Engine.csproj:10
Dead code: SetAtomicSafetyHandle · ×114Standalone/NowUI.Engine/Collections/UnsafeUtility.cs:74
+ 3 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 30 NoWarnInCsproj finding(s) in Explicit Debt — start with NowUI.Runtime.csproj (3), Tests.csproj (3), NowUI.Extensions.CodeEditor.csproj (3). — One of this dimension's main actionable groups (30 issue-level).
Resolve the 8 EmptyCatchBlock finding(s) in Explicit Debt — start with NowFilePicker.cs (4), LoadedScene.cs (2), NowNumericExpression.cs. — One of this dimension's main actionable groups (8 issue-level).
Resolve the 2 WriteOnlyPrivateField finding(s) in Explicit Debt — start with NowBadge.cs, PerformanceTesting.cs. — One of this dimension's main actionable groups (2 issue-level).
Detailed fixes: d17_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the solution is laid out in a sensible, conventional structure.
Method: Solution structure: project count, decomposition, shell-project detection, build success (confirmed failures cap the score); traced to actual .sln files and binaries. Deterministic.
18 projects, 432 source files, 180403 hand-written lines of code (135237 production / 45166 test — the split is derived per file: test is what its project, its own path, or a compile-guarded region marks as test, and a file carrying no test signal counts as production), 34 inter-project edges.
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.
2 of 2 documentation facets pass in full. 34 document(s) read across 21 unit(s).
✓ On the Gold path — maintain.
Detailed fixes: d19_recommendation.md.
Do you agree with this assessment?
D20 · ADR Quality0.0 / 10Critical✓ Tool-verified
What it measures: Whether architecture decisions are recorded well (context, decision, consequences).
Method: Every ADR read by its section structure: nine located rules (a missing Decision, Context or Consequences section, a stale status, two records deciding the same question, a dangling supersede link, a number-only title, a single option, no named cost, no status where the log uses one, no enforcement field where the log adopted one), each a fixed deduction from 10; the score is the mean over evaluated records. Deterministic, no model. Advisory.
No ADRs foundStandalone/NowUI.Cli/NowUI.Cli.csproj:3
What to do
Resolve the 1 No ADRs found finding(s) in ADR Quality — start with NowUI.Cli.csproj. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d20_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether names — types, methods, variables — are clear and consistent.
Method: Seven vocabulary-free rules (N1-N7) mine each naming convention from the repository and flag a name that breaks a convention its structural peers in the same unit follow; production C# and TypeScript, each its own population. Deterministic, no model, no sample. Advisory.
2 naming inconsistencies among 9 declarations measured against a convention their peers follow.
`_defaultUV` spells `UV` where 24 names in the project spell it `Uv`Assets/NowUI/Runtime/Now.cs:2556
`SetUV` spells `UV` where 24 names in the project spell it `Uv`Assets/NowUI/Runtime/NowRectangle.cs:352
What to do
Resolve the 1 `_defaultUV` spells `UV` where 24 names in the project spell it `Uv` finding(s) in Naming Consistency — start with Now.cs. — One of this dimension's main actionable groups (1 recommendation-level).
Resolve the 1 `SetUV` spells `UV` where 24 names in the project spell it `Uv` finding(s) in Naming Consistency — start with NowRectangle.cs. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d21_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D22 · Internal API Consistency10.0 / 10Exemplary○ Nothing flagged
What it measures: Whether the internal API surface is consistent and coherent.
Method: Call-shape rules (A1-A9) over the structured code model of the intentionally exposed C# surface: members of one type, overloads of one name and the same slot across sibling types are compared, and a member that makes a caller use a different convention for the same kind of operation is flagged. Deterministic, no model. Advisory.
What it measures: Whether comments are worth it — explaining WHY (valuable) rather than WHAT (redundant).
Method: Every inline C# comment compared word by word with the identifiers, literals and constructs of the code it annotates (taken from the syntax); a comment whose words that code already contains is redundant, as are closing-brace labels and generator template text. Comments giving a reason or a reference are kept; other scripts and languages are not judged. Deterministic, exhaustive, advisory.
2 of 25 projects flagged as possibly oversized/incoherent.
Projects may be oversized for their cohesion · ×2Standalone/NowUI.Runtime/NowUI.Runtime.csproj:1
What to do
Resolve the 2 Projects may be oversized for their cohesion finding(s) in Project Cohesion — start with NowUI.Runtime.csproj, NowUI.Engine.csproj. — One of this dimension's main actionable groups (2 recommendation-level).
Detailed fixes: d26_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: How far you must trace to follow a call — low indirection and co-located slices read easier.
Method: Call indirection (interface hops, cross-namespace calls, slice-locality scaled) over a sampled set of method invocations, size-aware baseline. Sampled; confidence discounted by symbol-resolution gaps. C# also names each pass-through layer (a class whose every public method only forwards its own parameters to one collaborator) as a located finding; the score is not affected.
Coverage: Slice locality from the first namespace segments, SAMPLED (≤400 methods) — not exhaustive.
39 % of calls cross a namespace and 2 % go through an interface, but 89 % of collaborators are co-located — so a call's collaborators sit together and tracing stays easy. Baseline: large — vertical-slice locality expected.
What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.
Method: Secret scan via TWO gitleaks detect passes in an isolated checkout — the full git history, then a second --no-git pass over the working tree as it stands — merged and de-duplicated by (rule, file, line); each match flagged High. Both invocations are recorded in the audit trail. Exhaustive; when the tool is absent, or when its output cannot be parsed into the expected shape, the dimension is WITHHELD as an explicit measurement gap on our side — unscored and excluded from the lens, never a hedged middling score.
What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.
Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.
Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).
23 finding(s): 0 critical, 20 high, 3 medium, 0 low. 20 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens. semgrep hit a parse error in 19 file(s) — `Assets/NowUI/Runtime/Controls/NowComboBox.cs` (line 527, line 633, line 634, …), `Assets/NowUI/Runtime/Controls/NowContextMenu.cs` (lines 5–1972), `Assets/NowUI/Runtime/Controls/NowDatePicker.cs`, `Assets/NowUI/Runtime/Controls/NowDropdown.cs`, `Assets/NowUI/Runtime/Controls/NowFilePicker.cs` (lines 2426–2429, lines 2498–2499), … (+14 more) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. In 2 of those file(s) — `Standalone/NowUI.Cli/BrowserReflectionRoots.cs`, `Standalone/NowUI.Native.Tests/BrowserFetchContractTests.cs` — the break is a C# primary constructor, which semgrep's grammar cannot parse and which hides the type from every rule scoped to it; those files were re-scanned from a shadow copy with the constructor's parameter list blanked (line and column preserving), which restores the type to the rules, and 0 additional row(s) came from that pass. Only the header's own parameter list is unread in them. In 9 of those file(s) — `Assets/NowUI/Runtime/Controls/NowContextMenu.cs`, `Assets/NowUI/Runtime/Controls/NowDatePicker.cs`, `Assets/NowUI/Runtime/Controls/NowDropdown.cs`, `Assets/NowUI/Runtime/Controls/NowFilePicker.cs`, `Assets/NowUI/Runtime/Controls/NowMaskField.cs`, … (+4 more) — the break is at a TYPE DECLARATION (a C# primary constructor semgrep's grammar cannot parse), so the loss is wider than the named lines: rules scoped to that type see no type to scope to and are blind over its whole body, while rules matching statements keep working there. Absence of a type-scoped finding in those types is not evidence of anything. Separately, one or more rules could not re-parse an embedded snippet in 2 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.
REDACTED
REDACTED
REDACTED
What to do
Resolve the 2 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 warning-level).
Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
No action in Static Analysis (SAST) — all 20 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 (20 issue-level, 0 of them charged here).
Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any dependency has a known published vulnerability (CVE), direct or transitive, in ANY ecosystem the repository declares — Dart pub, Elixir and Erlang via Hex, Go modules, Java and Kotlin via Maven/Gradle, JavaScript/npm, .NET/NuGet, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift.
Method: Dependency-CVE scan across every ecosystem the repository declares, scored ONCE. Three sources are unioned and deduplicated by advisory identity (rule id + alias closure, CVE<->GHSA) scoped to package+version, keeping the worst severity: `osv-scanner --recursive` over osv.dev for Dart pub, Elixir/Hex (and Erlang, whose `rebar.lock` syft first converts to a CycloneDX SBOM the scanner reads, with rows attributed back to the lock), Go, Java and Kotlin via Maven/Gradle (and Scala, whose sbt build's pinned direct declarations are written into a CycloneDX SBOM the scanner reads, with rows attributed back to the build file), npm, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift; `trivy fs --scanners vuln` for npm lockfiles; and `dotnet list package --vulnerable --include-transitive` for NuGet (with per-advisory collapse of the project x target-framework fan-out), plus a DECLARED-dependency arm that resolves a published gem's gemspec against rubygems.org where no Gemfile.lock is committed. `SeverityScore(c,h,m,l, normalizer 8.0)`. NotApplicable only when NO ecosystem is readable; if any applicable ecosystem could not be scanned the findings are REPORTED and the score is withheld. Supersedes the npm and OSV arms, retired 2026-09-05. Advisory since rubric-2026.11.2 (CAI decision 0006): every row is a match against a vulnerability database that changes daily, so the reading is shown and never moves a scored dimension, lens or the headline.
Resolve the 9 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (9). — One of this dimension's main actionable groups (9 issue-level).
Resolve the 4 Medium CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (4). — One of this dimension's main actionable groups (4 warning-level).
Resolve the 2 Critical CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (2). — One of this dimension's main actionable groups (2 issue-level).
Detailed fixes: d30_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned — last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.
Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.
Every significant source file has living knowledge — recently and meaningfully worked. Counted over 263 of the 299 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.
Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.
Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.
What it measures: Whether the build pipeline provides supply-chain integrity — generated provenance/attestation, signed artifacts (cosign/sigstore), an SBOM, and pinned build actions. Presence of the configuration, not a runtime guarantee.
Method: Supply-chain provenance/signing read deterministically from CI/build config (.github/workflows, .gitlab-ci.yml, azure-pipelines, Jenkinsfile, .circleci) + the release surface: four signals — generated provenance/attestation (SLSA/in-toto/actions-attest), artifact signing (cosign/sigstore/gitsign), an SBOM (syft/sbom-action/*.spdx.json/*.cdx.json), and SHA-pinned build actions — scored 10·present/denom. NotApplicable without a build pipeline. Detects configuration presence, not runtime enforcement.
+ 1 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d36_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any dependency the repository declares is published as MALICIOUS rather than merely vulnerable — a package that is an attacker's work, in any ecosystem osv-scanner reads. Reported apart from D30 because the answer is binary: there is no safe version to upgrade to, and the fix is to remove the package and rotate every credential it could have read.
Method: The same dependency scan D30 reads, partitioned on the scanner's own classification rather than rescanned: a row is MALICIOUS when its id is in the `MAL-` space (the ossf/malicious-packages feed) OR its `database_specific.cwe_ids` carries `CWE-506` ("Embedded Malicious Code"). Both channels are structural; the summary text is deliberately NOT read, because a malicious-package record whose summary says only "Critical severity vulnerability" is a real shape ([GHSA redacted]) and a text matcher misses it. Scored BINARY: any surviving row is 0, whatever its severity and however many CVEs sit beside it — a hostile dependency is not a quantity. Applicability and degradation are D30's: NotApplicable only when no ecosystem is readable, and an unscannable ecosystem degrades rather than reading clean. Advisory since rubric-2026.11.2 (CAI decision 0006): the malicious-package feed is a database that changes daily, so the reading is shown and never moves a scored dimension, lens or the headline.
What it measures: Whether anyone still ships security patches for the platform this repository RUNS ON — the runtime it pins and the framework majors its own constraints hold it to. Separate from D12 because the question differs: a current Django on an end-of-life Python is perfectly up to date and completely unsupported, and the fix is a migration rather than a version bump. What the repository says it merely SUPPORTS is never charged.
Method: End-of-life PLATFORM read from the repository's own declarations and graded against a FROZEN, dated table of vendor support dates — no network, no feed, no API, so this dimension answers identically inside a closed scan fence. Two subjects: a RUNTIME the project pins (a single or all-end-of-life TargetFramework, a .nvmrc or .python-version, a requires-python CAP) and a FRAMEWORK major a dependency constraint cannot move off (a caret, tilde or exact version; `vue@^2.7.16` pins Vue 2). A FLOOR is deliberately never charged — `requires-python = ">=3.8"` states what a package SUPPORTS, not what it runs on — and a multi-target project is charged only when EVERY target is out of support. Runtime 4.0/product capped 8.0, framework 1.5 capped 4.5. The table is safe to freeze because a statement about support that ended in the past cannot become false: it loses recall as it ages, never precision, and a test asserts every entry predates the freeze date. Disjoint from D31 (a container image's OS layer) and D29 (the toolchain a CI workflow installs). Abstains when the repository declares no platform this pass reads — never scores it clean.
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 3 platform declaration(s) and 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.
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.
Method: Roslyn line-count by code ROLE: every source file classified Domain/Application/Infrastructure/Test/Generated by namespace + path convention (the shared CodeRoleClassifier), then significant lines summed per role. Deterministic; the advisory score is the business-logic (domain+application) share of production code.
Coverage: Population: ALL source files, each bucketed into ONE of five roles (Domain/Application/Infrastructure/Test/Generated) by namespace + path convention — a file whose layer isn't named in the convention falls to Application (the neutral default), and the split is line-count, not semantic depth or business value.
Other · Architecture — Whether singleton services avoid mutable shared instance state that concurrent callers would race on.
Method: Roslyn scan: singleton field mutations unguarded by lock or Interlocked, per type; syntax-based guard detection. Deterministic, traceable per field.
`NullRenderBackend` is not registered, but `NowRuntime` creates it and keeps it in the static `s_Backend`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (m_DrawRing, m_RecordDraws, frameBegins, lastFrameCount, frameEnds, textureUploads; e.g. `m_DrawRing` at line 173). — Standalone/NowUI.Engine/Backend/NullRenderBackend.cs:53
`NowShaderGlobals` is not registered, but `NowRuntime` creates it and keeps it in the static `s_Globals`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (floats, version, ints, vectors, matrices, textures; e.g. `floats` at line 38). — Standalone/NowUI.Engine/NowShaderGlobals.cs:20
`Menu` is not registered, but `NowContextMenu` creates it and keeps it in the static `_menus`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (rootId, pathId, overlayId, parentMenu, depth, width; e.g. `rootId` at line 174). — Assets/NowUI/Runtime/Controls/NowContextMenu.cs:145
`NowScopeGuard` is not registered, but `Now` creates it and keeps it in the static `_fontScopes`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_nextToken, _tokens, _endingTokens; e.g. `_nextToken` at line 36). — Assets/NowUI/Runtime/NowScopeGuard.cs:11
`Mesh` is not registered, but `Now` creates it and keeps it in the static `_legacyGlassReplayMesh`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (m_Bounds, backendId; e.g. `m_Bounds` at line 112). — Standalone/NowUI.Engine/Graphics/Mesh.cs:34
`CommandBuffer` is not registered, but `Now` creates it and keeps it in the static `_legacyGlassCommandBuffer`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (m_Name, m_Ops, m_BlockCount, m_BlockPool, m_Released; e.g. `m_Name` at line 64). — Standalone/NowUI.Engine/Graphics/Rendering/CommandBuffer.cs:34
`NowLottieDrawBuffer` is not registered, but `Now` creates it and keeps it in the static `_lineBuffer`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (hasBounds, boundsMin, boundsMax; e.g. `hasBounds` at line 214). — Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:195
`Material` is not registered, but `Now` creates it and keeps it in the static `_bezierMaterial`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (m_Shader, version, m_RenderQueue; e.g. `m_Shader` at line 80). — Standalone/NowUI.Engine/Graphics/Material.cs:24
`NowLottiePolyline` is not registered, but `Now` creates it and keeps it in the static `_shapePolyline`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (points, closed; e.g. `points` at line 150). — Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:142
`NowRichTextLayout` is not registered, but `NowRichText` creates it and keeps it in the static `SharedLayout`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_textCache, _lastSelectionY, runs, lines, selectionLines, tags; e.g. `_textCache` at line 144). — Assets/NowUI/Runtime/Controls/NowRichTextFlow.cs:130
`NowRichTextParser` keeps one instance of itself in the static `Empty`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_defaultTagsVariant, _derived; e.g. `_defaultTagsVariant` at line 165). — Assets/NowUI/Runtime/Controls/NowRichTextParser.cs:78
`Gradient` is not registered, but `NowGradientField` creates it and keeps it in the static `PreviewGradient`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_colorKeyCount, _alphaKeyCount, _mode, _colorSpace; e.g. `_colorKeyCount` at line 173). — Standalone/NowUI.Engine/Data/Gradient.cs:23
`AnimationCurve` is not registered, but `NowAnimationCurveField` creates it and keeps it in the static `PreviewCurve`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_count, _keys, _preWrapMode, _postWrapMode; e.g. `_count` at line 92). — Standalone/NowUI.Engine/Data/AnimationCurve.cs:24
`Texture2D` is not registered, but `CheckerDraw` creates it and keeps it in the static `_texture`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (uploadPending, dirtyRect, pixels, m_Format, m_Linear, m_BytesPerPixel; e.g. `uploadPending` at line 440). — Standalone/NowUI.Engine/Graphics/Texture2D.cs:33
`NowIMGUIInputProvider` keeps one instance of itself in the static `instance`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_keyboardClaimedPass, _sampledEvent, _sampledType, _pendingCaptureCancelled, _buttonsDown, _capturedButtons; e.g. `_keyboardClaimedPass` at line 144). — Assets/NowUI/Runtime/Input/NowIMGUIInputProvider.cs:11
`NowScreenInputProvider` keeps one instance of itself in the static `instance`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_snapshotFrame, _snapshotSurface, _snapshotAvailable, _lastFrame, _hasRawPosition, _pointerButtonsDown; e.g. `_snapshotFrame` at line 78). — Assets/NowUI/Runtime/Input/NowScreenInputProvider.cs:5
`RollAnimator` keeps one instance of itself in the static `shared`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_changed, _eased, _travel, _incoming; e.g. `_changed` at line 242). — Assets/NowUI/Runtime/NowTextTransition.cs:229
`NowLottieBezierData` is not registered, but `NowLottieRenderer` creates it and keeps it in the static `_bezierScratch`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (vertices, tangentsIn, tangentsOut, closed, count; e.g. `vertices` at line 1107). — Assets/NowUI/Runtime/Lottie/NowLottieModel.cs:1090
`NowNodeGraphClipboard` keeps one instance of itself in the static `shared`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_nodes, _links, _center; e.g. `_nodes` at line 2102). — Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:2086
`BrowserHost` is not registered, but `BrowserApp` creates it and keeps it in the static `host`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (errors; e.g. `errors` at line 108). — Standalone/NowUI.Browser/BrowserApp.cs:87
`NowMeshData` is not registered, but the singleton `Mesh` creates it and keeps it in `data`, so one instance outlives every request and is shared by every caller that reaches it — and it mutates instance state outside any lock (vertexCount, indexCount, subMeshCount, interleaved, layoutCount, vertexStride; e.g. `vertexCount` at line 117). — Standalone/NowUI.Engine/NowMeshData.cs:48
`NowMaterialBag` is not registered, but the singleton `Material` creates it and keeps it in `m_Bag`, so one instance outlives every request and is shared by every caller that reaches it — and it mutates instance state outside any lock (floats, version, ints, vectors, matrices, textures; e.g. `floats` at line 82). — Standalone/NowUI.Engine/NowMaterialBag.cs:24
`NowTreeViewState` is not registered, but the singleton `NowTreeFrame` creates it and keeps it in `fallbackState`, so one instance outlives every request and is shared by every caller that reaches it — and it mutates instance state outside any lock (expanded; e.g. `expanded` at line 28). — Assets/NowUI/Runtime/Controls/NowTreeView.cs:10
`Texture` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (s_TextureMemory; e.g. `s_TextureMemory` at line 246). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — Standalone/NowUI.Engine/Graphics/Texture.cs:27
`NowImguiState` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (controlIdCounter, lastRect, changed, hotControl, keyboardControl, current; e.g. `controlIdCounter` at line 70). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — Standalone/NowUI.Engine/IMGUI/Imgui.cs:30
`Object` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (s_DrainBuffer; e.g. `s_DrainBuffer` at line 325). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — Standalone/NowUI.Engine/Object/Object.cs:16
`Application` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (s_TargetFrameRate, s_Version, s_SystemLanguage, s_HasSystemLanguage, s_Quitting, s_WantsToQuit; e.g. `s_TargetFrameRate` at line 101). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — Standalone/NowUI.Engine/Services/Application.cs:16
`QualitySettings` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (s_AntiAliasing, s_VSyncCount; e.g. `s_AntiAliasing` at line 31). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — Standalone/NowUI.Engine/Services/QualitySettings.cs:12
`Screen` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (s_FullScreen, s_HasOrientationOverride, s_Orientation; e.g. `s_FullScreen` at line 100). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — Standalone/NowUI.Engine/Services/Screen.cs:68
`Time` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (s_FixedDeltaTime, s_TimeScale; e.g. `s_FixedDeltaTime` at line 91). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — Standalone/NowUI.Engine/Services/Time.cs:14
`NowImmediate` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (activeTarget, s_MatrixStack, modelView, projection, s_ContextPool, activePass; e.g. `activeTarget` at line 107). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — Standalone/NowUI.Engine/Graphics/NowImmediate.cs:35
`NowTemporaryRenderTexturePool` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (s_Outstanding, s_Free, s_Hooked; e.g. `s_Outstanding` at line 108). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — Standalone/NowUI.Engine/Graphics/NowTemporaryRenderTexturePool.cs:29
`EngineClock` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (s_DeltaTime; e.g. `s_DeltaTime` at line 20). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — Standalone/NowUI.Engine/Math/EngineClock.cs:12
`NowRuntime` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (s_Host, s_Backend, s_FrameStarted, s_StartSeconds, s_LastFrameSeconds, timeSeconds; e.g. `s_Host` at line 118). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — Standalone/NowUI.Engine/NowRuntime.cs:16
`NowComboBox` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (s_nextPopupState, _popupStates, _popupStatesByCallback; e.g. `s_nextPopupState` at line 350). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — Assets/NowUI/Runtime/Controls/NowComboBox.cs:18
`NowContextMenu` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_openId, _openSurface, _openRegistrationOwner, _openOwnerPassSerial, _openDeclaredOwnerPassSerial, _hasOpenedInputPass; e.g. `_openId` at line 242). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — Assets/NowUI/Runtime/Controls/NowContextMenu.cs:40
`NowButton` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (s_warnedBeginLabelSites; e.g. `s_warnedBeginLabelSites` at line 102). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:10
`Now` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_defaultFont, _fontStack, _maskStack, _ambientAnalyticMaskCount, _ambientTextureMaskCount, _transformScaleX; e.g. `_defaultFont` at line 61). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — Assets/NowUI/Runtime/Controls/NowControlFactories.cs:17
`NowLayout` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_ambientStartedAt, _depth, _measurePass, _measureCycleDepth, _trackContent, _trackedContent; e.g. `_ambientStartedAt` at line 1269). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — Assets/NowUI/Runtime/Controls/NowControlFactories.cs:202
`NowControls` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_nextOwnerNonce, _defaultOwnerRoot, _ownerRootCache, _ownerRootCacheValid, _idStack, _idScopeStartedAt; e.g. `_nextOwnerNonce` at line 63). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — Assets/NowUI/Runtime/Controls/NowControls.cs:26
What to do
Keep singletons stateless or back their state with thread-safe types (Concurrent*/Immutable*); otherwise concurrent callers race.
A `static` field is one slot for the whole process, however its type is created: back it with a thread-safe type (ConcurrentDictionary, Interlocked), take a lock around every write, or move it into a registered singleton that does.
Other · Architecture — Whether the project-reference graph is acyclic (cycles block independent build/deploy and signal eroding boundaries).
Method: Project reference cycles via elementary-DFS over real .csproj references, using the engine shared with D5/D7; cyclic versus acyclic. Exhaustive, deterministic.
The namespaces NowUI.Engine ↔ UnityEngine ↔ UnityEngine.Rendering depend on each other. The lightest dependency in the cycle is UnityEngine.Rendering → NowUI.Engine (UnityEngine.Rendering.CommandBuffer → NowUI.Engine.INowRenderBackend, 4 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — Standalone/NowUI.Engine/Graphics/Rendering/CommandBuffer.cs:26
The namespaces NowUI ↔ NowUI.Internal depend on each other. The lightest dependency in the cycle is NowUI.Internal → NowUI (NowUI.Internal.NowLottieNative → NowUI.PreparedTextGlyph, 9 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface. — Standalone/NowUI.Runtime/BrowserNowLottieNative.cs:9
What to do
Break namespace cycles inside a project by moving the shared type to a namespace both sides can use, or by inverting the back edge behind an interface.
Other · Architecture — Whether dependencies point inward (Domain ← Application ← Infrastructure/Web) — the clean-architecture dependency rule, checked across the project graph.
Method: Layer violations by name-segment inference (Domain/Core to Application to Infrastructure/Web) over the project-reference graph. Exhaustive over all projects, deterministic.
Other · Architecture — Whether the codebase has a recognisable, scale-appropriate structure (a named architectural style, or modular enough for its size) rather than being an ad-hoc ball of mud.
Method: Roslyn plus csproj analysis: architecture style detection (DDD, clean, vertical-slice, CQRS) and structure fitness for repo size. Deterministic.
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.
`INowRenderBackend` declares 20 members: `caps`, `BeginFrame`, `EndFrame`, `UploadTexture2D`, `UpdateSampler`, `ReleaseTexture`, `CreateRenderTexture`, `IsRenderTextureLost`, `ReleaseRenderTexture`, `ReleaseMesh`, `ReleaseMaterial`, `ResolveShader`, `SetRenderTarget`, `SetViewport`, `SetViewProjection`, `ClearRenderTarget`, `DrawMesh`, `DrawProcedural`, `Blit`, `CopyTexture`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. 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. — Standalone/NowUI.Engine/Backend/INowRenderBackend.cs:215
What to do
Split fat interfaces into focused role-interfaces so clients depend only on what they use.
Do you agree with this assessment?
AX8 · Test isolation10.0 / 10Exemplary✓ Tool-verified
Other · Architecture — Whether production projects stay free of references to test projects — tests may depend on production, never the reverse.
Method: Csproj graph: each production project checked for references to test projects (identified by test-framework presence, not name). Zero violations is clean. Deterministic.
Do you agree with this assessment?
C1 · Data Protection0.0 / 10Critical✓ Tool-verified
Other · Security — Whether sensitive data is encrypted at rest and in transit and keys are vaulted.
Method: Roslyn plus filesystem scan: encryption presence (EF ColumnEncryption, key-vault references, HTTPS enforcement) and key-derivation KDF detection. Deterministic.
No data-protection or encryption usage (ASP.NET Data Protection, AES, column encryption, PBKDF2) was found — sensitive data at rest may be unprotected. If TDE/KMS/vault is delegated to infrastructure, ignore.
What to do
Encrypt sensitive data at rest (ASP.NET Core Data Protection / column encryption) and manage keys in a vault. Skip if delegated to infra (Postgres TDE, KMS, etc.).
Enforce HTTPS (UseHttpsRedirection / RequireHttpsMetadata) so data in transit is always encrypted.
Other · Code Health — Unreviewed-generation residue: shipped members still throwing NotImplementedException, and placeholder string literals left in non-test, non-generated code. Scored as a quality signature, never as a claim about authorship.
Method: Roslyn syntax scan: NotImplementedException throws and placeholder string literals in non-test, non-generated shipped code. Deterministic, code-shape signature.
Other · Code Health — Unfinished work detected by code SHAPE, not keywords: members that only throw a "not implemented" exception, methods that take inputs and return a constant, async methods that never await, dead `if (false)` / `#if false` branches, and skeleton types most of whose members are holes. A real, objective slice of technical debt.
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.
`IndentBase` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — Assets/NowUI/Extensions/Markdown/NowMarkdownParser.cs:422
The first 2 statements of the `if` and of the `else` are identical, so they run on both paths regardless of the condition. Lift them above the `if` — leaving them duplicated inside makes the branches read as though they handled this differently. — Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:3126
The branch `if (!finiteAbi || declaredAbi != abi || abi < NowSdf.MinimumMaterialAbiVersion || abi > NowSdf.MaterialAbiVersion)` throws `ArgumentException` while the member's other paths do the work — the branch was never written, so every input that reaches it fails at run time. Implement the branch, or reject the input where it enters with an exception that says it is not supported. — Assets/NowUI/Extensions/Sdf/NowSdf.cs:4626
`PollThumbnailRequests` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — Assets/NowUI/Runtime/Controls/NowFilePicker.Thumbnails.Standalone.cs:23
`AbortThumbnailRequest` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — Assets/NowUI/Runtime/Controls/NowFilePicker.Thumbnails.Standalone.cs:27
`IsPointerOverUGUI` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — Assets/NowUI/Runtime/Controls/NowRaycastGate.cs:339
`IsHostAbove` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — Assets/NowUI/Runtime/Controls/NowRaycastGate.cs:348
`TryFill` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — Assets/NowUI/Runtime/Standalone/NowLottieBurstTessellator.Standalone.cs:24
`TryStroke` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — Assets/NowUI/Runtime/Standalone/NowLottieBurstTessellator.Standalone.cs:38
`InvalidateClip` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — Assets/NowUI/Runtime/Standalone/NowLottieBurstTessellator.Standalone.cs:51
`ReleaseCachedMaterial` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — Assets/NowUI/Runtime/Standalone/NowWorldGraphic.Standalone.cs:19
The branch `if (!IsPortedShader(shaderName))` throws `NotSupportedException` while the member's other paths do the work — the branch was never written, so every input that reaches it fails at run time. Implement the branch, or reject the input where it enters with an exception that says it is not supported. — Standalone/NowUI.Browser/WebGL2Backend.cs:532
`GetSZArrayType` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — Standalone/NowUI.Cli/BrowserTrimming.cs:136
`GetTypeFromDefinition` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — Standalone/NowUI.Cli/BrowserTrimming.cs:137
`GetTypeFromReference` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — Standalone/NowUI.Cli/BrowserTrimming.cs:138
The first 3 statements of the `if` and of the `else` are identical, so they run on both paths regardless of the condition. Lift them above the `if` — leaving them duplicated inside makes the branches read as though they handled this differently. — Standalone/NowUI.Engine/Math/Color.cs:217
`InvalidateCache` has an empty body — confirm it's an intentional no-op and not an unfinished method. — Assets/NowUI/Runtime/Controls/NowRaycastGate.cs:344
What to do
Finish or delete the unfinished stubs (NotImplementedException / empty / constant-returning bodies) — they are dead surface that looks live.
Clear the softer debt: remove commented-out code and dead branches, re-enable or delete skipped tests, and replace blanket warning suppressions with targeted ones.
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.
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.
Maturity · Maturity — Whether the repository is organised deliberately: production code and tests are set apart in a way its ecosystem or the repository itself declares.
Method: Filesystem scan: src/test folder separation and namespace-prefix consistency (majority RootNamespace agreement). Exhaustive across projects, deterministic.
Maturity · Maturity — Whether the project's current-state documentation describes the code that exists.
Method: Every current-state document's checkable claims looked up in the tree (links, versions, and artefact counts an order of magnitude off), plus two README checks: an advertised infrastructure product with no footprint, and a module the CHANGELOG records as removed. Deterministic, no model. Advisory.
Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).
Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step — in this repository's own ecosystem. Exhaustive, deterministic.
No static application security testing detected. For this repository's stack, add CodeQL's csharp pack, or a .NET security analyzer package (or `semgrep --config=auto`, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 5 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:5
`Assets/NowUI/Analyzers~/NowUI.Analyzers/NowUI.Analyzers.csproj` 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`. — Assets/NowUI/Analyzers~/NowUI.Analyzers/NowUI.Analyzers.csproj:15
What to do
Add a SAST step to CI running what this repository's stack ships: CodeQL's csharp pack, or a .NET security analyzer package — or `semgrep --config=auto`, which runs on any language — 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.
Readiness · Readiness — Whether releases are automated and safely reversible (probes, rolling updates, approval gates) — from manifests/pipeline files, not the live environment.
Method: Filesystem scan: deployment manifests/IaC (K8s YAML, Helm, Terraform) for rolling updates, probes, approval gates, migration hooks. Exhaustive, deterministic.
Readiness · Readiness — Whether outbound HTTP calls are wrapped in resilience (retry/timeout/circuit-breaker) so a failing dependency doesn't cascade.
Method: Source scan: outbound HTTP clients and what bounds them — resilience handlers (Polly, AddStandardResilienceHandler) on .NET; on Go, the JVM, Python, JavaScript/TypeScript, Ruby, PHP, Rust, Elixir, Swift, Dart and Erlang, a timeout, deadline, retry or breaker beside each call, or a process-wide client default (a framework-wide deadline such as Drupal core's, Laravel's or actix's awc counts). Exhaustive, deterministic.
`new HttpClient(new HttpClientHandler { AllowAutoRedirect = false })` builds an outbound HTTP client and nothing bounds it: no timeout is set on it and no retry or resilience policy wraps its calls in the type that owns it. This codebase ships libraries/tools rather than a service it operates, so the failure lands as a hung caller — a build step, a CLI run, a UI thread — with no way out. — Standalone/NowUI.Browser/BrowserFetchProvider.cs:12
`new HttpClient(new SocketsHttpHandler { AllowAutoRedirect = false, AutomaticD...` builds an outbound HTTP client, and what is applied to it does not bound it. Its `Timeout` is set to `Timeout.InfiniteTimeSpan`, which removes HttpClient's own bound rather than setting one. This codebase ships libraries/tools rather than a service it operates, so the failure lands as a hung caller — a build step, a CLI run, a UI thread — with no way out. — Standalone/NowUI.Hosting/NowHttpFetchProvider.cs:30
What to do
Give every outbound call a bound the caller can rely on: set an explicit `HttpClient.Timeout` (or pass a `CancellationToken` from a `CancellationTokenSource` with a deadline) and flow the caller's own `CancellationToken` through, so a slow endpoint fails fast instead of hanging.
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.
6 blocking call(s) on async work (.Wait()/.GetAwaiter().GetResult()) — these waste a thread and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
`.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one). (×6) — Standalone/NowUI.Cli/BrowserServer.cs:25, Standalone/NowUI.Cli/PreviewWatch.cs:62, Standalone/NowUI.Cli/PreviewWatch.cs:87, …
What to do
Make the call chain async end-to-end and await it — never block on a Task with .Wait()/.GetAwaiter().GetResult().
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.
Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process. (×5) — Standalone/NowUI.Cli/BrowserServer.cs:20, Standalone/NowUI.Cli/PreviewWatch.cs:62, Standalone/NowUI.Cli/ProjectBuilder.cs:48, …
Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` wastes a thread and, if the task needs a context this one is holding, deadlocks. `Dispose()` returns void by contract, so it cannot simply `await`: signal the work to stop first (cancel its token, set its stop flag) so the wait is short, give the wait a TIMEOUT so a hung task cannot hang shutdown, and — where callers can use it — add an awaitable teardown (`DisposeAsync`/`StopAsync`) beside the synchronous one and let `Dispose()` remain the bounded fallback. — Standalone/NowUI.Cli/PreviewWatch.cs:87
Other · Code Health — Whether any branch is dead by construction — a switch arm whose label can never equal a case-normalised subject, or an `else if` whose predicate the arm above has already swallowed.
Method: Roslyn syntax + semantics: switch labels compared against the subject's own case normaliser, and if/else-if chains checked for a literal an earlier arm's containment test already swallows. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X13 · Undrained process stream10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a child process that has BOTH standard streams redirected drains both — reading one to the end while the other is never read deadlocks once the child fills the unread pipe.
Method: Roslyn syntax + semantics: ProcessStartInfo launches with both streams redirected, checked for a drain of each stream across the enclosing type. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `spawn` imported from `child_process` whose stdout and stderr are both pipes (no options, no `stdio`, or `stdio` of `'pipe'`), bound to a local that never leaves its scope, where exactly one of the two streams is read, the other never, and the child’s `close`/`exit` (or the read stream’s end) is awaited; a shell redirect in the call’s arguments or a `kill` of the child suppresses it. The same rule reads Python’s `subprocess.Popen`, Dart’s `Process.start`, Ruby’s `Open3.popen3`, and Scala’s JDK process starts (`new ProcessBuilder(…).start()` with no `redirectErrorStream`/`redirectError`/`redirectOutput`/`inheritIO`, `Runtime.getRuntime.exec`) where one of `getInputStream`/`getErrorStream` is read and the other never while `waitFor()` is called or the read stream is read to its end. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a loop that shortens a string until it fits a length budget has a floor — one with none grinds the value down to the empty string, or past it into a negative-length `Substring`.
Method: Roslyn syntax + semantics: while/do loops whose body's only effect on a string is to drop its last character, checked for whether anything — a direct comparison on the length, a body guard, a break — bounds that length below. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `while`/`do` loop whose body’s one assignment to a value is `x = x.slice(0, -1)` or `x = x.slice|substring|substr(0, x.length - 1)`, driven by a condition that reads `x.length` only as a term of a larger expression — never compared directly, never tested for truthiness, and with no other read of `x` — and whose body has no `break`, `return`, `throw` or `if` naming `x`. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a type's disposal matches what it OWNS — releasing what it created, leaving alone what it was handed, and not declaring a finalizer for state that has nothing unmanaged to finalize.
Method: Roslyn syntax + semantics: every assignment to a disposable field is read to decide whether the type CREATED the value or was handed it, and the type's disposal is checked against that answer — an injected interface it disposes, a value it constructed and never releases, a finalizer on a type holding nothing unmanaged, and a disposable local whose every reference is a plain member read. A value handed to a container that disposes its contents (a parent control's `Controls` collection, a component `IContainer`) is released by that container and is not reported; generated code is out of population. On a repository with no .NET source the same ownership questions are read in JavaScript/TypeScript off the engine’s own token stream (test, vendored, generated and minified paths not): a class declaring `dispose()`, `[Symbol.dispose]()` or `[Symbol.asyncDispose]()` that disposes a field it was handed through a constructor parameter typed as a repository interface or resolved by a dependency-injection container; that assigns a field only ever from `new X(…)` of a disposable class and neither releases it anywhere in the class nor names it in its disposal member or a method that member calls, nor hands it to anything else; and a `const`/`let` local built from literals only whose every reference opens a statement operating on a non-release member of it. A class is disposable when every repository declaration of its name declares or inherits a disposal member, or when it is a documented library disposable (`vscode` EventEmitter, CancellationTokenSource and Disposable; three.js geometries, materials, textures, render targets, renderers, controls and composers). The finalizer arm has no JavaScript counterpart: a class cannot declare one. Dart is read for the owned-and-never-released arm: a Flutter `State` (or a class declaring `dispose()`/`close()`) whose library-private field is written only with direct creations of a framework controller, `FocusNode`, `StreamController` or periodic `Timer` (or a `.listen(…)` into a field declared `StreamSubscription`), which nothing in the class or its library releases (`dispose`/`close`/`cancel`) and which is never handed on except as a named argument. Ruby is read for the owned-and-never-released arm and the abandoned-local arm: a class declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose instance variable is written only with a blockless core descriptor creation (`File.open`/`new`, `Tempfile`, `Dir.open`, `IO.popen`, the `socket` and `openssl` socket classes) that no method of the class closes and that is never handed on (passed, returned, stored, exposed by `attr_reader`, delegated) — a class whose superclass or mixin lies outside the repository is not judged — and a blockless creation read through and dropped (`File.open(path).read`) or held in a local that is never closed, returned, passed or stored (a `&:read` block-pass, an `autoclose: false` borrow and a `fileno` hand-over are not abandonment). PHP is read for the same two arms: a class (not a trait, and not one using a trait) declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose `private` property (or a `final` class's `protected` one) is written only with a direct core `fopen`, `tmpfile`, `popen`, `proc_open`, `fsockopen`, `stream_socket_client`/`server` or `opendir` that nothing in the class closes (`fclose`, `pclose`, `closedir`, `unset`, a reset to `null`) and that is never handed on, and a handle held in a function's local, or read through as the argument of a reader, that is never closed, returned, passed, captured or stored; a `php://` stream, `curl_init`, `SplFileObject`, `PDO` and a function the repository declares under the core name are not read. Deterministic, provable per finding. Advisory.
`tileStart` is a `NativeArray`, which implements `IDisposable`, and it is created here (line 91). Every use of it in `Execute` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var tileStart = …;`), which releases it at the end of the scope on every path including a throw. — Assets/NowUI/Runtime/NowManagedFontBaker.cs:91
`centerDistance` is a `NativeArray`, which implements `IDisposable`, and it is created here (line 92). Every use of it in `Execute` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var centerDistance = …;`), which releases it at the end of the scope on every path including a throw. — Assets/NowUI/Runtime/NowManagedFontBaker.cs:92
`tileSegments` is a `NativeList`, which implements `IDisposable`, and it is created here (line 93). Every use of it in `Execute` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var tileSegments = …;`), which releases it at the end of the scope on every path including a throw. — Assets/NowUI/Runtime/NowManagedFontBaker.cs:93
`crossingX` is a `NativeArray`, which implements `IDisposable`, and it is created here (line 125). Every use of it in `Execute` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var crossingX = …;`), which releases it at the end of the scope on every path including a throw. — Assets/NowUI/Runtime/NowManagedFontBaker.cs:125
`crossingDirection` is a `NativeArray`, which implements `IDisposable`, and it is created here (line 126). Every use of it in `Execute` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var crossingDirection = …;`), which releases it at the end of the scope on every path including a throw. — Assets/NowUI/Runtime/NowManagedFontBaker.cs:126
`listener` is a `TcpListener`, which implements `IDisposable`, and it is created here (line 36). Every use of it in `ServeAsync` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var listener = …;`), which releases it at the end of the scope on every path including a throw. — Standalone/NowUI.Cli/BrowserServer.cs:36
What to do
Each finding names the value and the span that decides who owns it — the `new` that created it, or the constructor parameter that handed it over. Confirm ownership from that span, then make the disposal match it: release what this type created, leave what it was injected with to whoever created THAT, and drop a finalizer whose type holds nothing unmanaged to release.
Other · Code Health — Whether async methods accept a CancellationToken so work can be cancelled (adoption curve).
Method: Roslyn scan: every async method (excluding framework-fixed overrides/Blazor handlers) checked for CancellationToken parameter presence. Deterministic, adoption percentage. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same question: every named async function that itself makes a request an AbortSignal can cancel (global `fetch`, axios and its file-local instances, ky, ofetch) counts, and it is compliant when its parameters or body name a signal or it hands one of its own parameters to the request as options; signatures a framework fixes (JSX event handlers, route and lifecycle exports, request-first handlers, `override`, `'use server'` modules, TanStack `mutationFn`) are exempt unless they take a signal. Deterministic, adoption percentage.
Only 3/7 async methods accept a CancellationToken, so in-flight work can't be stopped early when the caller gives up — whatever ends it in your host (shutdown signal, timeout, abandoned request, user cancel). Thread a token through the call chain and honour it at each await and loop; where a method genuinely cannot be interrupted, omitting it is a deliberate choice — judge against your hosting model.
No CancellationToken parameter — the body observes an ambient token instead (a field or a context object), so the work does stop on cancellation, but a caller cannot cancel this call independently of the owner that created that token. — Standalone/NowUI.Hosting/NowHttpFetchProvider.cs:97
No CancellationToken parameter — this work can't be stopped early once started. (×3) — Standalone/NowUI.Cli/ProjectBuilder.cs:63, Standalone/NowUI.Browser/BrowserInput.cs:41, Standalone/NowUI.Browser/WebGL2Backend.cs:243
What to do
Thread a CancellationToken through async methods so work stops promptly on cancellation.
Other · Code Health — Whether an argument guard throws the exception its own condition describes — a guard that rejects a value for being EMPTY and reports it as `ArgumentNullException` tells the caller a parameter was null when it provably was not.
Method: Roslyn syntax: `throw new ArgumentNullException(nameof(p))` statements (or a repository exception type deriving from it) controlled by an `if` — directly or through the `using`, `lock` or `try` that wraps the throw — whose condition is read for a test that is true of a NON-null `p` — an emptiness test that dereferences it (`p.Count == 0`, `!p.Any()`) or a BCL predicate documented true of the empty value (`string.IsNullOrEmpty(p)`); in the `else` branch, for a conjunct of the admitting condition that is FALSE of a non-null `p`. Range guards are read for bounds that leave nothing and for a `p > C.Count` bound whose index then reaches `C[p]`, `C.RemoveAt(p)` or a method of the same type that indexes with it. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a `when` guard is free of side effects — a guard that increments a counter or assigns while deciding whether its arm matches applies that change during PATTERN MATCHING, on an arm that may not be selected, and skips it entirely when a short-circuit to its left answers first.
Method: Roslyn syntax: `when` guards on case labels and switch-expression arms, read for a mutation (`++`/`--`/assignment) sitting in a position the guard's own `&&`/`||`/`??`/`?:`/`?.` can skip. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a 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.
Do you agree with this assessment?
X27 · Collection changed while being enumerated7.9 / 10Strong✓ Tool-verified
Other · Code Health — Whether a `foreach` leaves the collection it is walking alone — a body that adds to or removes from the very collection the loop is enumerating invalidates the enumerator it is holding, so the next `MoveNext` throws `InvalidOperationException` and the remaining items are never seen.
Method: Roslyn syntax + semantics: `foreach` statements whose body calls a structural mutator (`Add`/`Remove`/`Clear`/`Insert`/…) on the very expression the loop is enumerating. Two arms. ARM A — the source is a concrete fragile BCL collection, or a live `Keys`/`Values` view over one, and the mutator resolves to that same collection's own member; concurrent and immutable collections and arrays are outside the population by construction, since their enumerators survive a structural change. ARM B — the source is an argument-less accessor CALL on a receiver whose body is in source: the accessor must return a stored field VERBATIM and a sibling member must structurally change that same field, both read off the implementations rather than from the members' names. A mutation the loop provably exits immediately after (`break`/`return`/`throw`/`goto`), or one written inside a nested loop or a lambda, is counted and never reported. Deterministic, provable per finding. Advisory.
`other.keywords` is enumerated directly, and line 268 calls `other.keywords.Add(…)` inside the loop body — a structural change to a `HashSet`. The next `MoveNext` throws `InvalidOperationException: Collection was modified; enumeration operation may not execute`, so every pass that reaches this call ends the loop by exception instead of by running out of items, and the remaining items are never seen. — Standalone/NowUI.Engine/NowMaterialBag.cs:267
What to do
Each finding names the two spans that cannot both stand — the `foreach` source, and the call inside the body that structurally changes that same collection. Confirm from those two, then pick one: enumerate a snapshot (`foreach (var x in c.ToList())`), collect what needs changing and apply it after the loop, or — where the loop was only ever meant to act on the first match — `break` immediately after the mutation, which is the one shape that is already safe.
Do you agree with this assessment?
X28 · Index access outside its own emptiness guard10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a condition that tests a value for emptiness indexes that same value only where the test holds — an `||` written one parenthesis too far to the left leaves an index access outside the guard beside it, so the empty case the guard exists to anticipate reaches the index and throws.
Method: Roslyn syntax only, no semantic model: the OUTERMOST `&&`/`||` of every boolean condition, read for a symbol the condition tests for emptiness (`string.IsNullOrEmpty`/`IsNullOrWhiteSpace`, a `Length`/`Count` comparison against a literal, `Any()`, a `Length`/`Count` pattern, or a comparison against `""`) and ALSO indexes. Each `symbol[...]` access is placed by a boolean-reachability walk from the access up to the outermost connective: an access is COVERED when some enclosing step has it in the right operand and the left operand, under the truth value that step forces, proves the symbol non-empty — a recursion over `&&`/`||` whose true- and false-directions are asymmetric. A finding needs BOTH an uncovered access and a covered one on the same symbol in the same condition, which is the agreeing twin that separates a misplaced parenthesis from an unrelated length test. Bare index accesses with no emptiness test in the condition are neither counted nor reported; a non-identifier receiver and a lambda nested inside the condition are outside the population. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X29 · Per-element action decided by a fixed element7.5 / 10Strong✓ Tool-verified
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.
This loop runs once per element of `contours`, and the statement it guards acts on the element it is on — `contours[i]`. The test deciding whether that statement runs does not: `probe.x < bounds.x || probe.y < bounds.y || probe.x > bounds.z || probe.y > b...` reads `contours[contourIndex]`, a subscript that does not move, so whatever it answers for that one element it answers for ALL of them. One `if` names the same collection at two different subscripts — the fixed one at line 1147, which is the contradiction: either the test was meant to be per-element, in which case every element that differs from the fixed one is handled wrongly and all in the same direction, or it really is one answer for the whole collection, in which case it is being re-asked on every pass and belongs above the loop. The `if` is in the wrong place under both readings. Give the test the loop variable, or hoist it out. — Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:1157
What to do
Each finding names the test and the statement it guards, which index the same collection at two different subscripts — one fixed, one the loop variable. Confirm from the two, then decide which subscript the test meant. If it was meant to be per-element, give it the loop variable so each element is judged on itself. If it really is one answer for the whole collection, hoist the test OUT of the loop, where a reader can see it is asked once and where it is not re-evaluated on every pass — leaving it inside, reading a fixed element, is the one arrangement that cannot be right under either reading.
Other · Code Health — Whether exceptions are handled rather than silently swallowed or rethrown with lost stack traces.
Method: Roslyn syntax scan: every catch clause counted; empty catches and bare rethrows flagged. Population is all catch clauses, not estimated. Deterministic, hard fact.
`catch (Exception)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch. (×4) — Standalone/NowUI.Engine/NowRuntime.cs:350, Standalone/NowUI.Engine/NowRuntime.cs:371, Standalone/NowUI.Engine/NowRuntime.cs:385, …
An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it. (×7) — Assets/NowUI/Runtime/Controls/NowFilePicker.cs:2295, Assets/NowUI/Runtime/Controls/NowFilePicker.cs:2298, Assets/NowUI/Runtime/Controls/NowFilePicker.cs:2301, …
`catch (DllNotFoundException)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch. (×2) — Assets/NowUI/Runtime/Lottie/NowLottieNative.cs:195, Assets/NowUI/Runtime/NowFontCompiler.cs:503
`catch (EntryPointNotFoundException)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch. (×2) — Assets/NowUI/Runtime/Lottie/NowLottieNative.cs:199, Assets/NowUI/Runtime/NowFontCompiler.cs:509
`catch (BadImageFormatException)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch. — Assets/NowUI/Runtime/NowFontCompiler.cs:515
An empty catch block silently discards the error — failures vanish with no log and no rethrow. On a teardown path letting it propagate is not an option (throwing out of `Dispose()` masks the failure already in flight and abandons the rest of the cleanup), so make the swallow deliberate instead: record it through whatever this codebase already uses to report problems — or, if one specific failure truly cannot matter, catch exactly that exception type and say why in a comment on the catch (a comment on a catch-all still swallows everything else). — Standalone/NowUI.Cli/PreviewWatch.cs:88
What to do
Swallowed exception (caught, then discarded)
Do you agree with this assessment?
X30 · Support guard that admits what it rejects10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a guard written as a NEGATED `||` says what its author meant — `!(a || b || x != k)` is `!a && !b && x == k` by De Morgan, so a bail-out that mixes capabilities the code needs with a fault it refuses turns inside out: it fires only where the capabilities are ABSENT, and lets every value the fault term names walk straight into the body that cannot handle it.
Method: Roslyn syntax only, no semantic model: every logical-not whose operand is a parenthesised `||` chain of two or more disjuncts, flattened (a left-nested `a || b || c` read once would see `(a || b)` as one disjunct). A site enters the population on that shape alone. A finding additionally needs the disjuncts to DISAGREE in polarity: at least one bare boolean read — an identifier or member access, never an invocation, which is a predicate rather than a capability flag — and at least one `x != <constant>`, the only form that negates into an exact-value pin (`== null` negates into a looser requirement and is outside the fault set). Consistently-polarised disjunctions, all-fault or all-capability, are counted and never reported; a negated `&&` is outside the population entirely. No same-receiver gate: it was measured to cost a real defect and remove no false positive. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether log calls use message templates (queryable) rather than interpolated strings.
Method: Roslyn syntax scan: every log call-site counted; interpolated-string first-argument violations flagged. Population is all log calls, not estimated. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `trace`/`debug`/`info`/`warn`/`error`/`fatal`/`verbose`/`silly`/`http`/`log` call on a receiver named for a logger, in a package whose own or an enclosing `package.json` declares a logger that carries values as fields (pino, pino-http, nestjs-pino, Fastify, winston, bunyan, tslog, LogTape, roarr), whose first deciding argument is a template literal with substitutions; an object-literal fields argument is stepped over, a plain string message clears the call. Python is read the same way: a `debug`/`info`/`warning`/`error`/`exception`/`critical`/`log` call on a logger in a file that imports the standard library’s `logging` or structlog (loguru, which formats at the call, is not judged), whose message is a whole f-string with a non-constant field; a `%`-formatted, `.format()`-ed or concatenated message is not convicted, as in C#. PHP is read the same way: a PSR-3 level call (`emergency`…`debug`, `log`) on a logger (`$logger`, `$this->logger`, Laravel’s `Log::`, `logger()`, `\Drupal::logger()`) in a package whose `composer.json` requires a PSR-3 logger or a framework that hands one out (psr/log, Monolog, Laravel, Symfony, Drupal, CakePHP), or a file that imports one, whose message is a double-quoted string interpolating a variable; a single-quoted message clears the call, and `sprintf` or `.` concatenation is not convicted, as in C#. Dart is read the same way: a `trace`/`debug`/`info`/`warn`/`error`/`fatal` call on Sentry’s structured logger (`Sentry.logger`) whose message is a whole string literal interpolating a value (`$name`, `${…}`); the `Sentry.logger.fmt` template API clears the call. Dart that logs only through loggers with one message and no fields (package:logging, package:logger, talker, dart:developer) is not applicable rather than a reach gap. Ruby is read the same way: a `trace`/`debug`/`info`/`warn`/`error`/`fatal` call on the console gem’s `Console` (declared by a Gemfile, gemspec or Gemfile.lock, or required) or, where SemanticLogger, Ougai or dry-logger is declared or required, on a receiver named for a logger (`logger`, `@logger`, `Rails.logger`, `log`), whose first deciding argument is, as the whole argument, a double-quoted string interpolating a non-constant value (`#{…}`, `#@ivar`); a plain literal clears the call, keyword arguments are the fields, and a block, `%`-format or `+` concatenation is not convicted. Ruby that logs only through the standard Logger (Rails.logger) is not applicable rather than a reach gap. Deterministic.
Other · Code Health — Whether nullable reference types are enabled and not undermined by heavy `!` suppression.
Method: Roslyn compiler-options scan: NullableContextOptions per project; null-forgiving (!) suppression density per 1k syntax nodes. Deterministic, adoption plus suppression penalty.
This method contradicts itself about `requested`: line 547 writes `requested?.Count`, which says `requested` can be null, but line 555 then dereferences it directly with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `requested` truly cannot be null here, the `?.` is misleading. Settle it one way — test `requested` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — Assets/NowUI/Runtime/Controls/NowRichText.cs:555
3/21 NRT-eligible project(s) enable <Nullable>enable</Nullable> (projects targeting a pre-C#-8 framework are excluded — NRTs aren't available there). NRTs catch a whole class of null-deref bugs at compile time.
~1.6 `!` suppressions per 1k syntax nodes — 40 suppression(s) across the 25033 syntax node(s) in code where nullable warnings are ENABLED, which is the only code a `!` can suppress anything in (a `!` under `#nullable disable` is inert and is not counted, and its file's nodes are not in the denominator). Each one tells the compiler to trust you about null, suppressing the very safety NRTs provide. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first.
What to do
Where a method uses `?.` on a symbol and then dereferences it directly, settle the question once: test it before the first use and handle null, or drop the `?.`.
Enable <Nullable>enable</Nullable> across all projects and resolve warnings rather than suppressing with `!`.
Do you agree with this assessment?
Reference — by lens
The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.
Unscored — 4 check(s) recorded observations but carry no score
These checks ran and found something, but they do not carry a score — either by design (an advisory check reports evidence rather than grading it) or because they could not be scored here. They are excluded from the score for that reason, not because there was nothing to see.
P12 CI test-gate honesty — 3 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.
SC1 Supply-chain hygiene — 10 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
X10 Duplicated predicate — 40 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
X7 Silent fallback defaults — 13 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 4 control(s) we could not find positive evidence for
These checks grade a working control, and the repository shows no evidence of one. That is deliberately not scored as a zero: a repository cannot show an ops runbook, a database TTL or an infrastructure-side audit log, so absence of evidence here is not evidence the control is missing. It is also not a statement that the check is irrelevant to this codebase — the thing it grades applies; we just could not see it. Excluded from the score either way.
C3 Audit Trail — Repo shows no audit-logging mechanism (IAuditable, an immutable audit log, an EF SaveChanges interceptor) for sensitive changes — absence of evidence is not evidence of a working control. Record an audit trail in code (or document where it lives) so this dimension can be scored.
C4 Data Retention — Repo shows no data-retention / TTL / cleanup mechanism for personal data — absence of evidence is not evidence of a working control. Define retention periods and a purge/cleanup job (or TTL) in code, or document where retention is enforced, so this dimension can be scored.
C5 Data-Subject Rights — Repo shows no corroborated data-subject-rights mechanism (erasure / export-portability / consent) tied to a subject id or GDPR vocabulary — absence of evidence is not evidence of a working control. Implement erasure, data export/portability and consent tracking over the subject's records.
P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 45 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 user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
AC2 Forms & labels — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
AC3 Page structure — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
AC4 Keyboard semantics — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
AC5 ARIA correctness — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
AC6 Visual & motion safety — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
AX1 Captive dependencies — no DI registrations detected
AX7 Slice cohesion — not applicable — not a vertical-slice architecture
AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
AXB1 Runtime evidence locked — no reproducible boot — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
C2 Access Controls — No access-control surface detected in the analyzed source — no web/app surface to authorize (no HTTP API or web-UI project) and no authorization code at all (no [Authorize]/policies, no imperative guard methods). Access control is therefore N/A here — this is a library/CLI, which is authorized by its CALLER, not by itself. If this codebase grows request handlers, the dimension reactivates and a default-deny posture is expected then.
D12 Dependency Hygiene — Dependency hygiene not measured
D16 Bus Factor — single-maintainer repository — bus factor is not applicable
D23 Boundary Type-Coupling — Cross-context type coupling could not be assessed — this codebase's bounded contexts are neither declared nor inferable.
D25 ADR Conformance — no ADRs to check
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) — 11 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
D7 Architectural Integrity — no checkable ADRs and no dependency cycles — architectural integrity not assessed
D8 Code Coverage — Coverage not measured — no coverage collector is wired up
DM1 Domain Modelling — applicable but not scored (2 of 3 signals for this style — below the bar we score at): 1 strongly-typed id(s); 4 value object(s)
ED1 Event-Driven — not scored — this repository shows none of the 3 signals this lens looks for
ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
P2 Observability — This repo is a library, not a deployed service — it has no process to operate, so production observability (structured logging, tracing/metrics, health checks) is N/A. A library may log via an injected ILogger, but the absence of operational telemetry is not a defect here. If it grows a host (web API, worker), the dimension reactivates.
P8 Schema migrations — no EF Core usage detected
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 by the two searches this check runs — a BenchmarkDotNet package reference in any project file (loaded, or on disk), and a script whose name contains `benchmark` that this repository's CI runs. Neither can see a suite in another ecosystem's idiom, so this is not a verdict that the repository has none. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted, and nothing is asked of a repository that has none.
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 detected in the analyzed source — no HTTP API or web-UI project (no controllers/minimal-API endpoints, no Razor/Blazor views) and no web middleware (HTTPS redirection, HSTS, security headers, cookies). Transport security, security headers, secure cookies, CSRF/input-validation and middleware-order controls are therefore N/A here — this is a library/CLI/worker, not a web app. Crypto hygiene was still checked and found nothing to flag. If this codebase becomes web-facing, the dimension reactivates automatically.
X14 Bypassable address classification — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X15 Unvalidated length from an untrusted reader — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X17 Uncapped recursion over a caller-supplied document — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X19 Unrestored process-global state — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
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 applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X26 Unsynchronised callback handoff — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X32 Type resolved by simple name across every loaded assembly — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A — Findings (grouped)
The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.
NoWarnInCsproj Standalone/NowUI.Browser.Tests/NowUI.Browser.Tests.csproj:7— CA1416 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Standalone/NowUI.Engine/NowUI.Engine.csproj:10— CS0660 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Standalone/NowUI.Engine/NowUI.Engine.csproj:10— CS0661 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Standalone/NowUI.Runtime/NowUI.Runtime.csproj:21— CS0649 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Standalone/Tests/Tests.csproj:24— CS0649 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Standalone/Extensions/NowUI.Extensions.CodeEditor/NowUI.Extensions.CodeEditor.csproj:10— CS0649 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Standalone/Extensions/NowUI.Extensions.Docking/NowUI.Extensions.Docking.csproj:10— CS0649 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Standalone/Extensions/NowUI.Extensions.Markdown/NowUI.Extensions.Markdown.csproj:10— CS0649 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Standalone/Extensions/NowUI.Extensions.Markdown.Markup/NowUI.Extensions.Markdown.Markup.csproj:10— CS0649 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Standalone/Extensions/NowUI.Extensions.Markup/NowUI.Extensions.Markup.csproj:10— CS0649 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Standalone/Extensions/NowUI.Extensions.NodeGraph/NowUI.Extensions.NodeGraph.csproj:10— CS0649 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Standalone/Extensions/NowUI.Extensions.Sdf/NowUI.Extensions.Sdf.csproj:10— CS0649 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Standalone/NowUI.Runtime/NowUI.Runtime.csproj:21— CS0169 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Standalone/Tests/Tests.csproj:24— CS0169 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Standalone/Extensions/NowUI.Extensions.CodeEditor/NowUI.Extensions.CodeEditor.csproj:10— CS0169 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Standalone/Extensions/NowUI.Extensions.Docking/NowUI.Extensions.Docking.csproj:10— CS0169 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Standalone/Extensions/NowUI.Extensions.Markdown/NowUI.Extensions.Markdown.csproj:10— CS0169 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Standalone/Extensions/NowUI.Extensions.Markdown.Markup/NowUI.Extensions.Markdown.Markup.csproj:10— CS0169 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Standalone/Extensions/NowUI.Extensions.Markup/NowUI.Extensions.Markup.csproj:10— CS0169 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Standalone/Extensions/NowUI.Extensions.NodeGraph/NowUI.Extensions.NodeGraph.csproj:10— CS0169 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Standalone/Extensions/NowUI.Extensions.Sdf/NowUI.Extensions.Sdf.csproj:10— CS0169 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Standalone/NowUI.Runtime/NowUI.Runtime.csproj:21— CS0414 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Standalone/Tests/Tests.csproj:24— CS0414 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Standalone/Extensions/NowUI.Extensions.CodeEditor/NowUI.Extensions.CodeEditor.csproj:10— CS0414 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
NoWarnInCsproj Standalone/Extensions/NowUI.Extensions.Docking/NowUI.Extensions.Docking.csproj:10— CS0414 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
EmptyCatchBlock Assets/NowUI/Runtime/Controls/NowFilePicker.cs:2295— empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
EmptyCatchBlock Assets/NowUI/Runtime/Controls/NowFilePicker.cs:2298— empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
EmptyCatchBlock Assets/NowUI/Runtime/Controls/NowFilePicker.cs:2301— empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
EmptyCatchBlock Assets/NowUI/Runtime/Controls/NowFilePicker.cs:2304— empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
EmptyCatchBlock Assets/NowUI/Runtime/Controls/NowNumericExpression.cs:45— empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
EmptyCatchBlock Standalone/NowUI.Cli/LoadedScene.cs:65— empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
EmptyCatchBlock Standalone/NowUI.Cli/LoadedScene.cs:66— empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
EmptyCatchBlock Standalone/NowUI.Cli/PreviewWatch.cs:88— empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct — as it often is on a teardown/dispose path where throwing would mask the original failure — catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all.
Namespace dependency cycle Standalone/NowUI.Engine/Graphics/Rendering/CommandBuffer.cs:26— The namespaces NowUI.Engine ↔ UnityEngine ↔ UnityEngine.Rendering depend on each other. The lightest dependency in the cycle is UnityEngine.Rendering → NowUI.Engine (UnityEngine.Rendering.CommandBuffer → NowUI.Engine.INowRenderBackend, 4 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
Namespace dependency cycle Standalone/NowUI.Runtime/BrowserNowLottieNative.cs:9— The namespaces NowUI ↔ NowUI.Internal depend on each other. The lightest dependency in the cycle is NowUI.Internal → NowUI (NowUI.Internal.NowLottieNative → NowUI.PreparedTextGlyph, 9 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
WriteOnlyPrivateField Assets/NowUI/Runtime/Controls/NowBadge.cs:13— private int _site — assigned 1 time(s), read never — this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments — or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there.
WriteOnlyPrivateField Standalone/Tests/Shims/PerformanceTesting.cs:89— private SampleGroup m_SampleGroup — assigned 2 time(s), read never — this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments — or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there.
NoWarnInCsproj repeated across 10 files Standalone/NowUI.Engine/NowUI.Engine.csproj:10— The identical NoWarnInCsproj (`CS1591`) appears in 10 files (10 occurrences) — a single repo-wide policy (e.g. a Directory.Build.props decision or an idiomatic suppression), not 10 independent debts. Decide it once centrally rather than file-by-file. (Every occurrence still counts toward the score and metrics.)
Dead code: SetAtomicSafetyHandle Standalone/NowUI.Engine/Collections/UnsafeUtility.cs:74— Method SetAtomicSafetyHandle — Roslyn's SymbolFinder walked every project the solution loads, including NowUI.Engine, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository — a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol's name, and any project the workspace could not load. This is 'no caller found by this walk', not a verdict that the symbol is unused.
Dead code: MemCmp Standalone/NowUI.Engine/Collections/UnsafeUtility.cs:138— Method MemCmp — Roslyn's SymbolFinder walked every project the solution loads, including NowUI.Engine, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository — a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol's name, and any project the workspace could not load. This is 'no caller found by this walk', not a verdict that the symbol is unused.
Dead code: AddressOf Standalone/NowUI.Engine/Collections/UnsafeUtility.cs:176— Method AddressOf — Roslyn's SymbolFinder walked every project the solution loads, including NowUI.Engine, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository — a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol's name, and any project the workspace could not load. This is 'no caller found by this walk', not a verdict that the symbol is unused.
Dead code: IsBlittable Standalone/NowUI.Engine/Collections/UnsafeUtility.cs:213— Method IsBlittable — Roslyn's SymbolFinder walked every project the solution loads, including NowUI.Engine, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository — a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol's name, and any project the workspace could not load. This is 'no caller found by this walk', not a verdict that the symbol is unused.
Dead code: DiscardContents Standalone/NowUI.Engine/Graphics/RenderTexture.cs:344— Method DiscardContents — Roslyn's SymbolFinder walked every project the solution loads, including NowUI.Engine, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository — a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol's name, and any project the workspace could not load. This is 'no caller found by this walk', not a verdict that the symbol is unused.
Dead code: MarkRestoreExpected Standalone/NowUI.Engine/Graphics/RenderTexture.cs:349— Method MarkRestoreExpected — Roslyn's SymbolFinder walked every project the solution loads, including NowUI.Engine, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository — a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol's name, and any project the workspace could not load. This is 'no caller found by this walk', not a verdict that the symbol is unused.
Dead code: SetGlobalInteger Standalone/NowUI.Engine/Graphics/Shader.cs:143— Method SetGlobalInteger — Roslyn's SymbolFinder walked every project the solution loads, including NowUI.Engine, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository — a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol's name, and any project the workspace could not load. This is 'no caller found by this walk', not a verdict that the symbol is unused.
Dead code: SetGlobalInteger Standalone/NowUI.Engine/Graphics/Shader.cs:148— Method SetGlobalInteger — Roslyn's SymbolFinder walked every project the solution loads, including NowUI.Engine, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository — a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol's name, and any project the workspace could not load. This is 'no caller found by this walk', not a verdict that the symbol is unused.
Dead code: SetGlobalVectorArray Standalone/NowUI.Engine/Graphics/Shader.cs:197— Method SetGlobalVectorArray — Roslyn's SymbolFinder walked every project the solution loads, including NowUI.Engine, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository — a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol's name, and any project the workspace could not load. This is 'no caller found by this walk', not a verdict that the symbol is unused.
Dead code: SetGlobalVectorArray Standalone/NowUI.Engine/Graphics/Shader.cs:202— Method SetGlobalVectorArray — Roslyn's SymbolFinder walked every project the solution loads, including NowUI.Engine, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository — a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol's name, and any project the workspace could not load. This is 'no caller found by this walk', not a verdict that the symbol is unused.
Dead code: SetGlobalFloatArray Standalone/NowUI.Engine/Graphics/Shader.cs:207— Method SetGlobalFloatArray — Roslyn's SymbolFinder walked every project the solution loads, including NowUI.Engine, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository — a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol's name, and any project the workspace could not load. This is 'no caller found by this walk', not a verdict that the symbol is unused.
Dead code: SetGlobalFloatArray Standalone/NowUI.Engine/Graphics/Shader.cs:212— Method SetGlobalFloatArray — Roslyn's SymbolFinder walked every project the solution loads, including NowUI.Engine, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository — a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol's name, and any project the workspace could not load. This is 'no caller found by this walk', not a verdict that the symbol is unused.
Dead code: GetGlobalInt Standalone/NowUI.Engine/Graphics/Shader.cs:227— Method GetGlobalInt — Roslyn's SymbolFinder walked every project the solution loads, including NowUI.Engine, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository — a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol's name, and any project the workspace could not load. This is 'no caller found by this walk', not a verdict that the symbol is unused.
Dead code: GetGlobalInt Standalone/NowUI.Engine/Graphics/Shader.cs:232— Method GetGlobalInt — Roslyn's SymbolFinder walked every project the solution loads, including NowUI.Engine, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository — a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol's name, and any project the workspace could not load. This is 'no caller found by this walk', not a verdict that the symbol is unused.
Dead code: GetGlobalColor Standalone/NowUI.Engine/Graphics/Shader.cs:247— Method GetGlobalColor — Roslyn's SymbolFinder walked every project the solution loads, including NowUI.Engine, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository — a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol's name, and any project the workspace could not load. This is 'no caller found by this walk', not a verdict that the symbol is unused.
Dead code: GetGlobalMatrix Standalone/NowUI.Engine/Graphics/Shader.cs:253— Method GetGlobalMatrix — Roslyn's SymbolFinder walked every project the solution loads, including NowUI.Engine, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository — a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol's name, and any project the workspace could not load. This is 'no caller found by this walk', not a verdict that the symbol is unused.
Dead code: ScheduleBatch Standalone/NowUI.Engine/Jobs/Jobs.cs:137— Method ScheduleBatch — Roslyn's SymbolFinder walked every project the solution loads, including NowUI.Engine, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository — a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol's name, and any project the workspace could not load. This is 'no caller found by this walk', not a verdict that the symbol is unused.
Dead code: CompareApproximately Standalone/NowUI.Engine/Math/Matrix4x4.cs:840— Method CompareApproximately — Roslyn's SymbolFinder walked every project the solution loads, including NowUI.Engine, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository — a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol's name, and any project the workspace could not load. This is 'no caller found by this walk', not a verdict that the symbol is unused.
Dead code: ReadElement Standalone/NowUI.Engine/NowMeshData.cs:238— Method ReadElement — Roslyn's SymbolFinder walked every project the solution loads, including NowUI.Engine, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository — a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol's name, and any project the workspace could not load. This is 'no caller found by this walk', not a verdict that the symbol is unused.
Dead code: ResolveScopedControlId Assets/NowUI/Runtime/Controls/NowControls.cs:115— Method ResolveScopedControlId — Roslyn's SymbolFinder walked every project the solution loads, including NowUI.Runtime, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository — a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol's name, and any project the workspace could not load. This is 'no caller found by this walk', not a verdict that the symbol is unused.
Dead code: SetPrimaryLabel Assets/NowUI/Runtime/Controls/NowDialogs.cs:89— Method SetPrimaryLabel — Roslyn's SymbolFinder walked every project the solution loads, including NowUI.Runtime, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository — a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol's name, and any project the workspace could not load. This is 'no caller found by this walk', not a verdict that the symbol is unused.
Dead code: SetSecondaryLabel Assets/NowUI/Runtime/Controls/NowDialogs.cs:97— Method SetSecondaryLabel — Roslyn's SymbolFinder walked every project the solution loads, including NowUI.Runtime, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository — a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol's name, and any project the workspace could not load. This is 'no caller found by this walk', not a verdict that the symbol is unused.
Dead code: Up Assets/NowUI/Runtime/Controls/NowFocus.cs:57— Method Up — Roslyn's SymbolFinder walked every project the solution loads, including NowUI.Runtime, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository — a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol's name, and any project the workspace could not load. This is 'no caller found by this walk', not a verdict that the symbol is unused.
Dead code: Up Assets/NowUI/Runtime/Controls/NowFocus.cs:69— Method Up — Roslyn's SymbolFinder walked every project the solution loads, including NowUI.Runtime, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository — a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol's name, and any project the workspace could not load. This is 'no caller found by this walk', not a verdict that the symbol is unused.
Dead code: SetLabelWidth Assets/NowUI/Runtime/Controls/NowInspector.cs:74— Method SetLabelWidth — Roslyn's SymbolFinder walked every project the solution loads, including NowUI.Runtime, and found no reference to it. That walk cannot see three kinds of caller, so check them before removing it: code outside the solution file (a solution is a curated list, not the repository — a sibling test tree with its own .sln is invisible), a call resolved by reflection or dependency injection from the symbol's name, and any project the workspace could not load. This is 'no caller found by this walk', not a verdict that the symbol is unused.
TooManyMethods: Now Assets/NowUI/Runtime/Now.cs— TooManyMethods — 4566 significant lines (blank, comment-only and punctuation-only lines excluded), 323 methods, declared across 20 files: Runtime/Now.cs (162), Controls/NowControlFactories.cs (28), Runtime/NowLine.cs (28), Controls/NowValueControls.cs (22), +16 more file(s). The bar is 30 methods; this is 293 over it, 10.77× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
TooManyMethods: NowLayout Assets/NowUI/Runtime/NowLayout.cs— TooManyMethods — 1567 significant lines (blank, comment-only and punctuation-only lines excluded), 192 methods, declared across 10 files: Runtime/NowLayout.cs (119), Controls/NowControlFactories.cs (29), Controls/NowValueControls.cs (22), Runtime/NowLayoutContainers.cs (12), +6 more file(s). The bar is 30 methods; this is 162 over it, 6.40× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
TooManyMethods: NowFont Assets/NowUI/Runtime/NowFont.cs— TooManyMethods — 2729 significant lines (blank, comment-only and punctuation-only lines excluded), 171 methods. The bar is 30 methods; this is 141 over it, 5.70× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: NowSdfGraph Assets/NowUI/Extensions/Sdf/NowSdf.cs— TooManyMethods — 1889 significant lines (blank, comment-only and punctuation-only lines excluded), 151 methods. The bar is 30 methods; this is 121 over it, 5.03× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: NowNodeGraphCanvas Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs— TooManyMethods — 2195 significant lines (blank, comment-only and punctuation-only lines excluded), 138 methods. The bar is 30 methods; this is 108 over it, 4.60× 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: NowFilePicker Assets/NowUI/Runtime/Controls/NowFilePicker.cs— TooManyMethods — 1997 significant lines (blank, comment-only and punctuation-only lines excluded), 132 methods, declared across 2 files: Controls/NowFilePicker.cs (129), Controls/NowFilePicker.Thumbnails.Standalone.cs (3). The bar is 30 methods; this is 102 over it, 4.40× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: NowFocus Assets/NowUI/Runtime/Controls/NowFocus.cs— TooManyMethods — 1397 significant lines (blank, comment-only and punctuation-only lines excluded), 122 methods. The bar is 30 methods; this is 92 over it, 4.07× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
TooManyMethods: NowSdfBuilder Assets/NowUI/Extensions/Sdf/NowSdf.cs— TooManyMethods — 399 significant lines (blank, comment-only and punctuation-only lines excluded), 115 methods. The bar is 30 methods; this is 85 over it, 3.83× 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: NowSdfCache Assets/NowUI/Extensions/Sdf/NowSdf.cs— TooManyMethods — 1212 significant lines (blank, comment-only and punctuation-only lines excluded), 104 methods. The bar is 30 methods; this is 74 over it, 3.47× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: NowHarnessAnimationScenarios Assets/NowUIHarness/NowReadmeShowcaseAnimations.cs— TooManyMethods — 1855 significant lines (blank, comment-only and punctuation-only lines excluded), 101 methods, declared across 7 files: NowUIHarness/NowReadmeShowcaseAnimations.cs (37), NowUIHarness/NowReadmeShapeAlgebraAnimation.cs (31), NowUIHarness/NowReadmeMonthSliderAnimation.cs (17), NowUIHarness/NowReadmeMusicPlayerAnimation.cs (11), +3 more file(s). The bar is 30 methods; this is 71 over it, 3.37× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
TooManyMethods: NowHarnessScenarios Assets/NowUIHarness/NowHarnessScenarios.cs— TooManyMethods — 2292 significant lines (blank, comment-only and punctuation-only lines excluded), 98 methods. The bar is 30 methods; this is 68 over it, 3.27× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
TooManyMethods: NowModelPreview Assets/NowUI/Runtime/NowModelPreview.cs— TooManyMethods — 1473 significant lines (blank, comment-only and punctuation-only lines excluded), 98 methods. The bar is 30 methods; this is 68 over it, 3.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: NowCodeEditor Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs— TooManyMethods — 2356 significant lines (blank, comment-only and punctuation-only lines excluded), 97 methods. The bar is 30 methods; this is 67 over it, 3.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: Mesh Standalone/NowUI.Engine/Graphics/Mesh.cs— TooManyMethods — 489 significant lines (blank, comment-only and punctuation-only lines excluded), 94 methods. The bar is 30 methods; this is 64 over it, 3.13× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: NowOverlay Assets/NowUI/Runtime/Controls/NowOverlay.cs— TooManyMethods — 939 significant lines (blank, comment-only and punctuation-only lines excluded), 90 methods. The bar is 30 methods; this is 60 over it, 3.00× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
TooManyMethods: NowWorldGraphic Assets/NowUI/Runtime/NowWorldGraphic.cs— TooManyMethods — 1082 significant lines (blank, comment-only and punctuation-only lines excluded), 87 methods. The bar is 30 methods; this is 57 over it, 2.90× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: NowInput Assets/NowUI/Runtime/Input/NowInput.cs— TooManyMethods — 778 significant lines (blank, comment-only and punctuation-only lines excluded), 87 methods. The bar is 30 methods; this is 57 over it, 2.90× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
TooManyMethods: NowContextMenu Assets/NowUI/Runtime/Controls/NowContextMenu.cs— TooManyMethods — 1077 significant lines (blank, comment-only and punctuation-only lines excluded), 86 methods. The bar is 30 methods; this is 56 over it, 2.87× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
TooManyMethods: NowDockSpace Assets/NowUI/Extensions/Docking/NowDocking.cs— TooManyMethods — 1113 significant lines (blank, comment-only and punctuation-only lines excluded), 84 methods. The bar is 30 methods; this is 54 over it, 2.80× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: Mathf Standalone/NowUI.Engine/Math/Mathf.cs— TooManyMethods — 414 significant lines (blank, comment-only and punctuation-only lines excluded), 82 methods. The bar is 30 methods; this is 52 over it, 2.73× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
TooManyMethods: NowControlRenderer Assets/NowUI/Runtime/NowThemeAsset.cs— TooManyMethods — 915 significant lines (blank, comment-only and punctuation-only lines excluded), 78 methods, declared across 2 files: Runtime/NowThemeAsset.cs (48), Runtime/NowControlRenderer.Controls.cs (30). The bar is 30 methods; this is 48 over it, 2.60× 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: NowTextField Assets/NowUI/Runtime/Controls/NowTextField.cs— TooManyMethods — 807 significant lines (blank, comment-only and punctuation-only lines excluded), 77 methods. The bar is 30 methods; this is 47 over it, 2.57× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: NowNodeGraph Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs— TooManyMethods — 550 significant lines (blank, comment-only and punctuation-only lines excluded), 76 methods. The bar is 30 methods; this is 46 over it, 2.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: NowAnimationCurveField Assets/NowUI/Runtime/Controls/NowValueControls.cs— TooManyMethods — 873 significant lines (blank, comment-only and punctuation-only lines excluded), 75 methods. The bar is 30 methods; this is 45 over it, 2.50× 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: NowText Assets/NowUI/Runtime/NowText.cs— TooManyMethods — 486 significant lines (blank, comment-only and punctuation-only lines excluded), 75 methods, declared across 2 files: Runtime/NowText.cs (70), Runtime/NowTextTransition.cs (5). The bar is 30 methods; this is 45 over it, 2.50× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
FileTooLong: NodeGraph/NowNodeGraph.cs Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs— FileTooLong — 4444 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 3944 over it, 8.89× 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: Sdf/NowSdf.cs Assets/NowUI/Extensions/Sdf/NowSdf.cs— FileTooLong — 3756 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 3256 over it, 7.51× 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: Runtime/NowFont.cs Assets/NowUI/Runtime/NowFont.cs— FileTooLong — 3697 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 3197 over it, 7.39× 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: Runtime/Now.cs Assets/NowUI/Runtime/Now.cs— FileTooLong — 3080 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2580 over it, 6.16× 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: Controls/NowValueControls.cs Assets/NowUI/Runtime/Controls/NowValueControls.cs— FileTooLong — 3056 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2556 over it, 6.11× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: NowUIHarness/NowHarnessScenarios.cs Assets/NowUIHarness/NowHarnessScenarios.cs— FileTooLong — 2484 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1984 over it, 4.97× 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: CodeEditor/NowCodeEditor.cs Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs— FileTooLong — 2459 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1959 over it, 4.92× 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: Controls/NowFilePicker.cs Assets/NowUI/Runtime/Controls/NowFilePicker.cs— FileTooLong — 2362 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1862 over it, 4.72× 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: Runtime/NowLayout.cs Assets/NowUI/Runtime/NowLayout.cs— FileTooLong — 1961 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1461 over it, 3.92× 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: Runtime/NowThemeAsset.cs Assets/NowUI/Runtime/NowThemeAsset.cs— FileTooLong — 1882 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1382 over it, 3.76× 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: Runtime/NowModelPreview.cs Assets/NowUI/Runtime/NowModelPreview.cs— FileTooLong — 1863 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1363 over it, 3.73× 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: Controls/NowFocus.cs Assets/NowUI/Runtime/Controls/NowFocus.cs— FileTooLong — 1637 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1137 over it, 3.27× 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: Runtime/NowMesh.cs Assets/NowUI/Runtime/NowMesh.cs— FileTooLong — 1414 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 914 over it, 2.83× 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: Docking/NowDocking.cs Assets/NowUI/Extensions/Docking/NowDocking.cs— FileTooLong — 1249 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 749 over it, 2.50× 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: Markup/NowMarkupDocument.cs Assets/NowUI/Extensions/Markup/NowMarkupDocument.cs— FileTooLong — 1211 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 711 over it, 2.42× 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: Runtime/NowWorldGraphic.cs Assets/NowUI/Runtime/NowWorldGraphic.cs— FileTooLong — 1134 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 634 over it, 2.27× 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: Controls/NowContextMenu.cs Assets/NowUI/Runtime/Controls/NowContextMenu.cs— FileTooLong — 1129 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 629 over it, 2.26× 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: Controls/NowOverlay.cs Assets/NowUI/Runtime/Controls/NowOverlay.cs— FileTooLong — 1077 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 577 over it, 2.15× 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: NowUI.Browser/WebGL2Backend.cs Standalone/NowUI.Browser/WebGL2Backend.cs— FileTooLong — 1051 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 551 over it, 2.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: Markdown/NowMarkdownDocument.cs Assets/NowUI/Extensions/Markdown/NowMarkdownDocument.cs— FileTooLong — 1021 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 521 over it, 2.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.
FileTooLong: Controls/NowTextField.cs Assets/NowUI/Runtime/Controls/NowTextField.cs— FileTooLong — 1006 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 506 over it, 2.01× 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: wwwroot/nowui-gl.js Assets/NowUI/Native~/browser/wwwroot/nowui-gl.js— FileTooLong — 998 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 498 over it, 2.00× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: wwwroot/nowui-gl.js Standalone/NowUI.Browser/wwwroot/nowui-gl.js— FileTooLong — 998 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 498 over it, 2.00× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: Lottie/NowLottieGeometry.cs Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs— FileTooLong — 960 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 460 over it, 1.92× 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: Lottie/NowLottieBurstTessellator.cs Assets/NowUI/Runtime/Lottie/NowLottieBurstTessellator.cs— FileTooLong — 932 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 432 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.
DeadPreprocessorBranch Assets/NowUI/Extensions/Sdf/NowSdf.cs:4653— #if NOWUI_UGUI — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Assets/NowUI/Runtime/Controls/NowEventSystemFocusBridge.cs:3— #if NOWUI_UGUI — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Assets/NowUI/Runtime/Controls/NowEventSystemFocusBridge.cs:13— #if NOWUI_UGUI — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Assets/NowUI/Runtime/Controls/NowEventSystemFocusBridge.cs:28— #if NOWUI_UGUI — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Assets/NowUI/Runtime/Controls/NowEventSystemFocusBridge.cs:40— #if NOWUI_UGUI — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Assets/NowUI/Runtime/Controls/NowEventSystemFocusBridge.cs:52— #if NOWUI_UGUI — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Assets/NowUI/Runtime/Controls/NowRaycastGate.cs:2— #if NOWUI_UGUI — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Assets/NowUI/Runtime/Controls/NowRaycastGate.cs:17— #if NOWUI_UGUI — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Assets/NowUI/Runtime/Now.cs:1199— #if NOWUI_UGUI — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Assets/NowUI/Runtime/Now.cs:1223— #if NOWUI_UGUI — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Assets/NowUI/Runtime/NowFont.cs:2532— #if NOWUI_UGUI — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Assets/NowUI/Runtime/NowGradient.cs:694— #if NOWUI_UGUI — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Assets/NowUI/Runtime/NowGradient.cs:735— #if NOWUI_UGUI — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Assets/NowUI/Runtime/NowGradient.cs:753— #if NOWUI_UGUI — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Assets/NowUITests/NowControlsTests.cs:1948— #if NOWUI_UGUI — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Assets/NowUI/Runtime/Controls/NowFilePicker.cs:170— #if UNITY_EDITOR — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Assets/NowUI/Runtime/Controls/NowFilePicker.cs:2437— #if UNITY_EDITOR — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Assets/NowUI/Runtime/Controls/NowFilePicker.cs:2451— #if UNITY_EDITOR — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Assets/NowUI/Runtime/Controls/NowFilePicker.cs:2470— #if UNITY_EDITOR — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Assets/NowUI/Runtime/Controls/NowFilePicker.cs:2547— #if UNITY_EDITOR — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Assets/NowUI/Runtime/Controls/NowTextField.cs:1286— #if UNITY_EDITOR — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Assets/NowUI/Runtime/Now.cs:1120— #if UNITY_EDITOR — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Standalone/Benchmarks/NativeRendering/UnityRenderingBenchmark.cs:1— #if UNITY_EDITOR — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Assets/NowUI/Runtime/Controls/NowFilePickerUserFolders.cs:64— #if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
DeadPreprocessorBranch Assets/NowUI/Runtime/Controls/NowFilePickerUserFolders.cs:633— #if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN — no definition of that symbol was found anywhere this analysis looks: not in a <DefineConstants> in any project file, props or targets under any condition, not on a build script's command line, not in a #define, and not in a project-template manifest; nor is it one the compiler or SDK defines itself. On that evidence the condition is decided the same way in every configuration this repository can build, and the code on the dead side of it never compiles — including the part a reader will assume is what ships. Either define the symbol in the configuration that is supposed to have it, or delete the branch and keep the behaviour you are actually shipping. If some other mechanism binds it, that mechanism is outside the list above and this row is a gap in what we read, not a fact about your code.
MethodTooLong: NowCodeEditor.Draw Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:350— MethodTooLong — Draw runs 533 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 433 over it, 5.33× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: NowTextField.DrawText Assets/NowUI/Runtime/Controls/NowTextField.cs:1249— MethodTooLong — DrawText runs 270 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 170 over it, 2.70× 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: NowTextArea.Draw Assets/NowUI/Runtime/Controls/NowTextArea.cs:131— MethodTooLong — Draw runs 255 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 155 over it, 2.55× 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: NowMesh.AddShapedTextRunReserved Assets/NowUI/Runtime/NowMesh.cs:946— MethodTooLong — AddShapedTextRunReserved runs 202 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 102 over it, 2.02× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: NowMesh.AddCodepointTextRunReserved Assets/NowUI/Runtime/NowMesh.cs:1200— MethodTooLong — AddCodepointTextRunReserved runs 202 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 102 over it, 2.02× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: NowSdfGraph.AddTextRun Assets/NowUI/Extensions/Sdf/NowSdf.cs:1543— MethodTooLong — AddTextRun runs 178 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 78 over it, 1.78× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: NowInspectorGui.DrawControlCell Assets/NowUI/Runtime/Controls/NowInspector.cs:455— MethodTooLong — DrawControlCell runs 160 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 60 over it, 1.60× 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: NowSdfGraph.TryAddShapedText Assets/NowUI/Extensions/Sdf/NowSdf.cs:1770— MethodTooLong — TryAddShapedText runs 154 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 54 over it, 1.54× 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: NowCodeEditor.DrawVisuals Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:1333— MethodTooLong — DrawVisuals runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: NowDockSpace.DrawFloatingWindow Assets/NowUI/Extensions/Docking/NowDocking.cs:1660— MethodTooLong — DrawFloatingWindow runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Now.UploadCapturedMeshes Assets/NowUI/Runtime/Now.cs:2094— MethodTooLong — UploadCapturedMeshes runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30× 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: NowNodeGraphCanvas.HandleInteractions Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:4933— MethodTooLong — HandleInteractions runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29× 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: NowFocus.ProcessNavigation Assets/NowUI/Runtime/Controls/NowFocus.cs:1857— MethodTooLong — ProcessNavigation runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29× 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: NowGradientField.DrawPopup Assets/NowUI/Runtime/Controls/NowValueControls.cs:1571— MethodTooLong — DrawPopup runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: NowInput.Interact Assets/NowUI/Runtime/Input/NowInput.cs:996— MethodTooLong — Interact runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Now.EmitDashedLine Assets/NowUI/Runtime/NowLine.cs:867— MethodTooLong — EmitDashedLine runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25× 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: NowFont.TryAddGlyphsToSession Assets/NowUI/Runtime/NowFont.cs:4384— MethodTooLong — TryAddGlyphsToSession runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21× 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: Now.EmitLineStroke Assets/NowUI/Runtime/NowLine.cs:1170— MethodTooLong — EmitLineStroke runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Now.DrawRect Assets/NowUI/Runtime/Now.cs:2598— MethodTooLong — DrawRect runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: NowIMGUIInputProvider.TryGetSnapshot Assets/NowUI/Runtime/Input/NowIMGUIInputProvider.cs:175— MethodTooLong — TryGetSnapshot 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.
MethodTooLong: Now.DrawPreparedCodepointRun Assets/NowUI/Runtime/Now.cs:3830— MethodTooLong — DrawPreparedCodepointRun 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.
MethodTooLong: NowMesh.AddTextGlyphReserved Assets/NowUI/Runtime/NowMesh.cs:788— MethodTooLong — AddTextGlyphReserved runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: NowMesh.AddRect Assets/NowUI/Runtime/NowMesh.cs:452— MethodTooLong — AddRect runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13× 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: NowPngCodec.TryDecode Standalone/NowUI.Hosting/NowPngCodec.cs:31— MethodTooLong — TryDecode runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10× 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: WebGL2Backend.BuildUniformBlock Standalone/NowUI.Browser/WebGL2Backend.cs:805— MethodTooLong — BuildUniformBlock runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09× 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.
Stateful shared instance: NullRenderBackend Standalone/NowUI.Engine/Backend/NullRenderBackend.cs:53— `NullRenderBackend` is not registered, but `NowRuntime` creates it and keeps it in the static `s_Backend`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (m_DrawRing, m_RecordDraws, frameBegins, lastFrameCount, frameEnds, textureUploads; e.g. `m_DrawRing` at line 173).
Stateful shared instance: NowShaderGlobals Standalone/NowUI.Engine/NowShaderGlobals.cs:20— `NowShaderGlobals` is not registered, but `NowRuntime` creates it and keeps it in the static `s_Globals`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (floats, version, ints, vectors, matrices, textures; e.g. `floats` at line 38).
Stateful shared instance: Menu Assets/NowUI/Runtime/Controls/NowContextMenu.cs:145— `Menu` is not registered, but `NowContextMenu` creates it and keeps it in the static `_menus`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (rootId, pathId, overlayId, parentMenu, depth, width; e.g. `rootId` at line 174).
Stateful shared instance: NowScopeGuard Assets/NowUI/Runtime/NowScopeGuard.cs:11— `NowScopeGuard` is not registered, but `Now` creates it and keeps it in the static `_fontScopes`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_nextToken, _tokens, _endingTokens; e.g. `_nextToken` at line 36).
Stateful shared instance: Mesh Standalone/NowUI.Engine/Graphics/Mesh.cs:34— `Mesh` is not registered, but `Now` creates it and keeps it in the static `_legacyGlassReplayMesh`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (m_Bounds, backendId; e.g. `m_Bounds` at line 112).
Stateful shared instance: CommandBuffer Standalone/NowUI.Engine/Graphics/Rendering/CommandBuffer.cs:34— `CommandBuffer` is not registered, but `Now` creates it and keeps it in the static `_legacyGlassCommandBuffer`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (m_Name, m_Ops, m_BlockCount, m_BlockPool, m_Released; e.g. `m_Name` at line 64).
Stateful shared instance: NowLottieDrawBuffer Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:195— `NowLottieDrawBuffer` is not registered, but `Now` creates it and keeps it in the static `_lineBuffer`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (hasBounds, boundsMin, boundsMax; e.g. `hasBounds` at line 214).
Stateful shared instance: Material Standalone/NowUI.Engine/Graphics/Material.cs:24— `Material` is not registered, but `Now` creates it and keeps it in the static `_bezierMaterial`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (m_Shader, version, m_RenderQueue; e.g. `m_Shader` at line 80).
Stateful shared instance: NowLottiePolyline Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:142— `NowLottiePolyline` is not registered, but `Now` creates it and keeps it in the static `_shapePolyline`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (points, closed; e.g. `points` at line 150).
Stateful shared instance: NowRichTextLayout Assets/NowUI/Runtime/Controls/NowRichTextFlow.cs:130— `NowRichTextLayout` is not registered, but `NowRichText` creates it and keeps it in the static `SharedLayout`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_textCache, _lastSelectionY, runs, lines, selectionLines, tags; e.g. `_textCache` at line 144).
Stateful shared instance: NowRichTextParser Assets/NowUI/Runtime/Controls/NowRichTextParser.cs:78— `NowRichTextParser` keeps one instance of itself in the static `Empty`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_defaultTagsVariant, _derived; e.g. `_defaultTagsVariant` at line 165).
Stateful shared instance: Gradient Standalone/NowUI.Engine/Data/Gradient.cs:23— `Gradient` is not registered, but `NowGradientField` creates it and keeps it in the static `PreviewGradient`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_colorKeyCount, _alphaKeyCount, _mode, _colorSpace; e.g. `_colorKeyCount` at line 173).
Stateful shared instance: AnimationCurve Standalone/NowUI.Engine/Data/AnimationCurve.cs:24— `AnimationCurve` is not registered, but `NowAnimationCurveField` creates it and keeps it in the static `PreviewCurve`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_count, _keys, _preWrapMode, _postWrapMode; e.g. `_count` at line 92).
Stateful shared instance: Texture2D Standalone/NowUI.Engine/Graphics/Texture2D.cs:33— `Texture2D` is not registered, but `CheckerDraw` creates it and keeps it in the static `_texture`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (uploadPending, dirtyRect, pixels, m_Format, m_Linear, m_BytesPerPixel; e.g. `uploadPending` at line 440).
Stateful shared instance: NowIMGUIInputProvider Assets/NowUI/Runtime/Input/NowIMGUIInputProvider.cs:11— `NowIMGUIInputProvider` keeps one instance of itself in the static `instance`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_keyboardClaimedPass, _sampledEvent, _sampledType, _pendingCaptureCancelled, _buttonsDown, _capturedButtons; e.g. `_keyboardClaimedPass` at line 144).
Stateful shared instance: NowScreenInputProvider Assets/NowUI/Runtime/Input/NowScreenInputProvider.cs:5— `NowScreenInputProvider` keeps one instance of itself in the static `instance`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_snapshotFrame, _snapshotSurface, _snapshotAvailable, _lastFrame, _hasRawPosition, _pointerButtonsDown; e.g. `_snapshotFrame` at line 78).
Stateful shared instance: RollAnimator Assets/NowUI/Runtime/NowTextTransition.cs:229— `RollAnimator` keeps one instance of itself in the static `shared`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_changed, _eased, _travel, _incoming; e.g. `_changed` at line 242).
Stateful shared instance: NowLottieBezierData Assets/NowUI/Runtime/Lottie/NowLottieModel.cs:1090— `NowLottieBezierData` is not registered, but `NowLottieRenderer` creates it and keeps it in the static `_bezierScratch`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (vertices, tangentsIn, tangentsOut, closed, count; e.g. `vertices` at line 1107).
Stateful shared instance: NowNodeGraphClipboard Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:2086— `NowNodeGraphClipboard` keeps one instance of itself in the static `shared`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (_nodes, _links, _center; e.g. `_nodes` at line 2102).
Stateful shared instance: BrowserHost Standalone/NowUI.Browser/BrowserApp.cs:87— `BrowserHost` is not registered, but `BrowserApp` creates it and keeps it in the static `host`, so that one instance serves the whole process and is shared by every thread that reaches it — and it mutates instance state outside any lock (errors; e.g. `errors` at line 108).
Stateful shared instance: NowMeshData Standalone/NowUI.Engine/NowMeshData.cs:48— `NowMeshData` is not registered, but the singleton `Mesh` creates it and keeps it in `data`, so one instance outlives every request and is shared by every caller that reaches it — and it mutates instance state outside any lock (vertexCount, indexCount, subMeshCount, interleaved, layoutCount, vertexStride; e.g. `vertexCount` at line 117).
Stateful shared instance: NowMaterialBag Standalone/NowUI.Engine/NowMaterialBag.cs:24— `NowMaterialBag` is not registered, but the singleton `Material` creates it and keeps it in `m_Bag`, so one instance outlives every request and is shared by every caller that reaches it — and it mutates instance state outside any lock (floats, version, ints, vectors, matrices, textures; e.g. `floats` at line 82).
Stateful shared instance: NowTreeViewState Assets/NowUI/Runtime/Controls/NowTreeView.cs:10— `NowTreeViewState` is not registered, but the singleton `NowTreeFrame` creates it and keeps it in `fallbackState`, so one instance outlives every request and is shared by every caller that reaches it — and it mutates instance state outside any lock (expanded; e.g. `expanded` at line 28).
Hotspot: Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:350— Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 196 in NowCodeEditor.Draw at line 350. 5 of those changes were fix/bug commits, so the churn is repair rather than feature work. 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-03..2026-11-01, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-03 11:56:49 +00:00' --until='2026-11-01 11:56:49 +00:00' --full-history --no-merges -- Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs`: 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: Assets/NowUI/Extensions/Sdf/NowSdf.cs Assets/NowUI/Extensions/Sdf/NowSdf.cs:1770— Assets/NowUI/Extensions/Sdf/NowSdf.cs changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in NowSdfGraph.TryAddShapedText at line 1770. 7 of those changes were fix/bug commits, and the other 12 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-03..2026-11-01, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-03 11:56:49 +00:00' --until='2026-11-01 11:56:49 +00:00' --full-history --no-merges -- Assets/NowUI/Extensions/Sdf/NowSdf.cs`: 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: Assets/NowUI/Runtime/Now.cs Assets/NowUI/Runtime/Now.cs:2598— Assets/NowUI/Runtime/Now.cs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in Now.DrawRect at line 2598. 6 of those changes were fix/bug commits, and the other 8 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-03..2026-11-01, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-03 11:56:49 +00:00' --until='2026-11-01 11:56:49 +00:00' --full-history --no-merges -- Assets/NowUI/Runtime/Now.cs`: 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: Assets/NowUI/Runtime/NowFont.cs Assets/NowUI/Runtime/NowFont.cs:4384— Assets/NowUI/Runtime/NowFont.cs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in NowFont.TryAddGlyphsToSession at line 4384. 5 of those changes were fix/bug commits, and the other 8 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-03..2026-11-01, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-03 11:56:49 +00:00' --until='2026-11-01 11:56:49 +00:00' --full-history --no-merges -- Assets/NowUI/Runtime/NowFont.cs`: 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: Assets/NowUI/Runtime/Controls/NowTextField.cs Assets/NowUI/Runtime/Controls/NowTextField.cs:1249— Assets/NowUI/Runtime/Controls/NowTextField.cs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 105 in NowTextField.DrawText at line 1249. 1 of those changes was a fix/bug commit, and the other 2 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-03..2026-11-01, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-03 11:56:49 +00:00' --until='2026-11-01 11:56:49 +00:00' --full-history --no-merges -- Assets/NowUI/Runtime/Controls/NowTextField.cs`: 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: Assets/NowUI/Runtime/Controls/NowFilePicker.cs Assets/NowUI/Runtime/Controls/NowFilePicker.cs:1551— Assets/NowUI/Runtime/Controls/NowFilePicker.cs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in NowFilePicker.DrawFolderTreeRow at line 1551. 7 of those changes were fix/bug commits, so the churn is repair rather than feature work. 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-03..2026-11-01, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-03 11:56:49 +00:00' --until='2026-11-01 11:56:49 +00:00' --full-history --no-merges -- Assets/NowUI/Runtime/Controls/NowFilePicker.cs`: 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: Assets/NowUI/Runtime/NowLayout.cs Assets/NowUI/Runtime/NowLayout.cs:2560— Assets/NowUI/Runtime/NowLayout.cs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in NowLayout.BeginGroup at line 2560. 3 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-03..2026-11-01, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-03 11:56:49 +00:00' --until='2026-11-01 11:56:49 +00:00' --full-history --no-merges -- Assets/NowUI/Runtime/NowLayout.cs`: 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: Assets/NowUI/Runtime/Controls/NowRichText.cs Assets/NowUI/Runtime/Controls/NowRichText.cs:797— Assets/NowUI/Runtime/Controls/NowRichText.cs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in NowRichText.DrawRuns at line 797. 5 of those changes were fix/bug commits, so the churn is repair rather than feature work. 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-03..2026-11-01, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-03 11:56:49 +00:00' --until='2026-11-01 11:56:49 +00:00' --full-history --no-merges -- Assets/NowUI/Runtime/Controls/NowRichText.cs`: 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: Assets/NowUI/Extensions/Markdown/NowMarkdownDocument.cs Assets/NowUI/Extensions/Markdown/NowMarkdownDocument.cs:268— Assets/NowUI/Extensions/Markdown/NowMarkdownDocument.cs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in NowMarkdownDocument.DrawResolved at line 268. 2 of those changes were fix/bug commits, and the other 3 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-03..2026-11-01, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-03 11:56:49 +00:00' --until='2026-11-01 11:56:49 +00:00' --full-history --no-merges -- Assets/NowUI/Extensions/Markdown/NowMarkdownDocument.cs`: 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: Assets/NowUI/Runtime/NowFontCompiler.cs Assets/NowUI/Runtime/NowFontCompiler.cs:442— Assets/NowUI/Runtime/NowFontCompiler.cs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in DynamicSession.TryCreate at line 442. 1 of those changes was a fix/bug commit, and the other 7 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-03..2026-11-01, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-03 11:56:49 +00:00' --until='2026-11-01 11:56:49 +00:00' --full-history --no-merges -- Assets/NowUI/Runtime/NowFontCompiler.cs`: 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: Assets/NowUI/Runtime/Controls/NowControlBuilders.cs Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:847— Assets/NowUI/Runtime/Controls/NowControlBuilders.cs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in NowSlider.Draw at line 847. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-03..2026-11-01, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-03 11:56:49 +00:00' --until='2026-11-01 11:56:49 +00:00' --full-history --no-merges -- Assets/NowUI/Runtime/Controls/NowControlBuilders.cs`: 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: Assets/NowUI/Runtime/Controls/NowFocus.cs Assets/NowUI/Runtime/Controls/NowFocus.cs:1857— Assets/NowUI/Runtime/Controls/NowFocus.cs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 52 in NowFocus.ProcessNavigation at line 1857. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-03..2026-11-01, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-03 11:56:49 +00:00' --until='2026-11-01 11:56:49 +00:00' --full-history --no-merges -- Assets/NowUI/Runtime/Controls/NowFocus.cs`: 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: Assets/NowUI/Runtime/Controls/NowContextMenu.cs Assets/NowUI/Runtime/Controls/NowContextMenu.cs:1217— Assets/NowUI/Runtime/Controls/NowContextMenu.cs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in NowContextMenu.DrawEntry at line 1217. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-03..2026-11-01, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-03 11:56:49 +00:00' --until='2026-11-01 11:56:49 +00:00' --full-history --no-merges -- Assets/NowUI/Runtime/Controls/NowContextMenu.cs`: 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: Assets/NowUI/Runtime/Controls/NowComboBox.cs Assets/NowUI/Runtime/Controls/NowComboBox.cs:237— Assets/NowUI/Runtime/Controls/NowComboBox.cs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in NowComboBox.Draw at line 237. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-03..2026-11-01, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-03 11:56:49 +00:00' --until='2026-11-01 11:56:49 +00:00' --full-history --no-merges -- Assets/NowUI/Runtime/Controls/NowComboBox.cs`: 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: Assets/NowUI/Runtime/Controls/NowOverlay.cs Assets/NowUI/Runtime/Controls/NowOverlay.cs:418— Assets/NowUI/Runtime/Controls/NowOverlay.cs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in NowOverlay.PruneRegistrationOwners at line 418. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-03..2026-11-01, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-03 11:56:49 +00:00' --until='2026-11-01 11:56:49 +00:00' --full-history --no-merges -- Assets/NowUI/Runtime/Controls/NowOverlay.cs`: 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: Assets/NowUI/Runtime/Controls/NowDropdown.cs Assets/NowUI/Runtime/Controls/NowDropdown.cs:88— Assets/NowUI/Runtime/Controls/NowDropdown.cs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in NowDropdown.Draw at line 88. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-03..2026-11-01, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-03 11:56:49 +00:00' --until='2026-11-01 11:56:49 +00:00' --full-history --no-merges -- Assets/NowUI/Runtime/Controls/NowDropdown.cs`: 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: Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6174— Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in NowNodeGraphCanvas.DrawNode at line 6174. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-03..2026-11-01, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-03 11:56:49 +00:00' --until='2026-11-01 11:56:49 +00:00' --full-history --no-merges -- Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs`: 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: Assets/NowUI/Runtime/Controls/NowViewStack.cs Assets/NowUI/Runtime/Controls/NowViewStack.cs:1134— Assets/NowUI/Runtime/Controls/NowViewStack.cs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in NowViewStack.HandleTopClosePolicy at line 1134. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-03..2026-11-01, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-03 11:56:49 +00:00' --until='2026-11-01 11:56:49 +00:00' --full-history --no-merges -- Assets/NowUI/Runtime/Controls/NowViewStack.cs`: 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: Assets/NowUI/Runtime/NowLine.cs Assets/NowUI/Runtime/NowLine.cs:359— Assets/NowUI/Runtime/NowLine.cs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in Now.DrawLine at line 359. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-03..2026-11-01, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-03 11:56:49 +00:00' --until='2026-11-01 11:56:49 +00:00' --full-history --no-merges -- Assets/NowUI/Runtime/NowLine.cs`: 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: Assets/NowUI/Runtime/NowManagedFontBaker.cs Assets/NowUI/Runtime/NowManagedFontBaker.cs:75— Assets/NowUI/Runtime/NowManagedFontBaker.cs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in NowSdfBakeJob.Execute at line 75. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-03..2026-11-01, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-03 11:56:49 +00:00' --until='2026-11-01 11:56:49 +00:00' --full-history --no-merges -- Assets/NowUI/Runtime/NowManagedFontBaker.cs`: 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.
AX2 · Stateful singletons· Process-global static state · ×17
Process-global static state: Texture Standalone/NowUI.Engine/Graphics/Texture.cs:27— `Texture` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (s_TextureMemory; e.g. `s_TextureMemory` at line 246). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
Process-global static state: NowImguiState Standalone/NowUI.Engine/IMGUI/Imgui.cs:30— `NowImguiState` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (controlIdCounter, lastRect, changed, hotControl, keyboardControl, current; e.g. `controlIdCounter` at line 70). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
Process-global static state: Object Standalone/NowUI.Engine/Object/Object.cs:16— `Object` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (s_DrainBuffer; e.g. `s_DrainBuffer` at line 325). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
Process-global static state: Application Standalone/NowUI.Engine/Services/Application.cs:16— `Application` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (s_TargetFrameRate, s_Version, s_SystemLanguage, s_HasSystemLanguage, s_Quitting, s_WantsToQuit; e.g. `s_TargetFrameRate` at line 101). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
Process-global static state: QualitySettings Standalone/NowUI.Engine/Services/QualitySettings.cs:12— `QualitySettings` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (s_AntiAliasing, s_VSyncCount; e.g. `s_AntiAliasing` at line 31). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
Process-global static state: Screen Standalone/NowUI.Engine/Services/Screen.cs:68— `Screen` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (s_FullScreen, s_HasOrientationOverride, s_Orientation; e.g. `s_FullScreen` at line 100). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
Process-global static state: Time Standalone/NowUI.Engine/Services/Time.cs:14— `Time` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (s_FixedDeltaTime, s_TimeScale; e.g. `s_FixedDeltaTime` at line 91). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
Process-global static state: NowImmediate Standalone/NowUI.Engine/Graphics/NowImmediate.cs:35— `NowImmediate` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (activeTarget, s_MatrixStack, modelView, projection, s_ContextPool, activePass; e.g. `activeTarget` at line 107). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
Process-global static state: NowTemporaryRenderTexturePool Standalone/NowUI.Engine/Graphics/NowTemporaryRenderTexturePool.cs:29— `NowTemporaryRenderTexturePool` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (s_Outstanding, s_Free, s_Hooked; e.g. `s_Outstanding` at line 108). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
Process-global static state: EngineClock Standalone/NowUI.Engine/Math/EngineClock.cs:12— `EngineClock` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (s_DeltaTime; e.g. `s_DeltaTime` at line 20). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
Process-global static state: NowRuntime Standalone/NowUI.Engine/NowRuntime.cs:16— `NowRuntime` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (s_Host, s_Backend, s_FrameStarted, s_StartSeconds, s_LastFrameSeconds, timeSeconds; e.g. `s_Host` at line 118). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
Process-global static state: NowComboBox Assets/NowUI/Runtime/Controls/NowComboBox.cs:18— `NowComboBox` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (s_nextPopupState, _popupStates, _popupStatesByCallback; e.g. `s_nextPopupState` at line 350). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
Process-global static state: NowContextMenu Assets/NowUI/Runtime/Controls/NowContextMenu.cs:40— `NowContextMenu` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_openId, _openSurface, _openRegistrationOwner, _openOwnerPassSerial, _openDeclaredOwnerPassSerial, _hasOpenedInputPass; e.g. `_openId` at line 242). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
Process-global static state: NowButton Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:10— `NowButton` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (s_warnedBeginLabelSites; e.g. `s_warnedBeginLabelSites` at line 102). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
Process-global static state: Now Assets/NowUI/Runtime/Controls/NowControlFactories.cs:17— `Now` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_defaultFont, _fontStack, _maskStack, _ambientAnalyticMaskCount, _ambientTextureMaskCount, _transformScaleX; e.g. `_defaultFont` at line 61). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
Process-global static state: NowLayout Assets/NowUI/Runtime/Controls/NowControlFactories.cs:202— `NowLayout` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_ambientStartedAt, _depth, _measurePass, _measureCycleDepth, _trackContent, _trackedContent; e.g. `_ambientStartedAt` at line 1269). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
Process-global static state: NowControls Assets/NowUI/Runtime/Controls/NowControls.cs:26— `NowControls` keeps mutable `static` state — one slot for the whole process, shared by every thread that reaches the type however its instances are created — and mutates it outside any lock (_nextOwnerNonce, _defaultOwnerRoot, _ownerRootCache, _ownerRootCacheValid, _idStack, _idScopeStartedAt; e.g. `_nextOwnerNonce` at line 63). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
Duplicated block (5 lines × 2) Assets/NowUI/Runtime/Controls/NowSplitView.cs:88— Assets/NowUI/Runtime/Controls/NowSplitView.cs:88-92 | Assets/NowUI/Runtime/Controls/NowTabs.cs:202-206 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Assets/NowUI/Runtime/Controls/NowTabs.cs:199` calls `Derive`, `TabBarHeight` and `Assets/NowUI/Runtime/Controls/NowSplitView.cs:86` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (5 lines × 2) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:2852— Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:2852-2856 | Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:3144-3148 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) Assets/NowUI/Runtime/Controls/NowDatePicker.cs:96— Assets/NowUI/Runtime/Controls/NowDatePicker.cs:96-100 | Assets/NowUI/Runtime/Controls/NowTimePicker.cs:64-68 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (5 lines × 2) Assets/NowUI/Runtime/Controls/NowDropdown.cs:179— Assets/NowUI/Runtime/Controls/NowDropdown.cs:179-183 | Assets/NowUI/Runtime/Controls/NowMaskField.cs:196-200 — before extracting anything, compare `Assets/NowUI/Runtime/Controls/NowDropdown.cs` and `Assets/NowUI/Runtime/Controls/NowMaskField.cs` as WHOLE FILES: this scan already matched 6 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.
Duplicated block (5 lines × 2) Standalone/NowUI.Engine/Math/Vector3.cs:225— Standalone/NowUI.Engine/Math/Vector3.cs:225-229 | Standalone/NowUI.Engine/Math/Vector3.cs:235-239 — 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 `Standalone/NowUI.Engine/Math/Vector3.cs:225` 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. Note first that the copies are not typed on the same thing: the declarations holding them bind `a` to `Vector3` in one and `in Vector3` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (5 lines × 2) Standalone/NowUI.Engine/Math/Color.cs:82— Standalone/NowUI.Engine/Math/Color.cs:82-86 | Standalone/NowUI.Engine/Math/Color32.cs:148-152 — 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 `Standalone/NowUI.Engine/Math/Color.cs:82` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Standalone/NowUI.Engine/Math/Color.cs:80` calls `IsNullOrEmpty` and `Standalone/NowUI.Engine/Math/Color32.cs:147` 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 (5 lines × 2) Standalone/NowUI.Engine/Math/Vector3.cs:311— Standalone/NowUI.Engine/Math/Vector3.cs:311-315 | Standalone/NowUI.Engine/Math/Vector3.cs:364-368 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) Assets/NowUI/Runtime/Controls/NowFilePicker.cs:1499— Assets/NowUI/Runtime/Controls/NowFilePicker.cs:1499-1503 | Assets/NowUI/Runtime/Controls/NowFilePicker.cs:1607-1611 — 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. 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, `Assets/NowUI/Runtime/Controls/NowFilePicker.cs:1604` calls `GetColor`, `Min`, `Max` and `Assets/NowUI/Runtime/Controls/NowFilePicker.cs:1497` 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 (5 lines × 2) Assets/NowUI/Extensions/Sdf/NowSdf.cs:2715— Assets/NowUI/Extensions/Sdf/NowSdf.cs:2715-2719 | Assets/NowUI/Extensions/Sdf/NowSdf.cs:2978-2982 — 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 `Assets/NowUI/Extensions/Sdf/NowSdf.cs:2715` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (5 lines × 2) Standalone/NowUI.Hosting/NowUnityTextureAssets.cs:242— Standalone/NowUI.Hosting/NowUnityTextureAssets.cs:242-246 | Standalone/NowUI.Hosting/NowUnityTextureAssets.cs:247-251 — 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 `Standalone/NowUI.Hosting/NowUnityTextureAssets.cs:242` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (5 lines × 2) Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:41— Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:41-45 | Assets/NowUI/Runtime/NowThemeAsset.cs:2116-2120 — 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 (5 lines × 2) Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:48— Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:48-52 | Assets/NowUI/Runtime/NowThemeAsset.cs:2143-2147 — 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 (5 lines × 2) Assets/NowUI/Runtime/Controls/NowFilePicker.cs:1191— Assets/NowUI/Runtime/Controls/NowFilePicker.cs:1191-1195 | Assets/NowUI/Runtime/Controls/NowFilePicker.cs:1211-1215 — 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 `Assets/NowUI/Runtime/Controls/NowFilePicker.cs:1191` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (5 lines × 2) Assets/NowUI/Runtime/Controls/NowFilePickerUserFolders.cs:182— Assets/NowUI/Runtime/Controls/NowFilePickerUserFolders.cs:182-186 | Assets/NowUI/Runtime/Controls/NowFilePickerUserFolders.cs:209-213 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (5 lines × 2) Assets/NowUI/Runtime/NowUnityEditorControlRenderer.cs:899— Assets/NowUI/Runtime/NowUnityEditorControlRenderer.cs:899-903 | Assets/NowUI/Runtime/NowUnityEditorControlRenderer.cs:905-909 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) Standalone/NowUI.Cli/BrowserTrimming.cs:70— Standalone/NowUI.Cli/BrowserTrimming.cs:70-74 | Standalone/NowUI.Cli/BrowserTrimming.cs:95-99 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. 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, `Standalone/NowUI.Cli/BrowserTrimming.cs:77` calls `StartsWith` and `Standalone/NowUI.Cli/BrowserTrimming.cs:100` 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 (5 lines × 2) Standalone/Samples/NativePreview/InteractiveContent.cs:31— Standalone/Samples/NativePreview/InteractiveContent.cs:31-35 | Standalone/Samples/NativePreview/PreviewContent.cs:12-16 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
D4 · Code Duplication· Edited copy of a member (9 corresponding lines) · ×14
Edited copy of a member (9 corresponding lines) Standalone/NowUI.Engine/Math/Vector3.cs:432— Standalone/NowUI.Engine/Math/Vector3.cs:432-444 | Standalone/NowUI.Engine/Math/Vector3.cs:703-711 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (9 corresponding lines) Assets/NowUI/Runtime/Controls/NowDialogs.cs:201— Assets/NowUI/Runtime/Controls/NowDialogs.cs:201-209 | Assets/NowUI/Runtime/Controls/NowFilePicker.cs:3323-3335 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (9 corresponding lines) Assets/NowUI/Runtime/Controls/NowValueControls.cs:4617— Assets/NowUI/Runtime/Controls/NowValueControls.cs:4617-4625 | Assets/NowUI/Runtime/Controls/NowValueControls.cs:4628-4636 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (9 corresponding lines) Standalone/NowUI.Engine/Math/Vector3.cs:646— Standalone/NowUI.Engine/Math/Vector3.cs:646-654 | Standalone/NowUI.Engine/Math/Vector3.cs:665-676 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (9 corresponding lines) Standalone/NowUI.Engine/Graphics/Material.cs:370— Standalone/NowUI.Engine/Graphics/Material.cs:370-378 | Standalone/NowUI.Engine/Graphics/MaterialPropertyBlock.cs:237-245 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (9 corresponding lines) Standalone/NowUI.Engine/Graphics/Material.cs:427— Standalone/NowUI.Engine/Graphics/Material.cs:427-435 | Standalone/NowUI.Engine/Graphics/MaterialPropertyBlock.cs:289-297 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (9 corresponding lines) Assets/NowUI/Runtime/NowControlRenderer.Controls.cs:18— Assets/NowUI/Runtime/NowControlRenderer.Controls.cs:18-27 | Assets/NowUI/Runtime/NowThemeAsset.cs:1807-1815 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (9 corresponding lines) Standalone/NowUI.Engine/Math/Vector2Int.cs:76— Standalone/NowUI.Engine/Math/Vector2Int.cs:76-84 | Standalone/NowUI.Engine/Math/Vector3Int.cs:79-87 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (9 corresponding lines) Assets/NowUI/Extensions/CodeEditor/NowCSharpLanguage.cs:266— Assets/NowUI/Extensions/CodeEditor/NowCSharpLanguage.cs:266-274 | Assets/NowUI/Extensions/Markdown/NowMarkdownParser.cs:106-114 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (9 corresponding lines) Assets/NowUI/Runtime/Now.cs:3466— Assets/NowUI/Runtime/Now.cs:3466-3474 | Assets/NowUI/Extensions/Markup/NowMarkupStyles.cs:77-86 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (9 corresponding lines) Assets/NowUI/Extensions/Docking/NowDocking.cs:495— Assets/NowUI/Extensions/Docking/NowDocking.cs:495-503 | Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:4208-4219 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (9 corresponding lines) Assets/NowUI/Runtime/Controls/NowDatePicker.cs:863— Assets/NowUI/Runtime/Controls/NowDatePicker.cs:863-871 | Assets/NowUI/Runtime/Controls/NowTimePicker.cs:620-629 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (9 corresponding lines) Assets/NowUI/Runtime/Controls/NowTextInput.cs:217— Assets/NowUI/Runtime/Controls/NowTextInput.cs:217-225 | Assets/NowUI/Runtime/Input/NowKeyInput.cs:109-117 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (9 corresponding lines) Assets/NowUI/Runtime/Controls/NowProgressBar.cs:29— Assets/NowUI/Runtime/Controls/NowProgressBar.cs:29-39 | Assets/NowUI/Runtime/Controls/NowTabs.cs:159-167 — 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.
Duplicated block (10 lines × 2) Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:484— Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:484-493 | Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:634-643 — 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) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6538— Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6538-6547 | Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6569-6578 — 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 `Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6538` 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 (10 lines × 2) Assets/NowUI/Runtime/Controls/NowViewStack.cs:804— Assets/NowUI/Runtime/Controls/NowViewStack.cs:804-813 | Assets/NowUI/Runtime/Controls/NowViewStack.cs:826-835 — 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 `Assets/NowUI/Runtime/Controls/NowViewStack.cs:804` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) Assets/NowUI/Runtime/Now.cs:3666— Assets/NowUI/Runtime/Now.cs:3666-3675 | Assets/NowUI/Runtime/Now.cs:4801-4810 — 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 `Assets/NowUI/Runtime/Now.cs:3666` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (10 lines × 2) Assets/NowUI/Runtime/NowGlassRenderer.cs:238— Assets/NowUI/Runtime/NowGlassRenderer.cs:238-247 | Assets/NowUI/Runtime/NowGlassRenderer.cs:587-596 — 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 `Assets/NowUI/Runtime/NowGlassRenderer.cs:238` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Assets/NowUI/Runtime/NowGlassRenderer.cs:599` calls `BlitBlur` and `Assets/NowUI/Runtime/NowGlassRenderer.cs:248` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (10 lines × 2) Assets/NowUI/Runtime/NowThemeAsset.cs:2497— Assets/NowUI/Runtime/NowThemeAsset.cs:2497-2506 | Assets/NowUI/Runtime/NowUnityEditorControlRenderer.cs:839-848 — 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) Assets/NowUI/Extensions/Markup/NowMarkupDocument.cs:1321— Assets/NowUI/Extensions/Markup/NowMarkupDocument.cs:1321-1330 | Assets/NowUI/Extensions/Markup/NowMarkupDocument.cs:1346-1355 — 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 `Assets/NowUI/Extensions/Markup/NowMarkupDocument.cs:1321` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Assets/NowUI/Extensions/Markup/NowMarkupDocument.cs:1344` calls `SetLines` and `Assets/NowUI/Extensions/Markup/NowMarkupDocument.cs:1319` 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 (10 lines × 2) Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:469— Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:469-478 | Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:623-632 — 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) Assets/NowUI/Runtime/Controls/NowTextArea.cs:322— Assets/NowUI/Runtime/Controls/NowTextArea.cs:322-331 | Assets/NowUI/Runtime/Controls/NowTextField.cs:1527-1536 — 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 `Assets/NowUI/Runtime/Controls/NowTextArea.cs:322` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (10 lines × 2) Assets/NowUI/Runtime/NowFont.cs:803— Assets/NowUI/Runtime/NowFont.cs:803-812 | Assets/NowUI/Runtime/NowFont.cs:1138-1147 — 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 `Assets/NowUI/Runtime/NowFont.cs:803` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:550— Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:550-559 | Assets/NowUI/Runtime/NowThemeAsset.cs:2504-2513 — 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 `Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:550` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:5149— Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:5149-5158 | Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6671-6680 — 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 `Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:5149` 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 (10 lines × 2) REDACTED:425— REDACTED:425-434 | Assets/NowUI/Runtime/Controls/NowRichTextParser.cs:725-734 — 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 `REDACTED:425` 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· Edited copy of a member (11 corresponding lines) · ×10
Edited copy of a member (11 corresponding lines) Assets/NowUI/Runtime/NowEffectsMesh.cs:410— Assets/NowUI/Runtime/NowEffectsMesh.cs:410-420 | Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:3181-3193 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:513— Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:513-526 | Assets/NowUI/Runtime/NowLine.cs:849-859 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) Assets/NowUI/Runtime/Now.cs:4164— Assets/NowUI/Runtime/Now.cs:4164-4174 | Assets/NowUI/Runtime/Now.cs:4177-4187 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) Assets/NowUI/Runtime/NowControlRenderer.Controls.cs:315— Assets/NowUI/Runtime/NowControlRenderer.Controls.cs:315-325 | Assets/NowUI/Runtime/NowControlRenderer.Controls.cs:484-496 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) Assets/NowUI/Runtime/Controls/NowValueControls.cs:119— Assets/NowUI/Runtime/Controls/NowValueControls.cs:119-129 | Assets/NowUI/Runtime/Controls/NowValueControls.cs:166-177 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6039— Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6039-6052 | Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6515-6525 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) Standalone/NowUI.Engine/Collections/NativeArray.cs:287— Standalone/NowUI.Engine/Collections/NativeArray.cs:287-297 | Standalone/NowUI.Engine/Collections/NativeArray.cs:311-322 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) Assets/NowUI/Runtime/Controls/NowInspector.cs:165— Assets/NowUI/Runtime/Controls/NowInspector.cs:165-175 | Assets/NowUI/Runtime/Controls/NowValueControls.cs:4604-4614 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) Assets/NowUI/Runtime/Lottie/NowLottieCache.cs:246— Assets/NowUI/Runtime/Lottie/NowLottieCache.cs:246-256 | Assets/NowUI/Extensions/Markdown/NowMarkdownImages.cs:694-704 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) Assets/NowUI/Runtime/Controls/NowComboBox.cs:84— Assets/NowUI/Runtime/Controls/NowComboBox.cs:84-97 | Assets/NowUI/Runtime/Controls/NowTimePicker.cs:79-89 — 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 (3 corresponding lines) · ×10
Edited copy of a member (3 corresponding lines) Standalone/NowUI.Engine/Math/Vector3.cs:788— Standalone/NowUI.Engine/Math/Vector3.cs:788-790 | Standalone/NowUI.Engine/Math/Vector4.cs:384-386 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (3 corresponding lines) Standalone/NowUI.Engine/Math/Vector3.cs:794— Standalone/NowUI.Engine/Math/Vector3.cs:794-796 | Standalone/NowUI.Engine/Math/Vector4.cs:390-392 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (3 corresponding lines) Standalone/NowUI.Engine/Math/Vector3.cs:800— Standalone/NowUI.Engine/Math/Vector3.cs:800-802 | Standalone/NowUI.Engine/Math/Vector4.cs:396-398 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (3 corresponding lines) Standalone/NowUI.Engine/Math/Vector3.cs:806— Standalone/NowUI.Engine/Math/Vector3.cs:806-808 | Standalone/NowUI.Engine/Math/Vector4.cs:402-404 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (3 corresponding lines) Standalone/NowUI.Engine/Math/Quaternion.cs:692— Standalone/NowUI.Engine/Math/Quaternion.cs:692-694 | Standalone/NowUI.Engine/Math/Vector4.cs:173-175 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (3 corresponding lines) Standalone/NowUI.Engine/Math/Vector4.cs:291— Standalone/NowUI.Engine/Math/Vector4.cs:291-293 | Assets/NowUI/Runtime/NowGlassRenderer.cs:1061-1067 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (3 corresponding lines) Standalone/NowUI.Engine/Math/Quaternion.cs:147— Standalone/NowUI.Engine/Math/Quaternion.cs:147-149 | Standalone/NowUI.Engine/Math/Vector4.cs:326-328 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (3 corresponding lines) Standalone/NowUI.Engine/Math/Rect.cs:266— Standalone/NowUI.Engine/Math/Rect.cs:266-268 | Standalone/NowUI.Engine/Math/RectInt.cs:188-190 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (3 corresponding lines) Standalone/NowUI.Engine/Math/Vector3.cs:563— Standalone/NowUI.Engine/Math/Vector3.cs:563-565 | Standalone/NowUI.Engine/Math/Vector3Int.cs:222-224 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (3 corresponding lines) Standalone/NowUI.Engine/Math/Vector3.cs:569— Standalone/NowUI.Engine/Math/Vector3.cs:569-571 | Standalone/NowUI.Engine/Math/Vector3Int.cs:279-281 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (7 lines × 2) Assets/NowUI/Runtime/Now.cs:3925— Assets/NowUI/Runtime/Now.cs:3925-3931 | Assets/NowUI/Runtime/Now.cs:4804-4810 — 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 `Assets/NowUI/Runtime/Now.cs:3925` 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 (7 lines × 2) Assets/NowUI/Extensions/Docking/NowDocking.cs:1004— Assets/NowUI/Extensions/Docking/NowDocking.cs:1004-1010 | Assets/NowUI/Extensions/Docking/NowDocking.cs:1817-1823 — 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) Assets/NowUI/Extensions/Markdown/NowMarkdownImages.cs:225— Assets/NowUI/Extensions/Markdown/NowMarkdownImages.cs:225-231 | Assets/NowUI/Runtime/Lottie/NowLottieCache.cs:158-164 — 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 `Assets/NowUI/Extensions/Markdown/NowMarkdownImages.cs:225` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (7 lines × 2) Assets/NowUI/Runtime/NowLine.cs:746— Assets/NowUI/Runtime/NowLine.cs:746-752 | Assets/NowUI/Runtime/NowLine.cs:1259-1265 — 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) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:2889— Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:2889-2895 | Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:3167-3173 — 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) Assets/NowUI/Runtime/Controls/NowInspector.cs:931— Assets/NowUI/Runtime/Controls/NowInspector.cs:931-937 | Assets/NowUI/Runtime/Controls/NowInspector.cs:941-947 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind `value` to `ref Vector3` in one and `ref Vector3Int` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (7 lines × 2) Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:10— Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:10-16 | Assets/NowUI/Runtime/NowThemeAsset.cs:2009-2015 — 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (7 lines × 2) Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:121— Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:121-127 | Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:159-165 — 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) Assets/NowUI/Extensions/Docking/NowDocking.cs:1639— Assets/NowUI/Extensions/Docking/NowDocking.cs:1639-1645 | Assets/NowUI/Extensions/Docking/NowDocking.cs:1836-1842 — 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 `Assets/NowUI/Extensions/Docking/NowDocking.cs:1639` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (7 lines × 2) Assets/NowUI/Runtime/NowThemeAsset.cs:2071— Assets/NowUI/Runtime/NowThemeAsset.cs:2071-2077 | Assets/NowUI/Runtime/NowUnityEditorControlRenderer.cs:113-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 `Assets/NowUI/Runtime/NowThemeAsset.cs:2071` 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.
BarePragmaDisable Assets/NowUITests/NowInspectorTests.cs:7— #pragma warning disable 169, 414, 649 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
BarePragmaDisable Standalone/NowUI.Engine.Tests/Data/GradientCurveTests.cs:1557— #pragma warning disable 618 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
BarePragmaDisable Standalone/NowUI.Engine.Tests/Data/GradientCurveTests.cs:1586— #pragma warning disable 618 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
BarePragmaDisable Standalone/NowUI.Engine.Tests/Math/ColorTests.cs:408— #pragma warning disable CS1718 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
BarePragmaDisable Standalone/NowUI.Engine.Tests/Math/RectTests.cs:559— #pragma warning disable CS1718 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
BarePragmaDisable Standalone/NowUI.Engine.Tests/Math/RectTests.cs:1706— #pragma warning disable CS1718 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
BarePragmaDisable Standalone/NowUI.Engine.Tests/Math/RectTests.cs:237— #pragma warning disable CS0618 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
BarePragmaDisable Standalone/NowUI.Engine.Tests/Math/Vector3Tests.cs:1016— #pragma warning disable CS0618 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
BarePragmaDisable Standalone/NowUI.Engine.Tests/Math/Vector4Tests.cs:1421— #pragma warning disable CS0618 — the disable is closed again below, so its scope is not the problem; what it records is no reason: there is nothing on the directive line, and no ordinary comment attached to it either side. A suppression is a decision somebody made, and without the reason the next reader cannot tell a considered exception from an unexamined one, so it is never revisited and it outlives the code it was written for. Put the reason on the directive line — what makes this site legitimately different — or fix what the rule is pointing at and delete the pair. A rationale in the member's documentation comment does not clear this row and is not meant to: it explains the member to its callers, and the next person to touch the suppression is not reading it for that.
D4 · Code Duplication· Edited copy of a member (10 corresponding lines) · ×9
Edited copy of a member (10 corresponding lines) Assets/NowUI/Runtime/NowThemeAsset.cs:2068— Assets/NowUI/Runtime/NowThemeAsset.cs:2068-2077 | Assets/NowUI/Runtime/NowUnityEditorControlRenderer.cs:109-119 — 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) Assets/NowUI/Runtime/Controls/NowValueControls.cs:1485— Assets/NowUI/Runtime/Controls/NowValueControls.cs:1485-1494 | Assets/NowUI/Runtime/Controls/NowValueControls.cs:2913-2922 — 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) Assets/NowUI/Runtime/Controls/NowContextMenu.cs:489— Assets/NowUI/Runtime/Controls/NowContextMenu.cs:489-498 | Assets/NowUI/Runtime/Controls/NowContextMenu.cs:509-518 — 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) Assets/NowUI/Runtime/Controls/NowContextMenu.cs:375— Assets/NowUI/Runtime/Controls/NowContextMenu.cs:375-384 | Assets/NowUI/Runtime/Controls/NowContextMenu.cs:396-405 — 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) Assets/NowUI/Runtime/Controls/NowValueControls.cs:2397— Assets/NowUI/Runtime/Controls/NowValueControls.cs:2397-2406 | Assets/NowUI/Runtime/Controls/NowValueControls.cs:2409-2418 — 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) Standalone/NowUI.Engine/Math/Color.cs:58— Standalone/NowUI.Engine/Math/Color.cs:58-67 | Standalone/NowUI.Engine/Math/Color32.cs:52-61 — 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) Assets/NowUI/Runtime/NowControlRenderer.Controls.cs:158— Assets/NowUI/Runtime/NowControlRenderer.Controls.cs:158-167 | Assets/NowUI/Runtime/NowThemeAsset.cs:1959-1968 — 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) Standalone/NowUI.Engine/Math/Color.cs:47— Standalone/NowUI.Engine/Math/Color.cs:47-56 | Standalone/NowUI.Engine/Math/Color32.cs:41-50 — 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) Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:409— Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:409-419 | Assets/NowUI/Runtime/Controls/NowSwitch.cs:25-34 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (4 corresponding lines) · ×9
Edited copy of a member (4 corresponding lines) Standalone/NowUI.Engine/Data/AnimationCurve.cs:340— Standalone/NowUI.Engine/Data/AnimationCurve.cs:340-343 | Assets/NowUI/Runtime/NowEase.cs:729-734 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (4 corresponding lines) Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:29— Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:29-32 | Assets/NowUI/Runtime/NowThemeAsset.cs:2080-2083 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (4 corresponding lines) Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:35— Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:35-38 | Assets/NowUI/Runtime/NowThemeAsset.cs:2104-2107 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (4 corresponding lines) Standalone/NowUI.Engine/Math/Vector2.cs:291— Standalone/NowUI.Engine/Math/Vector2.cs:291-294 | Standalone/NowUI.Engine/Math/Vector3.cs:594-600 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (4 corresponding lines) Standalone/NowUI.Engine/Math/Vector2.cs:298— Standalone/NowUI.Engine/Math/Vector2.cs:298-301 | Standalone/NowUI.Engine/Math/Vector3.cs:604-610 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (4 corresponding lines) Assets/NowUI/Runtime/NowThemeAsset.cs:2057— Assets/NowUI/Runtime/NowThemeAsset.cs:2057-2060 | Assets/NowUI/Runtime/NowUnityEditorControlRenderer.cs:100-103 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (4 corresponding lines) Assets/NowUI/Runtime/Now.cs:410— Assets/NowUI/Runtime/Now.cs:410-413 | Assets/NowUI/Runtime/NowMaskShape.cs:296-299 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (4 corresponding lines) Standalone/NowUI.Engine/Data/AnimationCurve.cs:334— Standalone/NowUI.Engine/Data/AnimationCurve.cs:334-337 | Assets/NowUI/Runtime/NowEase.cs:723-726 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (4 corresponding lines) Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:424— Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:424-427 | Assets/NowUI/Runtime/NowThemeAsset.cs:2731-2734 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (11 lines × 2) Assets/NowUI/Runtime/Controls/NowContextMenu.cs:1000— Assets/NowUI/Runtime/Controls/NowContextMenu.cs:1000-1010 | Assets/NowUI/Runtime/Controls/NowContextMenu.cs:1066-1076 — 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 `Assets/NowUI/Runtime/Controls/NowContextMenu.cs:1000` 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) Assets/NowUI/Runtime/Now.cs:4058— Assets/NowUI/Runtime/Now.cs:4058-4068 | Assets/NowUI/Runtime/Now.cs:4932-4942 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) Assets/NowUI/Extensions/Sdf/NowSdf.cs:1594— Assets/NowUI/Extensions/Sdf/NowSdf.cs:1594-1604 | Assets/NowUI/Extensions/Sdf/NowSdf.cs:1863-1873 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:3629— Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:3629-3639 | Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:3659-3669 — 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 `Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:3629` 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) Standalone/NowUI.Engine/Graphics/Mesh.cs:686— Standalone/NowUI.Engine/Graphics/Mesh.cs:686-696 | Standalone/NowUI.Engine/Graphics/Mesh.cs:703-713 — 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 `Standalone/NowUI.Engine/Graphics/Mesh.cs:686` 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 first that the copies are not typed on the same thing: the declarations holding them bind `colors` to `List<Color>` in one and `List<Color32>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (11 lines × 2) Standalone/NowUI.Engine/Math/Mathf.cs:381— Standalone/NowUI.Engine/Math/Mathf.cs:381-391 | Standalone/NowUI.Engine/Math/Mathf.cs:401-411 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (11 lines × 2) Standalone/NowUI.Engine/Math/Vector2.cs:387— Standalone/NowUI.Engine/Math/Vector2.cs:387-397 | Standalone/NowUI.Engine/Math/Vector2.cs:402-412 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind `vector` to `Vector2` in one and `in Vector2` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (11 lines × 2) Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:512— Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:512-522 | Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:662-672 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) Assets/NowUI/Runtime/Controls/NowTextArea.cs:246— Assets/NowUI/Runtime/Controls/NowTextArea.cs:246-256 | Assets/NowUI/Runtime/Controls/NowTextField.cs:1462-1472 — 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 `Assets/NowUI/Runtime/Controls/NowTextArea.cs:246` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 2) Assets/NowUI/Runtime/Controls/NowDatePicker.cs:585— Assets/NowUI/Runtime/Controls/NowDatePicker.cs:585-592 | Assets/NowUI/Runtime/Controls/NowDatePicker.cs:608-615 — 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 `Assets/NowUI/Runtime/Controls/NowDatePicker.cs:585` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 2) Assets/NowUI/Runtime/NowFont.cs:5298— Assets/NowUI/Runtime/NowFont.cs:5298-5305 | Assets/NowUI/Runtime/NowFont.cs:5317-5324 — 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) Standalone/NowUI.Engine/Math/Quaternion.cs:729— Standalone/NowUI.Engine/Math/Quaternion.cs:729-736 | Standalone/NowUI.Engine/Math/Vector4.cs:210-217 — 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 `Standalone/NowUI.Engine/Math/Quaternion.cs:729` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (8 lines × 2) Standalone/NowUI.Engine/Math/Vector2.cs:331— Standalone/NowUI.Engine/Math/Vector2.cs:331-338 | Standalone/NowUI.Engine/Math/Vector2.cs:342-349 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind `from` to `Vector2` in one and `in Vector2` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (8 lines × 2) Assets/NowUI/Runtime/Controls/NowValueControls.cs:4618— Assets/NowUI/Runtime/Controls/NowValueControls.cs:4618-4625 | Assets/NowUI/Runtime/Controls/NowValueControls.cs:4629-4636 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind `value` to `ref float` in one and `ref int` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (8 lines × 2) Assets/NowUI/Extensions/Sdf/NowSdf.cs:1202— Assets/NowUI/Extensions/Sdf/NowSdf.cs:1202-1209 | Assets/NowUI/Extensions/Sdf/NowSdf.cs:4107-4114 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (8 lines × 2) Standalone/NowUI.Engine/Graphics/Material.cs:371— Standalone/NowUI.Engine/Graphics/Material.cs:371-378 | Standalone/NowUI.Engine/Graphics/MaterialPropertyBlock.cs:238-245 — before extracting anything, compare `Standalone/NowUI.Engine/Graphics/Material.cs` and `Standalone/NowUI.Engine/Graphics/MaterialPropertyBlock.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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.
Duplicated block (8 lines × 2) Standalone/NowUI.Engine/Graphics/Material.cs:428— Standalone/NowUI.Engine/Graphics/Material.cs:428-435 | Standalone/NowUI.Engine/Graphics/MaterialPropertyBlock.cs:290-297 — before extracting anything, compare `Standalone/NowUI.Engine/Graphics/Material.cs` and `Standalone/NowUI.Engine/Graphics/MaterialPropertyBlock.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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.
Duplicated block (8 lines × 2) Assets/NowUI/Extensions/Markdown/NowMarkdownImages.cs:734— Assets/NowUI/Extensions/Markdown/NowMarkdownImages.cs:734-741 | Assets/NowUI/Runtime/Controls/NowValueControls.cs:2639-2646 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
SC1 · Supply-chain hygiene· NuGet dependencies are not locked · ×9
NuGet dependencies are not locked Assets/NowUI/Analyzers~/NowUI.Analyzers/NowUI.Analyzers.csproj:15— Assets/NowUI/Analyzers~/NowUI.Analyzers/NowUI.Analyzers.csproj declares NuGet packages that no committed packages.lock.json resolves and no central package management pins — restores aren't reproducible or pinned (SSDF PW.4.4). Enable <RestorePackagesWithLockFile>true</RestorePackagesWithLockFile> (commit the lockfile) or adopt Directory.Packages.props. Advisory — never scored.
NuGet dependencies are not locked Standalone/NowUI.Browser.Tests/NowUI.Browser.Tests.csproj:10— Standalone/NowUI.Browser.Tests/NowUI.Browser.Tests.csproj declares NuGet packages that no committed packages.lock.json resolves and no central package management pins — restores aren't reproducible or pinned (SSDF PW.4.4). Enable <RestorePackagesWithLockFile>true</RestorePackagesWithLockFile> (commit the lockfile) or adopt Directory.Packages.props. Advisory — never scored.
NuGet dependencies are not locked Standalone/NowUI.Desktop/NowUI.Desktop.csproj:8— Standalone/NowUI.Desktop/NowUI.Desktop.csproj declares NuGet packages that no committed packages.lock.json resolves and no central package management pins — restores aren't reproducible or pinned (SSDF PW.4.4). Enable <RestorePackagesWithLockFile>true</RestorePackagesWithLockFile> (commit the lockfile) or adopt Directory.Packages.props. Advisory — never scored.
NuGet dependencies are not locked Standalone/NowUI.Engine.Tests/NowUI.Engine.Tests.csproj:9— Standalone/NowUI.Engine.Tests/NowUI.Engine.Tests.csproj declares NuGet packages that no committed packages.lock.json resolves and no central package management pins — restores aren't reproducible or pinned (SSDF PW.4.4). Enable <RestorePackagesWithLockFile>true</RestorePackagesWithLockFile> (commit the lockfile) or adopt Directory.Packages.props. Advisory — never scored.
NuGet dependencies are not locked Standalone/NowUI.Hosting/NowUI.Hosting.csproj:12— Standalone/NowUI.Hosting/NowUI.Hosting.csproj declares NuGet packages that no committed packages.lock.json resolves and no central package management pins — restores aren't reproducible or pinned (SSDF PW.4.4). Enable <RestorePackagesWithLockFile>true</RestorePackagesWithLockFile> (commit the lockfile) or adopt Directory.Packages.props. Advisory — never scored.
NuGet dependencies are not locked Standalone/NowUI.Native.Tests/NowUI.Native.Tests.csproj:9— Standalone/NowUI.Native.Tests/NowUI.Native.Tests.csproj declares NuGet packages that no committed packages.lock.json resolves and no central package management pins — restores aren't reproducible or pinned (SSDF PW.4.4). Enable <RestorePackagesWithLockFile>true</RestorePackagesWithLockFile> (commit the lockfile) or adopt Directory.Packages.props. Advisory — never scored.
NuGet dependencies are not locked Standalone/Samples/TextRenderingComparison/TextRenderingComparison.csproj:9— Standalone/Samples/TextRenderingComparison/TextRenderingComparison.csproj declares NuGet packages that no committed packages.lock.json resolves and no central package management pins — restores aren't reproducible or pinned (SSDF PW.4.4). Enable <RestorePackagesWithLockFile>true</RestorePackagesWithLockFile> (commit the lockfile) or adopt Directory.Packages.props. Advisory — never scored.
NuGet dependencies are not locked Standalone/Tests/Tests.csproj:33— Standalone/Tests/Tests.csproj declares NuGet packages that no committed packages.lock.json resolves and no central package management pins — restores aren't reproducible or pinned (SSDF PW.4.4). Enable <RestorePackagesWithLockFile>true</RestorePackagesWithLockFile> (commit the lockfile) or adopt Directory.Packages.props. Advisory — never scored.
NuGet dependencies are not locked Tools/Standalone/ApiDump/ApiDump.csproj:13— Tools/Standalone/ApiDump/ApiDump.csproj declares NuGet packages that no committed packages.lock.json resolves and no central package management pins — restores aren't reproducible or pinned (SSDF PW.4.4). Enable <RestorePackagesWithLockFile>true</RestorePackagesWithLockFile> (commit the lockfile) or adopt Directory.Packages.props. Advisory — never scored.
Swallowed exception (caught, then discarded) Standalone/NowUI.Engine/NowRuntime.cs:350— `catch (Exception)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
Swallowed exception (caught, then discarded) Standalone/NowUI.Engine/NowRuntime.cs:371— `catch (Exception)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
Swallowed exception (caught, then discarded) Standalone/NowUI.Engine/NowRuntime.cs:385— `catch (Exception)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
Swallowed exception (caught, then discarded) Standalone/NowUI.Engine/NowRuntime.cs:419— `catch (Exception)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
Swallowed exception (caught, then discarded) Assets/NowUI/Runtime/Lottie/NowLottieNative.cs:195— `catch (DllNotFoundException)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
Swallowed exception (caught, then discarded) Assets/NowUI/Runtime/Lottie/NowLottieNative.cs:199— `catch (EntryPointNotFoundException)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
Swallowed exception (caught, then discarded) Assets/NowUI/Runtime/NowFontCompiler.cs:503— `catch (DllNotFoundException)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
Swallowed exception (caught, then discarded) Assets/NowUI/Runtime/NowFontCompiler.cs:509— `catch (EntryPointNotFoundException)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
Swallowed exception (caught, then discarded) Assets/NowUI/Runtime/NowFontCompiler.cs:515— `catch (BadImageFormatException)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
ClassTooLong: NowLottieTessellator Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs— ClassTooLong — 732 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 332 over it, 1.83× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
ClassTooLong: NowLottieNative Assets/NowUI/Runtime/Lottie/NowLottieNative.cs— ClassTooLong — 640 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods, declared across 2 files: Lottie/NowLottieNative.cs (19), NowUI.Runtime/BrowserNowLottieNative.cs (10). The bar is 400 significant lines; this is 240 over it, 1.60× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
ClassTooLong: NowLottieRenderer Assets/NowUI/Runtime/Lottie/NowLottieRenderer.cs— ClassTooLong — 600 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 200 over it, 1.50× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
ClassTooLong: NowFontCompiler Assets/NowUI/Runtime/NowFontCompiler.cs— ClassTooLong — 528 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods, declared across 2 files: Runtime/NowFontCompiler.cs (28), NowUI.Runtime/BrowserNowFontCompiler.cs (2). The bar is 400 significant lines; this is 128 over it, 1.32× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
ClassTooLong: NowMarkupCodeLanguage Assets/NowUI/Extensions/CodeEditor/NowMarkupCodeLanguage.cs— ClassTooLong — 476 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 76 over it, 1.19× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
ClassTooLong: NowLottieBurstTessellator Assets/NowUI/Runtime/Lottie/NowLottieBurstTessellator.cs— ClassTooLong — 433 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 33 over it, 1.08× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
ClassTooLong: NowTextArea Assets/NowUI/Runtime/Controls/NowTextArea.cs— ClassTooLong — 430 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 30 over it, 1.08× 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: NowMarkdownParser Assets/NowUI/Extensions/Markdown/NowMarkdownParser.cs— ClassTooLong — 423 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 23 over it, 1.06× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
D4 · Code Duplication· Edited copy of a member (17 corresponding lines) · ×8
Edited copy of a member (17 corresponding lines) Assets/NowUI/Extensions/Docking/NowDocking.cs:1357— Assets/NowUI/Extensions/Docking/NowDocking.cs:1357-1373 | Assets/NowUI/Extensions/Docking/NowDocking.cs:1376-1393 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (17 corresponding lines) Standalone/NowUI.Engine/Math/Mathf.cs:380— Standalone/NowUI.Engine/Math/Mathf.cs:380-396 | Standalone/NowUI.Engine/Math/Mathf.cs:400-422 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (17 corresponding lines) Standalone/NowUI.Engine/Math/Vector3.cs:261— Standalone/NowUI.Engine/Math/Vector3.cs:261-277 | Standalone/NowUI.Engine/Math/Vector4.cs:264-282 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (17 corresponding lines) Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:331— Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:331-347 | Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:350-369 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (17 corresponding lines) Assets/NowUI/Extensions/Sdf/NowSdf.cs:2106— Assets/NowUI/Extensions/Sdf/NowSdf.cs:2106-2123 | Assets/NowUI/Extensions/Sdf/NowSdf.cs:2126-2142 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (17 corresponding lines) Assets/NowUI/Runtime/NowMesh.cs:641— Assets/NowUI/Runtime/NowMesh.cs:641-657 | Assets/NowUI/Runtime/NowMesh.cs:757-773 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (17 corresponding lines) Assets/NowUI/Runtime/NowGUI.cs:88— Assets/NowUI/Runtime/NowGUI.cs:88-104 | Assets/NowUI/Runtime/NowGUI.cs:121-137 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (17 corresponding lines) Standalone/NowUI.Engine/NowShaderGlobals.cs:68— Standalone/NowUI.Engine/NowShaderGlobals.cs:68-84 | Standalone/NowUI.Engine/NowShaderGlobals.cs:88-104 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (7 corresponding lines) · ×8
Edited copy of a member (7 corresponding lines) Standalone/NowUI.Engine/Math/Color32.cs:109— Standalone/NowUI.Engine/Math/Color32.cs:109-116 | Standalone/NowUI.Engine/Math/Color32.cs:120-126 — 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) Standalone/NowUI.Engine/Math/Matrix4x4.cs:289— Standalone/NowUI.Engine/Math/Matrix4x4.cs:289-295 | Standalone/NowUI.Engine/Math/Matrix4x4.cs:299-305 — 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) Assets/NowUI/Runtime/NowRect.cs:107— Assets/NowUI/Runtime/NowRect.cs:107-113 | Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:5936-5942 — 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) Standalone/NowUI.Engine/Math/Color.cs:143— Standalone/NowUI.Engine/Math/Color.cs:143-150 | Standalone/NowUI.Engine/Math/Color.cs:153-159 — 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) Standalone/NowUI.Engine/Math/Vector3.cs:223— Standalone/NowUI.Engine/Math/Vector3.cs:223-229 | Standalone/NowUI.Engine/Math/Vector3.cs:233-239 — 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) Assets/NowUI/Runtime/Controls/NowRichTextFlow.cs:201— Assets/NowUI/Runtime/Controls/NowRichTextFlow.cs:201-207 | Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:2065-2071 — 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) Assets/NowUI/Runtime/NowShape.cs:196— Assets/NowUI/Runtime/NowShape.cs:196-202 | Assets/NowUI/Runtime/NowStroke.cs:55-61 — 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) Assets/NowUI/Runtime/NowShape.cs:216— Assets/NowUI/Runtime/NowShape.cs:216-222 | Assets/NowUI/Runtime/NowStroke.cs:75-81 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (6 lines × 2) Assets/NowUI/Runtime/Lottie/NowLottieModel.cs:1029— Assets/NowUI/Runtime/Lottie/NowLottieModel.cs:1029-1034 | Assets/NowUI/Runtime/Lottie/NowLottieModel.cs:1283-1288 — 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 `Assets/NowUI/Runtime/Lottie/NowLottieModel.cs:1029` 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 (6 lines × 2) Standalone/NowUI.Engine/Math/Vector4.cs:226— Standalone/NowUI.Engine/Math/Vector4.cs:226-231 | Standalone/NowUI.Engine/Math/Vector4.cs:236-241 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind `a` to `Vector4` in one and `in Vector4` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (6 lines × 2) Assets/NowUI/Extensions/Docking/NowDocking.cs:1505— Assets/NowUI/Extensions/Docking/NowDocking.cs:1505-1510 | Assets/NowUI/Extensions/Docking/NowDocking.cs:1678-1683 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) Standalone/NowUI.Engine/Math/Color.cs:145— Standalone/NowUI.Engine/Math/Color.cs:145-150 | Standalone/NowUI.Engine/Math/Color.cs:154-159 — 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 `Standalone/NowUI.Engine/Math/Color.cs:145` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (6 lines × 2) Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:634— Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:634-639 | Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:672-678 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:3730— Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:3730-3735 | Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:3744-3749 — 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. 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 (6 lines × 2) Standalone/NowUI.Engine/Math/Color32.cs:111— Standalone/NowUI.Engine/Math/Color32.cs:111-116 | Standalone/NowUI.Engine/Math/Color32.cs:121-126 — 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 `Standalone/NowUI.Engine/Math/Color32.cs:111` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (6 lines × 2) Standalone/Samples/NativePreview/PreviewContent.cs:85— Standalone/Samples/NativePreview/PreviewContent.cs:85-90 | Standalone/Samples/NativePreview/PreviewContent.cs:91-96 — 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 `Standalone/Samples/NativePreview/PreviewContent.cs:91` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Hollow method — returns a constant without doing the work Assets/NowUI/Extensions/Markdown/NowMarkdownParser.cs:422— `IndentBase` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
Hollow method — returns a constant without doing the work Assets/NowUI/Runtime/Controls/NowRaycastGate.cs:339— `IsPointerOverUGUI` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
Hollow method — returns a constant without doing the work Assets/NowUI/Runtime/Controls/NowRaycastGate.cs:348— `IsHostAbove` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
Hollow method — returns a constant without doing the work Assets/NowUI/Runtime/Standalone/NowLottieBurstTessellator.Standalone.cs:24— `TryFill` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
Hollow method — returns a constant without doing the work Assets/NowUI/Runtime/Standalone/NowLottieBurstTessellator.Standalone.cs:38— `TryStroke` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
Hollow method — returns a constant without doing the work Standalone/NowUI.Cli/BrowserTrimming.cs:136— `GetSZArrayType` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
Hollow method — returns a constant without doing the work Standalone/NowUI.Cli/BrowserTrimming.cs:137— `GetTypeFromDefinition` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
Hollow method — returns a constant without doing the work Standalone/NowUI.Cli/BrowserTrimming.cs:138— `GetTypeFromReference` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
Swallowed exception (empty catch) Assets/NowUI/Runtime/Controls/NowFilePicker.cs:2295— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Assets/NowUI/Runtime/Controls/NowFilePicker.cs:2298— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Assets/NowUI/Runtime/Controls/NowFilePicker.cs:2301— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Assets/NowUI/Runtime/Controls/NowFilePicker.cs:2304— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Assets/NowUI/Runtime/Controls/NowNumericExpression.cs:45— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Standalone/NowUI.Cli/LoadedScene.cs:65— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Standalone/NowUI.Cli/LoadedScene.cs:66— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Standalone/NowUI.Cli/PreviewWatch.cs:88— An empty catch block silently discards the error — failures vanish with no log and no rethrow. On a teardown path letting it propagate is not an option (throwing out of `Dispose()` masks the failure already in flight and abandons the rest of the cleanup), so make the swallow deliberate instead: record it through whatever this codebase already uses to report problems — or, if one specific failure truly cannot matter, catch exactly that exception type and say why in a comment on the catch (a comment on a catch-all still swallows everything else).
D4 · Code Duplication· Edited copy of a member (21 corresponding lines) · ×7
Edited copy of a member (21 corresponding lines) Assets/NowUI/Runtime/NowControlRenderer.Controls.cs:625— Assets/NowUI/Runtime/NowControlRenderer.Controls.cs:625-650 | Assets/NowUI/Runtime/NowUnityEditorControlRenderer.cs:592-612 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (21 corresponding lines) Assets/NowUI/Extensions/Markup/NowMarkupDocument.cs:1310— Assets/NowUI/Extensions/Markup/NowMarkupDocument.cs:1310-1330 | Assets/NowUI/Extensions/Markup/NowMarkupDocument.cs:1333-1355 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (21 corresponding lines) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6299— Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6299-6319 | Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6471-6491 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (21 corresponding lines) Assets/NowUI/Runtime/Controls/NowControls.cs:1077— Assets/NowUI/Runtime/Controls/NowControls.cs:1077-1097 | Assets/NowUI/Runtime/Controls/NowControls.cs:1143-1168 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (21 corresponding lines) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6534— Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6534-6554 | Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6564-6586 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (21 corresponding lines) Assets/NowUI/Runtime/NowRenderer.cs:254— Assets/NowUI/Runtime/NowRenderer.cs:254-274 | Assets/NowUI/Runtime/NowRenderer.cs:285-306 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (21 corresponding lines) Assets/NowUI/Runtime/NowScopeGuard.cs:45— Assets/NowUI/Runtime/NowScopeGuard.cs:45-65 | Assets/NowUI/Runtime/NowScopeGuard.cs:82-103 — 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 (5 corresponding lines) · ×7
Edited copy of a member (5 corresponding lines) Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:1359— Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:1359-1364 | Assets/NowUI/Runtime/NowLine.cs:1361-1365 — These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (5 corresponding lines) Standalone/NowUI.Engine/Math/Vector3.cs:208— Standalone/NowUI.Engine/Math/Vector3.cs:208-214 | Standalone/NowUI.Engine/Math/Vector3Int.cs:188-192 — These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (5 corresponding lines) Standalone/NowUI.Engine/Math/Vector2.cs:368— Standalone/NowUI.Engine/Math/Vector2.cs:368-372 | Standalone/NowUI.Engine/Math/Vector2Int.cs:103-107 — These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (5 corresponding lines) Assets/NowUI/Runtime/NowThemeAsset.cs:2403— Assets/NowUI/Runtime/NowThemeAsset.cs:2403-2407 | Assets/NowUI/Runtime/NowUnityEditorControlRenderer.cs:495-499 — These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (5 corresponding lines) Assets/NowUI/Runtime/Controls/NowFilePicker.cs:226— Assets/NowUI/Runtime/Controls/NowFilePicker.cs:226-230 | Assets/NowUI/Runtime/Controls/NowValueControls.cs:441-445 — These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (5 corresponding lines) Assets/NowUI/Runtime/Controls/NowFilePicker.cs:264— Assets/NowUI/Runtime/Controls/NowFilePicker.cs:264-268 | Assets/NowUI/Runtime/Controls/NowValueControls.cs:2804-2808 — These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (5 corresponding lines) Assets/NowUI/Runtime/NowGradient.cs:366— Assets/NowUI/Runtime/NowGradient.cs:366-370 | Assets/NowUI/Runtime/NowText.cs:547-552 — 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.
Duplicated block (14 lines × 2) REDACTED:260— REDACTED:260-273 | REDACTED:298-311 — 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:260` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) Assets/NowUI/Runtime/Controls/NowComboBox.cs:218— Assets/NowUI/Runtime/Controls/NowComboBox.cs:218-231 | Assets/NowUI/Runtime/Controls/NowComboBox.cs:327-340 — 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 `Assets/NowUI/Runtime/Controls/NowComboBox.cs:218` 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.
Duplicated block (14 lines × 2) Assets/NowUI/Extensions/Markdown/NowMarkdownImages.Standalone.cs:303— Assets/NowUI/Extensions/Markdown/NowMarkdownImages.Standalone.cs:303-316 | Assets/NowUI/Runtime/Lottie/NowLottieAsset.Standalone.cs:344-357 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 2) Assets/NowUI/Runtime/Now.cs:3219— Assets/NowUI/Runtime/Now.cs:3219-3232 | Assets/NowUI/Runtime/Now.cs:3325-3338 — 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 `Assets/NowUI/Runtime/Now.cs:3219` 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 first that the copies are not typed on the same thing: the declarations holding them bind `value` to `string` in one and `ReadOnlySpan<char>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (14 lines × 2) Assets/NowUI/Runtime/NowMesh.cs:1062— Assets/NowUI/Runtime/NowMesh.cs:1062-1075 | Assets/NowUI/Runtime/NowMesh.cs:1316-1329 — 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 `Assets/NowUI/Runtime/NowMesh.cs:1062` 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 (14 lines × 2) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:3218— Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:3218-3231 | Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:4806-4819 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 2) Assets/NowUI/Runtime/NowFont.cs:5827— Assets/NowUI/Runtime/NowFont.cs:5827-5840 | Assets/NowUI/Runtime/NowFont.cs:5890-5903 — 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 `Assets/NowUI/Runtime/NowFont.cs:5827` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) Standalone/NowUI.Runtime/BrowserNowLottieNative.cs:25— Standalone/NowUI.Runtime/BrowserNowLottieNative.cs:25-36 | Standalone/NowUI.Runtime/BrowserNowLottieNative.cs:97-108 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) Assets/NowUI/Runtime/Controls/NowComboBox.cs:159— Assets/NowUI/Runtime/Controls/NowComboBox.cs:159-170 | Assets/NowUI/Runtime/Controls/NowComboBox.cs:273-284 — 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 `Assets/NowUI/Runtime/Controls/NowComboBox.cs:159` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) Assets/NowUI/Runtime/Now.cs:4271— Assets/NowUI/Runtime/Now.cs:4271-4282 | Assets/NowUI/Runtime/Now.cs:4322-4333 — 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. Note first that the copies are not typed on the same thing: the declarations holding them bind `value` to `string` in one and `ReadOnlySpan<char>` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (12 lines × 2) Assets/NowUI/Runtime/Controls/NowDropdown.cs:191— Assets/NowUI/Runtime/Controls/NowDropdown.cs:191-202 | Assets/NowUI/Runtime/Controls/NowMaskField.cs:218-229 — before extracting anything, compare `Assets/NowUI/Runtime/Controls/NowDropdown.cs` and `Assets/NowUI/Runtime/Controls/NowMaskField.cs` as WHOLE FILES: this scan already matched 6 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 `Assets/NowUI/Runtime/Controls/NowDropdown.cs:191` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) Standalone/NowUI.Engine/Graphics/Material.cs:391— Standalone/NowUI.Engine/Graphics/Material.cs:391-402 | Standalone/NowUI.Engine/Graphics/MaterialPropertyBlock.cs:255-266 — before extracting anything, compare `Standalone/NowUI.Engine/Graphics/Material.cs` and `Standalone/NowUI.Engine/Graphics/MaterialPropertyBlock.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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.
Duplicated block (12 lines × 2) Standalone/NowUI.Engine/Graphics/Material.cs:444— Standalone/NowUI.Engine/Graphics/Material.cs:444-455 | Standalone/NowUI.Engine/Graphics/MaterialPropertyBlock.cs:306-317 — before extracting anything, compare `Standalone/NowUI.Engine/Graphics/Material.cs` and `Standalone/NowUI.Engine/Graphics/MaterialPropertyBlock.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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.
Duplicated block (12 lines × 2) Assets/NowUI/Extensions/Markdown/NowMarkdownImages.cs:566— Assets/NowUI/Extensions/Markdown/NowMarkdownImages.cs:566-577 | Assets/NowUI/Runtime/Lottie/NowLottieAsset.cs:307-318 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Sync-over-async blocking — 6 blocking call(s) on async work (.Wait()/.GetAwaiter().GetResult()) — these waste a thread and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking Standalone/NowUI.Cli/BrowserServer.cs:25— `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking Standalone/NowUI.Cli/PreviewWatch.cs:62— `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking Standalone/NowUI.Cli/PreviewWatch.cs:87— `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking Standalone/NowUI.Cli/ProjectBuilder.cs:48— `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking Standalone/NowUI.Cli/ProjectBuilder.cs:55— `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
Sync-over-async blocking Standalone/NowUI.Cli/ProjectBuilder.cs:56— `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
D4 · Code Duplication· Edited copy of a member (32 corresponding lines) · ×6
Edited copy of a member (32 corresponding lines) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6378— Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6378-6418 | Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6430-6461 — These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (32 corresponding lines) Assets/NowUI/Extensions/Docking/NowDocking.cs:1289— Assets/NowUI/Extensions/Docking/NowDocking.cs:1289-1320 | Assets/NowUI/Extensions/Docking/NowDocking.cs:1323-1354 — These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (32 corresponding lines) Assets/NowUI/Runtime/Controls/NowTextArea.cs:736— Assets/NowUI/Runtime/Controls/NowTextArea.cs:736-767 | Assets/NowUI/Runtime/Controls/NowTextField.cs:1698-1731 — These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (32 corresponding lines) Assets/NowUI/Extensions/Sdf/NowSdf.cs:4843— Assets/NowUI/Extensions/Sdf/NowSdf.cs:4843-4876 | Assets/NowUI/Extensions/Sdf/NowSdf.cs:4879-4910 — These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (32 corresponding lines) Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:1376— Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:1376-1407 | Assets/NowUI/Runtime/NowLine.cs:1375-1406 — These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (32 corresponding lines) Assets/NowUI/Runtime/NowEffects.cs:1030— Assets/NowUI/Runtime/NowEffects.cs:1030-1062 | Assets/NowUI/Runtime/NowEffects.cs:1133-1164 — These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (20 corresponding lines) · ×6
Edited copy of a member (20 corresponding lines) Assets/NowUI/Runtime/Controls/NowTextArea.cs:655— Assets/NowUI/Runtime/Controls/NowTextArea.cs:655-674 | Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:3564-3583 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (20 corresponding lines) Assets/NowUI/Runtime/Lottie/NowLottieCache.cs:153— Assets/NowUI/Runtime/Lottie/NowLottieCache.cs:153-177 | Assets/NowUI/Extensions/Markdown/NowMarkdownImages.cs:220-239 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (20 corresponding lines) Assets/NowUI/Runtime/Lottie/NowLottieAsset.Standalone.cs:26— Assets/NowUI/Runtime/Lottie/NowLottieAsset.Standalone.cs:26-45 | Assets/NowUI/Runtime/Lottie/NowLottieAsset.Standalone.cs:66-99 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (20 corresponding lines) Assets/NowUI/Extensions/Markup/NowMarkupState.cs:89— Assets/NowUI/Extensions/Markup/NowMarkupState.cs:89-111 | Assets/NowUI/Extensions/Markup/NowMarkupState.cs:114-133 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (20 corresponding lines) Assets/NowUI/Extensions/CodeEditor/NowCSharpLanguage.cs:291— Assets/NowUI/Extensions/CodeEditor/NowCSharpLanguage.cs:291-310 | Assets/NowUI/Extensions/CodeEditor/NowCSharpLanguage.cs:313-339 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (20 corresponding lines) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:1920— Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:1920-1939 | Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:1942-1961 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (13 corresponding lines) · ×6
Edited copy of a member (13 corresponding lines) Assets/NowUI/Runtime/Controls/NowFocus.cs:2320— Assets/NowUI/Runtime/Controls/NowFocus.cs:2320-2339 | Assets/NowUI/Runtime/Controls/NowFocus.cs:2420-2432 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (13 corresponding lines) Assets/NowUI/Runtime/NowMesh.cs:1933— Assets/NowUI/Runtime/NowMesh.cs:1933-1945 | Assets/NowUI/Runtime/NowMesh.cs:1952-1964 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (13 corresponding lines) Assets/NowUI/Runtime/Controls/NowTextEditorCore.cs:117— Assets/NowUI/Runtime/Controls/NowTextEditorCore.cs:117-129 | Assets/NowUI/Runtime/Controls/NowTextEditorCore.cs:132-144 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (13 corresponding lines) Assets/NowUI/Runtime/NowLayout.cs:3363— Assets/NowUI/Runtime/NowLayout.cs:3363-3375 | Assets/NowUI/Runtime/NowLayout.cs:3378-3390 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (13 corresponding lines) Assets/NowUI/Runtime/NowIdHash.cs:63— Assets/NowUI/Runtime/NowIdHash.cs:63-75 | Assets/NowUI/Runtime/NowIdHash.cs:78-90 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (13 corresponding lines) Assets/NowUI/Runtime/NowEffects.cs:846— Assets/NowUI/Runtime/NowEffects.cs:846-859 | Assets/NowUI/Runtime/NowGUI.cs:644-656 — 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.
Duplicated block (9 lines × 2) Assets/NowUI/Runtime/Controls/NowValueControls.cs:1443— Assets/NowUI/Runtime/Controls/NowValueControls.cs:1443-1451 | Assets/NowUI/Runtime/Controls/NowValueControls.cs:2871-2879 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) Assets/NowUI/Runtime/NowShape.cs:393— Assets/NowUI/Runtime/NowShape.cs:393-401 | Assets/NowUI/Runtime/NowStroke.cs:400-408 — 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 `Assets/NowUI/Runtime/NowShape.cs:393` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (9 lines × 2) Assets/NowUI/Extensions/Markdown/NowMarkdown.cs:381— Assets/NowUI/Extensions/Markdown/NowMarkdown.cs:381-389 | Assets/NowUI/Extensions/Markup/NowMarkup.cs:149-157 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 2) Assets/NowUI/Runtime/NowControlRenderer.Controls.cs:625— Assets/NowUI/Runtime/NowControlRenderer.Controls.cs:625-633 | Assets/NowUI/Runtime/NowUnityEditorControlRenderer.cs:592-600 — 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 `Assets/NowUI/Runtime/NowControlRenderer.Controls.cs:625` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Assets/NowUI/Runtime/NowUnityEditorControlRenderer.cs:601` calls `SetOutline`, `SetOutlineColor`, `GetColor` and `Assets/NowUI/Runtime/NowControlRenderer.Controls.cs:634` 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 (9 lines × 2) Assets/NowUI/Extensions/Docking/NowDocking.cs:1580— Assets/NowUI/Extensions/Docking/NowDocking.cs:1580-1588 | Assets/NowUI/Extensions/Docking/NowDocking.cs:1625-1633 — 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. 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 (9 lines × 2) Assets/NowUI/Runtime/Controls/NowDropdown.cs:55— Assets/NowUI/Runtime/Controls/NowDropdown.cs:55-63 | Assets/NowUI/Runtime/Controls/NowMaskField.cs:74-82 — before extracting anything, compare `Assets/NowUI/Runtime/Controls/NowDropdown.cs` and `Assets/NowUI/Runtime/Controls/NowMaskField.cs` as WHOLE FILES: this scan already matched 6 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. 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.
Sync-over-async (deadlock risk) Standalone/NowUI.Cli/BrowserServer.cs:20— Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
Sync-over-async (deadlock risk) Standalone/NowUI.Cli/PreviewWatch.cs:62— Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
Sync-over-async (deadlock risk) Standalone/NowUI.Cli/PreviewWatch.cs:87— Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` wastes a thread and, if the task needs a context this one is holding, deadlocks. `Dispose()` returns void by contract, so it cannot simply `await`: signal the work to stop first (cancel its token, set its stop flag) so the wait is short, give the wait a TIMEOUT so a hung task cannot hang shutdown, and — where callers can use it — add an awaitable teardown (`DisposeAsync`/`StopAsync`) beside the synchronous one and let `Dispose()` remain the bounded fallback.
Sync-over-async (deadlock risk) Standalone/NowUI.Cli/ProjectBuilder.cs:48— Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
Sync-over-async (deadlock risk) Standalone/NowUI.Cli/ProjectBuilder.cs:55— Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
Sync-over-async (deadlock risk) Standalone/NowUI.Cli/ProjectBuilder.cs:56— Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
X18 · Disposal-pattern correctness· Disposable created and abandoned in the method that made it · ×6
Disposable created and abandoned in the method that made it Assets/NowUI/Runtime/NowManagedFontBaker.cs:91— `tileStart` is a `NativeArray`, which implements `IDisposable`, and it is created here (line 91). Every use of it in `Execute` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var tileStart = …;`), which releases it at the end of the scope on every path including a throw.
Disposable created and abandoned in the method that made it Assets/NowUI/Runtime/NowManagedFontBaker.cs:92— `centerDistance` is a `NativeArray`, which implements `IDisposable`, and it is created here (line 92). Every use of it in `Execute` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var centerDistance = …;`), which releases it at the end of the scope on every path including a throw.
Disposable created and abandoned in the method that made it Assets/NowUI/Runtime/NowManagedFontBaker.cs:93— `tileSegments` is a `NativeList`, which implements `IDisposable`, and it is created here (line 93). Every use of it in `Execute` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var tileSegments = …;`), which releases it at the end of the scope on every path including a throw.
Disposable created and abandoned in the method that made it Assets/NowUI/Runtime/NowManagedFontBaker.cs:125— `crossingX` is a `NativeArray`, which implements `IDisposable`, and it is created here (line 125). Every use of it in `Execute` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var crossingX = …;`), which releases it at the end of the scope on every path including a throw.
Disposable created and abandoned in the method that made it Assets/NowUI/Runtime/NowManagedFontBaker.cs:126— `crossingDirection` is a `NativeArray`, which implements `IDisposable`, and it is created here (line 126). Every use of it in `Execute` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var crossingDirection = …;`), which releases it at the end of the scope on every path including a throw.
Disposable created and abandoned in the method that made it Standalone/NowUI.Cli/BrowserServer.cs:36— `listener` is a `TcpListener`, which implements `IDisposable`, and it is created here (line 36). Every use of it in `ServeAsync` reads a member through it — it is never returned, never stored, never handed to anything else, and never disposed — so this method both creates the value and is the last thing that can release it, and does not. Nothing announces the leak: the object holds its resource until finalization if its type has a finalizer, and until the process ends if it does not, so the cost accumulates once per CALL rather than showing up as a failure. Declare it with `using` (`using var listener = …;`), which releases it at the end of the scope on every path including a throw.
No assertions: CancellationClosesConnectionsWaitingForRequestHeaders Standalone/NowUI.Native.Tests/BrowserServerTests.cs:100— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: ScalarFillBaseline Assets/NowUITests/NowLottieBurstTessellatorTests.cs:322— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: BurstFillBaseline Assets/NowUITests/NowLottieBurstTessellatorTests.cs:328— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: LayoutEngineStressRebuild Assets/NowUITests/NowRuntimePerformanceTests.cs:236— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
No assertions: InteractIdHashingStress Assets/NowUITests/NowRuntimePerformanceTests.cs:530— This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
D4 · Code Duplication· Edited copy of a member (29 corresponding lines) · ×5
Edited copy of a member (29 corresponding lines) Assets/NowUI/Runtime/Controls/NowDropdown.cs:174— Assets/NowUI/Runtime/Controls/NowDropdown.cs:174-202 | Assets/NowUI/Runtime/Controls/NowMaskField.cs:190-229 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (29 corresponding lines) Assets/NowUI/Runtime/NowThemeAsset.cs:2420— Assets/NowUI/Runtime/NowThemeAsset.cs:2420-2448 | Assets/NowUI/Runtime/NowUnityEditorControlRenderer.cs:441-476 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (29 corresponding lines) Assets/NowUI/Runtime/Lottie/NowLottieNative.cs:239— Assets/NowUI/Runtime/Lottie/NowLottieNative.cs:239-268 | Assets/NowUI/Runtime/Lottie/NowLottieNative.cs:284-312 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (29 corresponding lines) Assets/NowUI/Runtime/Controls/NowRichTextParser.cs:680— Assets/NowUI/Runtime/Controls/NowRichTextParser.cs:680-711 | Assets/NowUI/Extensions/Markup/NowMarkupParser.cs:230-258 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (29 corresponding lines) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:973— Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:973-1007 | Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:1016-1044 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (23 corresponding lines) · ×5
Edited copy of a member (23 corresponding lines) Standalone/NowUI.Engine/Data/Gradient.cs:161— Standalone/NowUI.Engine/Data/Gradient.cs:161-184 | Standalone/NowUI.Engine/Data/Gradient.cs:188-210 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (23 corresponding lines) Assets/NowUI/Runtime/Controls/NowInspector.cs:880— Assets/NowUI/Runtime/Controls/NowInspector.cs:880-902 | Assets/NowUI/Runtime/Controls/NowInspector.cs:905-927 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (23 corresponding lines) Assets/NowUI/Extensions/Markup/NowMarkupState.cs:226— Assets/NowUI/Extensions/Markup/NowMarkupState.cs:226-248 | Assets/NowUI/Extensions/Markup/NowMarkupState.cs:284-306 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (23 corresponding lines) Assets/NowUI/Runtime/Lottie/NowLottieCache.cs:180— Assets/NowUI/Runtime/Lottie/NowLottieCache.cs:180-202 | Assets/NowUI/Extensions/Markdown/NowMarkdownImages.cs:580-602 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (23 corresponding lines) Assets/NowUI/Runtime/Now.cs:1533— Assets/NowUI/Runtime/Now.cs:1533-1555 | Assets/NowUI/Runtime/Now.cs:1576-1609 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (19 corresponding lines) · ×5
Edited copy of a member (19 corresponding lines) Assets/NowUI/Runtime/Controls/NowComboBox.cs:562— Assets/NowUI/Runtime/Controls/NowComboBox.cs:562-580 | Assets/NowUI/Runtime/Controls/NowDropdown.cs:365-383 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (19 corresponding lines) Assets/NowUI/Runtime/NowFont.cs:1740— Assets/NowUI/Runtime/NowFont.cs:1740-1758 | Assets/NowUI/Extensions/Markdown/NowMarkdownImages.cs:638-656 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (19 corresponding lines) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:3679— Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:3679-3697 | Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:3714-3732 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (19 corresponding lines) Assets/NowUI/Runtime/Controls/NowNumericExpression.cs:434— Assets/NowUI/Runtime/Controls/NowNumericExpression.cs:434-452 | Assets/NowUI/Runtime/Controls/NowNumericExpression.cs:1051-1069 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (19 corresponding lines) Assets/NowUI/Runtime/Lottie/NowLottieCache.cs:103— Assets/NowUI/Runtime/Lottie/NowLottieCache.cs:103-121 | Assets/NowUI/Extensions/Markdown/NowMarkdownImages.cs:173-191 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (8 corresponding lines) · ×5
Edited copy of a member (8 corresponding lines) Standalone/NowUI.Engine/Math/Matrix4x4.cs:330— Standalone/NowUI.Engine/Math/Matrix4x4.cs:330-337 | Standalone/NowUI.Engine/Math/Matrix4x4.cs:342-349 — 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) Assets/NowUI/Runtime/Controls/NowInspector.cs:930— Assets/NowUI/Runtime/Controls/NowInspector.cs:930-937 | Assets/NowUI/Runtime/Controls/NowInspector.cs:940-947 — 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) Standalone/NowUI.Engine/Math/Color.cs:101— Standalone/NowUI.Engine/Math/Color.cs:101-109 | Standalone/NowUI.Engine/Math/Vector4.cs:449-456 — 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) Standalone/NowUI.Desktop/WindowsTouchKeyboard.cs:40— Standalone/NowUI.Desktop/WindowsTouchKeyboard.cs:40-47 | Standalone/NowUI.Desktop/WindowsTouchKeyboard.cs:50-57 — 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) Assets/NowUI/Extensions/Markup/NowMarkupDocument.cs:1875— Assets/NowUI/Extensions/Markup/NowMarkupDocument.cs:1875-1882 | Assets/NowUI/Extensions/Markup/NowMarkupStyles.cs:140-147 — 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 (15 corresponding lines) · ×5
Edited copy of a member (15 corresponding lines) Assets/NowUI/Runtime/Controls/NowTextEdit.cs:283— Assets/NowUI/Runtime/Controls/NowTextEdit.cs:283-298 | Assets/NowUI/Runtime/Controls/NowTextEdit.cs:302-316 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (15 corresponding lines) Assets/NowUI/Runtime/Controls/NowRichTextParser.cs:386— Assets/NowUI/Runtime/Controls/NowRichTextParser.cs:386-401 | Assets/NowUI/Extensions/Markup/NowMarkupParser.cs:261-275 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (15 corresponding lines) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:1550— Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:1550-1564 | Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:1567-1583 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (15 corresponding lines) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:510— Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:510-524 | Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:1047-1063 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (15 corresponding lines) Standalone/NowUI.Engine/Math/Vector3.cs:135— Standalone/NowUI.Engine/Math/Vector3.cs:135-149 | Standalone/NowUI.Engine/Math/Vector4.cs:130-146 — 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 (6 corresponding lines) · ×5
Edited copy of a member (6 corresponding lines) Assets/NowUI/Runtime/NowUnityEditorControlRenderer.cs:132— Assets/NowUI/Runtime/NowUnityEditorControlRenderer.cs:132-137 | Assets/NowUI/Runtime/NowUnityEditorControlRenderer.cs:164-173 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (6 corresponding lines) Standalone/NowUI.Engine/Math/Color.cs:79— Standalone/NowUI.Engine/Math/Color.cs:79-86 | Standalone/NowUI.Engine/Math/Color32.cs:147-152 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (6 corresponding lines) Standalone/NowUI.Hosting/NowUnityTextureAssets.cs:314— Standalone/NowUI.Hosting/NowUnityTextureAssets.cs:314-319 | Standalone/NowUI.Hosting/NowUnityTextureAssets.cs:329-334 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (6 corresponding lines) Standalone/NowUI.Engine/Math/Vector3.cs:720— Standalone/NowUI.Engine/Math/Vector3.cs:720-725 | Standalone/NowUI.Engine/Math/Vector3Int.cs:201-206 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (6 corresponding lines) Assets/NowUI/Runtime/Lottie/NowJson.cs:406— Assets/NowUI/Runtime/Lottie/NowJson.cs:406-411 | Standalone/NowUI.Engine/Services/ColorUtility.cs:181-190 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (16 lines × 2) Assets/NowUI/Runtime/NowMesh.cs:1183— Assets/NowUI/Runtime/NowMesh.cs:1183-1198 | Assets/NowUI/Runtime/NowMesh.cs:1437-1452 — 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 `Assets/NowUI/Runtime/NowMesh.cs:1183` 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 (16 lines × 2) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6300— Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6300-6315 | Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6472-6487 — 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 `Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6300` 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 (16 lines × 2) Assets/NowUI/Runtime/Controls/NowComboBox.cs:563— Assets/NowUI/Runtime/Controls/NowComboBox.cs:563-578 | Assets/NowUI/Runtime/Controls/NowDropdown.cs:366-381 — before extracting anything, compare `Assets/NowUI/Runtime/Controls/NowComboBox.cs` and `Assets/NowUI/Runtime/Controls/NowDropdown.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 65 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 (16 lines × 2) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:3682— Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:3682-3697 | Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:3717-3732 — 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 `Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:3682` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (16 lines × 2) Assets/NowUI/Runtime/NowEffects.cs:467— Assets/NowUI/Runtime/NowEffects.cs:467-482 | Assets/NowUI/Runtime/NowEffects.cs:520-535 — 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 `Assets/NowUI/Runtime/NowEffects.cs:467` 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· Edited copy of a member (16 corresponding lines) · ×4
Edited copy of a member (16 corresponding lines) Standalone/NowUI.Engine/Data/Gradient.cs:328— Standalone/NowUI.Engine/Data/Gradient.cs:328-346 | Standalone/NowUI.Engine/Data/Gradient.cs:349-364 — 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) Standalone/NowUI.Engine/Backend/NowRecordingRenderBackend.cs:284— Standalone/NowUI.Engine/Backend/NowRecordingRenderBackend.cs:284-299 | Standalone/NowUI.Engine/Backend/NowRecordingRenderBackend.cs:304-319 — 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) Assets/NowUI/Runtime/NowFont.cs:1969— Assets/NowUI/Runtime/NowFont.cs:1969-1984 | Assets/NowUI/Runtime/NowFont.cs:1987-2002 — 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) Assets/NowUI/Extensions/CodeEditor/NowMarkupCodeLanguage.cs:775— Assets/NowUI/Extensions/CodeEditor/NowMarkupCodeLanguage.cs:775-794 | Assets/NowUI/Extensions/CodeEditor/NowMarkupCodeLanguage.cs:802-817 — 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 (14 corresponding lines) · ×4
Edited copy of a member (14 corresponding lines) Assets/NowUI/Runtime/Controls/NowValueControls.cs:133— Assets/NowUI/Runtime/Controls/NowValueControls.cs:133-146 | Assets/NowUI/Runtime/Controls/NowValueControls.cs:150-163 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (14 corresponding lines) Assets/NowUI/Runtime/NowFont.cs:5297— Assets/NowUI/Runtime/NowFont.cs:5297-5310 | Assets/NowUI/Runtime/NowFont.cs:5316-5329 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (14 corresponding lines) Assets/NowUI/Runtime/NowThemeAsset.cs:2457— Assets/NowUI/Runtime/NowThemeAsset.cs:2457-2474 | Assets/NowUI/Runtime/NowUnityEditorControlRenderer.cs:479-492 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (14 corresponding lines) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:1875— Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:1875-1888 | Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:1896-1909 — 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 (12 corresponding lines) · ×4
Edited copy of a member (12 corresponding lines) Assets/NowUI/Runtime/Controls/NowTextArea.cs:640— Assets/NowUI/Runtime/Controls/NowTextArea.cs:640-651 | Assets/NowUI/Runtime/Controls/NowTextMetrics.cs:123-139 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (12 corresponding lines) Assets/NowUI/Runtime/Controls/NowValueControls.cs:4486— Assets/NowUI/Runtime/Controls/NowValueControls.cs:4486-4497 | Assets/NowUI/Runtime/Controls/NowValueControls.cs:4552-4563 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (12 corresponding lines) Assets/NowUI/Runtime/Controls/NowOverlay.cs:1704— Assets/NowUI/Runtime/Controls/NowOverlay.cs:1704-1718 | Assets/NowUI/Runtime/Controls/NowOverlay.cs:1724-1735 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (12 corresponding lines) Assets/NowUI/Runtime/Now.cs:3477— Assets/NowUI/Runtime/Now.cs:3477-3488 | Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:2580-2591 — 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.
Duplicated block (10 lines × 3) Assets/NowUI/Runtime/Controls/NowFilePicker.cs:1460— Assets/NowUI/Runtime/Controls/NowFilePicker.cs:1460-1469 | Assets/NowUI/Runtime/Controls/NowFilePicker.cs:1565-1574 | Assets/NowUI/Runtime/Controls/NowFilePicker.cs:1764-1773 — 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 `Assets/NowUI/Runtime/Controls/NowFilePicker.cs:1460` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 3) Assets/NowUI/Runtime/NowGlass.cs:267— Assets/NowUI/Runtime/NowGlass.cs:267-276 | Assets/NowUI/Runtime/NowGradient.cs:970-979 | Assets/NowUI/Runtime/NowRipple.cs:121-130 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Assets/NowUI/Runtime/NowGlass.cs:267` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (10 lines × 3) Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:307— Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:307-316 | Assets/NowUI/Runtime/NowThemeAsset.cs:2434-2443 | Assets/NowUI/Runtime/NowUnityEditorControlRenderer.cs:459-468 — 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 `Assets/NowUI/Runtime/NowUnityEditorControlRenderer.cs:459` 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, `Assets/NowUI/Runtime/NowThemeAsset.cs:2434` calls `DrawFocusRing` and `Assets/NowUI/Runtime/NowUnityEditorControlRenderer.cs:459` 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 (10 lines × 3) Assets/NowUI/Extensions/Docking/NowDocking.cs:1720— Assets/NowUI/Extensions/Docking/NowDocking.cs:1720-1729 | Assets/NowUI/Extensions/Docking/NowDocking.cs:1734-1743 | Assets/NowUI/Extensions/Docking/NowDocking.cs:1757-1766 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Assets/NowUI/Extensions/Docking/NowDocking.cs:1767` calls `NowRect` and `Assets/NowUI/Extensions/Docking/NowDocking.cs:1744` 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.
IC1 · Incompleteness & stubs· Empty method body · ×4
Empty method body — does nothing with its inputs Assets/NowUI/Runtime/Controls/NowFilePicker.Thumbnails.Standalone.cs:23— `PollThumbnailRequests` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it.
Empty method body — does nothing with its inputs Assets/NowUI/Runtime/Controls/NowFilePicker.Thumbnails.Standalone.cs:27— `AbortThumbnailRequest` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it.
Empty method body — does nothing with its inputs Assets/NowUI/Runtime/Standalone/NowLottieBurstTessellator.Standalone.cs:51— `InvalidateClip` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it.
Empty method body — does nothing with its inputs Assets/NowUI/Runtime/Standalone/NowWorldGraphic.Standalone.cs:19— `ReleaseCachedMaterial` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it.
Repeated repair: Assets/NowUI/Runtime/NowMaterialControlRenderer.cs Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:82— Assets/NowUI/Runtime/NowMaterialControlRenderer.cs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 9 (its worst body is NowMaterialControlRenderer.ResolveDefaultButtonTextColor at line 82), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix: font artifacts”; “fix: new dark unity editor theme”; “fix: material theme improvements”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-03..2026-11-01, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-03 11:56:49 +00:00' --until='2026-11-01 11:56:49 +00:00' --full-history --no-merges -- Assets/NowUI/Runtime/NowMaterialControlRenderer.cs`: 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.
Repeated repair: Assets/NowUI/Runtime/NowGUI.cs Assets/NowUI/Runtime/NowGUI.cs:493— Assets/NowUI/Runtime/NowGUI.cs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 13 (its worst body is NowGUI.CleanupUnusedEntriesCore at line 493), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix: editor scrolling”; “fix: new dark unity editor theme”; “fix: BREAKING CHANGE reworking how auto IDs work and other input related fixes”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-03..2026-11-01, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-03 11:56:49 +00:00' --until='2026-11-01 11:56:49 +00:00' --full-history --no-merges -- Assets/NowUI/Runtime/NowGUI.cs`: 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.
Repeated repair: Assets/NowUI/Runtime/NowDrawList.cs Assets/NowUI/Runtime/NowDrawList.cs:155— Assets/NowUI/Runtime/NowDrawList.cs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 8 (its worst body is NowDrawList.Begin at line 155), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix: editor scrolling”; “fix: BREAKING CHANGE reworking how auto IDs work and other input related fixes”; “fix: honor canvas gamma vertex colors”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-03..2026-11-01, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-03 11:56:49 +00:00' --until='2026-11-01 11:56:49 +00:00' --full-history --no-merges -- Assets/NowUI/Runtime/NowDrawList.cs`: 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.
D4 · Code Duplication· Members sharing a duplicated core (4 members, 50+ identical tokens) · ×3
Members sharing a duplicated core (4 members, 50+ identical tokens) Standalone/NowUI.Engine/Math/Vector4.cs:225— Standalone/NowUI.Engine/Math/Vector4.cs:225-232 | Standalone/NowUI.Engine/Math/Vector4.cs:235-242 | Standalone/NowUI.Engine/Math/Vector4.cs:245-251 | Standalone/NowUI.Engine/Math/Vector4.cs:254-260 — 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) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:351— Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:351-1319 | Assets/NowUI/Runtime/Controls/NowTextArea.cs:132-574 | Assets/NowUI/Runtime/Controls/NowTextField.cs:1254-1695 | Assets/NowUI/Runtime/Controls/NowTextSelection.cs:104-215 — 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) Assets/NowUI/Runtime/Controls/NowTextField.cs:692— Assets/NowUI/Runtime/Controls/NowTextField.cs:692-767 | Assets/NowUI/Runtime/Controls/NowTextField.cs:770-855 | Assets/NowUI/Runtime/Controls/NowTextField.cs:858-931 | Assets/NowUI/Runtime/Controls/NowTextField.cs:934-1020 — 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 (46 corresponding lines) · ×3
Edited copy of a member (46 corresponding lines) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:2812— Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:2812-2862 | Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:3109-3154 — These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (46 corresponding lines) Assets/NowUI/Runtime/Controls/NowDatePicker.cs:424— Assets/NowUI/Runtime/Controls/NowDatePicker.cs:424-469 | Assets/NowUI/Runtime/Controls/NowDatePicker.cs:472-523 — These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (46 corresponding lines) Assets/NowUI/Runtime/Lottie/NowLottieNative.cs:343— Assets/NowUI/Runtime/Lottie/NowLottieNative.cs:343-397 | Assets/NowUI/Runtime/Lottie/NowLottieNative.cs:425-470 — These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (24 corresponding lines) · ×3
Edited copy of a member (24 corresponding lines) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6835— Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6835-6859 | Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6866-6889 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (24 corresponding lines) Assets/NowUI/Runtime/Controls/NowValueControls.cs:2058— Assets/NowUI/Runtime/Controls/NowValueControls.cs:2058-2081 | Assets/NowUI/Runtime/Controls/NowValueControls.cs:2084-2108 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (24 corresponding lines) Assets/NowUI/Runtime/Lottie/NowLottieNative.cs:485— Assets/NowUI/Runtime/Lottie/NowLottieNative.cs:485-508 | Assets/NowUI/Runtime/Lottie/NowLottieNative.cs:519-544 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (18 corresponding lines) · ×3
Edited copy of a member (18 corresponding lines) Assets/NowUI/Extensions/Sdf/NowSdf.cs:1201— Assets/NowUI/Extensions/Sdf/NowSdf.cs:1201-1218 | Assets/NowUI/Extensions/Sdf/NowSdf.cs:4106-4123 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (18 corresponding lines) Assets/NowUI/Runtime/Controls/NowOverlay.cs:1502— Assets/NowUI/Runtime/Controls/NowOverlay.cs:1502-1519 | Assets/NowUI/Runtime/Controls/NowOverlay.cs:1527-1544 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (18 corresponding lines) Assets/NowUI/Runtime/Input/NowIMGUIInputProvider.cs:821— Assets/NowUI/Runtime/Input/NowIMGUIInputProvider.cs:821-838 | Assets/NowUI/Runtime/Input/NowUIToolkitInputProvider.cs:344-362 — 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 (1 corresponding lines) · ×3
Edited copy of a member (1 corresponding lines) Standalone/NowUI.Desktop/DesktopRenderBackend.cs:937— Standalone/NowUI.Desktop/DesktopRenderBackend.cs:937-937 | Standalone/NowUI.Browser/WebGL2Backend.cs:1071-1076 — These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (1 corresponding lines) Standalone/NowUI.Desktop/DesktopInput.Devices.cs:170— Standalone/NowUI.Desktop/DesktopInput.Devices.cs:170-174 | Standalone/NowUI.Browser/BrowserInput.cs:194-194 — These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (1 corresponding lines) Standalone/NowUI.Engine/Math/Vector4.cs:297— Standalone/NowUI.Engine/Math/Vector4.cs:297-299 | Standalone/NowUI.Engine/Mathematics/Mathematics.cs:253-253 — These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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, 3+ corresponding lines) · ×3
Edited copies of one member (3 members, 3+ corresponding lines) Assets/NowUI/Extensions/CodeEditor/NowCSharpLanguage.cs:417— Assets/NowUI/Extensions/CodeEditor/NowCSharpLanguage.cs:417-419 | Assets/NowUI/Extensions/CodeEditor/NowJsonLanguage.cs:413-415 | REDACTED:173-175 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 3+ corresponding lines) Standalone/NowUI.Engine/Math/Vector3.cs:856— Standalone/NowUI.Engine/Math/Vector3.cs:856-858 | Standalone/NowUI.Engine/Math/Vector3Int.cs:267-269 | Standalone/NowUI.Engine/Math/Vector4.cs:412-414 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 3+ corresponding lines) Standalone/NowUI.Engine/Math/Vector3.cs:862— Standalone/NowUI.Engine/Math/Vector3.cs:862-864 | Standalone/NowUI.Engine/Math/Vector3Int.cs:273-275 | Standalone/NowUI.Engine/Math/Vector4.cs:418-420 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 4+ corresponding lines) · ×3
Edited copies of one member (3 members, 4+ corresponding lines) Assets/NowUI/Extensions/Sdf/NowSdfGradient.cs:65— Assets/NowUI/Extensions/Sdf/NowSdfGradient.cs:65-68 | Assets/NowUI/Runtime/NowGradient.cs:276-279 | Assets/NowUI/Runtime/NowText.cs:489-492 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 4+ corresponding lines) Standalone/NowUI.Engine/Graphics/Material.cs:273— Standalone/NowUI.Engine/Graphics/Material.cs:273-276 | Standalone/NowUI.Engine/Graphics/MaterialPropertyBlock.cs:158-161 | Standalone/NowUI.Engine/Graphics/Shader.cs:248-251 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 4+ corresponding lines) Standalone/NowUI.Engine/Math/Mathf.cs:245— Standalone/NowUI.Engine/Math/Mathf.cs:245-248 | Standalone/NowUI.Engine/Math/Vector2.cs:452-455 | Standalone/NowUI.Engine/Math/Vector3.cs:462-465 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Duplicated block (19 lines × 2) Assets/NowUI/Runtime/NowEffects.cs:498— Assets/NowUI/Runtime/NowEffects.cs:498-516 | Assets/NowUI/Runtime/NowEffects.cs:542-560 — 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 `Assets/NowUI/Runtime/NowEffects.cs:498` 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) Assets/NowUI/Runtime/Controls/NowTextField.cs:776— Assets/NowUI/Runtime/Controls/NowTextField.cs:776-794 | Assets/NowUI/Runtime/Controls/NowTextField.cs:940-958 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind `value` to `ref int` in one and `ref long` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (19 lines × 2) Assets/NowUI/Extensions/Markdown/NowMarkdownImages.Standalone.cs:262— Assets/NowUI/Extensions/Markdown/NowMarkdownImages.Standalone.cs:262-280 | Assets/NowUI/Runtime/Lottie/NowLottieAsset.Standalone.cs:307-325 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (18 lines × 2) Assets/NowUI/Runtime/Input/NowInputSnapshot.cs:144— Assets/NowUI/Runtime/Input/NowInputSnapshot.cs:144-161 | Assets/NowUI/Runtime/Input/NowInputSnapshot.cs:197-214 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Assets/NowUI/Runtime/Input/NowInputSnapshot.cs:144` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (18 lines × 2) Assets/NowUI/Extensions/Markup/NowMarkupDocument.cs:1096— Assets/NowUI/Extensions/Markup/NowMarkupDocument.cs:1096-1113 | Assets/NowUI/Extensions/Markup/NowMarkupDocument.cs:1269-1286 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (18 lines × 2) Assets/NowUI/Runtime/Controls/NowScrollView.cs:602— Assets/NowUI/Runtime/Controls/NowScrollView.cs:602-619 | Assets/NowUI/Runtime/Controls/NowScrollView.cs:677-694 — 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 `Assets/NowUI/Runtime/Controls/NowScrollView.cs:602` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) Assets/NowUI/Runtime/Lottie/NowLottieModel.cs:968— Assets/NowUI/Runtime/Lottie/NowLottieModel.cs:968-980 | Assets/NowUI/Runtime/Lottie/NowLottieModel.cs:1245-1257 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:704— Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:704-716 | Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:1038-1050 — 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 `Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:704` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:1052` calls `Item`, `Chord` and `Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:718` 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 (13 lines × 2) Assets/NowUI/Runtime/NowLine.cs:560— Assets/NowUI/Runtime/NowLine.cs:560-572 | Assets/NowUI/Runtime/NowLine.cs:1096-1108 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) Standalone/NowUI.Engine/Math/Vector2.cs:223— Standalone/NowUI.Engine/Math/Vector2.cs:223-237 | Standalone/NowUI.Engine/Math/Vector2.cs:241-255 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind `current` to `Vector2` in one and `in Vector2` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (15 lines × 2) Assets/NowUI/Runtime/NowMesh.cs:1116— Assets/NowUI/Runtime/NowMesh.cs:1116-1130 | Assets/NowUI/Runtime/NowMesh.cs:1134-1148 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) Assets/NowUI/Runtime/NowMesh.cs:1370— Assets/NowUI/Runtime/NowMesh.cs:1370-1384 | Assets/NowUI/Runtime/NowMesh.cs:1388-1402 — 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.
Low cohesion: NowControlRenderer (LCOM4 27) Assets/NowUI/Runtime/NowThemeAsset.cs:2005— NowControlRenderer's methods fall into 27 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 27 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: NowNodeDefinition (LCOM4 6) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:314— NowNodeDefinition'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: Texture (LCOM4 6) Standalone/NowUI.Engine/Graphics/Texture.cs:27— Texture'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.
X2 · Cancellation propagation· Async method without CancellationToken · ×3
Async method without CancellationToken: ReadOutput Standalone/NowUI.Cli/ProjectBuilder.cs:63— No CancellationToken parameter — this work can't be stopped early once started.
Async method without CancellationToken: CreateAsync Standalone/NowUI.Browser/BrowserInput.cs:41— No CancellationToken parameter — this work can't be stopped early once started.
Async method without CancellationToken: CreateAsync Standalone/NowUI.Browser/WebGL2Backend.cs:243— No CancellationToken parameter — this work can't be stopped early once started.
nowui-gl.applyUniformBlock (cyclomatic 28) Assets/NowUI/Native~/browser/wwwroot/nowui-gl.js:792— nowui-gl.applyUniformBlock 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.
nowui-gl.applyUniformBlock (cyclomatic 28) Standalone/NowUI.Browser/wwwroot/nowui-gl.js:792— nowui-gl.applyUniformBlock 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.
nowui-input.pollGamepads (cyclomatic 17) Assets/NowUI/Native~/browser/wwwroot/nowui-input.js:167— nowui-input.pollGamepads has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
nowui-input.pollGamepads (cyclomatic 17) Standalone/NowUI.Browser/wwwroot/nowui-input.js:167— nowui-input.pollGamepads has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
nowui-gl.createRenderTexture (cyclomatic 17) Assets/NowUI/Native~/browser/wwwroot/nowui-gl.js:964— nowui-gl.createRenderTexture has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
nowui-gl.createRenderTexture (cyclomatic 17) Standalone/NowUI.Browser/wwwroot/nowui-gl.js:964— nowui-gl.createRenderTexture has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
init (cyclomatic 17) Standalone/NowUI.Browser/wwwroot/nowui-input.js:183— init has cyclomatic complexity 17 (threshold 15). Of this number, 9 points are the body's own statements and 8 belong to 8 function items inside it that branch. 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.
init (cyclomatic 17) Assets/NowUI/Native~/browser/wwwroot/nowui-input.js:183— init has cyclomatic complexity 17 (threshold 15). Of this number, 9 points are the body's own statements and 8 belong to 8 function items inside it that branch. 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.
NowComboBox.Draw (cognitive 32) Assets/NowUI/Runtime/Controls/NowComboBox.cs:134— NowComboBox.Draw has cognitive complexity 32 (threshold 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.
NowComboBox.Draw (cognitive 32) Assets/NowUI/Runtime/Controls/NowComboBox.cs:237— NowComboBox.Draw has cognitive complexity 32 (threshold 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.
nowui-gl.applyUniformBlock (cognitive 27) Assets/NowUI/Native~/browser/wwwroot/nowui-gl.js:792— nowui-gl.applyUniformBlock has cognitive complexity 27 (threshold 15). Drivers by points: if/else 27. 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.
nowui-gl.applyUniformBlock (cognitive 27) Standalone/NowUI.Browser/wwwroot/nowui-gl.js:792— nowui-gl.applyUniformBlock has cognitive complexity 27 (threshold 15). Drivers by points: if/else 27. 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.
nowui-gl.createRenderTexture (cognitive 21) Assets/NowUI/Native~/browser/wwwroot/nowui-gl.js:964— nowui-gl.createRenderTexture has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (11 pts), ternaries 4 (8 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
nowui-gl.createRenderTexture (cognitive 21) Standalone/NowUI.Browser/wwwroot/nowui-gl.js:964— nowui-gl.createRenderTexture has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (11 pts), ternaries 4 (8 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
nowui-input.pointerUp (cognitive 19) Assets/NowUI/Native~/browser/wwwroot/nowui-input.js:79— nowui-input.pointerUp has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 2 (5 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
nowui-input.pointerUp (cognitive 19) Standalone/NowUI.Browser/wwwroot/nowui-input.js:79— nowui-input.pointerUp has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 2 (5 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
nowui-input.pollGamepads (cognitive 18) Assets/NowUI/Native~/browser/wwwroot/nowui-input.js:167— nowui-input.pollGamepads has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 5, loops 3 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
nowui-input.pollGamepads (cognitive 18) Standalone/NowUI.Browser/wwwroot/nowui-input.js:167— nowui-input.pollGamepads has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 5, loops 3 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
nowui-input.beforeInput (cognitive 16) Assets/NowUI/Native~/browser/wwwroot/nowui-input.js:124— nowui-input.beforeInput has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 2 (5 pts), boolean chains 4 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
nowui-input.beforeInput (cognitive 16) Standalone/NowUI.Browser/wwwroot/nowui-input.js:124— nowui-input.beforeInput has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 2 (5 pts), boolean chains 4 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D4 · Code Duplication· Edited copy of a member (47 corresponding lines) · ×2
Edited copy of a member (47 corresponding lines) Assets/NowUI/Runtime/Controls/NowValueControls.cs:1412— Assets/NowUI/Runtime/Controls/NowValueControls.cs:1412-1460 | Assets/NowUI/Runtime/Controls/NowValueControls.cs:2842-2888 — 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.
Edited copy of a member (47 corresponding lines) Assets/NowUI/Runtime/Lottie/NowJson.cs:204— Assets/NowUI/Runtime/Lottie/NowJson.cs:204-262 | Assets/NowUI/Runtime/Lottie/NowJson.cs:271-317 — 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 copy of a member (37 corresponding lines) · ×2
Edited copy of a member (37 corresponding lines) Assets/NowUI/Runtime/Controls/NowDropdown.cs:222— Assets/NowUI/Runtime/Controls/NowDropdown.cs:222-268 | Assets/NowUI/Runtime/Controls/NowMaskField.cs:232-268 — 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) Assets/NowUI/Runtime/NowDrawList.cs:530— Assets/NowUI/Runtime/NowDrawList.cs:530-572 | Assets/NowUI/Runtime/NowDrawList.cs:575-611 — 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 (34 corresponding lines) · ×2
Edited copy of a member (34 corresponding lines) Assets/NowUI/Runtime/NowFontCompiler.cs:1185— Assets/NowUI/Runtime/NowFontCompiler.cs:1185-1223 | Assets/NowUI/Runtime/NowFontCompiler.cs:1231-1264 — 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) Assets/NowUI/Runtime/NowFontCompiler.cs:729— Assets/NowUI/Runtime/NowFontCompiler.cs:729-762 | Assets/NowUI/Runtime/NowFontCompiler.cs:768-803 — These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 17+ corresponding lines) · ×2
Edited copies of one member (3 members, 17+ corresponding lines) Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:485— Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:485-501 | Assets/NowUI/Runtime/NowLine.cs:653-670 | Assets/NowUI/Runtime/NowLine.cs:830-846 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 17+ corresponding lines) Assets/NowUI/Runtime/Controls/NowValueControls.cs:2461— Assets/NowUI/Runtime/Controls/NowValueControls.cs:2461-2477 | Assets/NowUI/Runtime/Controls/NowValueControls.cs:2480-2496 | Assets/NowUI/Runtime/Controls/NowValueControls.cs:4018-4034 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (31 corresponding lines) · ×2
Edited copy of a member (31 corresponding lines) Assets/NowUI/Runtime/Now.cs:3218— Assets/NowUI/Runtime/Now.cs:3218-3255 | Assets/NowUI/Runtime/Now.cs:3324-3354 — 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.
Edited copy of a member (31 corresponding lines) Assets/NowUI/Runtime/Controls/NowOverlay.cs:1173— Assets/NowUI/Runtime/Controls/NowOverlay.cs:1173-1209 | Assets/NowUI/Runtime/Controls/NowOverlay.cs:1241-1271 — 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 (22 corresponding lines) · ×2
Edited copy of a member (22 corresponding lines) Assets/NowUI/Runtime/Controls/NowFilePicker.cs:1233— Assets/NowUI/Runtime/Controls/NowFilePicker.cs:1233-1255 | Assets/NowUI/Runtime/NowUnityEditorControlRenderer.cs:987-1008 — 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) Assets/NowUI/Runtime/Controls/NowNumericExpression.cs:392— Assets/NowUI/Runtime/Controls/NowNumericExpression.cs:392-416 | Assets/NowUI/Runtime/Controls/NowNumericExpression.cs:1027-1048 — 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 (38 corresponding lines) · ×2
Edited copy of a member (38 corresponding lines) Assets/NowUI/Runtime/Controls/NowNumericExpression.cs:352— Assets/NowUI/Runtime/Controls/NowNumericExpression.cs:352-389 | Assets/NowUI/Runtime/Controls/NowNumericExpression.cs:957-999 — These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (38 corresponding lines) Assets/NowUI/Runtime/NowLayout.cs:1631— Assets/NowUI/Runtime/NowLayout.cs:1631-1668 | Assets/NowUI/Runtime/NowLayout.cs:1751-1788 — These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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, 13+ corresponding lines) · ×2
Edited copies of one member (4 members, 13+ corresponding lines) Assets/NowUI/Runtime/Controls/NowValueControls.cs:4500— Assets/NowUI/Runtime/Controls/NowValueControls.cs:4500-4512 | Assets/NowUI/Runtime/Controls/NowValueControls.cs:4520-4533 | Assets/NowUI/Runtime/Controls/NowValueControls.cs:4536-4549 | Assets/NowUI/Runtime/Controls/NowValueControls.cs:4566-4578 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
Edited copies of one member (4 members, 13+ corresponding lines) Standalone/NowUI.Engine/Math/Mathf.cs:63— Standalone/NowUI.Engine/Math/Mathf.cs:63-75 | Standalone/NowUI.Engine/Math/Mathf.cs:80-92 | Standalone/NowUI.Engine/Math/Mathf.cs:97-109 | Standalone/NowUI.Engine/Math/Mathf.cs:114-126 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 20+ corresponding lines) · ×2
Edited copies of one member (3 members, 20+ corresponding lines) Assets/NowUI/Runtime/NowFont.cs:5466— Assets/NowUI/Runtime/NowFont.cs:5466-5485 | Assets/NowUI/Runtime/NowFont.cs:5488-5507 | Assets/NowUI/Runtime/NowFont.cs:5510-5529 — 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.
Edited copies of one member (3 members, 20+ corresponding lines) Assets/NowUI/Runtime/Controls/NowViewStack.cs:800— Assets/NowUI/Runtime/Controls/NowViewStack.cs:800-819 | Assets/NowUI/Runtime/Controls/NowViewStack.cs:822-842 | Assets/NowUI/Runtime/Controls/NowViewStack.cs:890-910 — 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 copy of a member (26 corresponding lines) · ×2
Edited copy of a member (26 corresponding lines) Assets/NowUI/Runtime/Controls/NowFilePicker.cs:3026— Assets/NowUI/Runtime/Controls/NowFilePicker.cs:3026-3055 | Assets/NowUI/Runtime/Controls/NowFilePicker.cs:3075-3100 — 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) Assets/NowUI/Runtime/NowFrame.cs:114— Assets/NowUI/Runtime/NowFrame.cs:114-139 | Assets/NowUI/Runtime/NowFrame.cs:172-199 — These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 13+ corresponding lines) · ×2
Edited copies of one member (3 members, 13+ corresponding lines) Assets/NowUI/Runtime/NowEase.cs:394— Assets/NowUI/Runtime/NowEase.cs:394-407 | Assets/NowUI/Runtime/NowEase.cs:435-448 | Assets/NowUI/Runtime/NowEase.cs:506-518 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 13+ corresponding lines) Assets/NowUI/Runtime/Controls/NowFocus.cs:1037— Assets/NowUI/Runtime/Controls/NowFocus.cs:1037-1051 | Assets/NowUI/Runtime/Controls/NowOverlay.cs:1551-1563 | Assets/NowUI/Runtime/Controls/NowOverlay.cs:1566-1578 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 9+ corresponding lines) · ×2
Edited copies of one member (3 members, 9+ corresponding lines) Standalone/NowUI.Engine/Math/Quaternion.cs:57— Standalone/NowUI.Engine/Math/Quaternion.cs:57-67 | Standalone/NowUI.Engine/Math/Vector3.cs:62-70 | Standalone/NowUI.Engine/Math/Vector4.cs:70-80 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 9+ corresponding lines) Standalone/NowUI.Engine/Math/Quaternion.cs:45— Standalone/NowUI.Engine/Math/Quaternion.cs:45-55 | Standalone/NowUI.Engine/Math/Vector3.cs:51-59 | Standalone/NowUI.Engine/Math/Vector4.cs:58-68 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Duplicated block (25 lines × 2) Assets/NowUI/Runtime/Controls/NowOverlay.cs:1247— Assets/NowUI/Runtime/Controls/NowOverlay.cs:1247-1271 | Assets/NowUI/Runtime/Controls/NowOverlay.cs:1285-1309 — 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 `Assets/NowUI/Runtime/Controls/NowOverlay.cs:1247` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (25 lines × 2) Assets/NowUI/Runtime/NowEffects.cs:1030— Assets/NowUI/Runtime/NowEffects.cs:1030-1055 | Assets/NowUI/Runtime/NowEffects.cs:1133-1157 — 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 `Assets/NowUI/Runtime/NowEffects.cs:1030` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (11–12 lines × 2) Assets/NowUI/Runtime/NowFontCompiler.cs:1396— Assets/NowUI/Runtime/NowFontCompiler.cs:1396-1406 | Assets/NowUI/Runtime/NowTextShaper.cs:212-223 — 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–12 lines × 2) Assets/NowUI/Runtime/NowMesh.cs:762— Assets/NowUI/Runtime/NowMesh.cs:762-772 | Assets/NowUI/Runtime/NowMesh.cs:1486-1497 — 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 × 3) Assets/NowUI/Runtime/NowGlassRenderer.cs:240— Assets/NowUI/Runtime/NowGlassRenderer.cs:240-246 | Assets/NowUI/Runtime/NowGlassRenderer.cs:336-342 | Assets/NowUI/Runtime/NowGlassRenderer.cs:589-595 — 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 `Assets/NowUI/Runtime/NowGlassRenderer.cs:240` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. 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 (7 lines × 3) Assets/NowUI/Extensions/Markup/NowMarkupDocument.cs:1876— Assets/NowUI/Extensions/Markup/NowMarkupDocument.cs:1876-1882 | Assets/NowUI/Extensions/Markup/NowMarkupStyles.cs:141-147 | Assets/NowUI/Extensions/Markup/NowMarkupStyles.cs:583-589 — 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. 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.
IC1 · Incompleteness & stubs· Both branches open with the same statements · ×2
Both branches open with the same statements — the condition does not decide them Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:3126— The first 2 statements of the `if` and of the `else` are identical, so they run on both paths regardless of the condition. Lift them above the `if` — leaving them duplicated inside makes the branches read as though they handled this differently.
Both branches open with the same statements — the condition does not decide them Standalone/NowUI.Engine/Math/Color.cs:217— The first 3 statements of the `if` and of the `else` are identical, so they run on both paths regardless of the condition. Lift them above the `if` — leaving them duplicated inside makes the branches read as though they handled this differently.
Unfinished branch — throws a "not implemented" exception Assets/NowUI/Extensions/Sdf/NowSdf.cs:4626— The branch `if (!finiteAbi || declaredAbi != abi || abi < NowSdf.MinimumMaterialAbiVersion || abi > NowSdf.MaterialAbiVersion)` throws `ArgumentException` while the member's other paths do the work — the branch was never written, so every input that reaches it fails at run time. Implement the branch, or reject the input where it enters with an exception that says it is not supported.
Unfinished branch — throws a "not implemented" exception Standalone/NowUI.Browser/WebGL2Backend.cs:532— The branch `if (!IsPortedShader(shaderName))` throws `NotSupportedException` while the member's other paths do the work — the branch was never written, so every input that reaches it fails at run time. Implement the branch, or reject the input where it enters with an exception that says it is not supported.
Outbound HTTP without resilience Standalone/NowUI.Browser/BrowserFetchProvider.cs:12— `new HttpClient(new HttpClientHandler { AllowAutoRedirect = false })` builds an outbound HTTP client and nothing bounds it: no timeout is set on it and no retry or resilience policy wraps its calls in the type that owns it. This codebase ships libraries/tools rather than a service it operates, so the failure lands as a hung caller — a build step, a CLI run, a UI thread — with no way out.
Outbound HTTP without resilience Standalone/NowUI.Hosting/NowHttpFetchProvider.cs:30— `new HttpClient(new SocketsHttpHandler { AllowAutoRedirect = false, AutomaticD...` builds an outbound HTTP client, and what is applied to it does not bound it. Its `Timeout` is set to `Timeout.InfiniteTimeSpan`, which removes HttpClient's own bound rather than setting one. This codebase ships libraries/tools rather than a service it operates, so the failure lands as a hung caller — a build step, a CLI run, a UI thread — with no way out.
C1 · Data Protection· No data-protection/encryption · ×1
No data-protection/encryption — No data-protection or encryption usage (ASP.NET Data Protection, AES, column encryption, PBKDF2) was found — sensitive data at rest may be unprotected. If TDE/KMS/vault is delegated to infrastructure, ignore.
NowCodeEditor.Draw (cyclomatic 196) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:350— NowCodeEditor.Draw has cyclomatic complexity 196 (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.
NowTextField.DrawText (cyclomatic 105) Assets/NowUI/Runtime/Controls/NowTextField.cs:1249— NowTextField.DrawText has cyclomatic complexity 105 (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.
NowTextArea.Draw (cyclomatic 83) Assets/NowUI/Runtime/Controls/NowTextArea.cs:131— NowTextArea.Draw has cyclomatic complexity 83 (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.
BrowserInput.DrainPacket (cyclomatic 83) Standalone/NowUI.Browser/BrowserInput.cs:79— BrowserInput.DrainPacket has cyclomatic complexity 83 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
RenderOptions.Parse (cyclomatic 68) Standalone/NowUI.Cli/RenderOptions.cs:47— RenderOptions.Parse has cyclomatic complexity 68 (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.
NowKeyInput.FromIMGUIKeyCode (cyclomatic 66) Assets/NowUI/Runtime/Input/NowKeyInput.cs:173— NowKeyInput.FromIMGUIKeyCode has cyclomatic complexity 66 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
NowNodeGraphCanvas.HandleInteractions (cyclomatic 66) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:4933— NowNodeGraphCanvas.HandleInteractions has cyclomatic complexity 66 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DesktopKeys.Map (cyclomatic 62) Standalone/NowUI.Desktop/DesktopKeys.cs:9— DesktopKeys.Map has cyclomatic complexity 62 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
NowInspectorGui.DrawControlCell (cyclomatic 55) Assets/NowUI/Runtime/Controls/NowInspector.cs:455— NowInspectorGui.DrawControlCell has cyclomatic complexity 55 (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.
NowFilePicker.TryReadEncodedImageSize (cyclomatic 52) Assets/NowUI/Runtime/Controls/NowFilePicker.cs:2199— NowFilePicker.TryReadEncodedImageSize has cyclomatic complexity 52 (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.
NowFocus.ProcessNavigation (cyclomatic 52) Assets/NowUI/Runtime/Controls/NowFocus.cs:1857— NowFocus.ProcessNavigation has cyclomatic complexity 52 (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.
NowProjectAssets.LoadResolved (cyclomatic 52) Standalone/NowUI.Hosting/NowProjectAssets.cs:147— NowProjectAssets.LoadResolved has cyclomatic complexity 52 (threshold 15). Of this number, 44 points are the body's own statements and 8 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowMarkupDocument.Cache (cyclomatic 46) Assets/NowUI/Extensions/Markup/NowMarkupDocument.cs:459— NowMarkupDocument.Cache has cyclomatic complexity 46 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This is NOT this file's highest cyclomatic complexity: NowMarkupDocument.KindOf (cyclomatic 50) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
NowInspectorGui.ClassifyUncached (cyclomatic 45) Assets/NowUI/Runtime/Controls/NowInspector.cs:1279— NowInspectorGui.ClassifyUncached has cyclomatic complexity 45 (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.
NowCodeEditor.DrawVisuals (cyclomatic 45) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:1333— NowCodeEditor.DrawVisuals has cyclomatic complexity 45 (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.
NowMarkdownDocument.DrawResolved (cyclomatic 45) Assets/NowUI/Extensions/Markdown/NowMarkdownDocument.cs:268— NowMarkdownDocument.DrawResolved has cyclomatic complexity 45 (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.
NowNodeGraphContextMenu.Draw (cyclomatic 44) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:3266— NowNodeGraphContextMenu.Draw has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowInput.Interact (cyclomatic 43) Assets/NowUI/Runtime/Input/NowInput.cs:996— NowInput.Interact has cyclomatic complexity 43 (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.
NowMarkdownCodeLanguage.TokenizeLine (cyclomatic 42) Assets/NowUI/Extensions/CodeEditor/NowMarkdownCodeLanguage.cs:36— NowMarkdownCodeLanguage.TokenizeLine has cyclomatic complexity 42 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
NowMarkdownSyntax.TokenizeLine (cyclomatic 42) Assets/NowUI/Extensions/Markdown/NowMarkdownSyntax.cs:120— NowMarkdownSyntax.TokenizeLine 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.
BrowserAssets.Stage (cyclomatic 42) Standalone/NowUI.Cli/BrowserAssets.cs:18— BrowserAssets.Stage 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.
NowMarkdownImages.TryGetEncodedDimensions (cyclomatic 41) Assets/NowUI/Extensions/Markdown/NowMarkdownImages.cs:424— NowMarkdownImages.TryGetEncodedDimensions has cyclomatic complexity 41 (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.
NowJsonLanguage.TokenizeLine (cyclomatic 40) Assets/NowUI/Extensions/CodeEditor/NowJsonLanguage.cs:30— NowJsonLanguage.TokenizeLine has cyclomatic complexity 40 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
DesktopInput.PublishDeviceInput (cyclomatic 40) Standalone/NowUI.Desktop/DesktopInput.Devices.cs:98— DesktopInput.PublishDeviceInput has cyclomatic complexity 40 (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.
NowIMGUIInputProvider.TryGetSnapshot (cyclomatic 39) Assets/NowUI/Runtime/Input/NowIMGUIInputProvider.cs:175— NowIMGUIInputProvider.TryGetSnapshot has cyclomatic complexity 39 (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.
NowNodeGraphCanvas.HandleKeyboardShortcuts (cyclomatic 39) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:4023— NowNodeGraphCanvas.HandleKeyboardShortcuts has cyclomatic complexity 39 (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.
NowUnityTextureAssets.LoadSprite (cyclomatic 37) Standalone/NowUI.Hosting/NowUnityTextureAssets.cs:91— NowUnityTextureAssets.LoadSprite has cyclomatic complexity 37 (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.
Now.DrawRect (cyclomatic 36) Assets/NowUI/Runtime/Now.cs:2598— Now.DrawRect has cyclomatic complexity 36 (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.
Now.EmitLineStroke (cyclomatic 36) Assets/NowUI/Runtime/NowLine.cs:1170— Now.EmitLineStroke has cyclomatic complexity 36 (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.
NowCodeEditor.DrawOccurrenceHighlights (cyclomatic 36) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:1703— NowCodeEditor.DrawOccurrenceHighlights has cyclomatic complexity 36 (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.
NowContextMenu.DrawEntry (cyclomatic 34) Assets/NowUI/Runtime/Controls/NowContextMenu.cs:1217— NowContextMenu.DrawEntry has cyclomatic complexity 34 (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.
NowRichText.DrawRuns (cyclomatic 34) Assets/NowUI/Runtime/Controls/NowRichText.cs:797— NowRichText.DrawRuns has cyclomatic complexity 34 (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.
NowLayout.AllocateWrapped (cyclomatic 34) Assets/NowUI/Runtime/NowLayout.cs:3060— NowLayout.AllocateWrapped has cyclomatic complexity 34 (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.
NowTextWrap.Layout (cyclomatic 33) Assets/NowUI/Runtime/NowTextWrap.cs:72— NowTextWrap.Layout has cyclomatic complexity 33 (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.
NowCodeEditor.DrawDiagnosticTooltip (cyclomatic 33) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:2140— NowCodeEditor.DrawDiagnosticTooltip has cyclomatic complexity 33 (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.
NowCodeEditor.Rebuild (cyclomatic 33) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:3319— NowCodeEditor.Rebuild has cyclomatic complexity 33 (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.
NowCSharpLanguage.TokenizeLine (cyclomatic 33) Assets/NowUI/Extensions/CodeEditor/NowCSharpLanguage.cs:118— NowCSharpLanguage.TokenizeLine has cyclomatic complexity 33 (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.
NowDockSpace.DrawFloatingWindow (cyclomatic 33) Assets/NowUI/Extensions/Docking/NowDocking.cs:1660— NowDockSpace.DrawFloatingWindow has cyclomatic complexity 33 (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.
NowMarkdownInlineParser.TryParseAutolink (cyclomatic 33) REDACTED:346— NowMarkdownInlineParser.TryParseAutolink has cyclomatic complexity 33 (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.
NowSdfGraph.TryAddShapedText (cyclomatic 33) Assets/NowUI/Extensions/Sdf/NowSdf.cs:1770— NowSdfGraph.TryAddShapedText has cyclomatic complexity 33 (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.
BrowserReflectionRoots.Create (cyclomatic 33) Standalone/NowUI.Cli/BrowserReflectionRoots.cs:26— BrowserReflectionRoots.Create has cyclomatic complexity 33 (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.
NowLayout.BeginGroup (cyclomatic 32) Assets/NowUI/Runtime/NowLayout.cs:2560— NowLayout.BeginGroup has cyclomatic complexity 32 (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.
Now.EmitDashedLine (cyclomatic 32) Assets/NowUI/Runtime/NowLine.cs:867— Now.EmitDashedLine has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowCodeEditor.KindColor (cyclomatic 32) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:1619— NowCodeEditor.KindColor has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowMarkupCodeLanguage.TokenizeCss (cyclomatic 32) Assets/NowUI/Extensions/CodeEditor/NowMarkupCodeLanguage.cs:443— NowMarkupCodeLanguage.TokenizeCss has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowMarkdownInlineParser.Tokenize (cyclomatic 32) REDACTED:44— NowMarkdownInlineParser.Tokenize has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowPngCodec.TryDecode (cyclomatic 32) Standalone/NowUI.Hosting/NowPngCodec.cs:31— NowPngCodec.TryDecode has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowFilePicker.DrawFolderTreeRow (cyclomatic 31) Assets/NowUI/Runtime/Controls/NowFilePicker.cs:1551— NowFilePicker.DrawFolderTreeRow has cyclomatic complexity 31 (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.
NowLayout.Allocate (cyclomatic 31) Assets/NowUI/Runtime/NowLayout.cs:2926— NowLayout.Allocate has cyclomatic complexity 31 (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.
NowTrueType.ParseDirectory (cyclomatic 31) Assets/NowUI/Runtime/NowTrueType.cs:120— NowTrueType.ParseDirectory has cyclomatic complexity 31 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
NowMarkupCodeLanguage.TokenizeTag (cyclomatic 31) Assets/NowUI/Extensions/CodeEditor/NowMarkupCodeLanguage.cs:302— NowMarkupCodeLanguage.TokenizeTag has cyclomatic complexity 31 (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.
NowGradientField.DrawPopup (cyclomatic 30) Assets/NowUI/Runtime/Controls/NowValueControls.cs:1571— NowGradientField.DrawPopup has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowLayout.StoreCache (cyclomatic 30) Assets/NowUI/Runtime/NowLayout.cs:2827— NowLayout.StoreCache has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowCodeEditor.InsertNewlineWithIndent (cyclomatic 30) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:4149— NowCodeEditor.InsertNewlineWithIndent has cyclomatic complexity 30 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
NowCSharpLanguage.ScanNumber (cyclomatic 29) Assets/NowUI/Extensions/CodeEditor/NowCSharpLanguage.cs:373— NowCSharpLanguage.ScanNumber has cyclomatic complexity 29 (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.
BrowserOptions.Parse (cyclomatic 29) Standalone/NowUI.Cli/BrowserOptions.cs:29— BrowserOptions.Parse 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.
BrowserSceneTrimming.IsStaticScene (cyclomatic 29) Standalone/NowUI.Cli/BrowserSceneTrimming.cs:42— BrowserSceneTrimming.IsStaticScene 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.
NowUnitySerializedAssets.LoadTexture (cyclomatic 28) Standalone/NowUI.Hosting/NowUnitySerializedAssets.cs:125— NowUnitySerializedAssets.LoadTexture has cyclomatic complexity 28 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
NowModelPreview.CacheRawMeshes (cyclomatic 28) Assets/NowUI/Runtime/NowModelPreview.cs:1883— NowModelPreview.CacheRawMeshes 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.
NowTextField.DrawLong (cyclomatic 27) Assets/NowUI/Runtime/Controls/NowTextField.cs:933— NowTextField.DrawLong has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
NowLottieRenderer.RenderLayerList (cyclomatic 27) Assets/NowUI/Runtime/Lottie/NowLottieRenderer.cs:252— NowLottieRenderer.RenderLayerList has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowFontAsset.TryMeasureShapedTextBounds (cyclomatic 27) Assets/NowUI/Runtime/NowFont.cs:1001— NowFontAsset.TryMeasureShapedTextBounds has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
Now.DrawArc (cyclomatic 27) Assets/NowUI/Runtime/NowStroke.cs:471— Now.DrawArc has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
NowCodeEditor.ToggleLineComment (cyclomatic 27) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:3617— NowCodeEditor.ToggleLineComment has cyclomatic complexity 27 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
NowMarkdownInlineParser.TryParseLink (cyclomatic 27) REDACTED:250— NowMarkdownInlineParser.TryParseLink has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowNodeGraphCanvas.HandleNodeSearch (cyclomatic 27) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:4303— NowNodeGraphCanvas.HandleNodeSearch has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
BrowserInput.KeyDown (cyclomatic 27) Standalone/NowUI.Browser/BrowserInput.cs:196— BrowserInput.KeyDown has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
NowSplitView.Begin (cyclomatic 26) Assets/NowUI/Runtime/Controls/NowSplitView.cs:81— NowSplitView.Begin has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
NowTextField.DrawInt (cyclomatic 26) Assets/NowUI/Runtime/Controls/NowTextField.cs:769— NowTextField.DrawInt 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.
NowTextSelection.Interact (cyclomatic 26) Assets/NowUI/Runtime/Controls/NowTextSelection.cs:96— NowTextSelection.Interact 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.
NowFont.TryAddGlyphsToSession (cyclomatic 26) Assets/NowUI/Runtime/NowFont.cs:4384— NowFont.TryAddGlyphsToSession 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.
NowNodeGraphCanvas.HandleArrowNudge (cyclomatic 26) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:4149— NowNodeGraphCanvas.HandleArrowNudge has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
NowSdfGraph.AddTextRun (cyclomatic 26) Assets/NowUI/Extensions/Sdf/NowSdf.cs:1543— NowSdfGraph.AddTextRun 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.
NowPngCodec.Expand (cyclomatic 26) Standalone/NowUI.Hosting/NowPngCodec.cs:326— NowPngCodec.Expand 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.
WindowsPointerInput.WindowMessage (cyclomatic 26) Standalone/NowUI.Desktop/WindowsPointerInput.cs:49— WindowsPointerInput.WindowMessage 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.
WebGL2Backend.BuildUniformBlock (cyclomatic 26) Standalone/NowUI.Browser/WebGL2Backend.cs:805— WebGL2Backend.BuildUniformBlock 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.
NowModelPreview.RenderInternal (cyclomatic 26) Assets/NowUI/Runtime/NowModelPreview.cs:1424— NowModelPreview.RenderInternal has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
NowComboBox.Draw (cyclomatic 25) Assets/NowUI/Runtime/Controls/NowComboBox.cs:237— NowComboBox.Draw has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowTextField.DrawFloat (cyclomatic 25) Assets/NowUI/Runtime/Controls/NowTextField.cs:691— NowTextField.DrawFloat has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
NowLottieTessellator.EmitStrokePolyline (cyclomatic 25) Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:1236— NowLottieTessellator.EmitStrokePolyline has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowFont.EnsureShapedGlyphs (cyclomatic 25) Assets/NowUI/Runtime/NowFont.cs:5813— NowFont.EnsureShapedGlyphs has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowFont.TryBakeShapedGlyphs (cyclomatic 25) Assets/NowUI/Runtime/NowFont.cs:6055— NowFont.TryBakeShapedGlyphs has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowCodeEditor.ReindentEnclosedBlock (cyclomatic 25) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:4055— NowCodeEditor.ReindentEnclosedBlock has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowJsonLanguage.ParseNumber (cyclomatic 25) Assets/NowUI/Extensions/CodeEditor/NowJsonLanguage.cs:272— NowJsonLanguage.ParseNumber has cyclomatic complexity 25 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
NowMarkupParser.TryReadOpenTag (cyclomatic 25) Assets/NowUI/Extensions/Markup/NowMarkupParser.cs:116— NowMarkupParser.TryReadOpenTag has cyclomatic complexity 25 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Fetch.Run (cyclomatic 25) Standalone/NowUI.Hosting/NowHttpFetchProvider.cs:97— Fetch.Run has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DesktopInput.KeyDown (cyclomatic 25) Standalone/NowUI.Desktop/DesktopInput.cs:280— DesktopInput.KeyDown has cyclomatic complexity 25 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
NowComboBox.Draw (cyclomatic 24) Assets/NowUI/Runtime/Controls/NowComboBox.cs:134— NowComboBox.Draw 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.
Now.UploadCapturedMeshes (cyclomatic 24) Assets/NowUI/Runtime/Now.cs:2094— Now.UploadCapturedMeshes 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.
Now.DrawPreparedCodepointRunBulk (cyclomatic 24) Assets/NowUI/Runtime/Now.cs:3993— Now.DrawPreparedCodepointRunBulk 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.
Now.DrawGradient (cyclomatic 24) Assets/NowUI/Runtime/NowGradient.cs:946— Now.DrawGradient has cyclomatic complexity 24 (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.
Now.DrawLine (cyclomatic 24) Assets/NowUI/Runtime/NowLine.cs:359— Now.DrawLine has cyclomatic complexity 24 (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.
NowMarkupDocument.ExecuteAction (cyclomatic 24) Assets/NowUI/Extensions/Markup/NowMarkupDocument.cs:1454— NowMarkupDocument.ExecuteAction 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. This is NOT this file's highest cyclomatic complexity: NowMarkupDocument.KindOf (cyclomatic 50) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
NowSdfGraph.TryEnsureTextPixelRange (cyclomatic 24) Assets/NowUI/Extensions/Sdf/NowSdf.cs:2144— NowSdfGraph.TryEnsureTextPixelRange 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.
DesktopInput.Drain (cyclomatic 24) Standalone/NowUI.Desktop/DesktopInput.cs:114— DesktopInput.Drain has cyclomatic complexity 24 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
DesktopRenderBackend.UploadTexture2D (cyclomatic 24) Standalone/NowUI.Desktop/DesktopRenderBackend.cs:316— DesktopRenderBackend.UploadTexture2D has cyclomatic complexity 24 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
NowEditorThemeComparisonWindow.DrawNativeSpecimen (cyclomatic 24) Assets/NowUI/Editor/NowEditorThemeComparisonWindow.cs:347— NowEditorThemeComparisonWindow.DrawNativeSpecimen has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
NowMarkdownImages.CompleteDownload (cyclomatic 24) Assets/NowUI/Extensions/Markdown/NowMarkdownImages.Unity.cs:94— NowMarkdownImages.CompleteDownload has cyclomatic complexity 24 (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.
StrokeJob.EmitStrokePolyline (cyclomatic 24) Assets/NowUI/Runtime/Lottie/NowLottieBurstTessellator.cs:1108— StrokeJob.EmitStrokePolyline 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.
NowWorldGlassBackdrop.PopulateCommandBuffer (cyclomatic 24) Assets/NowUI/Runtime/NowWorldGlassBackdrop.cs:299— NowWorldGlassBackdrop.PopulateCommandBuffer 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.
NowWorldGraphic.ApplyGlassBackdropTexture (cyclomatic 24) Assets/NowUI/Runtime/NowWorldGraphic.cs:1375— NowWorldGraphic.ApplyGlassBackdropTexture 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.
CommandBuffer.Execute (cyclomatic 23) Standalone/NowUI.Engine/Graphics/Rendering/CommandBuffer.cs:505— CommandBuffer.Execute has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
NowRichText.ContainsDefaultTag (cyclomatic 23) Assets/NowUI/Runtime/Controls/NowRichText.cs:500— NowRichText.ContainsDefaultTag has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
NowSplitter.Draw (cyclomatic 23) Assets/NowUI/Runtime/Controls/NowSplitter.cs:73— NowSplitter.Draw has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowTextField.DrawDouble (cyclomatic 23) Assets/NowUI/Runtime/Controls/NowTextField.cs:857— NowTextField.DrawDouble has cyclomatic complexity 23 (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.
NowFontAsset.MeasureTextBounds (cyclomatic 23) Assets/NowUI/Runtime/NowFont.cs:1114— NowFontAsset.MeasureTextBounds has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowFont.TryGetOpenTypeTable (cyclomatic 23) Assets/NowUI/Runtime/NowFont.cs:2057— NowFont.TryGetOpenTypeTable has cyclomatic complexity 23 (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.
NowCodeEditor.ReindentCloser (cyclomatic 23) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:3962— NowCodeEditor.ReindentCloser has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowDockSpace.DrawTab (cyclomatic 23) Assets/NowUI/Extensions/Docking/NowDocking.cs:919— NowDockSpace.DrawTab has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
Program.Main (cyclomatic 23) Tools/Standalone/ApiDump/Program.cs:19— Program.Main has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowHarnessScenarios.DrawThemeSharedStates (cyclomatic 23) Assets/NowUIHarness/NowHarnessScenarios.cs:2044— NowHarnessScenarios.DrawThemeSharedStates has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowFilePicker.DrawUserFolderRow (cyclomatic 22) Assets/NowUI/Runtime/Controls/NowFilePicker.cs:1442— NowFilePicker.DrawUserFolderRow 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.
ExactParser.ParseNumber (cyclomatic 22) Assets/NowUI/Runtime/Controls/NowNumericExpression.cs:1071— ExactParser.ParseNumber 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.
NowRichTextFlow.TryHit (cyclomatic 22) Assets/NowUI/Runtime/Controls/NowRichTextFlow.cs:640— NowRichTextFlow.TryHit 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.
NowRichTextParser.TryReadTag (cyclomatic 22) Assets/NowUI/Runtime/Controls/NowRichTextParser.cs:600— NowRichTextParser.TryReadTag has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
Now.DrawStringCodepoints (cyclomatic 22) Assets/NowUI/Runtime/Now.cs:3585— Now.DrawStringCodepoints 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.
NowUnitySerializedAssets.Load (cyclomatic 22) Standalone/NowUI.Hosting/NowUnitySerializedAssets.cs:67— NowUnitySerializedAssets.Load 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.
PlaygroundScene.Draw (cyclomatic 22) Standalone/Samples/NativePreview/PlaygroundScene.cs:29— PlaygroundScene.Draw has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
WebGL2Backend.TryUploadRawMesh (cyclomatic 22) Standalone/NowUI.Browser/WebGL2Backend.cs:693— WebGL2Backend.TryUploadRawMesh 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.
NowFontBaker.TryBakeFromSide (cyclomatic 22) Assets/NowUI/Editor/NowFontBaker.cs:529— NowFontBaker.TryBakeFromSide 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.
NowWorldInputProvider.TryGetSnapshot (cyclomatic 22) Assets/NowUI/Runtime/Input/NowWorldInputProvider.cs:106— NowWorldInputProvider.TryGetSnapshot has cyclomatic complexity 22 (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.
NowWorldGlassBackdrop.ApplyReadyTextures (cyclomatic 22) Assets/NowUI/Runtime/NowWorldGlassBackdrop.cs:1023— NowWorldGlassBackdrop.ApplyReadyTextures 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.
NowFilePicker.DrawPopupContent (cyclomatic 21) Assets/NowUI/Runtime/Controls/NowFilePicker.cs:763— NowFilePicker.DrawPopupContent has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowScrollScope.ApplyPanScroll (cyclomatic 21) Assets/NowUI/Runtime/Controls/NowScrollView.cs:628— NowScrollScope.ApplyPanScroll has cyclomatic complexity 21 (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.
NowAnimationCurveField.DrawPopup (cyclomatic 21) Assets/NowUI/Runtime/Controls/NowValueControls.cs:2982— NowAnimationCurveField.DrawPopup has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowLottieTessellator.TessellateFill (cyclomatic 21) Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:564— NowLottieTessellator.TessellateFill has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
Now.DrawPreparedCodepointRun (cyclomatic 21) Assets/NowUI/Runtime/Now.cs:3830— Now.DrawPreparedCodepointRun has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
Now.TryDrawShapedString (cyclomatic 21) Assets/NowUI/Runtime/Now.cs:4497— Now.TryDrawShapedString has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowLayout.ResolveFlexShares (cyclomatic 21) Assets/NowUI/Runtime/NowLayout.cs:3273— NowLayout.ResolveFlexShares has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowZipArchivePreflight.Validate (cyclomatic 21) Assets/NowUI/Runtime/NowRemoteContent.cs:297— NowZipArchivePreflight.Validate has cyclomatic complexity 21 (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.
Now.DrawStrokePolyline (cyclomatic 21) Assets/NowUI/Runtime/NowStroke.cs:389— Now.DrawStrokePolyline has cyclomatic complexity 21 (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.
NowCodeEditor.HandleTab (cyclomatic 21) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:4241— NowCodeEditor.HandleTab has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowMarkdownInlineParser.ProcessEmphasis (cyclomatic 21) REDACTED:436— NowMarkdownInlineParser.ProcessEmphasis has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowMarkupStyleHelpers.LayoutOptions (cyclomatic 21) Assets/NowUI/Extensions/Markup/NowMarkupStyles.cs:383— NowMarkupStyleHelpers.LayoutOptions has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file's highest cyclomatic complexity: NowMarkupStyleSheet.IsStyleAttribute (cyclomatic 33) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
NowUnitySerializedAssets.ConvertValue (cyclomatic 21) Standalone/NowUI.Hosting/NowUnitySerializedAssets.cs:181— NowUnitySerializedAssets.ConvertValue has cyclomatic complexity 21 (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.
DesktopRenderBackend.BindUniforms (cyclomatic 21) Standalone/NowUI.Desktop/DesktopRenderBackend.cs:675— DesktopRenderBackend.BindUniforms has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
FillJob.TessellateFill (cyclomatic 21) Assets/NowUI/Runtime/Lottie/NowLottieBurstTessellator.cs:415— FillJob.TessellateFill has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
AnimationCurve.Evaluate (cyclomatic 20) Standalone/NowUI.Engine/Data/AnimationCurve.cs:161— AnimationCurve.Evaluate 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.
NowContextMenu.DrawDeferred (cyclomatic 20) Assets/NowUI/Runtime/Controls/NowContextMenu.cs:695— NowContextMenu.DrawDeferred has cyclomatic complexity 20 (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.
NowFilePicker.RefreshEntries (cyclomatic 20) Assets/NowUI/Runtime/Controls/NowFilePicker.cs:2827— NowFilePicker.RefreshEntries has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowRichTextLayout.Align (cyclomatic 20) Assets/NowUI/Runtime/Controls/NowRichTextFlow.cs:389— NowRichTextLayout.Align has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
NowTimePicker.DrawPopup (cyclomatic 20) Assets/NowUI/Runtime/Controls/NowTimePicker.cs:283— NowTimePicker.DrawPopup has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowInteractionInputState.HasChangedSince (cyclomatic 20) Assets/NowUI/Runtime/Input/NowInteractionInputState.cs:73— NowInteractionInputState.HasChangedSince has cyclomatic complexity 20 (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.
NowJsonValue.ParseString (cyclomatic 20) Assets/NowUI/Runtime/Lottie/NowJson.cs:319— NowJsonValue.ParseString has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
Now.AppendLineUnitRects (cyclomatic 20) Assets/NowUI/Runtime/Now.cs:4397— Now.AppendLineUnitRects has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
Now.DrawLottie (cyclomatic 20) Assets/NowUI/Runtime/Now.cs:5207— Now.DrawLottie 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.
NowFont.TryGetPreparedShapedRun (cyclomatic 20) Assets/NowUI/Runtime/NowFont.cs:5925— NowFont.TryGetPreparedShapedRun has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowMarkupCodeLanguage.TokenizeLine (cyclomatic 20) Assets/NowUI/Extensions/CodeEditor/NowMarkupCodeLanguage.cs:54— NowMarkupCodeLanguage.TokenizeLine has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowMarkupParser.Parse (cyclomatic 20) Assets/NowUI/Extensions/Markup/NowMarkupParser.cs:19— NowMarkupParser.Parse has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowNodeGraphCanvas.CommitPendingLink (cyclomatic 20) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:5266— NowNodeGraphCanvas.CommitPendingLink has cyclomatic complexity 20 (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.
BrowserServer.HandleAsync (cyclomatic 20) Standalone/NowUI.Cli/BrowserServer.cs:77— BrowserServer.HandleAsync 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. This is NOT this file's highest cyclomatic complexity: BrowserServer.ContentType (cyclomatic 21) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
WebGL2Backend.Blit (cyclomatic 20) Standalone/NowUI.Browser/WebGL2Backend.cs:1221— WebGL2Backend.Blit 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.
NowControlGalleryExample.DrawMenusPage (cyclomatic 20) Assets/NowUI/Example/NowControlGalleryExample.cs:244— NowControlGalleryExample.DrawMenusPage has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
FillJob.EmitFillFringe (cyclomatic 20) Assets/NowUI/Runtime/Lottie/NowLottieBurstTessellator.cs:679— FillJob.EmitFillFringe has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowDatePicker.UpdateKeyboard (cyclomatic 19) Assets/NowUI/Runtime/Controls/NowDatePicker.cs:571— NowDatePicker.UpdateKeyboard has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowFocus.MoveFocus (cyclomatic 19) Assets/NowUI/Runtime/Controls/NowFocus.cs:2494— NowFocus.MoveFocus has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowRichText.PrepareDocument (cyclomatic 19) Assets/NowUI/Runtime/Controls/NowRichText.cs:436— NowRichText.PrepareDocument has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowLottieTessellator.EmitFillFringe (cyclomatic 19) Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:996— NowLottieTessellator.EmitFillFringe has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
Now.FinishUIScreenFrame (cyclomatic 19) Assets/NowUI/Runtime/Now.cs:2289— Now.FinishUIScreenFrame 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.
Now.DrawSdf (cyclomatic 19) Assets/NowUI/Runtime/Now.cs:2830— Now.DrawSdf 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.
NowFontAsset.TryMeasureShapedText (cyclomatic 19) Assets/NowUI/Runtime/NowFont.cs:705— NowFontAsset.TryMeasureShapedText has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowFontAsset.MeasureText (cyclomatic 19) Assets/NowUI/Runtime/NowFont.cs:869— NowFontAsset.MeasureText has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DynamicSession.TryCreate (cyclomatic 19) Assets/NowUI/Runtime/NowFontCompiler.cs:442— DynamicSession.TryCreate has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowCodeEditor.HandleCharacter (cyclomatic 19) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:3810— NowCodeEditor.HandleCharacter has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowUnityTextureAssets.LoadTexture (cyclomatic 19) Standalone/NowUI.Hosting/NowUnityTextureAssets.cs:22— NowUnityTextureAssets.LoadTexture 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.
DesktopRenderBackend.GetProgram (cyclomatic 19) Standalone/NowUI.Desktop/DesktopRenderBackend.cs:766— DesktopRenderBackend.GetProgram has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file's highest cyclomatic complexity: DesktopRenderBackend.CreateRenderTexture (cyclomatic 20) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
BrowserAssets.Supported (cyclomatic 19) Standalone/NowUI.Cli/BrowserAssets.cs:181— BrowserAssets.Supported has cyclomatic complexity 19 (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.
BrowserServer.SelectEncoding (cyclomatic 19) Standalone/NowUI.Cli/BrowserServer.cs:125— BrowserServer.SelectEncoding has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table. This is NOT this file's highest cyclomatic complexity: BrowserServer.ContentType (cyclomatic 21) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
InputReplay.InputReplay.ctor (cyclomatic 19) Standalone/NowUI.Cli/InputReplay.cs:16— InputReplay.InputReplay.ctor has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowWorldGraphic.ResolveInputRay (cyclomatic 19) Assets/NowUI/Runtime/NowWorldGraphic.cs:1673— NowWorldGraphic.ResolveInputRay has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowSlider.Draw (cyclomatic 18) Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:847— NowSlider.Draw has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DoubleParser.ParseNumber (cyclomatic 18) Assets/NowUI/Runtime/Controls/NowNumericExpression.cs:454— DoubleParser.ParseNumber has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
NowTreeViewScope.DrawRow (cyclomatic 18) Assets/NowUI/Runtime/Controls/NowTreeView.cs:282— NowTreeViewScope.DrawRow has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowLottieAsset.ExtractSourceJson (cyclomatic 18) Assets/NowUI/Runtime/Lottie/NowLottieAsset.cs:153— NowLottieAsset.ExtractSourceJson has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowLottieRenderer.RenderShapeItems (cyclomatic 18) Assets/NowUI/Runtime/Lottie/NowLottieRenderer.cs:473— NowLottieRenderer.RenderShapeItems has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
Now.AppendShapedRunBulk (cyclomatic 18) Assets/NowUI/Runtime/Now.cs:4874— Now.AppendShapedRunBulk has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowFont.TryCacheCompiledGlyph (cyclomatic 18) Assets/NowUI/Runtime/NowFont.cs:3778— NowFont.TryCacheCompiledGlyph has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowManagedFontSession.AddGlyphsCore (cyclomatic 18) Assets/NowUI/Runtime/NowManagedFontSession.cs:212— NowManagedFontSession.AddGlyphsCore has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowJsonLanguage.ParseString (cyclomatic 18) Assets/NowUI/Extensions/CodeEditor/NowJsonLanguage.cs:219— NowJsonLanguage.ParseString has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowMarkdownParser.TryGetListMarker (cyclomatic 18) Assets/NowUI/Extensions/Markdown/NowMarkdownParser.cs:368— NowMarkdownParser.TryGetListMarker has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
NowMarkdownParser.ParseList (cyclomatic 18) Assets/NowUI/Extensions/Markdown/NowMarkdownParser.cs:427— NowMarkdownParser.ParseList has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowMarkdownParser.SplitTableRow (cyclomatic 18) Assets/NowUI/Extensions/Markdown/NowMarkdownParser.cs:635— NowMarkdownParser.SplitTableRow has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
NowNodeGraphCanvas.Draw (cyclomatic 18) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:3912— NowNodeGraphCanvas.Draw has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
NowNodeGraphCanvas.BuildSearchResults (cyclomatic 18) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:4440— NowNodeGraphCanvas.BuildSearchResults has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowNodeGraphCanvas.MoveSelectedNodes (cyclomatic 18) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:5632— NowNodeGraphCanvas.MoveSelectedNodes has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
NowSdfCache.BeginMask (cyclomatic 18) Assets/NowUI/Extensions/Sdf/NowSdf.cs:5062— NowSdfCache.BeginMask has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
NowSdfCache.GetMaterial (cyclomatic 18) Assets/NowUI/Extensions/Sdf/NowSdf.cs:5863— NowSdfCache.GetMaterial has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowPngCodec.Unfilter (cyclomatic 18) Standalone/NowUI.Hosting/NowPngCodec.cs:258— NowPngCodec.Unfilter has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DesktopRenderBackend.DesktopRenderBackend.ctor (cyclomatic 18) Standalone/NowUI.Desktop/DesktopRenderBackend.cs:122— DesktopRenderBackend.DesktopRenderBackend.ctor has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file's highest cyclomatic complexity: DesktopRenderBackend.CreateRenderTexture (cyclomatic 20) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
BrowserServer.TryResolvePath (cyclomatic 18) Standalone/NowUI.Cli/BrowserServer.cs:164— BrowserServer.TryResolvePath has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: BrowserServer.ContentType (cyclomatic 21) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
OpenTypeParser.TryReadFormat12 (cyclomatic 18) Assets/NowUI/Editor/NowFontGlyphCatalog.cs:572— OpenTypeParser.TryReadFormat12 has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
OpenTypeParser.TryReadTableDirectory (cyclomatic 18) Assets/NowUI/Editor/NowFontGlyphCatalog.cs:650— OpenTypeParser.TryReadTableDirectory has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
Matrix4x4.inverse.get (cyclomatic 17) Standalone/NowUI.Engine/Math/Matrix4x4.cs:468— Matrix4x4.inverse.get has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowComboBox.Filter (cyclomatic 17) Assets/NowUI/Runtime/Controls/NowComboBox.cs:388— NowComboBox.Filter has cyclomatic complexity 17 (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.
NowInspectorGui.NicifyName (cyclomatic 17) Assets/NowUI/Runtime/Controls/NowInspector.cs:1477— NowInspectorGui.NicifyName has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SyntaxParser.ParseNumber (cyclomatic 17) Assets/NowUI/Runtime/Controls/NowNumericExpression.cs:209— SyntaxParser.ParseNumber has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
NowRichTextParser.Parse (cyclomatic 17) Assets/NowUI/Runtime/Controls/NowRichTextParser.cs:207— NowRichTextParser.Parse has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowScrollView.EnsureFocusedControlVisible (cyclomatic 17) Assets/NowUI/Runtime/Controls/NowScrollView.cs:254— NowScrollView.EnsureFocusedControlVisible 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.
NowTextEdit.WordBounds (cyclomatic 17) Assets/NowUI/Runtime/Controls/NowTextEdit.cs:142— NowTextEdit.WordBounds has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
NowAnimationCurveField.TryTangentHandlePoint (cyclomatic 17) Assets/NowUI/Runtime/Controls/NowValueControls.cs:3669— NowAnimationCurveField.TryTangentHandlePoint 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.
Now.DrawBezierStroke (cyclomatic 17) Assets/NowUI/Runtime/NowLine.cs:695— Now.DrawBezierStroke has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowSdfBakeJob.Execute (cyclomatic 17) Assets/NowUI/Runtime/NowManagedFontBaker.cs:75— NowSdfBakeJob.Execute has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowMarkupCodeLanguage.Validate (cyclomatic 17) Assets/NowUI/Extensions/CodeEditor/NowMarkupCodeLanguage.cs:164— NowMarkupCodeLanguage.Validate has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowMarkupCodeLanguage.TryReadCurrentOpenTag (cyclomatic 17) Assets/NowUI/Extensions/CodeEditor/NowMarkupCodeLanguage.cs:566— NowMarkupCodeLanguage.TryReadCurrentOpenTag has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
NowDockSpace.DockWindowToLeaf (cyclomatic 17) Assets/NowUI/Extensions/Docking/NowDocking.cs:612— NowDockSpace.DockWindowToLeaf 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.
NowNodeGraphCanvas.DrawNode (cyclomatic 17) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6174— NowNodeGraphCanvas.DrawNode 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.
NowSdfGraph.CopyNestedNodes (cyclomatic 17) Assets/NowUI/Extensions/Sdf/NowSdf.cs:644— NowSdfGraph.CopyNestedNodes has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
CaptureRunner.Run (cyclomatic 17) Standalone/NowUI.Cli/CaptureRunner.cs:13— CaptureRunner.Run 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.
NowFontEditor.DrawBakedPages (cyclomatic 17) Assets/NowUI/Editor/NowFontEditor.cs:231— NowFontEditor.DrawBakedPages 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.
OpenTypeParser.ReadGlyphNames (cyclomatic 17) Assets/NowUI/Editor/NowFontGlyphCatalog.cs:365— OpenTypeParser.ReadGlyphNames has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
NowUIAgentSkillInstaller.InstallAgentSkill (cyclomatic 17) Assets/NowUI/Editor/NowUIAgentSkillInstaller.cs:42— NowUIAgentSkillInstaller.InstallAgentSkill has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
Gradient.Equals (cyclomatic 16) Standalone/NowUI.Engine/Data/Gradient.cs:478— Gradient.Equals 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.
NowDatePicker.DrawPopup (cyclomatic 16) Assets/NowUI/Runtime/Controls/NowDatePicker.cs:312— NowDatePicker.DrawPopup has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
NowDropdown.Draw (cyclomatic 16) Assets/NowUI/Runtime/Controls/NowDropdown.cs:88— NowDropdown.Draw 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.
NowOverlay.PruneRegistrationOwners (cyclomatic 16) Assets/NowUI/Runtime/Controls/NowOverlay.cs:418— NowOverlay.PruneRegistrationOwners 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.
NowRichText.AddTextRange (cyclomatic 16) Assets/NowUI/Runtime/Controls/NowRichText.cs:720— NowRichText.AddTextRange 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.
NowTabBar.Draw (cyclomatic 16) Assets/NowUI/Runtime/Controls/NowTabs.cs:63— NowTabBar.Draw 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.
NowTextSelection.BuildHighlightRects (cyclomatic 16) Assets/NowUI/Runtime/Controls/NowTextSelection.cs:280— NowTextSelection.BuildHighlightRects 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.
NowGradientField.DrawAlphaKeyInspector (cyclomatic 16) Assets/NowUI/Runtime/Controls/NowValueControls.cs:1910— NowGradientField.DrawAlphaKeyInspector has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
NowAnimationCurveField.DrawKeyInspector (cyclomatic 16) Assets/NowUI/Runtime/Controls/NowValueControls.cs:3096— NowAnimationCurveField.DrawKeyInspector has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
NowViewStack.HandleTopClosePolicy (cyclomatic 16) Assets/NowUI/Runtime/Controls/NowViewStack.cs:1134— NowViewStack.HandleTopClosePolicy has cyclomatic complexity 16 (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.
NowLottieTessellator.ApplyTrim (cyclomatic 16) Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:1417— NowLottieTessellator.ApplyTrim 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.
NowLottieShapeAnimatable.Evaluate (cyclomatic 16) Assets/NowUI/Runtime/Lottie/NowLottieModel.cs:1185— NowLottieShapeAnimatable.Evaluate has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
Now.BeginScreenFrame (cyclomatic 16) Assets/NowUI/Runtime/Now.cs:1410— Now.BeginScreenFrame has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
Now.AppendShapedRun (cyclomatic 16) Assets/NowUI/Runtime/Now.cs:4729— Now.AppendShapedRun 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.
NowFontAsset.GetShapedMeasureSegmentation (cyclomatic 16) Assets/NowUI/Runtime/NowFont.cs:612— NowFontAsset.GetShapedMeasureSegmentation 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.
NowFontAsset.MeasureText (cyclomatic 16) Assets/NowUI/Runtime/NowFont.cs:785— NowFontAsset.MeasureText 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.
NowFont.TryReadCmapFormat12Coverage (cyclomatic 16) Assets/NowUI/Runtime/NowFont.cs:2365— NowFont.TryReadCmapFormat12Coverage 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.
NowFont.GetDynamicPixelRange (cyclomatic 16) Assets/NowUI/Runtime/NowFont.cs:2891— NowFont.GetDynamicPixelRange has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
NowFontCompiler.TryCompileInternal (cyclomatic 16) Assets/NowUI/Runtime/NowFontCompiler.cs:891— NowFontCompiler.TryCompileInternal has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
Now.DrawGlass (cyclomatic 16) Assets/NowUI/Runtime/NowGlass.cs:241— Now.DrawGlass has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
NowMesh.AddShapedTextRunReserved (cyclomatic 16) Assets/NowUI/Runtime/NowMesh.cs:946— NowMesh.AddShapedTextRunReserved has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (NowMesh.AddCodepointTextRunReserved) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
NowMesh.AddCodepointTextRunReserved (cyclomatic 16) Assets/NowUI/Runtime/NowMesh.cs:1200— NowMesh.AddCodepointTextRunReserved has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (NowMesh.AddShapedTextRunReserved) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
Now.DrawShapePoints (cyclomatic 16) Assets/NowUI/Runtime/NowShape.cs:427— Now.DrawShapePoints has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
NowTrueType.TryGetGlyphIndex (cyclomatic 16) Assets/NowUI/Runtime/NowTrueType.cs:265— NowTrueType.TryGetGlyphIndex 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.
NowMarkdownDocument.LayoutTable (cyclomatic 16) Assets/NowUI/Extensions/Markdown/NowMarkdownDocument.cs:1234— NowMarkdownDocument.LayoutTable has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: NowMarkdownDocument.ResolveColor (cyclomatic 21) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
BrowserAssetSelection.FromAssembly (cyclomatic 16) Standalone/NowUI.Cli/BrowserAssetSelection.cs:36— BrowserAssetSelection.FromAssembly 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.
PreviewRunner.Run (cyclomatic 16) Standalone/NowUI.Cli/PreviewRunner.cs:11— PreviewRunner.Run 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.
Program.Main (cyclomatic 16) Standalone/Benchmarks/NativeRendering/Program.cs:15— Program.Main has cyclomatic complexity 16 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
WebGL2Backend.DrawMesh (cyclomatic 16) Standalone/NowUI.Browser/WebGL2Backend.cs:511— WebGL2Backend.DrawMesh has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
WebGL2Backend.EnsureMeshUploaded (cyclomatic 16) Standalone/NowUI.Browser/WebGL2Backend.cs:592— WebGL2Backend.EnsureMeshUploaded has cyclomatic complexity 16 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
OpenTypeParser.TryReadCmap (cyclomatic 16) Assets/NowUI/Editor/NowFontGlyphCatalog.cs:294— OpenTypeParser.TryReadCmap 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.
OpenTypeParser.TryReadFormat4 (cyclomatic 16) Assets/NowUI/Editor/NowFontGlyphCatalog.cs:477— OpenTypeParser.TryReadFormat4 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.
NowRectTransformInputProvider.TryGetSnapshot (cyclomatic 16) Assets/NowUI/Runtime/Input/NowRectTransformInputProvider.cs:132— NowRectTransformInputProvider.TryGetSnapshot has cyclomatic complexity 16 (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.
ClickThenIdleInputProvider.TryGetSnapshot (cyclomatic 16) Assets/NowUIHarness/NowHarnessScenarios.cs:240— ClickThenIdleInputProvider.TryGetSnapshot has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
NowCodeEditor.Draw (cognitive 384) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:350— NowCodeEditor.Draw has cognitive complexity 384 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NowTextField.DrawText (cognitive 184) Assets/NowUI/Runtime/Controls/NowTextField.cs:1249— NowTextField.DrawText has cognitive complexity 184 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NowTextArea.Draw (cognitive 176) Assets/NowUI/Runtime/Controls/NowTextArea.cs:131— NowTextArea.Draw has cognitive complexity 176 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NowNodeGraphCanvas.HandleInteractions (cognitive 82) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:4933— NowNodeGraphCanvas.HandleInteractions has cognitive complexity 82 (threshold 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.
BrowserInput.DrainPacket (cognitive 73) Standalone/NowUI.Browser/BrowserInput.cs:79— BrowserInput.DrainPacket has cognitive complexity 73 (threshold 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.
NowMarkdownSyntax.TokenizeLine (cognitive 71) Assets/NowUI/Extensions/Markdown/NowMarkdownSyntax.cs:120— NowMarkdownSyntax.TokenizeLine has cognitive complexity 71 (threshold 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.
NowNodeGraphContextMenu.Draw (cognitive 70) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:3266— NowNodeGraphContextMenu.Draw has cognitive complexity 70 (threshold 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.
BrowserAssets.Stage (cognitive 70) Standalone/NowUI.Cli/BrowserAssets.cs:18— BrowserAssets.Stage has cognitive complexity 70 (threshold 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.
NowCodeEditor.DrawVisuals (cognitive 68) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:1333— NowCodeEditor.DrawVisuals has cognitive complexity 68 (threshold 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.
NowMarkdownDocument.DrawResolved (cognitive 68) Assets/NowUI/Extensions/Markdown/NowMarkdownDocument.cs:268— NowMarkdownDocument.DrawResolved has cognitive complexity 68 (threshold 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.
NowFontAsset.TryMeasureShapedTextBounds (cognitive 67) Assets/NowUI/Runtime/NowFont.cs:1001— NowFontAsset.TryMeasureShapedTextBounds has cognitive complexity 67 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NowCodeEditor.DrawDiagnosticTooltip (cognitive 66) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:2140— NowCodeEditor.DrawDiagnosticTooltip has cognitive complexity 66 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
RenderOptions.Parse (cognitive 62) Standalone/NowUI.Cli/RenderOptions.cs:47— RenderOptions.Parse has cognitive complexity 62 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
NowProjectAssets.LoadResolved (cognitive 60) Standalone/NowUI.Hosting/NowProjectAssets.cs:147— NowProjectAssets.LoadResolved has cognitive complexity 60 (threshold 15). Of this number, 57 points are the body's own statements and 3 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
NowFocus.ProcessNavigation (cognitive 59) Assets/NowUI/Runtime/Controls/NowFocus.cs:1857— NowFocus.ProcessNavigation has cognitive complexity 59 (threshold 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.
Now.EmitDashedLine (cognitive 59) Assets/NowUI/Runtime/NowLine.cs:867— Now.EmitDashedLine has cognitive complexity 59 (threshold 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.
NowModelPreview.CacheRawMeshes (cognitive 59) Assets/NowUI/Runtime/NowModelPreview.cs:1883— NowModelPreview.CacheRawMeshes has cognitive complexity 59 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NowSdfGraph.TryAddShapedText (cognitive 58) Assets/NowUI/Extensions/Sdf/NowSdf.cs:1770— NowSdfGraph.TryAddShapedText has cognitive complexity 58 (threshold 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.
BrowserReflectionRoots.Create (cognitive 58) Standalone/NowUI.Cli/BrowserReflectionRoots.cs:26— BrowserReflectionRoots.Create has cognitive complexity 58 (threshold 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.
NowMarkdownInlineParser.Tokenize (cognitive 57) REDACTED:44— NowMarkdownInlineParser.Tokenize has cognitive complexity 57 (threshold 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.
NowInspectorGui.DrawControlCell (cognitive 56) Assets/NowUI/Runtime/Controls/NowInspector.cs:455— NowInspectorGui.DrawControlCell has cognitive complexity 56 (threshold 15). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
NowRichText.DrawRuns (cognitive 55) Assets/NowUI/Runtime/Controls/NowRichText.cs:797— NowRichText.DrawRuns has cognitive complexity 55 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NowFont.TryAddGlyphsToSession (cognitive 55) Assets/NowUI/Runtime/NowFont.cs:4384— NowFont.TryAddGlyphsToSession has cognitive complexity 55 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Now.EmitLineStroke (cognitive 53) Assets/NowUI/Runtime/NowLine.cs:1170— Now.EmitLineStroke has cognitive complexity 53 (threshold 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.
NowCodeEditor.DrawOccurrenceHighlights (cognitive 53) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:1703— NowCodeEditor.DrawOccurrenceHighlights has cognitive complexity 53 (threshold 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.
NowLottieRenderer.RenderLayerList (cognitive 51) Assets/NowUI/Runtime/Lottie/NowLottieRenderer.cs:252— NowLottieRenderer.RenderLayerList has cognitive complexity 51 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NowFont.TryBakeShapedGlyphs (cognitive 51) Assets/NowUI/Runtime/NowFont.cs:6055— NowFont.TryBakeShapedGlyphs has cognitive complexity 51 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NowFilePicker.DrawFolderTreeRow (cognitive 50) Assets/NowUI/Runtime/Controls/NowFilePicker.cs:1551— NowFilePicker.DrawFolderTreeRow has cognitive complexity 50 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NowJsonLanguage.TokenizeLine (cognitive 50) Assets/NowUI/Extensions/CodeEditor/NowJsonLanguage.cs:30— NowJsonLanguage.TokenizeLine has cognitive complexity 50 (threshold 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.
NowFilePicker.TryReadEncodedImageSize (cognitive 49) Assets/NowUI/Runtime/Controls/NowFilePicker.cs:2199— NowFilePicker.TryReadEncodedImageSize has cognitive complexity 49 (threshold 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.
Now.DrawStringCodepoints (cognitive 49) Assets/NowUI/Runtime/Now.cs:3585— Now.DrawStringCodepoints has cognitive complexity 49 (threshold 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.
NowMarkupCodeLanguage.TokenizeCss (cognitive 49) Assets/NowUI/Extensions/CodeEditor/NowMarkupCodeLanguage.cs:443— NowMarkupCodeLanguage.TokenizeCss has cognitive complexity 49 (threshold 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.
BrowserSceneTrimming.IsStaticScene (cognitive 49) Standalone/NowUI.Cli/BrowserSceneTrimming.cs:42— BrowserSceneTrimming.IsStaticScene has cognitive complexity 49 (threshold 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.
Now.DrawPreparedCodepointRunBulk (cognitive 46) Assets/NowUI/Runtime/Now.cs:3993— Now.DrawPreparedCodepointRunBulk has cognitive complexity 46 (threshold 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.
NowFontAsset.MeasureTextBounds (cognitive 46) Assets/NowUI/Runtime/NowFont.cs:1114— NowFontAsset.MeasureTextBounds has cognitive complexity 46 (threshold 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.
NowMarkdownCodeLanguage.TokenizeLine (cognitive 46) Assets/NowUI/Extensions/CodeEditor/NowMarkdownCodeLanguage.cs:36— NowMarkdownCodeLanguage.TokenizeLine has cognitive complexity 46 (threshold 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.
DesktopRenderBackend.BindUniforms (cognitive 46) Standalone/NowUI.Desktop/DesktopRenderBackend.cs:675— DesktopRenderBackend.BindUniforms has cognitive complexity 46 (threshold 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.
Now.DrawRect (cognitive 45) Assets/NowUI/Runtime/Now.cs:2598— Now.DrawRect has cognitive complexity 45 (threshold 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.
NowFont.EnsureShapedGlyphs (cognitive 45) Assets/NowUI/Runtime/NowFont.cs:5813— NowFont.EnsureShapedGlyphs has cognitive complexity 45 (threshold 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.
NowMarkupCodeLanguage.TokenizeTag (cognitive 45) Assets/NowUI/Extensions/CodeEditor/NowMarkupCodeLanguage.cs:302— NowMarkupCodeLanguage.TokenizeTag has cognitive complexity 45 (threshold 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.
NowCodeEditor.InsertNewlineWithIndent (cognitive 44) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:4149— NowCodeEditor.InsertNewlineWithIndent has cognitive complexity 44 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NowCSharpLanguage.TokenizeLine (cognitive 44) Assets/NowUI/Extensions/CodeEditor/NowCSharpLanguage.cs:118— NowCSharpLanguage.TokenizeLine has cognitive complexity 44 (threshold 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.
NowMarkupCodeLanguage.TokenizeLine (cognitive 44) Assets/NowUI/Extensions/CodeEditor/NowMarkupCodeLanguage.cs:54— NowMarkupCodeLanguage.TokenizeLine has cognitive complexity 44 (threshold 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.
NowControlGalleryExample.DrawMenusPage (cognitive 44) Assets/NowUI/Example/NowControlGalleryExample.cs:244— NowControlGalleryExample.DrawMenusPage has cognitive complexity 44 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NowHarnessScenarios.DrawThemeSharedStates (cognitive 44) Assets/NowUIHarness/NowHarnessScenarios.cs:2044— NowHarnessScenarios.DrawThemeSharedStates has cognitive complexity 44 (threshold 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.
NowIMGUIInputProvider.TryGetSnapshot (cognitive 43) Assets/NowUI/Runtime/Input/NowIMGUIInputProvider.cs:175— NowIMGUIInputProvider.TryGetSnapshot has cognitive complexity 43 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NowInspectorGui.ClassifyUncached (cognitive 42) Assets/NowUI/Runtime/Controls/NowInspector.cs:1279— NowInspectorGui.ClassifyUncached has cognitive complexity 42 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
NowSdfBakeJob.Execute (cognitive 42) Assets/NowUI/Runtime/NowManagedFontBaker.cs:75— NowSdfBakeJob.Execute has cognitive complexity 42 (threshold 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.
NowCodeEditor.ReindentEnclosedBlock (cognitive 42) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:4055— NowCodeEditor.ReindentEnclosedBlock has cognitive complexity 42 (threshold 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.
NowPngCodec.Expand (cognitive 42) Standalone/NowUI.Hosting/NowPngCodec.cs:326— NowPngCodec.Expand has cognitive complexity 42 (threshold 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.
NowMarkdownImages.TryGetEncodedDimensions (cognitive 41) Assets/NowUI/Extensions/Markdown/NowMarkdownImages.cs:424— NowMarkdownImages.TryGetEncodedDimensions has cognitive complexity 41 (threshold 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.
NowFontBaker.TryBakeFromSide (cognitive 41) Assets/NowUI/Editor/NowFontBaker.cs:529— NowFontBaker.TryBakeFromSide has cognitive complexity 41 (threshold 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.
NowGradientField.DrawPopup (cognitive 40) Assets/NowUI/Runtime/Controls/NowValueControls.cs:1571— NowGradientField.DrawPopup has cognitive complexity 40 (threshold 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.
NowLayout.ResolveFlexShares (cognitive 40) Assets/NowUI/Runtime/NowLayout.cs:3273— NowLayout.ResolveFlexShares has cognitive complexity 40 (threshold 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.
NowDockSpace.DrawFloatingWindow (cognitive 40) Assets/NowUI/Extensions/Docking/NowDocking.cs:1660— NowDockSpace.DrawFloatingWindow has cognitive complexity 40 (threshold 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.
NowNodeGraphCanvas.HandleKeyboardShortcuts (cognitive 40) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:4023— NowNodeGraphCanvas.HandleKeyboardShortcuts has cognitive complexity 40 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
NowPngCodec.Unfilter (cognitive 40) Standalone/NowUI.Hosting/NowPngCodec.cs:258— NowPngCodec.Unfilter has cognitive complexity 40 (threshold 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.
Now.UploadCapturedMeshes (cognitive 39) Assets/NowUI/Runtime/Now.cs:2094— Now.UploadCapturedMeshes has cognitive complexity 39 (threshold 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.
NowLayout.AllocateWrapped (cognitive 38) Assets/NowUI/Runtime/NowLayout.cs:3060— NowLayout.AllocateWrapped has cognitive complexity 38 (threshold 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.
NowCodeEditor.ToggleLineComment (cognitive 38) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:3617— NowCodeEditor.ToggleLineComment has cognitive complexity 38 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NowCSharpLanguage.ScanDocComment (cognitive 38) Assets/NowUI/Extensions/CodeEditor/NowCSharpLanguage.cs:212— NowCSharpLanguage.ScanDocComment has cognitive complexity 38 (threshold 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.
NowInput.Interact (cognitive 37) Assets/NowUI/Runtime/Input/NowInput.cs:996— NowInput.Interact has cognitive complexity 37 (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.
NowLottieTessellator.EmitStrokePolyline (cognitive 37) Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:1236— NowLottieTessellator.EmitStrokePolyline has cognitive complexity 37 (threshold 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.
Now.DrawPreparedCodepointRun (cognitive 37) Assets/NowUI/Runtime/Now.cs:3830— Now.DrawPreparedCodepointRun has cognitive complexity 37 (threshold 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.
NowFontAsset.MeasureText (cognitive 37) Assets/NowUI/Runtime/NowFont.cs:869— NowFontAsset.MeasureText has cognitive complexity 37 (threshold 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.
NowMarkupParser.Parse (cognitive 37) Assets/NowUI/Extensions/Markup/NowMarkupParser.cs:19— NowMarkupParser.Parse has cognitive complexity 37 (threshold 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.
NowMarkdownParser.ParseList (cognitive 36) Assets/NowUI/Extensions/Markdown/NowMarkdownParser.cs:427— NowMarkdownParser.ParseList has cognitive complexity 36 (threshold 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.
StrokeJob.EmitStrokePolyline (cognitive 36) Assets/NowUI/Runtime/Lottie/NowLottieBurstTessellator.cs:1108— StrokeJob.EmitStrokePolyline has cognitive complexity 36 (threshold 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.
NowLottieTessellator.ClipPolylines (cognitive 35) Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:1564— NowLottieTessellator.ClipPolylines has cognitive complexity 35 (threshold 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.
NowCSharpLanguage.ScanNumber (cognitive 35) Assets/NowUI/Extensions/CodeEditor/NowCSharpLanguage.cs:373— NowCSharpLanguage.ScanNumber has cognitive complexity 35 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NowMarkupCodeLanguage.Validate (cognitive 35) Assets/NowUI/Extensions/CodeEditor/NowMarkupCodeLanguage.cs:164— NowMarkupCodeLanguage.Validate has cognitive complexity 35 (threshold 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.
NowMarkdownInlineParser.TryParseLink (cognitive 35) REDACTED:250— NowMarkdownInlineParser.TryParseLink has cognitive complexity 35 (threshold 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.
NowUnityTextureAssets.LoadSprite (cognitive 35) Standalone/NowUI.Hosting/NowUnityTextureAssets.cs:91— NowUnityTextureAssets.LoadSprite has cognitive complexity 35 (threshold 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.
FillJob.EmitFillFringe (cognitive 35) Assets/NowUI/Runtime/Lottie/NowLottieBurstTessellator.cs:679— FillJob.EmitFillFringe has cognitive complexity 35 (threshold 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.
Matrix4x4.inverse.get (cognitive 34) Standalone/NowUI.Engine/Math/Matrix4x4.cs:468— Matrix4x4.inverse.get has cognitive complexity 34 (threshold 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.
NowMarkdownInlineParser.ProcessEmphasis (cognitive 34) REDACTED:436— NowMarkdownInlineParser.ProcessEmphasis has cognitive complexity 34 (threshold 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.
NowPngCodec.TryDecode (cognitive 34) Standalone/NowUI.Hosting/NowPngCodec.cs:31— NowPngCodec.TryDecode has cognitive complexity 34 (threshold 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.
NowFilePicker.DrawUserFolderRow (cognitive 33) Assets/NowUI/Runtime/Controls/NowFilePicker.cs:1442— NowFilePicker.DrawUserFolderRow has cognitive complexity 33 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NowLottieRenderer.RenderShapeItems (cognitive 33) Assets/NowUI/Runtime/Lottie/NowLottieRenderer.cs:473— NowLottieRenderer.RenderShapeItems has cognitive complexity 33 (threshold 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.
NowMarkupCodeLanguage.FindNearestOpenTag (cognitive 33) Assets/NowUI/Extensions/CodeEditor/NowMarkupCodeLanguage.cs:621— NowMarkupCodeLanguage.FindNearestOpenTag has cognitive complexity 33 (threshold 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.
NowNodeGraphCanvas.HandleNodeSearch (cognitive 33) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:4303— NowNodeGraphCanvas.HandleNodeSearch has cognitive complexity 33 (threshold 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.
DesktopInput.PublishDeviceInput (cognitive 33) Standalone/NowUI.Desktop/DesktopInput.Devices.cs:98— DesktopInput.PublishDeviceInput has cognitive complexity 33 (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.
WebGL2Backend.TryUploadRawMesh (cognitive 33) Standalone/NowUI.Browser/WebGL2Backend.cs:693— WebGL2Backend.TryUploadRawMesh has cognitive complexity 33 (threshold 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.
OpenTypeParser.TryReadFormat4 (cognitive 33) Assets/NowUI/Editor/NowFontGlyphCatalog.cs:477— OpenTypeParser.TryReadFormat4 has cognitive complexity 33 (threshold 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.
NowWorldGlassBackdrop.PopulateCommandBuffer (cognitive 33) Assets/NowUI/Runtime/NowWorldGlassBackdrop.cs:299— NowWorldGlassBackdrop.PopulateCommandBuffer has cognitive complexity 33 (threshold 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.
NowContextMenu.DrawEntry (cognitive 32) Assets/NowUI/Runtime/Controls/NowContextMenu.cs:1217— NowContextMenu.DrawEntry has cognitive complexity 32 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
NowSplitter.Draw (cognitive 32) Assets/NowUI/Runtime/Controls/NowSplitter.cs:73— NowSplitter.Draw has cognitive complexity 32 (threshold 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.
NowLottieTessellator.TessellateFill (cognitive 32) Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:564— NowLottieTessellator.TessellateFill has cognitive complexity 32 (threshold 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.
NowLottieTessellator.EmitFillFringe (cognitive 32) Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:996— NowLottieTessellator.EmitFillFringe has cognitive complexity 32 (threshold 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.
Now.AppendShapedRunBulk (cognitive 32) Assets/NowUI/Runtime/Now.cs:4874— Now.AppendShapedRunBulk has cognitive complexity 32 (threshold 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.
NowMarkdownInlineParser.TryParseAutolink (cognitive 32) REDACTED:346— NowMarkdownInlineParser.TryParseAutolink has cognitive complexity 32 (threshold 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.
WindowsPointerInput.WindowMessage (cognitive 32) Standalone/NowUI.Desktop/WindowsPointerInput.cs:49— WindowsPointerInput.WindowMessage has cognitive complexity 32 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
BrowserOptions.Parse (cognitive 32) Standalone/NowUI.Cli/BrowserOptions.cs:29— BrowserOptions.Parse has cognitive complexity 32 (threshold 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.
FillJob.TessellateFill (cognitive 32) Assets/NowUI/Runtime/Lottie/NowLottieBurstTessellator.cs:415— FillJob.TessellateFill has cognitive complexity 32 (threshold 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.
ExactParser.ParseNumber (cognitive 31) Assets/NowUI/Runtime/Controls/NowNumericExpression.cs:1071— ExactParser.ParseNumber has cognitive complexity 31 (threshold 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.
NowLottieTessellator.SortFloats (cognitive 31) Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:740— NowLottieTessellator.SortFloats has cognitive complexity 31 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (NowLottieTessellator.SortFloatsWithIndices) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
NowLottieTessellator.SortFloatsWithIndices (cognitive 31) Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:798— NowLottieTessellator.SortFloatsWithIndices has cognitive complexity 31 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (NowLottieTessellator.SortFloats) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
NowFontAsset.TryMeasureShapedText (cognitive 31) Assets/NowUI/Runtime/NowFont.cs:705— NowFontAsset.TryMeasureShapedText has cognitive complexity 31 (threshold 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.
NowCodeEditor.HandleCharacter (cognitive 31) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:3810— NowCodeEditor.HandleCharacter has cognitive complexity 31 (threshold 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.
NowMarkupDocument.Cache (cognitive 31) Assets/NowUI/Extensions/Markup/NowMarkupDocument.cs:459— NowMarkupDocument.Cache has cognitive complexity 31 (threshold 15). 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.
NowMarkupParser.TryReadOpenTag (cognitive 31) Assets/NowUI/Extensions/Markup/NowMarkupParser.cs:116— NowMarkupParser.TryReadOpenTag has cognitive complexity 31 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
Fetch.Run (cognitive 31) Standalone/NowUI.Hosting/NowHttpFetchProvider.cs:97— Fetch.Run has cognitive complexity 31 (threshold 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.
WebGL2Backend.BuildUniformBlock (cognitive 31) Standalone/NowUI.Browser/WebGL2Backend.cs:805— WebGL2Backend.BuildUniformBlock has cognitive complexity 31 (threshold 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.
NowLottieBurstTessellator.SortFloats (cognitive 31) Assets/NowUI/Runtime/Lottie/NowLottieBurstTessellator.cs:917— NowLottieBurstTessellator.SortFloats has cognitive complexity 31 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (NowLottieBurstTessellator.SortFloatsWithIndices) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
NowLottieBurstTessellator.SortFloatsWithIndices (cognitive 31) Assets/NowUI/Runtime/Lottie/NowLottieBurstTessellator.cs:975— NowLottieBurstTessellator.SortFloatsWithIndices has cognitive complexity 31 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (NowLottieBurstTessellator.SortFloats) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
NowRichTextParser.Parse (cognitive 30) Assets/NowUI/Runtime/Controls/NowRichTextParser.cs:207— NowRichTextParser.Parse has cognitive complexity 30 (threshold 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.
NowTextSelection.Interact (cognitive 30) Assets/NowUI/Runtime/Controls/NowTextSelection.cs:96— NowTextSelection.Interact has cognitive complexity 30 (threshold 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.
NowLayout.BeginGroup (cognitive 30) Assets/NowUI/Runtime/NowLayout.cs:2560— NowLayout.BeginGroup has cognitive complexity 30 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
NowCodeEditor.HandleTab (cognitive 30) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:4241— NowCodeEditor.HandleTab has cognitive complexity 30 (threshold 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.
NowSdfGraph.AddTextRun (cognitive 30) Assets/NowUI/Extensions/Sdf/NowSdf.cs:1543— NowSdfGraph.AddTextRun has cognitive complexity 30 (threshold 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.
Program.Main (cognitive 30) Tools/Standalone/ApiDump/Program.cs:19— Program.Main has cognitive complexity 30 (threshold 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.
NowModelPreview.RenderInternal (cognitive 30) Assets/NowUI/Runtime/NowModelPreview.cs:1424— NowModelPreview.RenderInternal has cognitive complexity 30 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
NowDatePicker.UpdateKeyboard (cognitive 29) Assets/NowUI/Runtime/Controls/NowDatePicker.cs:571— NowDatePicker.UpdateKeyboard has cognitive complexity 29 (threshold 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.
NowSplitView.Begin (cognitive 29) Assets/NowUI/Runtime/Controls/NowSplitView.cs:81— NowSplitView.Begin has cognitive complexity 29 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
NowLottieTessellator.ApplyTrim (cognitive 29) Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:1417— NowLottieTessellator.ApplyTrim has cognitive complexity 29 (threshold 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.
Now.TryDrawShapedString (cognitive 29) Assets/NowUI/Runtime/Now.cs:4497— Now.TryDrawShapedString has cognitive complexity 29 (threshold 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.
Now.AppendShapedRun (cognitive 29) Assets/NowUI/Runtime/Now.cs:4729— Now.AppendShapedRun has cognitive complexity 29 (threshold 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.
NowFont.TryReadCmapFormat4Coverage (cognitive 29) Assets/NowUI/Runtime/NowFont.cs:2269— NowFont.TryReadCmapFormat4Coverage has cognitive complexity 29 (threshold 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.
NowFont.MeasurePreparedCodepointRunBounds (cognitive 29) Assets/NowUI/Runtime/NowFont.cs:5659— NowFont.MeasurePreparedCodepointRunBounds has cognitive complexity 29 (threshold 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.
NowTextWrap.Layout (cognitive 29) Assets/NowUI/Runtime/NowTextWrap.cs:72— NowTextWrap.Layout has cognitive complexity 29 (threshold 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.
NowMarkdownCodeLanguage.TokenizeInline (cognitive 29) Assets/NowUI/Extensions/CodeEditor/NowMarkdownCodeLanguage.cs:136— NowMarkdownCodeLanguage.TokenizeInline has cognitive complexity 29 (threshold 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.
NowMarkupDocument.ExecuteAction (cognitive 29) Assets/NowUI/Extensions/Markup/NowMarkupDocument.cs:1454— NowMarkupDocument.ExecuteAction has cognitive complexity 29 (threshold 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.
BrowserTrimming.PreservedAssemblies (cognitive 29) Standalone/NowUI.Cli/BrowserTrimming.cs:22— BrowserTrimming.PreservedAssemblies has cognitive complexity 29 (threshold 15). Of this number, 27 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
OpenTypeParser.TryReadFormat12 (cognitive 29) Assets/NowUI/Editor/NowFontGlyphCatalog.cs:572— OpenTypeParser.TryReadFormat12 has cognitive complexity 29 (threshold 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.
NowWorldGlassBackdrop.ApplyReadyTextures (cognitive 29) Assets/NowUI/Runtime/NowWorldGlassBackdrop.cs:1023— NowWorldGlassBackdrop.ApplyReadyTextures has cognitive complexity 29 (threshold 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.
NowLottieAsset.DownloadSourceBytes (cognitive 28) Assets/NowUI/Runtime/Lottie/NowLottieAsset.Standalone.cs:101— NowLottieAsset.DownloadSourceBytes has cognitive complexity 28 (threshold 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.
Now.AppendLineUnitRects (cognitive 28) Assets/NowUI/Runtime/Now.cs:4397— Now.AppendLineUnitRects has cognitive complexity 28 (threshold 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.
NowFont.TryGetPreparedShapedRun (cognitive 28) Assets/NowUI/Runtime/NowFont.cs:5925— NowFont.TryGetPreparedShapedRun has cognitive complexity 28 (threshold 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.
Now.DrawBezierStroke (cognitive 28) Assets/NowUI/Runtime/NowLine.cs:695— Now.DrawBezierStroke has cognitive complexity 28 (threshold 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.
NowJsonLanguage.ParseNumber (cognitive 28) Assets/NowUI/Extensions/CodeEditor/NowJsonLanguage.cs:272— NowJsonLanguage.ParseNumber has cognitive complexity 28 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NowDockSpace.DrawTab (cognitive 28) Assets/NowUI/Extensions/Docking/NowDocking.cs:919— NowDockSpace.DrawTab has cognitive complexity 28 (threshold 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.
NowSdfGraph.CopyNestedNodes (cognitive 28) Assets/NowUI/Extensions/Sdf/NowSdf.cs:644— NowSdfGraph.CopyNestedNodes has cognitive complexity 28 (threshold 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.
NowTextField.DrawLong (cognitive 27) Assets/NowUI/Runtime/Controls/NowTextField.cs:933— NowTextField.DrawLong has cognitive complexity 27 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
NowTextSelection.HitTest (cognitive 27) Assets/NowUI/Runtime/Controls/NowTextSelection.cs:360— NowTextSelection.HitTest has cognitive complexity 27 (threshold 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.
NowRenderer.DrawBatchesTransformed (cognitive 27) Assets/NowUI/Runtime/NowRenderer.cs:336— NowRenderer.DrawBatchesTransformed has cognitive complexity 27 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NowCodeEditor.Rebuild (cognitive 27) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:3319— NowCodeEditor.Rebuild has cognitive complexity 27 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
NowJsonLanguage.ParseString (cognitive 27) Assets/NowUI/Extensions/CodeEditor/NowJsonLanguage.cs:219— NowJsonLanguage.ParseString has cognitive complexity 27 (threshold 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.
NowMarkdownDocument.LayoutTable (cognitive 27) Assets/NowUI/Extensions/Markdown/NowMarkdownDocument.cs:1234— NowMarkdownDocument.LayoutTable has cognitive complexity 27 (threshold 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.
NowNodeGraphCanvas.BuildSearchResults (cognitive 27) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:4440— NowNodeGraphCanvas.BuildSearchResults has cognitive complexity 27 (threshold 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.
Program.Main (cognitive 27) Standalone/Benchmarks/NativeRendering/Program.cs:15— Program.Main has cognitive complexity 27 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
NowWorldGraphic.ApplyGlassBackdropTexture (cognitive 27) Assets/NowUI/Runtime/NowWorldGraphic.cs:1375— NowWorldGraphic.ApplyGlassBackdropTexture has cognitive complexity 27 (threshold 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.
NowRichTextFlow.TryHit (cognitive 26) Assets/NowUI/Runtime/Controls/NowRichTextFlow.cs:640— NowRichTextFlow.TryHit has cognitive complexity 26 (threshold 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.
NowRichTextParser.TryReadTag (cognitive 26) Assets/NowUI/Runtime/Controls/NowRichTextParser.cs:600— NowRichTextParser.TryReadTag has cognitive complexity 26 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
NowTextField.DrawInt (cognitive 26) Assets/NowUI/Runtime/Controls/NowTextField.cs:769— NowTextField.DrawInt has cognitive complexity 26 (threshold 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.
NowAnimationCurveField.DrawPopup (cognitive 26) Assets/NowUI/Runtime/Controls/NowValueControls.cs:2982— NowAnimationCurveField.DrawPopup has cognitive complexity 26 (threshold 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.
NowCodeEditor.ReindentCloser (cognitive 26) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:3962— NowCodeEditor.ReindentCloser has cognitive complexity 26 (threshold 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.
NowMarkdownImages.CompleteDownload (cognitive 26) Assets/NowUI/Extensions/Markdown/NowMarkdownImages.Unity.cs:94— NowMarkdownImages.CompleteDownload has cognitive complexity 26 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
NowLottieAsset.DownloadSourceBytes (cognitive 26) Assets/NowUI/Runtime/Lottie/NowLottieAsset.Unity.cs:90— NowLottieAsset.DownloadSourceBytes has cognitive complexity 26 (threshold 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.
NowFocus.MoveFocus (cognitive 25) Assets/NowUI/Runtime/Controls/NowFocus.cs:2494— NowFocus.MoveFocus has cognitive complexity 25 (threshold 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.
NowUnitySerializedAssets.ConvertValue (cognitive 25) Standalone/NowUI.Hosting/NowUnitySerializedAssets.cs:181— NowUnitySerializedAssets.ConvertValue has cognitive complexity 25 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
InputReplay.InputReplay.ctor (cognitive 25) Standalone/NowUI.Cli/InputReplay.cs:16— InputReplay.InputReplay.ctor has cognitive complexity 25 (threshold 15). Of this number, 24 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Program.Main (cognitive 25) Standalone/Benchmarks/FrameCpu/Program.cs:64— Program.Main has cognitive complexity 25 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
AnimationCurve.Evaluate (cognitive 24) Standalone/NowUI.Engine/Data/AnimationCurve.cs:161— AnimationCurve.Evaluate has cognitive complexity 24 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
Mesh.SetTriangles (cognitive 24) Standalone/NowUI.Engine/Graphics/Mesh.cs:574— Mesh.SetTriangles has cognitive complexity 24 (threshold 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.
NowFilePicker.DrawPopupContent (cognitive 24) Assets/NowUI/Runtime/Controls/NowFilePicker.cs:763— NowFilePicker.DrawPopupContent has cognitive complexity 24 (threshold 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.
NowRichText.AddTextRange (cognitive 24) Assets/NowUI/Runtime/Controls/NowRichText.cs:720— NowRichText.AddTextRange has cognitive complexity 24 (threshold 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.
NowScrollScope.ApplyPanScroll (cognitive 24) Assets/NowUI/Runtime/Controls/NowScrollView.cs:628— NowScrollScope.ApplyPanScroll has cognitive complexity 24 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
NowLayout.StoreCache (cognitive 24) Assets/NowUI/Runtime/NowLayout.cs:2827— NowLayout.StoreCache has cognitive complexity 24 (threshold 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.
NowManagedFontSession.AddGlyphsCore (cognitive 24) Assets/NowUI/Runtime/NowManagedFontSession.cs:212— NowManagedFontSession.AddGlyphsCore has cognitive complexity 24 (threshold 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.
Now.DrawArc (cognitive 24) Assets/NowUI/Runtime/NowStroke.cs:471— Now.DrawArc has cognitive complexity 24 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
NowTrueType.TryGetGlyphIndex (cognitive 24) Assets/NowUI/Runtime/NowTrueType.cs:265— NowTrueType.TryGetGlyphIndex has cognitive complexity 24 (threshold 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.
NowWorldGraphic.ResolveInputRay (cognitive 24) Assets/NowUI/Runtime/NowWorldGraphic.cs:1673— NowWorldGraphic.ResolveInputRay has cognitive complexity 24 (threshold 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.
NowTreeViewScope.DrawRow (cognitive 23) Assets/NowUI/Runtime/Controls/NowTreeView.cs:282— NowTreeViewScope.DrawRow has cognitive complexity 23 (threshold 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.
NowFont.TryCacheCompiledGlyph (cognitive 23) Assets/NowUI/Runtime/NowFont.cs:3778— NowFont.TryCacheCompiledGlyph has cognitive complexity 23 (threshold 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.
DynamicSession.TryCreate (cognitive 23) Assets/NowUI/Runtime/NowFontCompiler.cs:442— DynamicSession.TryCreate has cognitive complexity 23 (threshold 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.
Now.DrawGradient (cognitive 23) Assets/NowUI/Runtime/NowGradient.cs:946— Now.DrawGradient has cognitive complexity 23 (threshold 15). 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.
NowTrueType.AppendSimpleGlyph (cognitive 23) Assets/NowUI/Runtime/NowTrueType.cs:509— NowTrueType.AppendSimpleGlyph has cognitive complexity 23 (threshold 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.
NowCodeEditor.KindColor (cognitive 23) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:1619— NowCodeEditor.KindColor has cognitive complexity 23 (threshold 15). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
NowJsonLanguage.ParseObject (cognitive 23) Assets/NowUI/Extensions/CodeEditor/NowJsonLanguage.cs:316— NowJsonLanguage.ParseObject has cognitive complexity 23 (threshold 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.
NowSdfGraph.TryEnsureTextPixelRange (cognitive 23) Assets/NowUI/Extensions/Sdf/NowSdf.cs:2144— NowSdfGraph.TryEnsureTextPixelRange has cognitive complexity 23 (threshold 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.
BrowserServer.TryResolvePath (cognitive 23) Standalone/NowUI.Cli/BrowserServer.cs:164— BrowserServer.TryResolvePath has cognitive complexity 23 (threshold 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.
NowFilePicker.RefreshEntries (cognitive 22) Assets/NowUI/Runtime/Controls/NowFilePicker.cs:2827— NowFilePicker.RefreshEntries has cognitive complexity 22 (threshold 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.
NowTimePicker.ApplyDialPointer (cognitive 22) Assets/NowUI/Runtime/Controls/NowTimePicker.cs:358— NowTimePicker.ApplyDialPointer has cognitive complexity 22 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NowFontAsset.MeasureText (cognitive 22) Assets/NowUI/Runtime/NowFont.cs:785— NowFontAsset.MeasureText has cognitive complexity 22 (threshold 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.
NowFont.TryGetPreparedCodepointRun (cognitive 22) Assets/NowUI/Runtime/NowFont.cs:5541— NowFont.TryGetPreparedCodepointRun has cognitive complexity 22 (threshold 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.
NowLayout.Allocate (cognitive 22) Assets/NowUI/Runtime/NowLayout.cs:2926— NowLayout.Allocate has cognitive complexity 22 (threshold 15). 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.
NowCodeEditor.DrawSquiggles (cognitive 22) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:2041— NowCodeEditor.DrawSquiggles has cognitive complexity 22 (threshold 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.
NowDockSpace.DockWindowToLeaf (cognitive 22) Assets/NowUI/Extensions/Docking/NowDocking.cs:612— NowDockSpace.DockWindowToLeaf has cognitive complexity 22 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
NowUnitySerializedAssets.Load (cognitive 22) Standalone/NowUI.Hosting/NowUnitySerializedAssets.cs:67— NowUnitySerializedAssets.Load has cognitive complexity 22 (threshold 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.
PlaygroundScene.Draw (cognitive 22) Standalone/Samples/NativePreview/PlaygroundScene.cs:29— PlaygroundScene.Draw has cognitive complexity 22 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
WebGL2Backend.Blit (cognitive 22) Standalone/NowUI.Browser/WebGL2Backend.cs:1221— WebGL2Backend.Blit has cognitive complexity 22 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
NowSlider.Draw (cognitive 21) Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:847— NowSlider.Draw has cognitive complexity 21 (threshold 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.
DoubleParser.ParseNumber (cognitive 21) Assets/NowUI/Runtime/Controls/NowNumericExpression.cs:454— DoubleParser.ParseNumber has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NowOverlay.PruneRegistrationOwners (cognitive 21) Assets/NowUI/Runtime/Controls/NowOverlay.cs:418— NowOverlay.PruneRegistrationOwners has cognitive complexity 21 (threshold 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.
NowRichTextLayout.Align (cognitive 21) Assets/NowUI/Runtime/Controls/NowRichTextFlow.cs:389— NowRichTextLayout.Align has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NowTextEdit.WordBounds (cognitive 21) Assets/NowUI/Runtime/Controls/NowTextEdit.cs:142— NowTextEdit.WordBounds has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NowTextField.DrawFloat (cognitive 21) Assets/NowUI/Runtime/Controls/NowTextField.cs:691— NowTextField.DrawFloat has cognitive complexity 21 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
NowTextField.DrawDouble (cognitive 21) Assets/NowUI/Runtime/Controls/NowTextField.cs:857— NowTextField.DrawDouble has cognitive complexity 21 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
NowTextSelection.BuildHighlightRects (cognitive 21) Assets/NowUI/Runtime/Controls/NowTextSelection.cs:280— NowTextSelection.BuildHighlightRects has cognitive complexity 21 (threshold 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.
NowTimePicker.DrawPopup (cognitive 21) Assets/NowUI/Runtime/Controls/NowTimePicker.cs:283— NowTimePicker.DrawPopup has cognitive complexity 21 (threshold 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.
NowJsonValue.ParseString (cognitive 21) Assets/NowUI/Runtime/Lottie/NowJson.cs:319— NowJsonValue.ParseString has cognitive complexity 21 (threshold 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.
Now.DrawSdf (cognitive 21) Assets/NowUI/Runtime/Now.cs:2830— Now.DrawSdf has cognitive complexity 21 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
Now.DrawStrokePolyline (cognitive 21) Assets/NowUI/Runtime/NowStroke.cs:389— Now.DrawStrokePolyline has cognitive complexity 21 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
NowTrueType.ParseDirectory (cognitive 21) Assets/NowUI/Runtime/NowTrueType.cs:120— NowTrueType.ParseDirectory has cognitive complexity 21 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
NowNodeGraphCanvas.MoveSelectedNodes (cognitive 21) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:5632— NowNodeGraphCanvas.MoveSelectedNodes has cognitive complexity 21 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
NowNodeGraphCanvas.DrawNode (cognitive 21) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6174— NowNodeGraphCanvas.DrawNode has cognitive complexity 21 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
NowSdfCache.GetMaterial (cognitive 21) Assets/NowUI/Extensions/Sdf/NowSdf.cs:5863— NowSdfCache.GetMaterial has cognitive complexity 21 (threshold 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.
NowUnityTextureAssets.LoadTexture (cognitive 21) Standalone/NowUI.Hosting/NowUnityTextureAssets.cs:22— NowUnityTextureAssets.LoadTexture has cognitive complexity 21 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
CaptureRunner.Run (cognitive 21) Standalone/NowUI.Cli/CaptureRunner.cs:13— CaptureRunner.Run has cognitive complexity 21 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
SyntaxParser.ParseNumber (cognitive 20) Assets/NowUI/Runtime/Controls/NowNumericExpression.cs:209— SyntaxParser.ParseNumber has cognitive complexity 20 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NowLottieAsset.ExtractSourceJson (cognitive 20) Assets/NowUI/Runtime/Lottie/NowLottieAsset.cs:153— NowLottieAsset.ExtractSourceJson has cognitive complexity 20 (threshold 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.
Now.CountTextUnits (cognitive 20) Assets/NowUI/Runtime/Now.cs:3158— Now.CountTextUnits has cognitive complexity 20 (threshold 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.
NowFont.TryMakeDynamicCacheRoom (cognitive 20) Assets/NowUI/Runtime/NowFont.cs:3889— NowFont.TryMakeDynamicCacheRoom has cognitive complexity 20 (threshold 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.
NowFont.TryCommitSessionGlyphs (cognitive 20) Assets/NowUI/Runtime/NowFont.cs:4224— NowFont.TryCommitSessionGlyphs has cognitive complexity 20 (threshold 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.
Now.DrawLine (cognitive 20) Assets/NowUI/Runtime/NowLine.cs:359— Now.DrawLine has cognitive complexity 20 (threshold 15). 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.
NowDockSpace.MoveWindowToLeaf (cognitive 20) Assets/NowUI/Extensions/Docking/NowDocking.cs:676— NowDockSpace.MoveWindowToLeaf has cognitive complexity 20 (threshold 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.
NowMarkupManifest.CollectEmits (cognitive 20) Assets/NowUI/Extensions/Markup/NowMarkupManifest.cs:104— NowMarkupManifest.CollectEmits has cognitive complexity 20 (threshold 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.
NowMarkupStyleHelpers.LayoutOptions (cognitive 20) Assets/NowUI/Extensions/Markup/NowMarkupStyles.cs:383— NowMarkupStyleHelpers.LayoutOptions has cognitive complexity 20 (threshold 15). 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.
NowNodeGraphCanvas.InteractPorts (cognitive 20) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:5139— NowNodeGraphCanvas.InteractPorts has cognitive complexity 20 (threshold 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.
NowSdfCache.PrepareForTerminal (cognitive 20) Assets/NowUI/Extensions/Sdf/NowSdf.cs:5294— NowSdfCache.PrepareForTerminal has cognitive complexity 20 (threshold 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.
BrowserAssets.Select (cognitive 20) Standalone/NowUI.Cli/BrowserAssets.cs:140— BrowserAssets.Select has cognitive complexity 20 (threshold 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.
BrowserServer.HandleAsync (cognitive 20) Standalone/NowUI.Cli/BrowserServer.cs:77— BrowserServer.HandleAsync has cognitive complexity 20 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
NowWorldGraphicExample.DrawMenuLab (cognitive 20) Assets/NowUI/Example/NowWorldGraphicExample.cs:59— NowWorldGraphicExample.DrawMenuLab has cognitive complexity 20 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NowContextMenu.DrawDeferred (cognitive 19) Assets/NowUI/Runtime/Controls/NowContextMenu.cs:695— NowContextMenu.DrawDeferred has cognitive complexity 19 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
NowDropdown.Draw (cognitive 19) Assets/NowUI/Runtime/Controls/NowDropdown.cs:88— NowDropdown.Draw has cognitive complexity 19 (threshold 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.
NowFilePicker.DrawPopupTitle (cognitive 19) Assets/NowUI/Runtime/Controls/NowFilePicker.cs:896— NowFilePicker.DrawPopupTitle has cognitive complexity 19 (threshold 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.
NowFilePicker.DrawBrowser (cognitive 19) Assets/NowUI/Runtime/Controls/NowFilePicker.cs:1285— NowFilePicker.DrawBrowser has cognitive complexity 19 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
NowInspectorGui.NicifyName (cognitive 19) Assets/NowUI/Runtime/Controls/NowInspector.cs:1477— NowInspectorGui.NicifyName has cognitive complexity 19 (threshold 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.
NowGradientField.DrawAlphaKeyInspector (cognitive 19) Assets/NowUI/Runtime/Controls/NowValueControls.cs:1910— NowGradientField.DrawAlphaKeyInspector has cognitive complexity 19 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
Now.DrawLottie (cognitive 19) Assets/NowUI/Runtime/Now.cs:5207— Now.DrawLottie has cognitive complexity 19 (threshold 15). 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.
NowFontAsset.GetShapedMeasureSegmentation (cognitive 19) Assets/NowUI/Runtime/NowFont.cs:612— NowFontAsset.GetShapedMeasureSegmentation has cognitive complexity 19 (threshold 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.
NowFont.GetEstimatedDynamicCacheResidentBytes (cognitive 19) Assets/NowUI/Runtime/NowFont.cs:1787— NowFont.GetEstimatedDynamicCacheResidentBytes has cognitive complexity 19 (threshold 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.
NowFont.TryGetOpenTypeTable (cognitive 19) Assets/NowUI/Runtime/NowFont.cs:2057— NowFont.TryGetOpenTypeTable has cognitive complexity 19 (threshold 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.
NowFont.TryReadCmapFormat12Coverage (cognitive 19) Assets/NowUI/Runtime/NowFont.cs:2365— NowFont.TryReadCmapFormat12Coverage has cognitive complexity 19 (threshold 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.
NowManagedFontSession.BakePending (cognitive 19) Assets/NowUI/Runtime/NowManagedFontSession.cs:378— NowManagedFontSession.BakePending has cognitive complexity 19 (threshold 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.
Now.EnsureMaskShaderState (cognitive 19) Assets/NowUI/Runtime/NowMaskShader.cs:556— Now.EnsureMaskShaderState has cognitive complexity 19 (threshold 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.
NowMesh.AddShapedTextRunReserved (cognitive 19) Assets/NowUI/Runtime/NowMesh.cs:946— NowMesh.AddShapedTextRunReserved has cognitive complexity 19 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (NowMesh.AddCodepointTextRunReserved) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
NowMesh.AddCodepointTextRunReserved (cognitive 19) Assets/NowUI/Runtime/NowMesh.cs:1200— NowMesh.AddCodepointTextRunReserved has cognitive complexity 19 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (NowMesh.AddShapedTextRunReserved) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
NowZipArchivePreflight.Validate (cognitive 19) Assets/NowUI/Runtime/NowRemoteContent.cs:297— NowZipArchivePreflight.Validate has cognitive complexity 19 (threshold 15). 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.
NowMarkdownDocument.LayoutCodeBlock (cognitive 19) Assets/NowUI/Extensions/Markdown/NowMarkdownDocument.cs:1071— NowMarkdownDocument.LayoutCodeBlock has cognitive complexity 19 (threshold 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.
NowMarkdownDocument.LayoutWords (cognitive 19) Assets/NowUI/Extensions/Markdown/NowMarkdownDocument.cs:1423— NowMarkdownDocument.LayoutWords has cognitive complexity 19 (threshold 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.
NowMarkdownParser.TryParseDelimiterRow (cognitive 19) Assets/NowUI/Extensions/Markdown/NowMarkdownParser.cs:590— NowMarkdownParser.TryParseDelimiterRow has cognitive complexity 19 (threshold 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.
NowMarkdownParser.TryGetSetextLevel (cognitive 19) Assets/NowUI/Extensions/Markdown/NowMarkdownParser.cs:739— NowMarkdownParser.TryGetSetextLevel has cognitive complexity 19 (threshold 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.
NowNodeGraph.TryAddLink (cognitive 19) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:1499— NowNodeGraph.TryAddLink has cognitive complexity 19 (threshold 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.
NowUnitySerializedAssets.ReadYaml (cognitive 19) Standalone/NowUI.Hosting/NowUnitySerializedAssets.cs:217— NowUnitySerializedAssets.ReadYaml has cognitive complexity 19 (threshold 15). Of this number, 18 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DesktopInput.Drain (cognitive 19) Standalone/NowUI.Desktop/DesktopInput.cs:114— DesktopInput.Drain has cognitive complexity 19 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
BrowserAssetSelection.FromAssembly (cognitive 19) Standalone/NowUI.Cli/BrowserAssetSelection.cs:36— BrowserAssetSelection.FromAssembly has cognitive complexity 19 (threshold 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.
BrowserRunner.Dependencies (cognitive 19) Standalone/NowUI.Cli/BrowserRunner.cs:163— BrowserRunner.Dependencies has cognitive complexity 19 (threshold 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.
BrowserServer.SelectEncoding (cognitive 19) Standalone/NowUI.Cli/BrowserServer.cs:125— BrowserServer.SelectEncoding has cognitive complexity 19 (threshold 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.
PreviewRunner.Run (cognitive 19) Standalone/NowUI.Cli/PreviewRunner.cs:11— PreviewRunner.Run has cognitive complexity 19 (threshold 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.
OpenTypeParser.TryReadCmap (cognitive 19) Assets/NowUI/Editor/NowFontGlyphCatalog.cs:294— OpenTypeParser.TryReadCmap has cognitive complexity 19 (threshold 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.
OpenTypeParser.ReadGlyphNames (cognitive 19) Assets/NowUI/Editor/NowFontGlyphCatalog.cs:365— OpenTypeParser.ReadGlyphNames has cognitive complexity 19 (threshold 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.
OpenTypeParser.TryReadTableDirectory (cognitive 19) Assets/NowUI/Editor/NowFontGlyphCatalog.cs:650— OpenTypeParser.TryReadTableDirectory has cognitive complexity 19 (threshold 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.
NowFocus.RegisterResolved (cognitive 18) Assets/NowUI/Runtime/Controls/NowFocus.cs:870— NowFocus.RegisterResolved has cognitive complexity 18 (threshold 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.
ExactNumber.TryPower (cognitive 18) Assets/NowUI/Runtime/Controls/NowNumericExpression.cs:739— ExactNumber.TryPower has cognitive complexity 18 (threshold 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.
NowRichText.PrepareDocument (cognitive 18) Assets/NowUI/Runtime/Controls/NowRichText.cs:436— NowRichText.PrepareDocument has cognitive complexity 18 (threshold 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.
NowTimePicker.BuildDialContext (cognitive 18) Assets/NowUI/Runtime/Controls/NowTimePicker.cs:406— NowTimePicker.BuildDialContext has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NowLottieAnimatable.ParseKeyframes (cognitive 18) Assets/NowUI/Runtime/Lottie/NowLottieModel.cs:1002— NowLottieAnimatable.ParseKeyframes has cognitive complexity 18 (threshold 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.
Now.DrawTextBlock (cognitive 18) Assets/NowUI/Runtime/Now.cs:4266— Now.DrawTextBlock has cognitive complexity 18 (threshold 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.
NowGlassRenderer.CopyAndBlurBackdrop (cognitive 18) Assets/NowUI/Runtime/NowGlassRenderer.cs:509— NowGlassRenderer.CopyAndBlurBackdrop has cognitive complexity 18 (threshold 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.
DesktopInput.Dispose (cognitive 18) Standalone/NowUI.Desktop/DesktopInput.cs:438— DesktopInput.Dispose has cognitive complexity 18 (threshold 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.
DesktopRenderBackend.ReadPixelsRgbaBottomUp (cognitive 18) Standalone/NowUI.Desktop/DesktopRenderBackend.cs:282— DesktopRenderBackend.ReadPixelsRgbaBottomUp has cognitive complexity 18 (threshold 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.
NowStandaloneAssetExport.ExportFontFamily (cognitive 18) Assets/NowUI/Editor/NowStandaloneAssetExport.cs:718— NowStandaloneAssetExport.ExportFontFamily has cognitive complexity 18 (threshold 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.
NowUIAgentSkillInstaller.InstallAgentSkill (cognitive 18) Assets/NowUI/Editor/NowUIAgentSkillInstaller.cs:42— NowUIAgentSkillInstaller.InstallAgentSkill has cognitive complexity 18 (threshold 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.
NowUIAgentSkillInstaller.ResolvePackageRoot (cognitive 18) Assets/NowUI/Editor/NowUIAgentSkillInstaller.cs:202— NowUIAgentSkillInstaller.ResolvePackageRoot has cognitive complexity 18 (threshold 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.
NowInspectorGui.DrawCollection (cognitive 17) Assets/NowUI/Runtime/Controls/NowInspector.cs:983— NowInspectorGui.DrawCollection has cognitive complexity 17 (threshold 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.
NowRichText.ContainsDefaultTag (cognitive 17) Assets/NowUI/Runtime/Controls/NowRichText.cs:500— NowRichText.ContainsDefaultTag has cognitive complexity 17 (threshold 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.
NowScrollView.EnsureFocusedControlVisible (cognitive 17) Assets/NowUI/Runtime/Controls/NowScrollView.cs:254— NowScrollView.EnsureFocusedControlVisible has cognitive complexity 17 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
NowTextField.HitTest (cognitive 17) Assets/NowUI/Runtime/Controls/NowTextField.cs:1777— NowTextField.HitTest has cognitive complexity 17 (threshold 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.
NowTimePicker.UpdateKeyboard (cognitive 17) Assets/NowUI/Runtime/Controls/NowTimePicker.cs:527— NowTimePicker.UpdateKeyboard has cognitive complexity 17 (threshold 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.
NowAnimationCurveField.DrawKeyInspector (cognitive 17) Assets/NowUI/Runtime/Controls/NowValueControls.cs:3096— NowAnimationCurveField.DrawKeyInspector has cognitive complexity 17 (threshold 15). 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.
Now.DrawTextBlock (cognitive 17) Assets/NowUI/Runtime/Now.cs:4312— Now.DrawTextBlock has cognitive complexity 17 (threshold 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.
NowLayout.EndGroup (cognitive 17) Assets/NowUI/Runtime/NowLayout.cs:2653— NowLayout.EndGroup has cognitive complexity 17 (threshold 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.
NowManagedFontBaker.FlattenContour (cognitive 17) Assets/NowUI/Runtime/NowManagedFontBaker.cs:236— NowManagedFontBaker.FlattenContour has cognitive complexity 17 (threshold 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.
Now.DrawPolygon (cognitive 17) Assets/NowUI/Runtime/NowShape.cs:387— Now.DrawPolygon has cognitive complexity 17 (threshold 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.
NowCodeEditor.FindBracketAtCaret (cognitive 17) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:1877— NowCodeEditor.FindBracketAtCaret has cognitive complexity 17 (threshold 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.
NowCodeEditor.DrawCompletionOverlay (cognitive 17) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:2878— NowCodeEditor.DrawCompletionOverlay has cognitive complexity 17 (threshold 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.
NowMarkdownCodeLanguage.Validate (cognitive 17) Assets/NowUI/Extensions/CodeEditor/NowMarkdownCodeLanguage.cs:213— NowMarkdownCodeLanguage.Validate has cognitive complexity 17 (threshold 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.
NowMarkdownParser.TryGetListMarker (cognitive 17) Assets/NowUI/Extensions/Markdown/NowMarkdownParser.cs:368— NowMarkdownParser.TryGetListMarker has cognitive complexity 17 (threshold 15). 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.
NowMarkdownParser.SplitTableRow (cognitive 17) Assets/NowUI/Extensions/Markdown/NowMarkdownParser.cs:635— NowMarkdownParser.SplitTableRow has cognitive complexity 17 (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.
NowNodeGraphCanvas.HandleArrowNudge (cognitive 17) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:4149— NowNodeGraphCanvas.HandleArrowNudge has cognitive complexity 17 (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.
NowNodeGraphCanvas.FindCompatiblePortNear (cognitive 17) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6651— NowNodeGraphCanvas.FindCompatiblePortNear has cognitive complexity 17 (threshold 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.
NowSdfCache.Upload (cognitive 17) Assets/NowUI/Extensions/Sdf/NowSdf.cs:6060— NowSdfCache.Upload has cognitive complexity 17 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
NowProjectAssets.AddResolvedPackages (cognitive 17) Standalone/NowUI.Hosting/NowProjectAssets.cs:251— NowProjectAssets.AddResolvedPackages has cognitive complexity 17 (threshold 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.
WebGL2Backend.EnsureMeshUploaded (cognitive 17) Standalone/NowUI.Browser/WebGL2Backend.cs:592— WebGL2Backend.EnsureMeshUploaded has cognitive complexity 17 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
NowFontEditor.DrawBakedPages (cognitive 17) Assets/NowUI/Editor/NowFontEditor.cs:231— NowFontEditor.DrawBakedPages has cognitive complexity 17 (threshold 15). 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.
NowStandaloneAssetExport.ExportFace (cognitive 17) Assets/NowUI/Editor/NowStandaloneAssetExport.cs:828— NowStandaloneAssetExport.ExportFace has cognitive complexity 17 (threshold 15). 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.
NowWorldGlassBackdrop.MarkCameraCapturesReady (cognitive 17) Assets/NowUI/Runtime/NowWorldGlassBackdrop.cs:969— NowWorldGlassBackdrop.MarkCameraCapturesReady has cognitive complexity 17 (threshold 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.
NowWorldGraphic.CollectBackdropContributors (cognitive 17) Assets/NowUI/Runtime/NowWorldGraphic.cs:1287— NowWorldGraphic.CollectBackdropContributors has cognitive complexity 17 (threshold 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.
ClickThenIdleInputProvider.TryGetSnapshot (cognitive 17) Assets/NowUIHarness/NowHarnessScenarios.cs:240— ClickThenIdleInputProvider.TryGetSnapshot has cognitive complexity 17 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
NowBenchmarkAllocations.NowBenchmarkAllocations.ctor (cognitive 17) Assets/NowUITests/BenchmarkSupport/NowBenchmarkAllocations.cs:39— NowBenchmarkAllocations.NowBenchmarkAllocations.ctor has cognitive complexity 17 (threshold 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.
Gradient.Equals (cognitive 16) Standalone/NowUI.Engine/Data/Gradient.cs:478— Gradient.Equals has cognitive complexity 16 (threshold 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.
CommandBuffer.Execute (cognitive 16) Standalone/NowUI.Engine/Graphics/Rendering/CommandBuffer.cs:505— CommandBuffer.Execute has cognitive complexity 16 (threshold 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.
NowRuntime.CollectFromAssembly (cognitive 16) Standalone/NowUI.Engine/NowRuntime.cs:337— NowRuntime.CollectFromAssembly has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NowContextMenu.DrawMenuEntries (cognitive 16) Assets/NowUI/Runtime/Controls/NowContextMenu.cs:990— NowContextMenu.DrawMenuEntries has cognitive complexity 16 (threshold 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.
NowScrollScope.DisposeOwnedScope (cognitive 16) Assets/NowUI/Runtime/Controls/NowScrollView.cs:456— NowScrollScope.DisposeOwnedScope has cognitive complexity 16 (threshold 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.
NowLottieTessellator.ExtractRange (cognitive 16) Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:1510— NowLottieTessellator.ExtractRange has cognitive complexity 16 (threshold 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.
NowLottieShapeAnimatable.Parse (cognitive 16) Assets/NowUI/Runtime/Lottie/NowLottieModel.cs:1241— NowLottieShapeAnimatable.Parse has cognitive complexity 16 (threshold 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.
Now.EndCanvasMeshCapture (cognitive 16) Assets/NowUI/Runtime/Now.cs:2003— Now.EndCanvasMeshCapture has cognitive complexity 16 (threshold 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.
Now.DrawGlass (cognitive 16) Assets/NowUI/Runtime/NowGlass.cs:241— Now.DrawGlass has cognitive complexity 16 (threshold 15). 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.
NowGUI.AutoForEvent (cognitive 16) Assets/NowUI/Runtime/NowGUI.cs:204— NowGUI.AutoForEvent has cognitive complexity 16 (threshold 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.
NowLayout.ResolveAxis (cognitive 16) Assets/NowUI/Runtime/NowLayout.cs:3180— NowLayout.ResolveAxis has cognitive complexity 16 (threshold 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.
NowTextUnitCursor.IsContinuation (cognitive 16) Assets/NowUI/Runtime/NowTextAnimation.cs:654— NowTextUnitCursor.IsContinuation has cognitive complexity 16 (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.
NowTextWrap.Draw (cognitive 16) Assets/NowUI/Runtime/NowTextWrap.cs:198— NowTextWrap.Draw has cognitive complexity 16 (threshold 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.
NowTrueType.AppendGlyph (cognitive 16) Assets/NowUI/Runtime/NowTrueType.cs:413— NowTrueType.AppendGlyph has cognitive complexity 16 (threshold 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.
NowMarkdownParser.TryParseFence (cognitive 16) Assets/NowUI/Extensions/Markdown/NowMarkdownParser.cs:211— NowMarkdownParser.TryParseFence has cognitive complexity 16 (threshold 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.
NowNodeGraphCanvas.CompleteDragSelection (cognitive 16) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:5944— NowNodeGraphCanvas.CompleteDragSelection has cognitive complexity 16 (threshold 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.
NowFileResources.LoadMaterials (cognitive 16) Standalone/NowUI.Hosting/NowFileResources.cs:274— NowFileResources.LoadMaterials has cognitive complexity 16 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
NowUnitySerializedAssets.LoadTexture (cognitive 16) Standalone/NowUI.Hosting/NowUnitySerializedAssets.cs:125— NowUnitySerializedAssets.LoadTexture has cognitive complexity 16 (threshold 15). 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.
NowUnitySerializedAssets.FromBinary (cognitive 16) Standalone/NowUI.Hosting/NowUnitySerializedAssets.cs:287— NowUnitySerializedAssets.FromBinary has cognitive complexity 16 (threshold 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.
DesktopRenderBackend.DesktopRenderBackend.ctor (cognitive 16) Standalone/NowUI.Desktop/DesktopRenderBackend.cs:122— DesktopRenderBackend.DesktopRenderBackend.ctor has cognitive complexity 16 (threshold 15). 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.
BrowserSizeReport.CategoryFor (cognitive 16) Standalone/NowUI.Cli/BrowserSizeReport.cs:52— BrowserSizeReport.CategoryFor has cognitive complexity 16 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
NowBuilderDiscardAnalyzer.AnalyzeExpressionStatement (cognitive 16) Assets/NowUI/Analyzers~/NowUI.Analyzers/NowBuilderDiscardAnalyzer.cs:47— NowBuilderDiscardAnalyzer.AnalyzeExpressionStatement has cognitive complexity 16 (threshold 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.
NowStandaloneAssetExport.StripComments (cognitive 16) Assets/NowUI/Editor/NowStandaloneAssetExport.cs:643— NowStandaloneAssetExport.StripComments has cognitive complexity 16 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
NowWorldInputProvider.TryGetSnapshot (cognitive 16) Assets/NowUI/Runtime/Input/NowWorldInputProvider.cs:106— NowWorldInputProvider.TryGetSnapshot has cognitive complexity 16 (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.
NowLottieBurstTessellator.FlattenPacked (cognitive 16) Assets/NowUI/Runtime/Lottie/NowLottieBurstTessellator.cs:287— NowLottieBurstTessellator.FlattenPacked has cognitive complexity 16 (threshold 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.
Near-duplicate member pair (139 shared lines) Assets/NowUI/Runtime/NowMesh.cs:960— Assets/NowUI/Runtime/NowMesh.cs:960-1198 | Assets/NowUI/Runtime/NowMesh.cs:1214-1452 — These two members are variants of one another: 139 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication· Members sharing a duplicated core (6 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (6 members, 50+ identical tokens) Assets/NowUI/Runtime/Controls/NowComboBox.cs:135— Assets/NowUI/Runtime/Controls/NowComboBox.cs:135-235 | Assets/NowUI/Runtime/Controls/NowComboBox.cs:238-344 | Assets/NowUI/Runtime/Controls/NowDatePicker.cs:176-231 | Assets/NowUI/Runtime/Controls/NowDropdown.cs:89-159 | Assets/NowUI/Runtime/Controls/NowMaskField.cs:130-175 | Assets/NowUI/Runtime/Controls/NowTimePicker.cs:133-196 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
D4 · Code Duplication· Members sharing a duplicated core (5 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (5 members, 50+ identical tokens) Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:468— Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:468-496 | Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:511-536 | Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:622-646 | Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:661-682 | Assets/NowUI/Runtime/Controls/NowSwitch.cs:79-105 — 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 (58 corresponding lines) · ×1
Edited copy of a member (58 corresponding lines) Standalone/NowUI.Engine/Math/Vector2.cs:472— Standalone/NowUI.Engine/Math/Vector2.cs:472-529 | Standalone/NowUI.Engine/Math/Vector3.cs:484-555 — These two members are one piece of code written twice and then edited apart: 58 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (55 corresponding lines) · ×1
Edited copy of a member (55 corresponding lines) Assets/NowUI/Runtime/NowGlassRenderer.cs:215— Assets/NowUI/Runtime/NowGlassRenderer.cs:215-296 | Assets/NowUI/Runtime/NowGlassRenderer.cs:321-375 — These two members are one piece of code written twice and then edited apart: 55 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (77 corresponding lines) · ×1
Edited copy of a member (77 corresponding lines) Assets/NowUI/Runtime/Controls/NowRichTextParser.cs:601— Assets/NowUI/Runtime/Controls/NowRichTextParser.cs:601-677 | Assets/NowUI/Extensions/Markup/NowMarkupParser.cs:122-198 — These two members are one piece of code written twice and then edited apart: 77 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (56 corresponding lines) · ×1
Edited copy of a member (56 corresponding lines) Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:741— Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:741-796 | Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:799-857 — These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (45 corresponding lines) · ×1
Edited copy of a member (45 corresponding lines) Assets/NowUI/Runtime/Now.cs:4636— Assets/NowUI/Runtime/Now.cs:4636-4680 | Assets/NowUI/Runtime/NowFont.cs:613-673 — These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (49 corresponding lines) · ×1
Edited copy of a member (49 corresponding lines) Assets/NowUI/Runtime/Controls/NowNumericExpression.cs:210— Assets/NowUI/Runtime/Controls/NowNumericExpression.cs:210-258 | Assets/NowUI/Runtime/Controls/NowNumericExpression.cs:455-516 — These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 24+ corresponding lines) · ×1
Edited copies of one member (3 members, 24+ corresponding lines) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:1985— Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:1985-2015 | Assets/NowUI/Runtime/Controls/NowTextArea.cs:679-705 | Assets/NowUI/Runtime/Controls/NowTextArea.cs:710-733 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (28 corresponding lines) · ×1
Edited copy of a member (28 corresponding lines) Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:276— Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:276-303 | Assets/NowUI/Runtime/NowThemeAsset.cs:2365-2400 — 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 (42 corresponding lines) · ×1
Edited copy of a member (42 corresponding lines) Assets/NowUI/Runtime/NowEffects.cs:461— Assets/NowUI/Runtime/NowEffects.cs:461-516 | Assets/NowUI/Runtime/NowEffects.cs:519-560 — These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (33 corresponding lines) · ×1
Edited copy of a member (33 corresponding lines) Assets/NowUI/Runtime/Controls/NowTextInput.cs:140— Assets/NowUI/Runtime/Controls/NowTextInput.cs:140-180 | Assets/NowUI/Runtime/Input/NowKeyInput.cs:55-87 — 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 (43 corresponding lines) · ×1
Edited copy of a member (43 corresponding lines) Assets/NowUI/Runtime/Lottie/NowLottieAsset.cs:252— Assets/NowUI/Runtime/Lottie/NowLottieAsset.cs:252-294 | Assets/NowUI/Extensions/Markdown/NowMarkdownImages.cs:505-547 — These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (30 corresponding lines) · ×1
Edited copy of a member (30 corresponding lines) Assets/NowUI/Extensions/Markup/NowMarkupDocument.cs:1116— Assets/NowUI/Extensions/Markup/NowMarkupDocument.cs:1116-1151 | Assets/NowUI/Extensions/Markup/NowMarkupDocument.cs:1197-1226 — These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (35 corresponding lines) · ×1
Edited copy of a member (35 corresponding lines) Assets/NowUI/Runtime/Controls/NowFocus.cs:2060— Assets/NowUI/Runtime/Controls/NowFocus.cs:2060-2094 | Assets/NowUI/Runtime/Controls/NowFocus.cs:2134-2170 — 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 (41 corresponding lines) · ×1
Edited copy of a member (41 corresponding lines) Assets/NowUI/Runtime/Controls/NowFocus.cs:1602— Assets/NowUI/Runtime/Controls/NowFocus.cs:1602-1642 | Assets/NowUI/Runtime/Controls/NowFocus.cs:1645-1686 — These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (25 corresponding lines) · ×1
Edited copy of a member (25 corresponding lines) Assets/NowUI/Runtime/Controls/NowNumericExpression.cs:325— Assets/NowUI/Runtime/Controls/NowNumericExpression.cs:325-349 | Assets/NowUI/Runtime/Controls/NowNumericExpression.cs:926-954 — These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 15+ corresponding lines) · ×1
Edited copies of one member (4 members, 15+ corresponding lines) Standalone/NowUI.Engine/Graphics/Mesh.cs:685— Standalone/NowUI.Engine/Graphics/Mesh.cs:685-699 | Standalone/NowUI.Engine/Graphics/Mesh.cs:702-717 | Standalone/NowUI.Engine/Graphics/Mesh.cs:757-771 | Standalone/NowUI.Engine/Graphics/Mesh.cs:774-788 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 22+ corresponding lines) · ×1
Edited copies of one member (3 members, 22+ corresponding lines) Assets/NowUI/Runtime/NowFont.cs:2595— Assets/NowUI/Runtime/NowFont.cs:2595-2616 | Assets/NowUI/Runtime/NowFont.cs:2620-2641 | Assets/NowUI/Runtime/NowFont.cs:2644-2665 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (27 corresponding lines) · ×1
Edited copy of a member (27 corresponding lines) Assets/NowUI/Extensions/CodeEditor/NowMarkupCodeLanguage.cs:730— Assets/NowUI/Extensions/CodeEditor/NowMarkupCodeLanguage.cs:730-756 | Assets/NowUI/Extensions/Markup/NowMarkupParser.cs:201-227 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 16+ corresponding lines) · ×1
Edited copies of one member (3 members, 16+ corresponding lines) Assets/NowUI/Runtime/Controls/NowValueControls.cs:2421— Assets/NowUI/Runtime/Controls/NowValueControls.cs:2421-2438 | Assets/NowUI/Runtime/Controls/NowValueControls.cs:2441-2458 | Assets/NowUI/Runtime/Controls/NowValueControls.cs:4000-4015 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 25+ corresponding lines) · ×1
Edited copies of one member (3 members, 25+ corresponding lines) Assets/NowUI/Runtime/NowFont.cs:6309— Assets/NowUI/Runtime/NowFont.cs:6309-6334 | Assets/NowUI/Runtime/NowFont.cs:6337-6361 | Assets/NowUI/Runtime/NowFont.cs:6378-6402 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 18+ corresponding lines) · ×1
Edited copies of one member (4 members, 18+ corresponding lines) Assets/NowUI/Runtime/Controls/NowValueControls.cs:2552— Assets/NowUI/Runtime/Controls/NowValueControls.cs:2552-2569 | Assets/NowUI/Runtime/Controls/NowValueControls.cs:2576-2593 | Assets/NowUI/Runtime/Controls/NowValueControls.cs:4065-4082 | Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:866-883 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 8+ corresponding lines) · ×1
Edited copies of one member (4 members, 8+ corresponding lines) Assets/NowUI/Runtime/NowRect.cs:196— Assets/NowUI/Runtime/NowRect.cs:196-203 | Assets/NowUI/Runtime/NowRect.cs:231-239 | Assets/NowUI/Runtime/NowRect.cs:263-270 | Assets/NowUI/Runtime/NowRect.cs:294-302 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 11+ corresponding lines) · ×1
Edited copies of one member (3 members, 11+ corresponding lines) Assets/NowUI/Runtime/Controls/NowOverlay.cs:1402— Assets/NowUI/Runtime/Controls/NowOverlay.cs:1402-1427 | Assets/NowUI/Runtime/Controls/NowOverlay.cs:1434-1444 | Assets/NowUI/Runtime/Controls/NowOverlay.cs:1485-1495 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 19+ corresponding lines) · ×1
Edited copies of one member (3 members, 19+ corresponding lines) Assets/NowUI/Runtime/NowFont.cs:113— Assets/NowUI/Runtime/NowFont.cs:113-133 | Assets/NowUI/Runtime/NowFont.cs:230-248 | Assets/NowUI/Runtime/NowFont.cs:258-284 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 7+ corresponding lines) · ×1
Edited copies of one member (3 members, 7+ corresponding lines) Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:9— Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:9-16 | Assets/NowUI/Runtime/NowThemeAsset.cs:2008-2015 | Assets/NowUI/Runtime/NowUnityEditorControlRenderer.cs:53-59 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 8+ corresponding lines) · ×1
Edited copies of one member (3 members, 8+ corresponding lines) Standalone/NowUI.Engine/Math/Vector2.cs:330— Standalone/NowUI.Engine/Math/Vector2.cs:330-338 | Standalone/NowUI.Engine/Math/Vector2.cs:341-349 | Standalone/NowUI.Engine/Math/Vector3.cs:687-694 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (5 members, 15+ corresponding lines) · ×1
Edited copies of one member (5 members, 15+ corresponding lines) Assets/NowUI/Runtime/Controls/NowComboBox.cs:347— Assets/NowUI/Runtime/Controls/NowComboBox.cs:347-361 | Assets/NowUI/Runtime/Controls/NowDatePicker.cs:296-310 | Assets/NowUI/Runtime/Controls/NowDropdown.cs:205-219 | Assets/NowUI/Runtime/Controls/NowFilePicker.cs:370-384 | Assets/NowUI/Runtime/Controls/NowTimePicker.cs:267-281 — These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 27+ corresponding lines) · ×1
Edited copies of one member (3 members, 27+ corresponding lines) Standalone/NowUI.Runtime/BrowserNowLottieNative.cs:44— Standalone/NowUI.Runtime/BrowserNowLottieNative.cs:44-80 | Standalone/NowUI.Runtime/BrowserNowLottieNative.cs:183-210 | Standalone/NowUI.Runtime/BrowserNowLottieNative.cs:235-261 — These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (5 members, 7+ corresponding lines) · ×1
Edited copies of one member (5 members, 7+ corresponding lines) Standalone/NowUI.Engine/Math/Bounds.cs:251— Standalone/NowUI.Engine/Math/Bounds.cs:251-260 | Standalone/NowUI.Engine/Math/Ray.cs:57-63 | Standalone/NowUI.Engine/Math/Rect.cs:305-316 | Standalone/NowUI.Engine/Math/Vector2.cs:171-177 | Standalone/NowUI.Engine/Math/Vector4.cs:207-217 — These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (5 members, 11+ corresponding lines) · ×1
Edited copies of one member (5 members, 11+ corresponding lines) Assets/NowUI/Runtime/NowControlRenderer.Controls.cs:88— Assets/NowUI/Runtime/NowControlRenderer.Controls.cs:88-99 | Assets/NowUI/Runtime/NowControlRenderer.Controls.cs:117-129 | Assets/NowUI/Runtime/NowControlRenderer.Controls.cs:205-217 | Assets/NowUI/Runtime/NowControlRenderer.Controls.cs:260-271 | Assets/NowUI/Runtime/NowThemeAsset.cs:1783-1793 — These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (5 members, 12+ corresponding lines) · ×1
Edited copies of one member (5 members, 12+ corresponding lines) Assets/NowUI/Extensions/CodeEditor/NowJsonLanguage.cs:115— Assets/NowUI/Extensions/CodeEditor/NowJsonLanguage.cs:115-126 | Assets/NowUI/Extensions/CodeEditor/NowMarkupCodeLanguage.cs:834-845 | REDACTED:423-434 | Assets/NowUI/Extensions/Markup/NowMarkupParser.cs:315-326 | Assets/NowUI/Runtime/Controls/NowRichTextParser.cs:723-734 — These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (7 members, 9+ corresponding lines) · ×1
Edited copies of one member (7 members, 9+ corresponding lines) Assets/NowUI/Extensions/Markdown/NowMarkdownImages.cs:733— Assets/NowUI/Extensions/Markdown/NowMarkdownImages.cs:733-741 | Assets/NowUI/Extensions/Sdf/NowSdf.cs:4649-4662 | Assets/NowUI/Extensions/Sdf/NowSdfImageField.cs:248-256 | Assets/NowUI/Runtime/Controls/NowValueControls.cs:2638-2646 | Assets/NowUI/Runtime/Now.cs:1238-1246 | Assets/NowUI/Runtime/NowGradient.cs:749-764 | Assets/NowUI/Runtime/NowUnityEditorControlRenderer.cs:964-976 — These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 5+ corresponding lines) · ×1
Edited copies of one member (3 members, 5+ corresponding lines) Standalone/NowUI.Engine/Math/Mathf.cs:251— Standalone/NowUI.Engine/Math/Mathf.cs:251-255 | Standalone/NowUI.Engine/Math/Vector2.cs:458-462 | Standalone/NowUI.Engine/Math/Vector3.cs:468-472 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 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, 1+ corresponding lines) · ×1
Edited copies of one member (3 members, 1+ corresponding lines) Standalone/NowUI.Engine/Math/Quaternion.cs:141— Standalone/NowUI.Engine/Math/Quaternion.cs:141-143 | Standalone/NowUI.Engine/Math/Vector4.cs:320-322 | Standalone/NowUI.Engine/Mathematics/Mathematics.cs:448-448 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 1 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.
Duplicated block (92 lines × 2) Assets/NowUI/Runtime/NowMesh.cs:961— Assets/NowUI/Runtime/NowMesh.cs:961-1052 | Assets/NowUI/Runtime/NowMesh.cs:1215-1306 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (48 lines × 2) Assets/NowUI/Extensions/Sdf/NowSdf.cs:1644— Assets/NowUI/Extensions/Sdf/NowSdf.cs:1644-1691 | Assets/NowUI/Extensions/Sdf/NowSdf.cs:2021-2068 — 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 (45 lines × 2) Assets/NowUI/Extensions/Sdf/NowSdf.cs:1698— Assets/NowUI/Extensions/Sdf/NowSdf.cs:1698-1742 | Assets/NowUI/Extensions/Sdf/NowSdf.cs:1939-1983 — 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 (41–42 lines × 2) Assets/NowUI/Runtime/Now.cs:2682— Assets/NowUI/Runtime/Now.cs:2682-2723 | Assets/NowUI/Runtime/NowGradient.cs:973-1013 — 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 `Assets/NowUI/Runtime/Now.cs:2682` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (26–37 lines × 2) Assets/NowUI/Runtime/Controls/NowComboBox.cs:139— Assets/NowUI/Runtime/Controls/NowComboBox.cs:139-164 | Assets/NowUI/Runtime/Controls/NowDropdown.cs:92-128 — before extracting anything, compare `Assets/NowUI/Runtime/Controls/NowComboBox.cs` and `Assets/NowUI/Runtime/Controls/NowDropdown.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Assets/NowUI/Runtime/Controls/NowComboBox.cs:139` calls `Child` and `Assets/NowUI/Runtime/Controls/NowDropdown.cs:92` 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.
Duplicated block (37 lines × 2) Assets/NowUI/Runtime/Controls/NowFilePicker.cs:1461— Assets/NowUI/Runtime/Controls/NowFilePicker.cs:1461-1497 | Assets/NowUI/Runtime/Controls/NowFilePicker.cs:1566-1602 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Assets/NowUI/Runtime/Controls/NowFilePicker.cs:1604` calls `GetColor`, `Min`, `Max` and `Assets/NowUI/Runtime/Controls/NowFilePicker.cs:1499` 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 (29 lines × 3) Assets/NowUI/Runtime/Controls/NowTextArea.cs:209— Assets/NowUI/Runtime/Controls/NowTextArea.cs:209-237 | Assets/NowUI/Runtime/Controls/NowTextField.cs:1425-1453 | Assets/NowUI/Runtime/Controls/NowTextSelection.cs:155-183 — 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 `Assets/NowUI/Runtime/Controls/NowTextArea.cs:209` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (27 lines × 2) Assets/NowUI/Extensions/Markup/NowMarkupParser.cs:232— Assets/NowUI/Extensions/Markup/NowMarkupParser.cs:232-258 | Assets/NowUI/Runtime/Controls/NowRichTextParser.cs:685-711 — 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 `Assets/NowUI/Extensions/Markup/NowMarkupParser.cs:232` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Assets/NowUI/Runtime/Controls/NowRichTextParser.cs:681` calls `IsWhiteSpace` and `Assets/NowUI/Extensions/Markup/NowMarkupParser.cs:230` 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 (21 lines × 2) Assets/NowUI/Runtime/Controls/NowFocus.cs:2064— Assets/NowUI/Runtime/Controls/NowFocus.cs:2064-2084 | Assets/NowUI/Runtime/Controls/NowFocus.cs:2138-2158 — 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 `Assets/NowUI/Runtime/Controls/NowFocus.cs:2064` 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 (24 lines × 2) Assets/NowUI/Runtime/NowFont.cs:4486— Assets/NowUI/Runtime/NowFont.cs:4486-4509 | Assets/NowUI/Runtime/NowFont.cs:6131-6154 — 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 `Assets/NowUI/Runtime/NowFont.cs:4486` 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 (22 lines × 2) Assets/NowUI/Runtime/Input/NowIMGUIInputProvider.cs:861— Assets/NowUI/Runtime/Input/NowIMGUIInputProvider.cs:861-882 | Assets/NowUI/Runtime/Input/NowUIToolkitInputProvider.cs:388-409 — 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (20 lines × 2) Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6385— Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6385-6404 | Assets/NowUI/Extensions/NodeGraph/NowNodeGraph.cs:6431-6450 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18–20 lines × 2) Assets/NowUI/Runtime/Now.cs:2725— Assets/NowUI/Runtime/Now.cs:2725-2744 | Assets/NowUI/Runtime/Now.cs:2985-3002 — 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 `Assets/NowUI/Runtime/Now.cs:2725` 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 (19–20 lines × 2) Assets/NowUI/Runtime/NowGlass.cs:249— Assets/NowUI/Runtime/NowGlass.cs:249-268 | Assets/NowUI/Runtime/NowRipple.cs:104-122 — 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 `Assets/NowUI/Runtime/NowGlass.cs:249` 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 (19 lines × 3) Assets/NowUI/Runtime/Controls/NowDropdown.cs:250— Assets/NowUI/Runtime/Controls/NowDropdown.cs:250-268 | Assets/NowUI/Runtime/Controls/NowMaskField.cs:250-268 | Assets/NowUI/Runtime/Controls/NowTimePicker.cs:338-356 — before extracting anything, compare `Assets/NowUI/Runtime/Controls/NowDropdown.cs` and `Assets/NowUI/Runtime/Controls/NowMaskField.cs` as WHOLE FILES: this scan already matched 6 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 `Assets/NowUI/Runtime/Controls/NowDropdown.cs:250` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (16–17 lines × 2) Assets/NowUI/Runtime/Controls/NowDropdown.cs:395— Assets/NowUI/Runtime/Controls/NowDropdown.cs:395-411 | Assets/NowUI/Runtime/Controls/NowDropdown.cs:441-456 — 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 `Assets/NowUI/Runtime/Controls/NowDropdown.cs:395` 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 (17 lines × 2) Assets/NowUI/Runtime/NowMesh.cs:1156— Assets/NowUI/Runtime/NowMesh.cs:1156-1172 | Assets/NowUI/Runtime/NowMesh.cs:1410-1426 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 4) Assets/NowUI/Runtime/Controls/NowTextField.cs:707— Assets/NowUI/Runtime/Controls/NowTextField.cs:707-719 | Assets/NowUI/Runtime/Controls/NowTextField.cs:785-797 | Assets/NowUI/Runtime/Controls/NowTextField.cs:873-885 | Assets/NowUI/Runtime/Controls/NowTextField.cs:949-961 — 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 `Assets/NowUI/Runtime/Controls/NowTextField.cs:707` 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 first that the copies are not typed on the same thing: the declarations holding them bind `value` to `ref float` in one and `ref int` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (16 lines × 3) Assets/NowUI/Runtime/Controls/NowValueControls.cs:761— Assets/NowUI/Runtime/Controls/NowValueControls.cs:761-776 | Assets/NowUI/Runtime/Controls/NowValueControls.cs:1732-1747 | Assets/NowUI/Runtime/Controls/NowValueControls.cs:3063-3078 — 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 `Assets/NowUI/Runtime/Controls/NowValueControls.cs: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 (13 lines × 3) Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:181— Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:181-193 | Assets/NowUI/Runtime/NowThemeAsset.cs:2321-2333 | Assets/NowUI/Runtime/NowUnityEditorControlRenderer.cs:356-368 — 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 `Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:181` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (8 lines × 4) Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:560— Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:560-567 | Assets/NowUI/Runtime/Controls/NowTextArea.cs:224-231 | Assets/NowUI/Runtime/Controls/NowTextField.cs:1440-1447 | Assets/NowUI/Runtime/Controls/NowTextSelection.cs:170-177 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at `Assets/NowUI/Extensions/CodeEditor/NowCodeEditor.cs:560` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12–13 lines × 2) Assets/NowUI/Extensions/Sdf/NowSdf.cs:1020— Assets/NowUI/Extensions/Sdf/NowSdf.cs:1020-1031 | Assets/NowUI/Extensions/Sdf/NowSdf.cs:2952-2964 — 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. 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 (10–12 lines × 2) Assets/NowUI/Runtime/Now.cs:3590— Assets/NowUI/Runtime/Now.cs:3590-3601 | Assets/NowUI/Runtime/Now.cs:3833-3842 — 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. 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 (8–12 lines × 2) Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:19— Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:19-26 | Assets/NowUI/Runtime/NowUnityEditorControlRenderer.cs:62-73 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. 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–11 lines × 2) Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:113— Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:113-122 | Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:153-163 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:113` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. 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 (6 lines × 3) Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:477— Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:477-482 | Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:521-526 | Assets/NowUI/Runtime/Controls/NowSwitch.cs:86-91 — 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 (9–10 lines × 3) Assets/NowUI/Runtime/Controls/NowValueControls.cs:522— Assets/NowUI/Runtime/Controls/NowValueControls.cs:522-531 | Assets/NowUI/Runtime/Controls/NowValueControls.cs:1443-1451 | Assets/NowUI/Runtime/Controls/NowValueControls.cs:2871-2879 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6 lines × 5) Assets/NowUI/Runtime/Controls/NowComboBox.cs:159— Assets/NowUI/Runtime/Controls/NowComboBox.cs:159-164 | Assets/NowUI/Runtime/Controls/NowComboBox.cs:273-278 | Assets/NowUI/Runtime/Controls/NowDatePicker.cs:193-198 | Assets/NowUI/Runtime/Controls/NowDropdown.cs:123-128 | Assets/NowUI/Runtime/Controls/NowMaskField.cs:149-154 — before extracting anything, compare `Assets/NowUI/Runtime/Controls/NowComboBox.cs` and `Assets/NowUI/Runtime/Controls/NowDropdown.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 65 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, `Assets/NowUI/Runtime/Controls/NowDatePicker.cs:202` calls `Child` and `Assets/NowUI/Runtime/Controls/NowDropdown.cs:133` 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) Assets/NowUI/Runtime/NowMesh.cs:644— Assets/NowUI/Runtime/NowMesh.cs:644-652 | Assets/NowUI/Runtime/NowMesh.cs:763-771 | Assets/NowUI/Runtime/NowMesh.cs:1488-1496 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6 lines × 6) Assets/NowUI/Runtime/Controls/NowComboBox.cs:159— Assets/NowUI/Runtime/Controls/NowComboBox.cs:159-164 | Assets/NowUI/Runtime/Controls/NowComboBox.cs:273-278 | Assets/NowUI/Runtime/Controls/NowDatePicker.cs:193-198 | Assets/NowUI/Runtime/Controls/NowDropdown.cs:123-128 | Assets/NowUI/Runtime/Controls/NowMaskField.cs:149-154 | Assets/NowUI/Runtime/Controls/NowTimePicker.cs:164-169 — before extracting anything, compare `Assets/NowUI/Runtime/Controls/NowComboBox.cs` and `Assets/NowUI/Runtime/Controls/NowDropdown.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 65 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, `Assets/NowUI/Runtime/Controls/NowDatePicker.cs:202` calls `Child` and `Assets/NowUI/Runtime/Controls/NowDropdown.cs:133` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (6 lines × 4) Standalone/NowUI.Engine/Math/Vector4.cs:227— Standalone/NowUI.Engine/Math/Vector4.cs:227-232 | Standalone/NowUI.Engine/Math/Vector4.cs:237-242 | Standalone/NowUI.Engine/Math/Vector4.cs:246-251 | Standalone/NowUI.Engine/Math/Vector4.cs:255-260 — 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 `Standalone/NowUI.Engine/Math/Vector4.cs:227` 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. Note first that the copies are not typed on the same thing: the declarations holding them bind `a` to `Vector4` in one and `in Vector4` 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.
Off the main sequence: NowUI.Runtime Standalone/NowUI.Runtime/NowUI.Runtime.csproj:1— NowUI.Runtime: abstractness 0.09, instability 0.11, distance 0.80 — zone of pain — concrete and depended on by 8 project(s), so it's rigid to change.
P12 · CI test-gate honesty· Tests run only outside the merge gate · ×1
Tests run only outside the merge gate REDACTED:27— `dotnet test Standalone/NowUI.Browser.Tests -c Debug --nologo --logger 'trx;LogFileName=browser-input.trx'` is the only CI command that runs 9 test(s) (e.g. BrowserInputTests.PackedPhysicalKeysDriveTheExistingBindingField, BrowserInputTests.CompositionStaysOutOfTextUntilCommitAndOwnsTheCommitKey), and the workflow runs only on workflow_dispatch — a failure there is found after the change merged, when the only remedy is a revert. Run them on pull requests (or in the merge queue).
P12 · CI test-gate honesty· Test project never run by CI · ×1
Test project never run by CI Standalone/NowUI.Native.Tests/NowUI.Native.Tests.csproj:1— `Standalone/NowUI.Native.Tests/NowUI.Native.Tests.csproj` declares 180 test(s), but no CI command runs it — it is not in the solution the pipeline tests and no step names it, so its tests gate nothing. Add it to the solution (or a test step), or delete it.
SC1 · Supply-chain hygiene· JavaScript dependencies are not locked · ×1
JavaScript dependencies are not locked Assets/NowUI/package.json:15— Assets/NowUI/package.json declares dependencies that no committed lockfile resolves — there is no REDACTED / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
X27 · Collection changed while being enumerated· Collection is structurally changed while it is being enumerated · ×1
Collection is structurally changed while it is being enumerated Standalone/NowUI.Engine/NowMaterialBag.cs:267— `other.keywords` is enumerated directly, and line 268 calls `other.keywords.Add(…)` inside the loop body — a structural change to a `HashSet`. The next `MoveNext` throws `InvalidOperationException: Collection was modified; enumeration operation may not execute`, so every pass that reaches this call ends the loop by exception instead of by running out of items, and the remaining items are never seen.
X29 · Per-element action decided by a fixed element· Per-element action decided by a fixed element · ×1
Per-element action decided by a fixed element Assets/NowUI/Runtime/Lottie/NowLottieGeometry.cs:1157— This loop runs once per element of `contours`, and the statement it guards acts on the element it is on — `contours[i]`. The test deciding whether that statement runs does not: `probe.x < bounds.x || probe.y < bounds.y || probe.x > bounds.z || probe.y > b...` reads `contours[contourIndex]`, a subscript that does not move, so whatever it answers for that one element it answers for ALL of them. One `if` names the same collection at two different subscripts — the fixed one at line 1147, which is the contradiction: either the test was meant to be per-element, in which case every element that differs from the fixed one is handled wrongly and all in the same direction, or it really is one answer for the whole collection, in which case it is being re-asked on every pass and belongs above the loop. The `if` is in the wrong place under both readings. Give the test the loop variable, or hoist it out.
X5 · Nullable reference types· Symbol treated as nullable, then dereferenced unguarded · ×1
Symbol treated as nullable, then dereferenced unguarded Assets/NowUI/Runtime/Controls/NowRichText.cs:555— This method contradicts itself about `requested`: line 547 writes `requested?.Count`, which says `requested` can be null, but line 555 then dereferences it directly with no null test between them and no guard around it. If the `?.` is right, that dereference throws NullReferenceException on the input it was written for; if `requested` truly cannot be null here, the `?.` is misleading. Settle it one way — test `requested` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side.
Duplicated predicate Standalone/NowUI.Desktop/DesktopInput.cs:117— `!(uiScale > 0) || !float.IsFinite(uiScale)` appears character-identically in 2 files — Standalone/NowUI.Browser/BrowserInput.cs, Standalone/NowUI.Desktop/DesktopInput.cs. 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 Assets/NowUI/Runtime/Controls/NowMaskField.cs:141— `!NowInput.isPassive && pending.hasValue != 0` appears character-identically in 2 files — Assets/NowUI/Runtime/Controls/NowMaskField.cs, Assets/NowUI/Runtime/Controls/NowValueControls.cs. 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 Assets/NowUI/Runtime/Controls/NowTextInput.cs:152— `!ReferenceEquals(_frameProvider, imgui) || _inputPassStamp != inputPass` appears character-identically in 2 files — Assets/NowUI/Runtime/Controls/NowTextInput.cs, Assets/NowUI/Runtime/Input/NowKeyInput.cs. 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 Assets/NowUI/Runtime/Lottie/NowLottieAsset.cs:255— `!Uri.TryCreate(url, UriKind.Absolute, out var parsed) || (parsed.Scheme != Uri.UriSchemeHttp && parsed.Scheme != Uri.UriSchemeHttps)` appears character-identically in 2 files — Assets/NowUI/Extensions/Markdown/NowMarkdownImages.cs, Assets/NowUI/Runtime/Lottie/NowLottieAsset.cs. 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 Assets/NowUI/Runtime/Controls/NowTextInput.cs:218— `!_inputPassActive || NowInput.isPassive || _activityClaimed` appears character-identically in 2 files — Assets/NowUI/Runtime/Controls/NowTextInput.cs, Assets/NowUI/Runtime/Input/NowKeyInput.cs. 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 Assets/NowUI/Runtime/Controls/NowSplitView.cs:88— `!_options.Has(NowLayoutOptions.Field.Height) && !_options.Has(NowLayoutOptions.Field.StretchHeight)` appears character-identically in 2 files — Assets/NowUI/Runtime/Controls/NowSplitView.cs, Assets/NowUI/Runtime/Controls/NowTabs.cs. 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 Assets/NowUI/Runtime/Controls/NowSplitView.cs:91— `!_options.Has(NowLayoutOptions.Field.Width) && !_options.Has(NowLayoutOptions.Field.StretchWidth)` appears character-identically in 2 files — Assets/NowUI/Runtime/Controls/NowSplitView.cs, Assets/NowUI/Runtime/Controls/NowTabs.cs. 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 Assets/NowUI/Runtime/Controls/NowComboBox.cs:490— `!_popupStatesByCallback.TryGetValue(stateId, out var state) || state.options == null` appears character-identically in 3 files — Assets/NowUI/Runtime/Controls/NowComboBox.cs, Assets/NowUI/Runtime/Controls/NowDropdown.cs, Assets/NowUI/Runtime/Controls/NowMaskField.cs. 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 Assets/NowUI/Runtime/Controls/NowDatePicker.cs:314— `!_popupStatesByCallback.TryGetValue(stateId, out var state) || state.themeAsset == null` appears character-identically in 2 files — Assets/NowUI/Runtime/Controls/NowDatePicker.cs, Assets/NowUI/Runtime/Controls/NowTimePicker.cs. 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 Assets/NowUI/Runtime/Lottie/NowLottieAsset.cs:262— `!allowInsecureHttp && parsed.Scheme == Uri.UriSchemeHttp` appears character-identically in 2 files — Assets/NowUI/Extensions/Markdown/NowMarkdownImages.cs, Assets/NowUI/Runtime/Lottie/NowLottieAsset.cs. 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 Assets/NowUI/Runtime/Controls/NowValueControls.cs:3924— `!float.IsNaN(value) && !float.IsInfinity(value)` appears character-identically in 6 files — Assets/NowUI/Extensions/Sdf/NowSdf.cs, Assets/NowUI/Runtime/Controls/NowValueControls.cs, Assets/NowUI/Runtime/Input/NowSurfaceToScreenMapper.cs, Assets/NowUI/Runtime/NowGradient.cs. 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 Assets/NowUI/Runtime/Controls/NowControls.cs:1026— `!options.Has(NowLayoutOptions.Field.Height) && !options.Has(NowLayoutOptions.Field.StretchHeight)` appears character-identically in 4 files — Assets/NowUI/Runtime/Controls/NowControls.cs, Assets/NowUI/Runtime/Controls/NowRichText.cs, Assets/NowUI/Runtime/Controls/NowScrollView.cs, Assets/NowUI/Runtime/Controls/NowSplitter.cs. 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 Assets/NowUI/Runtime/Controls/NowControls.cs:1023— `!options.Has(NowLayoutOptions.Field.Width) && !options.Has(NowLayoutOptions.Field.StretchWidth)` appears character-identically in 6 files — Assets/NowUI/Runtime/Controls/NowControls.cs, Assets/NowUI/Runtime/Controls/NowFoldout.cs, Assets/NowUI/Runtime/Controls/NowInspector.cs, Assets/NowUI/Runtime/Controls/NowScrollView.cs. 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 Standalone/NowUI.Cli/BrowserOptions.cs:57— `!preview && string.IsNullOrWhiteSpace(output)` appears character-identically in 2 files — Standalone/NowUI.Cli/BrowserOptions.cs, Standalone/NowUI.Cli/RenderOptions.cs. 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 Assets/NowUI/Runtime/Controls/NowControlBuilders.cs:119— `!renderer.isBuiltIn || !NowControls.IsOutsideView(theme, rect)` appears character-identically in 2 files — Assets/NowUI/Runtime/Controls/NowControlBuilders.cs, Assets/NowUI/Runtime/Controls/NowSwitch.cs. 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 Assets/NowUI/Extensions/CodeEditor/NowCSharpLanguage.cs:418— `(c >= '0' && c <= '9') || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F')` appears character-identically in 2 files — Assets/NowUI/Extensions/CodeEditor/NowCSharpLanguage.cs, Assets/NowUI/Extensions/CodeEditor/NowJsonLanguage.cs. 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 Standalone/NowUI.Cli/BrowserOptions.cs:48— `++i >= args.Length || args[i].StartsWith("--", StringComparison.Ordinal)` appears character-identically in 2 files — Standalone/NowUI.Cli/BrowserOptions.cs, Standalone/NowUI.Cli/RenderOptions.cs. 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 Standalone/NowUI.Engine/Backend/NullRenderBackend.cs:418— `ReferenceEquals(source, null) && ReferenceEquals(material, null)` appears character-identically in 2 files — Standalone/NowUI.Browser/WebGL2Backend.cs, Standalone/NowUI.Engine/Backend/NullRenderBackend.cs. 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 Assets/NowUI/Runtime/Lottie/NowLottieCache.cs:226— `_entries.TryGetValue(entry.url, out var current) && ReferenceEquals(current, entry)` appears character-identically in 2 files — Assets/NowUI/Extensions/Markdown/NowMarkdownImages.cs, Assets/NowUI/Runtime/Lottie/NowLottieCache.cs. 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 Assets/NowUI/Runtime/Controls/NowTextInput.cs:166— `_frameProvider != null || _frameStamp != Time.frameCount` appears character-identically in 2 files — Assets/NowUI/Runtime/Controls/NowTextInput.cs, Assets/NowUI/Runtime/Input/NowKeyInput.cs. 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 Assets/NowUI/Runtime/Input/NowInput.cs:163— `_scopes.count > 0 && _scopeStartedAt == Time.frameCount` appears character-identically in 2 files — Assets/NowUI/Runtime/Input/NowInput.cs, Assets/NowUI/Runtime/NowFrame.cs. 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 Assets/NowUI/Runtime/Now.cs:2600— `_suppressDrawDepth > 0 || _defaultMaterial == null` appears character-identically in 2 files — Assets/NowUI/Runtime/Now.cs, Assets/NowUI/Runtime/NowGradient.cs. 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 Assets/NowUI/Runtime/NowMaterialControlRenderer.cs:294— `appearance.hasElevation && appearance.elevation != NowElevationToken.None` appears character-identically in 3 files — Assets/NowUI/Runtime/NowMaterialControlRenderer.cs, Assets/NowUI/Runtime/NowThemeAsset.cs, Assets/NowUI/Runtime/NowUnityEditorControlRenderer.cs. 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 Assets/NowUI/Runtime/NowLine.cs:369— `color.w <= 0.0005f && colorEnd.w <= 0.0005f` appears character-identically in 2 files — Assets/NowUI/Runtime/NowLine.cs, Assets/NowUI/Runtime/NowStroke.cs. 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 Assets/NowUI/Runtime/NowControlRenderer.Controls.cs:678— `context.interaction.hovered || context.interaction.held` appears character-identically in 2 files — Assets/NowUI/Runtime/NowControlRenderer.Controls.cs, Assets/NowUI/Runtime/NowMaterialControlRenderer.cs. 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.
Silent fallback default in catch Assets/NowUI/Runtime/Controls/NowFilePicker.cs:2719— `GetVisibleDirectories` swallows `Exception` into `return Array.Empty<string>();` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
Silent fallback default in catch Assets/NowUI/Runtime/Controls/NowFilePicker.cs:2742— `HasVisibleDirectory` swallows `Exception` into `return false;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
Silent fallback default in catch Assets/NowUI/Runtime/Controls/NowFilePicker.cs:3004— `IsAncestorDirectory` swallows `ArgumentException` into `return false;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
Silent fallback default in catch Assets/NowUI/Runtime/Controls/NowFilePicker.cs:3068— `IsRootPath` swallows `ArgumentException` into `return false;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
Silent fallback default in catch Assets/NowUI/Runtime/Controls/NowFilePicker.cs:3356— `IsPreviewableImage` swallows `ArgumentException` into `return false;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
Silent fallback default in catch Assets/NowUI/Runtime/Controls/NowFilePicker.cs:3678— `HasInvalidFileName` swallows `ArgumentException` into `return true;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
Silent fallback default in catch Assets/NowUI/Runtime/Controls/NowFilePicker.cs:3705— `IsHidden` swallows `Exception` into `return false;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
Silent fallback default in catch Assets/NowUI/Runtime/Controls/NowInspector.cs:1107— `TryCreateInstance` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
Silent fallback default in catch Assets/NowUI/Runtime/Lottie/NowLottieNative.cs:195— `available` swallows `DllNotFoundException` and sets `_available = false;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
Silent fallback default in catch Standalone/NowUI.Hosting/NowPng.cs:53— `TryEncode` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
Silent fallback default in catch Standalone/NowUI.Cli/BrowserAssets.cs:204— `Supported` swallows `Exception` into `return false;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
Silent fallback default in catch Standalone/NowUI.Cli/BrowserSceneTrimming.cs:34— `CanTrimSceneAssembly` swallows `Exception` into `return false;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
redundant comment Standalone/NowUI.Engine.Tests/Attributes/AttributesTests.cs:386— "----------------------------------------------------------------------------------------------------- ISerializationCallbackReceiver. -------------------------- …" repeats the code it sits on: 3 of its 3 words (serialization, callback, receiver) are already in `sealed class Receiver : ISerializationCallbackReceiver`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Standalone/NowUI.Engine.Tests/Math/Vector2Tests.cs:381— "1.234f -> "1.23", -5.678f -> "-5.68"." repeats the code it sits on: 4 of its 4 words (234, 23, 678, 68) are already in `Assert.That(new Vector2(1.234F, -5.678F).ToString(), Is.EqualTo("(1.23, -5.68)"));`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Standalone/NowUI.Engine.Tests/Math/Vector2Tests.cs:442— "(0,0) + ((10,20) - (0,0)) * 0.25 = (2.5, 5)." repeats the code it sits on: 3 of its 3 words (10, 20, 25) are already in `AssertExact(Vector2.Lerp(Vector2.zero, new Vector2(10F, 20F), 0.25F), 2.5F, 5F);`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
redundant comment Standalone/NowUI.Engine.Tests/Math/Vector4Tests.cs:1388— "((1,2,3),(3,2,1)) → (-0.15430337, 0.30860674, -0.15430337, 0.9258201)." repeats the code it sits on: 3 of its 3 words (15430337, 30860674, 9258201) are already in `AssertUlps(Quaternion.FromToRotation(new Vector3(1F, 2F, 3F), new Vector3(3F, 2F, 1F)), -0.15430337F, 0.30860674F, -0.15 …`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
D26 · Project Cohesion· Projects may be oversized for their cohesion · ×2
Projects may be oversized for their cohesion Standalone/NowUI.Runtime/NowUI.Runtime.csproj:1— `NowUI.Runtime` overshoots its size bounds (79405 LoC, 342 public types across 2 namespaces). 2 of 25 project(s) overshoot their size bounds, lowering Project Cohesion to 8.4/10. Size alone is no reason to split a project: where its type references show a separable part, a Split row names it.
Projects may be oversized for their cohesion Standalone/NowUI.Engine/NowUI.Engine.csproj:1— `NowUI.Engine` overshoots its size bounds (21197 LoC, 196 public types across 12 namespaces). 2 of 25 project(s) overshoot their size bounds, lowering Project Cohesion to 8.4/10. Size alone is no reason to split a project: where its type references show a separable part, a Split row names it.
Fat interface: INowRenderBackend (20 members) Standalone/NowUI.Engine/Backend/INowRenderBackend.cs:215— `INowRenderBackend` declares 20 members: `caps`, `BeginFrame`, `EndFrame`, `UploadTexture2D`, `UpdateSampler`, `ReleaseTexture`, `CreateRenderTexture`, `IsRenderTextureLost`, `ReleaseRenderTexture`, `ReleaseMesh`, `ReleaseMaterial`, `ResolveShader`, `SetRenderTarget`, `SetViewport`, `SetViewProjection`, `ClearRenderTarget`, `DrawMesh`, `DrawProcedural`, `Blit`, `CopyTexture`. Counted as the author wrote them — a property is ONE member and its get/set accessors are not counted separately, and an event counts once. 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.
No ADRs found Standalone/NowUI.Cli/NowUI.Cli.csproj:3— 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 `Standalone/NowUI.Cli/NowUI.Cli.csproj` makes this repository a deployable product (line 3).
D21 · Naming Consistency· `_defaultUV` spells `UV` where 24 names in the project spell it `Uv` · ×1
`_defaultUV` spells `UV` where 24 names in the project spell it `Uv` Assets/NowUI/Runtime/Now.cs:2556— 24 of 26 names in project NowUI.Runtime spell the token `Uv` (24 of 26; unit: names in project NowUI.Runtime containing `Uv`). Peers: NowLottieNative.PackCanvas(srcRawUv) (Assets/NowUI/Runtime/Lottie/NowLottieNative.cs:224); NowLottieNative.PackRender(srcRawUv) (Assets/NowUI/Runtime/Lottie/NowLottieNative.cs:270); NowLottieNative.BlitTextRun(dstRawUv) (Assets/NowUI/Runtime/Lottie/NowLottieNative.cs:314); NowLottieNative.BlitMesh(dstRawUv) (Assets/NowUI/Runtime/Lottie/NowLottieNative.cs:405); NowLottieNative.nowui_vg_blit_mesh_native(dstRawUv) (Assets/NowUI/Runtime/Lottie/NowLottieNative.cs:694). Rename to `_defaultUv`. [rule N6]
D21 · Naming Consistency· `SetUV` spells `UV` where 24 names in the project spell it `Uv` · ×1
`SetUV` spells `UV` where 24 names in the project spell it `Uv` Assets/NowUI/Runtime/NowRectangle.cs:352— 24 of 26 names in project NowUI.Runtime spell the token `Uv` (24 of 26; unit: names in project NowUI.Runtime containing `Uv`). Peers: NowLottieNative.PackCanvas(srcRawUv) (Assets/NowUI/Runtime/Lottie/NowLottieNative.cs:224); NowLottieNative.PackRender(srcRawUv) (Assets/NowUI/Runtime/Lottie/NowLottieNative.cs:270); NowLottieNative.BlitTextRun(dstRawUv) (Assets/NowUI/Runtime/Lottie/NowLottieNative.cs:314); NowLottieNative.BlitMesh(dstRawUv) (Assets/NowUI/Runtime/Lottie/NowLottieNative.cs:405); NowLottieNative.nowui_vg_blit_mesh_native(dstRawUv) (Assets/NowUI/Runtime/Lottie/NowLottieNative.cs:694). Rename to `SetUv`. [rule N6]
IC1 · Incompleteness & stubs· Empty method body · ×1
Empty method body Assets/NowUI/Runtime/Controls/NowRaycastGate.cs:344— `InvalidateCache` has an empty body — confirm it's an intentional no-op and not an unfinished method.
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.
P12 · CI test-gate honesty· Sleep-based test synchronization · ×1
Sleep-based test synchronization — 6 Task.Delay/Thread.Sleep call(s) in test code synchronize with background work by sleeping — a known flakiness precursor on slow runners. Prefer polling with a deadline or completion signals.
No SAST REDACTED:5— No static application security testing detected. For this repository's stack, add CodeQL's csharp pack, or a .NET security analyzer package (or `semgrep --config=auto`, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 5 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.
No dependency-update automation Assets/NowUI/Analyzers~/NowUI.Analyzers/NowUI.Analyzers.csproj:15— `Assets/NowUI/Analyzers~/NowUI.Analyzers/NowUI.Analyzers.csproj` 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`.
X2 · Cancellation propagation· Not all async methods take a CancellationToken · ×1
Not all async methods take a CancellationToken — Only 3/7 async methods accept a CancellationToken, so in-flight work can't be stopped early when the caller gives up — whatever ends it in your host (shutdown signal, timeout, abandoned request, user cancel). Thread a token through the call chain and honour it at each await and loop; where a method genuinely cannot be interrupted, omitting it is a deliberate choice — judge against your hosting model.
Nullable reference types not enabled everywhere — 3/21 NRT-eligible project(s) enable <Nullable>enable</Nullable> (projects targeting a pre-C#-8 framework are excluded — NRTs aren't available there). NRTs catch a whole class of null-deref bugs at compile time.
Null-forgiving operator (`!`) suppressions override nullable warnings — ~1.6 `!` suppressions per 1k syntax nodes — 40 suppression(s) across the 25033 syntax node(s) in code where nullable warnings are ENABLED, which is the only code a `!` can suppress anything in (a `!` under `#nullable disable` is inert and is not counted, and its file's nodes are not in the denominator). Each one tells the compiler to trust you about null, suppressing the very safety NRTs provide. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first.
Silent fallback default on parse failure Standalone/NowUI.Browser/WebGL2Backend.cs:302— `ParseCaps` falls back to `2048` when `parts.Length > 0 && int.TryParse(parts[0], out int t)` is false, with no log or throw — a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer to the test rather than a stand-in for a value that could not be read, this is not a silent default: say so in a comment on the member and the row stops firing.
doc comments repeat the names Standalone/NowUI.Engine/Backend/INowRenderBackend.cs:179— 0 of 2 documented parameters and 6 of 1157 summaries in `NowUI.Engine` only repeat the member or parameter name (e.g. "PNG. ." for `Png`). Delete the restating tags, or add what the name does not say.
doc comments repeat the names Assets/NowUI/Runtime/NowSweep.cs:52— 0 of 77 documented parameters and 1 of 1703 summaries in `NowUI.Runtime` only repeat the member or parameter name (e.g. "The sweep in degrees." for `sweepDegrees`). Delete the restating tags, or add what the name does not say.
Appendix B — Reproduction & audit trail
Every external tool invocation behind a deep-scan dimension — the tool, its captured version, the exact command, how many findings it yielded, and a link to the retained raw output. To reproduce any finding: check out the same commit and run the command shown (repo-relative — never an absolute scratch path). The complete raw scanner output is retained verbatim under artifacts/raw/ (indexed in artifacts/raw/index.json); per-invocation exit codes and wall-clock durations are in sidecar.json — kept out of this table so the rendered report stays byte-identical across runs of the same commit.
trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. semgrep could not parse 11 file(s) — `Assets/NowUI/Runtime/Controls/NowComboBox.cs`, `Assets/NowUI/Runtime/Controls/NowContextMenu.cs`, `Assets/NowUI/Runtime/Controls/NowDatePicker.cs`, `Assets/NowUI/Runtime/Controls/NowDropdown.cs`, `Assets/NowUI/Runtime/Controls/NowFilePicker.cs`, … (+6 more) — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real.
disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
Run 01a1e7c3-6d40-7d7e-8aa3-269f94869072 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.
Issues: 74 · Warnings: 1436 · Recommendations: 103 · Info: 2 — Appendix A · all findings · full markdown report.
Generated by the Canine Code Analyzer: deterministic code-health analysis. 17-11-2026 @ 04:28 UTC.
Downloadable artifacts
Machine-readable and reproducible from this commit + frozen rubric — drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.