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

DrawnUi/DrawnUi.Net

Measured 16 November 2026, 21:54 UTC, at code version 9895bf9

First survey, so nothing to compare with yet Code coverage: not measuredBoundary Type-Coupling: not measured

Code coverage is not measured: The repo's test suite did not build.

Boundary Type-Coupling is not measured: Bounded contexts not declared.

CAI score 39.8out of 100 Weak
CriticalWeakAdequateStrongExemplary

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

A large codebase: 222,038 lines of product code in 152 projects, tests not counted · Estimated rebuild effort: about 4.4 person-years · Weakest lens: Accessibility, 34.5

Findings by how serious they are

137 critical 2446 serious 264 minor

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

This survey was produced by

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

81of 81 dimensions measured by tools.
2826of 2847 findings point to an exact file and line, so you can open each one in the code. The other 21 concern the repository as a whole, such as missing documentation.
81dimensions across 7 lenses, read from 222,038 lines of product code in 152 projects.
Chapters

Executive summary

DrawnUi/DrawnUi.Net falls short of our standard for production, in part because it has pieces of wrong accessibility markup. It scores 39.8 out of 100 and is rated Weak, and 17 of its 137 critical findings are security problems in the build pipeline.

Accessibility, at 34.5, is the weakest lens and counts most in the score. The best first step is adding access checks, worth about 3.8 points. Correcting the accessibility attributes would lift Accessibility itself, worth about 2.7 points. Raising Accessibility to 70 would lift the score to about 44.5.

Sixteen pipeline tools are referenced by a changeable name, so the build pipeline can be tampered with. One pipeline step installs packages that can change without warning, and forty-five errors are caught and ignored, so failures can go unnoticed. Pinning each tool to an exact version, pinning what the pipeline installs and handling or logging the ignored errors would close these risks. The 43 data fields that are written but never read need removing.

The product code is 222,038 lines, about €640,000 to rebuild.

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

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

If Accessibility rose from 34.5 to 70, the lowest score rated Strong, the score would rise from 39.8 to about 44.5.

Code composition: what the lines of code are
Business logic 43%Supporting code 40%Tests 17%Generated by tools 0%
Rebuild cost: about €640,000 · Estimate
Cost to rebuild€210,000 to €1,100,000, for 3,466 to 11,324 hours of work, about 4.4 person-years for 2 to 9 engineers
Difficulty of the problemStandard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write.
Quality factor×0.7 at a score of 40. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it.
SizeLarge: 222,038 lines of product code
Comment linesThe estimate prices 190,209 lines. Comment lines count towards the size of 222,038 lines but aren't priced as work.
What it is notNot a quotation: nobody has offered to build it for that. Not a valuation: it says nothing about what the business is worth. Not a certified figure: no professional has signed it as one.

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

Top priorities

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

1
Protect endpoints by default-deny: [Authorize] + role/policy authorization, or imperative guard methods (throw-on-violation) called from every handler.
Raises the score by about 3.8 points · Medium effort · Access Controls
2
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 3.4 points · Medium effort · Data Protection
3
Use valid, non-abstract roles, supply the ARIA state each role requires, and never put aria-hidden on a focusable element.
Raises the score by about 2.7 points · Medium effort · ARIA correctness

Diagnosis: what the measurements show together

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

Where the investment is most exposed · Value at risk
This code would cost about €640,000 to build again, about 4.4 person-years of work. Its weakest lens is Accessibility, at 34.5 (Weak). Accessibility is about whether the interface is built so that everyone can use it, including people who can't see the screen or can't use a mouse. Because the weakest lens counts most in the score, work on Accessibility also moves the score most.
Based on: the rebuild estimate · the Accessibility grade · how much each lens counts
What to do: Start with the Accessibility actions in Top priorities.
If you do one thing first · First action
Protect endpoints by default-deny: [Authorize] + role/policy authorization, or imperative guard methods (throw-on-violation) called from every handler. Of all the actions in this report, it raises the score most for the work it takes: about 3.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.2 out of 10. Code at that level is slower to change than clean code, and we estimate the extra work at 5% to 10% on every change. The history of the code shows how much it changes: about 599,379 lines over the last 90 days, which is about 2,430,815 lines a year. At that pace, the extra work comes to an estimated 280.5 to 1682.8 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 — bounded-context dependency graph

Each box is a bounded context (its layer projects grouped, or a project count when large); arrows show dependencies between contexts. A shared kernel is where many arrows converge.

arch Add3dGallery Add3dGallery ctx:Blazor Blazor 6 projects Add3dGallery->ctx:Blazor Add3dGalleryOpenTk Add3dGalleryOpenTk ctx:OpenTk OpenTk 3 projects Add3dGalleryOpenTk->ctx:OpenTk Add3dGalleryWeb Add3dGalleryWeb ctx:Wasm Wasm 3 projects Add3dGalleryWeb->ctx:Wasm Add3dGalleryWpf Add3dGalleryWpf ctx:Wpf Wpf 3 projects Add3dGalleryWpf->ctx:Wpf BlazorSandbox BlazorSandbox BlazorSandbox->ctx:Blazor BlazorSandboxHybrid BlazorSandboxHybrid BlazorSandboxHybrid->ctx:Blazor Client Client Client->ctx:Blazor BlazorSandboxServer BlazorSandboxServer BlazorSandboxServer->ctx:Blazor EmptyCode (tpls/Blazor/EmptyCode) EmptyCode (tpls/Blazor/EmptyCode) EmptyCode (tpls/OpenTK/EmptyCode) EmptyCode (tpls/OpenTK/EmptyCode) EmptyCode (tpls/WPF/EmptyCode) EmptyCode (tpls/WPF/EmptyCode) EmptyCode (tpls/Wasm/EmptyCode) EmptyCode (tpls/Wasm/EmptyCode) GestureHarnessDemo GestureHarnessDemo ctx:Net Net 2 projects GestureHarnessDemo->ctx:Net HelloOpenTk HelloOpenTk HelloOpenTk->ctx:OpenTk HelloWpf HelloWpf HelloWpf->ctx:Wpf LoadMoreRepro LoadMoreRepro LoadMoreRepro->ctx:Blazor OpenTkGpuHost OpenTkGpuHost OpenTkGpuHost->ctx:OpenTk OpenTkOverlay OpenTkOverlay OpenTkOverlay->ctx:OpenTk OpenTkPong OpenTkPong OpenTkPong->ctx:OpenTk PongWeb PongWeb PongWeb->ctx:Wasm SkiaEditorHarness SkiaEditorHarness SkiaEditorHarness->ctx:Net VirtualizationHarnessDemo VirtualizationHarnessDemo VirtualizationHarnessDemo->ctx:Net WpfPackageDemo WpfPackageDemo WpfPong WpfPong WpfPong->ctx:Wpf WpfSandbox WpfSandbox WpfSandbox->ctx:Wpf ctx:Blazor->ctx:Net __more__ +3 more contexts

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.

42 modules, with 51 dependencies between them. One loop runs through 8 of the modules, marked above the diagonal.

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

Which modules use which. The module on each row uses the module in each column, and the number counts the pairs of types that connect them. A cell above the diagonal is part of a loop.
uses →1 (global)2 AppoMobi.Gestures3 DrawnUi.Draw.Meshes4 DrawnUi.Features.Images5 DrawnUi.Infrastructure.Enums6 DrawnUi.Internals7 DrawnUi.Internals.Markup8 DrawnUi.Maui.Navigation9 DrawnUi.Platforms.Windows10 DrawnUi.Views.Angle11 DrawnUi.Views.Gles12 DrawnUi.Vulkan13 EmptyCode14 EmptyCode.WinUI15 System.Windows.Input16 dev.fonts17 src.Blazor.DrawnUi.wwwroot18 src.Blazor.DrawnUi_Server.wwwroot19 src.Wasm.DrawnUi.wwwroot20 src.Wasm.DrawnUi.wwwroot.drawnui-web21 DrawnUi.Infrastructure22 DrawnUi.Infrastructure.Helpers23 DrawnUi.Infrastructure.Models24 DrawnUi.Models25 DrawnUi.Views26 DrawnUi.Controls27 DrawnUi.Draw28 DrawnUi29 DrawnUi.Animate.Animators30 DrawnUi.Gaming31 DrawnUi.Infrastructure.Xaml32 DrawnUi.MapsUi33 DrawnUi.OpenTk34 DrawnUi.Rive35 DrawnUi.Wpf36 DrawnUiGraphics37 DrawnUi.Add3d38 DrawnUi.Blazor.Server39 DrawnUi.Extensions40 DrawnUi.Testing
1 (global)
2 AppoMobi.Gestures
3 DrawnUi.Draw.Meshes
4 DrawnUi.Features.Images
5 DrawnUi.Infrastructure.Enums
6 DrawnUi.Internals
7 DrawnUi.Internals.Markup
8 DrawnUi.Maui.Navigation
9 DrawnUi.Platforms.Windows
10 DrawnUi.Views.Angle
11 DrawnUi.Views.Gles
12 DrawnUi.Vulkan
13 EmptyCode
14 EmptyCode.WinUI
15 System.Windows.Input
16 dev.fonts
17 src.Blazor.DrawnUi.wwwroot
18 src.Blazor.DrawnUi_Server.wwwroot
19 src.Wasm.DrawnUi.wwwroot
20 src.Wasm.DrawnUi.wwwroot.drawnui-web
21 DrawnUi.Infrastructure15
22 DrawnUi.Infrastructure.Helpers1
23 DrawnUi.Infrastructure.Models1
24 DrawnUi.Models3
25 DrawnUi.Views11111683
26 DrawnUi.Controls1321720211
27 DrawnUi.Draw1712945245
28 DrawnUi12
29 DrawnUi.Animate.Animators2
30 DrawnUi.Gaming5
31 DrawnUi.Infrastructure.Xaml2
32 DrawnUi.MapsUi9
33 DrawnUi.OpenTk1226
34 DrawnUi.Rive2
35 DrawnUi.Wpf314
36 DrawnUiGraphics3
37 DrawnUi.Add3d6155
38 DrawnUi.Blazor.Server135
39 DrawnUi.Extensions112
40 DrawnUi.Testing11112
Uses a module listed above itPart of a loopThe module itself
1 (global)2 AppoMobi.Gestures3 DrawnUi.Draw.Meshes4 DrawnUi.Features.Images5 DrawnUi.Infrastructure.Enums6 DrawnUi.Internals7 DrawnUi.Internals.Markup8 DrawnUi.Maui.Navigation9 DrawnUi.Platforms.Windows10 DrawnUi.Views.Angle11 DrawnUi.Views.Gles12 DrawnUi.Vulkan13 EmptyCode14 EmptyCode.WinUI15 System.Windows.Input16 dev.fonts17 src.Blazor.DrawnUi.wwwroot18 src.Blazor.DrawnUi_Server.wwwroot19 src.Wasm.DrawnUi.wwwroot20 src.Wasm.DrawnUi.wwwroot.drawnui-web21 DrawnUi.Infrastructure22 DrawnUi.Infrastructure.Helpers23 DrawnUi.Infrastructure.Models24 DrawnUi.Models25 DrawnUi.Views26 DrawnUi.Controls27 DrawnUi.Draw28 DrawnUi29 DrawnUi.Animate.Animators30 DrawnUi.Gaming31 DrawnUi.Infrastructure.Xaml32 DrawnUi.MapsUi33 DrawnUi.OpenTk34 DrawnUi.Rive35 DrawnUi.Wpf36 DrawnUiGraphics37 DrawnUi.Add3d38 DrawnUi.Blazor.Server39 DrawnUi.Extensions40 DrawnUi.Testing(global)1AppoMobi.Gestures2DrawnUi.Draw.Meshes3DrawnUi.Features.Images4DrawnUi.Infrastructure.Enums5DrawnUi.Internals6DrawnUi.Internals.Markup7DrawnUi.Maui.Navigation8DrawnUi.Platforms.Windows9DrawnUi.Views.Angle10DrawnUi.Views.Gles11DrawnUi.Vulkan12EmptyCode13EmptyCode.WinUI14System.Windows.Input15dev.fonts16src.Blazor.DrawnUi.wwwroot17src.Blazor.DrawnUi_Server.wwwroot18src.Wasm.DrawnUi.wwwroot19src.Wasm.DrawnUi.wwwroot.drawnui-web20DrawnUi.Infrastructure21DrawnUi.Infrastructure.Helpers22DrawnUi.Infrastructure.Models23DrawnUi.Models24DrawnUi.Views25DrawnUi.Controls26DrawnUi.Draw27DrawnUi28DrawnUi.Animate.Animators29DrawnUi.Gaming30DrawnUi.Infrastructure.Xaml31DrawnUi.MapsUi32DrawnUi.OpenTk33DrawnUi.Rive34DrawnUi.Wpf35DrawnUiGraphics36DrawnUi.Add3d37DrawnUi.Blazor.Server38DrawnUi.Extensions39DrawnUi.Testing40151131111168313217202111712945245122529122623143615513511211112+2 more modules (most-connected shown)

At a glance — Code Health · 49.9 · Weak · gated by D2, X4 ·

At a glance — Architecture · 72.2 · Adequate · gated by AX2 ·

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

At a glance — Readiness · 47.2 · Weak · gated by P3, P7 ·

At a glance — Security · 36.2 · Weak · gated by D36, C1, C2 ·

At a glance — Accessibility · 34.5 · Weak · gated by AC1, AC4, AC5 ·

At a glance — Performance · 52.7 · Adequate · gated by PF3 ·

Security & Compliance — OWASP Top-10 mapping

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

OWASP categoryFindingsSeverity
A05:2025 — Injection19High / Critical
A03:2025 — Software Supply Chain Failures8Medium

Roadmap

Top priorities: Protect endpoints by default-deny: [Authorize] + role/policy authorization, or imperative guard methods (throw-on-violation) called from every handler; 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.); Use valid, non-abstract roles, supply the ARIA state each role requires, and never put aria-hidden on a focusable element.

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

Do thisHelpsEffortDimension
Protect endpoints by default-deny: [Authorize] + role/policy authorization, or imperative guard methods (throw-on-violation) called from every handler.+3.8 ptsMediumAccess Controls
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.).+3.4 ptsMediumData Protection
Use valid, non-abstract roles, supply the ARIA state each role requires, and never put aria-hidden on a focusable element.+2.7 ptsMediumARIA correctness
Add a text alternative — alt on images (alt="" for purely decorative ones), a title or aria-label on meaningful svg, an aria-label or inner fallback content on canvas, and a captions <track> on video.+1.8 ptsMediumText alternatives
Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.+1.8 ptsMediumKeyboard semantics
Resolve the 45 EmptyCatchBlock finding(s) in Explicit Debt — start with SkiaControl.Shared.cs (8), Canvas.razor (4), Super.Android.cs (3).+0.8 ptsMediumExplicit Debt
Resolve the 43 WriteOnlyPrivateField finding(s) in Explicit Debt — start with SnappingPage.cs (6), SkiaCarousel.cs (4), SkiaGLTextureView.cs (3).+0.8 ptsMediumExplicit Debt
Resolve the 1 Banned license finding(s) in License Compliance.+0.8 ptsLowLicense Compliance

File quality

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

FileScoreBandWorst signal
src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs1.0SlopExplicit Debt: EmptyCatchBlock
src/Shared/DrawnUi/Controls/Drawer/SkiaDrawer.cs1.0SlopExplicit Debt: WriteOnlyPrivateField
src/Shared/DrawnUi/Controls/Layouts/SkiaCarousel.cs1.0SlopExplicit Debt: WriteOnlyPrivateField
src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs1.0SlopExplicit Debt: WriteOnlyPrivateField
src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs1.0SlopExplicit Debt: EmptyCatchBlock
src/Maui/DrawnUi/Platforms/Windows/DrawnView.Windows.cs1.0SlopExplicit Debt: EmptyCatchBlock
src/Maui/DrawnUi/Platforms/Android/Super.Android.cs1.0SlopExplicit Debt: EmptyCatchBlock
src/Shared/DrawnUi/Draw/Images/SkiaImage.cs1.1SlopExplicit Debt: WriteOnlyPrivateField
src/Maui/DrawnUi/Views/Canvas.cs1.6SlopExplicit Debt: WriteOnlyPrivateField
src/Shared/DrawnUi/Features/Animators/VelocitySkiaAnimator.cs2.0SlopExplicit Debt: WriteOnlyPrivateField
src/Maui/DrawnUi/Platforms/Android/SkiaEditor.Android.cs2.1SlopExplicit Debt: EmptyCatchBlock
src/Maui/DrawnUi/Platforms/Android/Retained/SkiaGLTextureView.cs2.4SlopExplicit Debt: WriteOnlyPrivateField
src/Blazor/DrawnUi/Views/Canvas.razor2.5SlopExplicit Debt: EmptyCatchBlock
REDACTED2.7SlopStatic Analysis (SAST): High: REDACTED
src/Maui/DrawnUi/Platforms/Windows/Views/OpenGles.cs3.0SlopExplicit Debt: EmptyCatchBlock
src/Wpf/Drawnui.Wpf/DrawnUi.Wpf.csproj3.4SlopExplicit Debt: NoWarnInCsproj
src/Shared/DrawnUi/Views/SkiaAccessibilityManager.cs3.4SlopExplicit Debt: WriteOnlyPrivateField
src/Maui/Samples/HelloMaui/Pages/SnappingPage.cs3.4SlopExplicit Debt: WriteOnlyPrivateField
src/Maui/DrawnUi/Platforms/Android/Vulkan/SkiaVulkanTextureView.cs3.5SlopExplicit Debt: WriteOnlyPrivateField
src/OpenTk/DrawnUi/DrawnUiWindow.cs3.8SlopExplicit Debt: EmptyCatchBlock

How the grades work

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

Critical — 137

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

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

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

Could not be resolved — 5

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 81 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 — 81 dimensions across the health lenses
D1D2D3D4D5D6D10D11D13D14D15D17D18D19D20D21D24D26D27D28D29D30D31D34D35D36D43D44AC1AC2AC3AC4AC5AC6AX1AX10AX2AX3AX5AX6AX8C1C2ED5GD1IC1M1M2M3M4P1P10P2P3P4P6P7PF1PF3S1X1X12X13X16X17X18X2X20X21X22X23X24X25X26X27X28X29X3X30X4X5

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

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

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

Tools & methods

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

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

Every finding is locatable in findings.md. Run 01a1e65a-801e-787f-b049-1cd2dc9eeaa1.

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

Run transparency — what happened this run

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

  • D11 Test Reliability — 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. Test reliability is scored on the 1 tier(s) that produced comparable repeat runs; 1 tier(s) did not, and are excluded from the measurement rather than counted (unit: measured (0 flaky); other: not included — its runs surfaced no test). This is OUR limitation, not a defect in the repository.
  • D12 Dependency Hygiene — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `dotnet list package` did not return usable output (restore or query failed); no outdated/vulnerable/deprecated data to assess. The tool said: /usr/share/dotnet/sdk/10.0.400/NuGet.targets(521,5): error MSB3202: The project file "src/Maui/Templates/DrawnAppEmpty/DrawnAppEmpty.csproj" was not found. [src/DrawnUi.slnx].
  • 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.
  • D15 Churn × Complexity Hotspots — 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. A hotspot's complexity is meant to be the worst body its churn actually touched. For src/Blazor/DrawnUi/Views/Canvas.razor that could not be established — the complexity reader for the file reports no body extents, or the history carries no per-line attribution — so the row quotes the file's worst body, which the counted changes may never have touched. The churn count is unaffected.
  • 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 4104 commit(s) sampled, automation and bot accounts excluded). One of them holds 100% of the history; the other 2 hold 0% 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.
  • D17 Explicit Debt — 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 C# workspace loaded this repository's projects but reported a load failure, and the dead-code reference search is unreliable over a graph that did not load cleanly, so it was skipped. The other debt markers on this row were read; dead symbols were not, and their absence from the score is not a finding that the code has none. First load diagnostic: Failure: Project file not found: 'src/Maui/Templates/DrawnAppEmpty/DrawnAppEmpty.csproj'.
  • D18 Solution Shape — 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 build did not finish within its budget on this run; structural metrics are reported, build/warning status is unknown.
  • D18 Solution Shape — 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. A scan loads every live solution in the repository into one workspace. Every score, lens, and finding here reflects the projects of `src/DrawnUi.slnx`, `dev/DrawnUi.Dev.slnx`, `dev/DrawnUI-Previews.sln`, `dev/Dev.sln`, `dev/DevCross.sln`, `dev/Nugets.sln`, `dev/Dev.SkiaSharp.sln`; 2 further solution(s) found in this tree (`dev/Dev.SkiaSharp.sln`, `src/Native/DrawnUi.Native.Windows/AudioEncoderNative/AudioEncoderNative.sln`) could not be added to it — their project list could not be read, or none of their projects opened — so their code is not represented in the headline. (This is a count of the solutions discovery found and could not show to be covered by the analyzed ones — not a claim about how many solution files the repository contains.) If one of them is an archived or vendored tree, declaring it — `.gitattributes` (`path/** linguist-vendored`) or `.editorconfig` (`[path/**] generated_code = true`) — excludes it from discovery the same way generated code is. You can widen what we reach: if one of these solutions is live code, check that it opens on its own (`dotnet build <solution>`); if it is archived or vendored, declare it so.
  • 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. D21's naming rules read C# through Roslyn and every other language through its sidecar model; these languages are left out (PHP's reading is its own change, a Roslyn-loaded VB or F# project has no population builder yet). Their declarations carry no naming verdict this run — this says nothing about whether their names are consistent.
  • D21 Naming Consistency — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. PREREGISTRATION version 20's fallback (adjudication D21-sample3-v3): this rule kind was adjudicated below the 95 % precision gate, so its candidates are counted here and not published, and the score covers only the acronym-spelling and awaitable-suffix rules. The kind returns as rows only after it shows a measured precision; this says nothing about whether these names are consistent.
  • 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.
  • D21 Naming Consistency — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. PREREGISTRATION version 20's fallback (adjudication D21-sample3-v3): this rule kind was adjudicated below the 95 % precision gate, so its candidates are counted here and not published, and the score covers only the acronym-spelling and awaitable-suffix rules. The kind returns as rows only after it shows a measured precision; this says nothing about whether these names are consistent.
  • D22 Internal API Consistency — not measured this run — 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. The loaded project set declares no packable project and no `.Contracts` project, so there is no intentionally-exposed surface for API consistency to be judged over.
  • 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 (218,523 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.
  • D30 Dependency Vulnerabilities — measured, with a gap in what it reached — 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. The solution did not restore on the analyzer's .NET SDK (an SDK/target-framework/restore mismatch, common for an older codebase), so there was no restored dependency graph to scan. 2 of 3 declared ecosystem(s) (npm,osv) WERE scanned and every vulnerability they reported is included in this result; nuget was not, so this dimension's score covers less than the dependency surface this repository declares, and nothing here is evidence that nuget is free of known-vulnerable dependencies.
  • D31 IaC & Container Security — 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. Checkov ran but its report could not be read (checkov produced no output — not a clean result). Every misconfiguration only checkov reports — most of its Terraform, CloudFormation, Bicep and Ansible policies — is absent from this card, so its absence here is not evidence those resources are configured correctly.
  • 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. `src/Blazor/Samples/BlazorSandbox/Games/Parallax/ParallaxGame.cs`, `src/Blazor/Samples/BlazorSandbox/Layout/NavMenuItems.cs`, `src/Maui/DrawnUi/Platforms/Windows/ViewChainPanel.Windows.cs`, `src/Maui/DrawnUi/Super.Maui.cs`, `src/OpenTk/DrawnUi/Accessibility/LinuxAtSpiProvider.cs`, … (+10 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. 48 further occurrence(s) are not listed individually; the score already reflects all 88.
  • IC1 Incompleteness & stubs — 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. 834 further occurrence(s) are not listed individually; the score already reflects all 874.
  • 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.
  • P1 CI/CD gates — 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. A CI pipeline exists and the word "test" appears, but no explicit test-runner invocation (your stack's test command, or a test job) was matched — so either the gate runs tests through a step this pass could not recognise, or "test" is incidental here (a path, "latest", a reporter). Which of the two it is cannot be settled from this dimension's evidence; the coverage dimensions report whether a suite exists at all. You can widen what we reach: name the test runner explicitly in the pipeline step (your stack's test command, or a job named for the suite) so the gate is unambiguous to a reader and to this pass.
  • P10 Library API & versioning — 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. 901 further occurrence(s) are not listed individually; the score already reflects all 941.
  • 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.
  • PF3 Async & latency hygiene — 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. 148 further occurrence(s) are not listed individually; the score already reflects all 188.
  • SC1 Supply-chain 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. 5 further occurrence(s) are not listed individually; the score already reflects all 45.
  • X1 Async correctness — 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. 8 further occurrence(s) are not listed individually; the score already reflects all 48.
  • 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. 151 further occurrence(s) are not listed individually; the score already reflects all 191.
  • X2 Cancellation propagation — 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. 106 further occurrence(s) are not listed individually; the score already reflects all 146.
  • X3 Exception handling — 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. 10 further occurrence(s) are not listed individually; the score already reflects all 50.
  • X4 Structured logging — 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. 33 further occurrence(s) are not listed individually; the score already reflects all 73.
  • Package restore incomplete — third-party types were unresolved in part of the solution — NuGet restore did not complete for src/Maui/Addons/DrawnUi.Maui.Add3d/DrawnUi.Maui.Add3d.csproj, src/Maui/Addons/DrawnUi.Maui.Game/DrawnUi.Maui.Game.csproj, src/Maui/Addons/DrawnUi.Maui.MapsUi/DrawnUi.Maui.MapsUi.csproj, src/Maui/Addons/DrawnUi.MauiGraphics/DrawnUi.MauiGraphics.csproj, src/Maui/DrawnUi/DrawnUi.Maui.csproj and 12 more, so those projects were analysed with framework references only: every check keyed on a third-party type saw an error type there and reported nothing. Findings on those projects are a lower bound; run `dotnet restore` on them and rescan.

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.
  • 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.
  • D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
  • D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
  • D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
  • D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
  • D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
  • AC1 Text alternatives: Alt-text is detected structurally — the scan sees that an alternative EXISTS, not whether it meaningfully describes the image, and decorative-vs-missing is judged by attribute shape; runtime-injected images and a non-role=img decorative svg are out of scope. This is accessibility readiness, never a WCAG conformance claim.
  • AC2 Forms & labels: Label association is read from static markup — a label wired up at runtime (JS-set aria-labelledby, framework-injected ids) reads as missing, a present label says nothing about whether its text is correct. A known UI-library field component (e.g. a JSX <TextField>) is now checked conservatively — flagged only when it carries NO label/aria-label/aria-labelledby/id/name — but wrapper/context-labelled libraries (Chakra/Radix FormControl+FormLabel) aren't statically visible (possible false positive) and non-JSX lowercased components are still skipped. A click handler on a plain element is now asked for a name too (it is a control the author declared), but the subtree test that answers it is deliberately generous: any DYNAMIC text expression in the subtree counts as a name, so an icon chosen by a ternary ({cond ? <IconA/> : <IconB/>}) reads as named, and a glyph component from a library the icon-import list does not know still names its parent. A clean result is "no unlabelled control found", not a labelling proof.
  • AC3 Page structure: Page structure is read from the static markup tree — landmarks, headings and lang injected at runtime aren't seen, heading ORDER is checked structurally (not against the rendered visual hierarchy), and lang/title/main fire only on full documents, never partials, and the data-table check sees header-cell presence (a <th> exists), not whether each header correctly associates with its cells. Static readiness, not conformance.
  • AC4 Keyboard semantics: Keyboard semantics are inferred from markup attributes — interactivity wired purely in script, focus managed at runtime, and component-level handlers are invisible. A clean result means "no static keyboard-trap shape", not a keyboard-operability proof.
  • AC5 ARIA correctness: ARIA correctness is checked against the static role/attribute shape — roles/attributes set dynamically aren't seen, a valid role says nothing about whether it matches the element's real behaviour, and required-state checks are suppressed when a JSX spread could supply them. The two-branch toggle check (a control whose state is conveyed only by which of two mutually exclusive branches renders) reads CONDITIONALS THAT ARE ATTRIBUTES — Vue v-if/v-else/v-show and Alpine x-if/x-show — so the same toggle written as a Svelte {#if} block or a JSX ternary is control flow the markup model never projects as a branch and is not seen at all.
  • AC6 Visual & motion safety: Contrast and motion safety are PARTIAL by construction — literal colours (hex/rgb/hsl/named) in inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS top-level declarations are read (same-rule/same-element colour+background pairs only); computed/runtime/theme colour, external-CDN stylesheets, CSS-in-JS dynamic (${…}) and nested-selector colours, cross-element pairs and image contrast stay out of reach, so a clean result is bounded by what the static CSS itself shows.
  • AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
  • ED5 Idempotency: Idempotency is read from the handler body and one hop below: a mutation is flagged only on structural double-apply evidence (a fresh-identity insert, an accumulation, a growing list, an unkeyed POST/send/charge), so a duplicate effect through a home-grown gateway two hops down, or an insert keyed on the message with no unique constraint, is not flagged but counted as not classified; a guard enforced by a database constraint or a broker's exactly-once delivery is invisible either way. It flags the at-least-once double-apply SHAPE, not a runtime proof of a duplicate effect.
  • M4 Documentation accuracy: Documentation accuracy checks links, versions and artefact counts against the tree: other claims (paths, commands, settings, routes) are read but not checked, and it cannot run the onboarding or measure how long a real new joiner takes.
  • P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
  • P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.

Dimensions

D1 · Cyclomatic Complexity5.6 / 10Adequate✓ Tool-verified

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

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

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

242 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was SkiaScroll.ProcessGestures at 155. A further 20 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 KeyboardManager.MapToMaui at 99 — they are counted neither in the figure above nor in this dimension's score. 11 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: src/Maui/DrawnUi/Features/Keyboard/KeyboardManager.Apple.cs (KeyboardManager.MapToMaui at 99), src/Maui/DrawnUi/Features/Keyboard/KeyboardManager.Android.cs (KeyboardManager.MapToMaui at 90), src/OpenTk/DrawnUi/OpenTkKeyMapper.cs (OpenTkKeyMapper.Map at 71), src/Wpf/Drawnui.Wpf/Features/KeyboardManager.Wpf.cs (KeyboardManager.MapKey at 58), src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsAutomationPeer.cs (DrawnUiVirtualAutomationPeer.AriaToControlType at 40), and 6 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.

TooltipsMenusPage.OnKeyDown (cyclomatic 35) · ×3src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:614
ReorderCell.OnGrip (cyclomatic 17) · ×3src/Maui/Samples/HelloMaui/Pages/ReorderCell.cs:125
SkiaScroll.ProcessGestures (cyclomatic 155)src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.Gestures.cs:371
SkiaLayout.MeasureStack (cyclomatic 134)src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:1171
Bidi.GetCharType (cyclomatic 123)src/Shared/DrawnUi/Draw/Text/SkiaLabel.Bidi.cs:59

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

What to do

  1. Bring the 3 bodies over 120 down to 120 or less in Cyclomatic Complexity — start with SkiaScroll.ProcessGestures (cyclomatic 155), SkiaLayout.MeasureStack (cyclomatic 134), Bidi.GetCharType (cyclomatic 123). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 3 together lifts Cyclomatic Complexity from 5.6 to about 5.8/10, projected with the scoring formula itself and assuming each lands exactly at 120; a cleaner split scores higher.

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

D2 · Cognitive Complexity4.0 / 10Weak✓ Tool-verified

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

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

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

385 method(s) exceeded the cognitive complexity threshold of 15; the worst was SkiaScroll.ProcessGestures at 361.

TooltipsMenusPage.OnKeyDown (cognitive 26) · ×3src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:614
ReorderCell.OnGrip (cognitive 18) · ×3src/Maui/Samples/HelloMaui/Pages/ReorderCell.cs:125
Canvas.ProcessGestures (cognitive 99) · ×2src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:60
BaseChartDrawable.DrawLabels (cognitive 31) · ×2src/Maui/Samples/Sandbox/Views/Aloha/BaseChartDrawable.cs:801
SkiaScroll.ProcessGestures (cognitive 361)src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.Gestures.cs:371

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

What to do

  1. Bring the 3 bodies over 240 down to 240 or less in Cognitive Complexity — start with SkiaScroll.ProcessGestures (cognitive 361), SkiaLayout.DrawStackVisibleChildren (cognitive 265), SkiaLabel.DecomposeText (cognitive 257). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 3 together lifts Cognitive Complexity from 4.0 to about 4.5/10, projected with the scoring formula itself and assuming each lands exactly at 240; a cleaner split scores higher.

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

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

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

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

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

119 god class(es) detected.

TooManyMethods: SkiaControl · ×47src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs
FileTooLong: Base/SkiaControl.Shared.cs · ×37src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs
MethodTooLong: SkiaScroll.ProcessGestures · ×28src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.Gestures.cs:371
ClassTooLong: SkiaButton · ×6src/Shared/DrawnUi/Controls/Button/SkiaButton.cs
FunctionTooLong: drawnui-picker.getPickerThemesrc/Blazor/DrawnUi/wwwroot/drawnui-picker.js:3

What to do

  1. Resolve the 47 TooManyMethods finding(s) in God Classes — start with SkiaShell.cs (2), SkiaControl.Shared.cs, SkiaLayout.ListView.cs. — One of this dimension's main actionable groups (47 warning-level).
  2. Resolve the 37 FileTooLong finding(s) in God Classes — start with SkiaShell.cs (2), SkiaControl.Shared.cs, SkiaLabel.cs. — One of this dimension's main actionable groups (37 warning-level).
  3. Resolve the 28 MethodTooLong finding(s) in God Classes — start with SkiaLayout.ColumnRow.cs (4), SkiaLabel.cs (3), SkiaControl.Shared.cs (3). — One of this dimension's main actionable groups (28 warning-level).

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

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

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

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

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

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

Duplicated block (5 lines × 2) · ×32src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:2539
Duplicated block (6 lines × 2) · ×29src/Maui/Addons/DrawnUi.Maui.MapsUi/IMapPin.cs:7
Duplicated block (8 lines × 2) · ×26src/Maui/DrawnUi/Platforms/Apple/SkiaFontManager.Apple.cs:192
Duplicated block (7 lines × 2) · ×22src/Blazor/DrawnUi/Internals/Core/SkiaFontManager.cs:124
Duplicated block (16 lines × 2) · ×17src/SharedAdd3d/SkiaModel3D.cs:752

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

What to do

  1. Resolve the 32 Duplicated block (5 lines × 2) finding(s) in Code Duplication — start with SkiaLayout.ListView.cs (2), SkiaModel3D.cs (2), GameButton.cs (2). — One of this dimension's main actionable groups (32 warning-level).
  2. Resolve the 29 Duplicated block (6 lines × 2) finding(s) in Code Duplication — start with SkiaImageManager.Blazor.cs (2), SkiaLabel.cs (2), BuiltinWindowChatRepro.cs (2). — One of this dimension's main actionable groups (29 warning-level).
  3. Resolve the 26 Duplicated block (8 lines × 2) finding(s) in Code Duplication — start with DrawnView.Blazor.cs (2), SkiaShell.ModalWrapper.cs (2), SkiaShape.cs (2). — One of this dimension's main actionable groups (26 warning-level).

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

D5 · Coupling9.8 / 10Stronggated by 4 serious findings✓ Tool-verified

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

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

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

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

149 projects, 0 dependency cycle(s), 0 unstable depended-on project(s).

Off the main sequence: DrawnUi.Maui(net9.0) · ×4src/Maui/DrawnUi/DrawnUi.Maui.csproj:1

What to do

  1. Resolve the 4 Off the main sequence finding(s) in Coupling — start with DrawnUi.Maui.csproj, DrawnUi.Wpf.csproj, DrawnUi.OpenTk.csproj. — One of this dimension's main actionable groups (4 warning-level).

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

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

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

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

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

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

11 of 366 classes have LCOM4 above 3.

Low cohesion: DrawnView (LCOM4 23) · ×11src/Maui/DrawnUi/Platforms/Windows/DrawnView.Windows.cs:13

What to do

  1. Resolve the 11 Low cohesion finding(s) in Cohesion (LCOM4) — start with ShadersPage.cs (3), ShellPage.cs (2), DrawnView.Windows.cs. — One of this dimension's main actionable groups (11 warning-level).

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

D10 · Test Quality10.0 / 10Stronggated by 2 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.

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

0 skipped, 1 zero-assertion, 1 synchronised by a fixed sleep, 1 mock references across 770 tests.

No assertions: EmptyLink_DoesNothingsrc/Net/Tests/DrawnUi.Net.Tests/OpenLinkTests.cs:9
Fixed-sleep synchronisation: CancelAll_CancelsWaitingLoads_RunningOneFinishessrc/Net/Tests/DrawnUi.Net.Tests/ImageLoadQueueTests.cs:54
Mock framework: NSubstitute

What to do

  1. Resolve the 1 No assertions finding(s) in Test Quality — start with OpenLinkTests.cs. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 Fixed-sleep synchronisation finding(s) in Test Quality — start with ImageLoadQueueTests.cs. — One of this dimension's main actionable groups (1 warning-level).

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

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.

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

Only 1 of 2 test tiers measured — the score covers those alone. 0 flaky across 1 measured tier(s). unit: measured (0 flaky); other: not included — its runs surfaced no test.

✓ On the Gold path — maintain.

Detailed fixes: d11_recommendation.md.

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

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

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

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

Secret scan ran and found no leaked secrets.

✓ On the Gold path — maintain.

Detailed fixes: d13_recommendation.md.

D14 · License Compliance8.0 / 10Adequategated by 1 critical finding✓ Tool-verified

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

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

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

1 of 342 packages use a banned license. ★ DEPTH: this repository's MSBuild projects declare 58 direct `PackageReference`(s), and 192 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 the licences of those dependencies 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.

Banned license: Fizzler

What to do

  1. Resolve the 1 Banned license finding(s) in License Compliance. — One of this dimension's main actionable groups (1 issue-level).

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

D15 · Churn × Complexity Hotspots9.5 / 10Stronggated by 57 serious findings✓ Tool-verified

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

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

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

Top hotspots: src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs (70×84=5880); src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs (38×83=3154); src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs (22×134=2948) Repeated repair below the complexity floor: src/Shared/DrawnUi/Internals/Models/CachedObject.cs (3 of 3 changes were fixes)

Hotspot: src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs · ×56src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:2624
Repeated repair: src/Shared/DrawnUi/Internals/Models/CachedObject.cssrc/Shared/DrawnUi/Internals/Models/CachedObject.cs:266

What to do

  1. Resolve the 56 Hotspot finding(s) in Churn × Complexity Hotspots — start with TooltipsMenusPage.cs (3), SkiaControl.Shared.cs, SkiaLabel.cs. — One of this dimension's main actionable groups (56 warning-level).
  2. Resolve the 1 Repeated repair finding(s) in Churn × Complexity Hotspots — start with CachedObject.cs. — One of this dimension's main actionable groups (1 warning-level).

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

D17 · Explicit Debt8.0 / 10Adequategated by 108 critical findings✓ Tool-verified

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

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

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

635 deducted debt markers + unmeasured dead symbols across 218523 LoC in the .NET projects (1.0/KLoC) → score 8.0. Dead code not measured: the solution did not load cleanly, so the reference search was skipped.

EmptyCatchBlock · ×45src/Blazor/DrawnUi/Views/BrowserInterop.Blazor.cs:19
WriteOnlyPrivateField · ×43src/Maui/DrawnUi/Internals/Models/SkiaSetter.cs:9
NoWarnInCsproj · ×20src/Maui/DrawnUi/DrawnUi.Maui.csproj:38
CommentedOutCode · ×352Tests/PreviewTests/Chat/WidgetChatMessage.cs:15
TodoComment · ×130Tests/PreviewTests/Chat/WidgetChatMessage.cs:70

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

What to do

  1. Resolve the 45 EmptyCatchBlock finding(s) in Explicit Debt — start with SkiaControl.Shared.cs (8), Canvas.razor (4), Super.Android.cs (3). — One of this dimension's main actionable groups (45 issue-level).
  2. Resolve the 43 WriteOnlyPrivateField finding(s) in Explicit Debt — start with SnappingPage.cs (6), SkiaCarousel.cs (4), SkiaGLTextureView.cs (3). — One of this dimension's main actionable groups (43 issue-level).
  3. Resolve the 20 NoWarnInCsproj finding(s) in Explicit Debt — start with DrawnUi.Wpf.csproj (5), DrawnUi.Wpf.Game.csproj (5), DrawnUi.Maui.csproj (3). — One of this dimension's main actionable groups (20 issue-level).

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

D18 · Solution Shape10.0 / 10Stronggated by 7 serious findings✓ Tool-verified

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.

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

152 projects, 10682 source files, 257595 hand-written lines of code (218523 production / 39072 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), plus 1080 generated (machine-written code — designer, scaffolded and tool-emitted files — excluded from quality), 150 inter-project edges (build status unknown — did not finish). Measured across 7 solutions loaded as one workspace: `src/DrawnUi.slnx`, `dev/DrawnUi.Dev.slnx`, `dev/DrawnUI-Previews.sln`, `dev/Dev.sln`, `dev/DevCross.sln`, `dev/Nugets.sln`, `dev/Dev.SkiaSharp.sln`.

Solution references a project that does not exist · ×2src/DrawnUi.slnx
Solution references 8 projects that do not existdev/DrawnUi.Dev.slnx
Solution references 5 projects that do not existdev/DrawnUI-Previews.sln
Solution references 13 projects that do not existdev/Dev.sln
Solution references 4 projects that do not existdev/DevCross.sln

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

What to do

  1. Resolve the 2 Solution references a project that does not exist finding(s) in Solution Shape — start with DrawnUi.slnx, Nugets.sln. — One of this dimension's main actionable groups (2 warning-level).
  2. Resolve the 1 Solution references 8 projects that do not exist finding(s) in Solution Shape — start with DrawnUi.Dev.slnx. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 Solution references 5 projects that do not exist finding(s) in Solution Shape — start with DrawnUI-Previews.sln. — One of this dimension's main actionable groups (1 warning-level).

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

D19 · Documentation Quality9.3 / 10Exemplary✓ Tool-verified

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

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

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

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

Documentation: no build, run or usage examplesrc/Blazor/DrawnUi.Server/README.md:1

✓ On the Gold path — maintain.

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

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

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

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

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

No architecture decision records were found.

No ADRs foundsrc/Blazor/DrawnUi/DrawnUi.Blazor.csproj:1

What to do

  1. Resolve the 1 No ADRs found finding(s) in ADR Quality — start with DrawnUi.Blazor.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.

D21 · Naming Consistency10.0 / 10Exemplary○ Nothing flagged

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

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

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

0 naming inconsistencies among 5 declarations measured against a convention their peers follow.

✓ On the Gold path — maintain.

Detailed fixes: d21_recommendation.md.

D24 · Comment Value8.9 8.7 / 10Strong✓ Tool-verified

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

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

Maturity: Documented → Verified → Prevented · effective 8.7 / 10 · rule-coverage 98% · ceiling Documented

60 of 5270 judged comments only repeat the code they sit on (1.1 %). 139 comment(s) in another language or script were not judged.

redundant comment · ×60Tests/PreviewTests/DrawnTabBar.cs:37
doc comments repeat the names · ×8src/Net/DrawnUi/Controls/SkiaShell.cs:75

What to do

  1. Resolve the 60 redundant comment finding(s) in Comment Value — start with SkiaLayout.ColumnRow.cs (4), SnappingLayout.cs (4), SkiaLayoutTests.cs (4). — One of this dimension's main actionable groups (60 recommendation-level).

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

D26 · Project Cohesion7.7 / 10Strong✓ Tool-verified

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

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

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

8 of 64 projects flagged as possibly oversized/incoherent.

Projects may be oversized for their cohesion · ×8src/Maui/DrawnUi/DrawnUi.Maui.csproj:1
Split DrawnUi.Net(net9.0)src/Net/DrawnUi/DrawnUi.Net.csproj:1

What to do

  1. Resolve the 8 Projects may be oversized for their cohesion finding(s) in Project Cohesion — start with DrawnUi.Maui.csproj, DrawnUi.Wpf.csproj, DrawnUi.OpenTk.csproj. — One of this dimension's main actionable groups (8 recommendation-level).
  2. Resolve the 1 Split DrawnUi.Net(net9.0) finding(s) in Project Cohesion — start with DrawnUi.Net.csproj. — One of this dimension's main actionable groups (1 recommendation-level).

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

D27 · Navigability10.0 / 10Exemplary✓ Tool-verified

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.

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

44 % of calls cross a namespace and 0 % go through an interface, but 100 % of collaborators are co-located — so a call's collaborators sit together and tracing stays easy. Baseline: large — vertical-slice locality expected.

✓ On the Gold path — maintain.

Detailed fixes: d27_recommendation.md.

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

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

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

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

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

✓ On the Gold path — maintain.

Detailed fixes: d28_recommendation.md.

D29 · Static Analysis (SAST)7.9 / 10Adequategated by 17 critical findings✓ Tool-verified

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

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

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

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

19 finding(s): 0 critical, 17 high, 1 medium, 1 low. 16 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) — `src/Blazor/Samples/BlazorSandbox/Games/Parallax/ParallaxGame.cs` (lines 360–375), `src/Blazor/Samples/BlazorSandbox/Layout/NavMenuItems.cs` (line 19), `src/Maui/DrawnUi/Platforms/Windows/ViewChainPanel.Windows.cs` (line 6), `src/Maui/DrawnUi/Super.Maui.cs` (line 180), `src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs` (lines 19–21, lines 21–22, lines 23–35, …), … (+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 6 of those file(s) — `src/OpenTk/DrawnUi/Accessibility/LinuxAtSpiProvider.cs`, `src/OpenTk/Samples/Add3dGalleryOpenTk/Program.cs`, `src/OpenTk/Samples/HelloOpenTk/HelloApp.cs`, `src/OpenTk/Samples/OpenTkPong/Program.cs`, `src/Shared/DrawnUi/Features/Designer/DesignerActions.cs`, … (+1 more) — 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 1 of those file(s) — `src/SharedAdd3d/Renderer3D.cs` — 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
REDACTED

What to do

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

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

D30 · Dependency Vulnerabilities10.0 / 10Exemplary○ Nothing flagged

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

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

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

No known-vulnerable dependencies in the 2 ecosystem(s) that were scanned (npm,osv). Partial dependency scan: 2 of 3 declared ecosystem(s) were scanned (npm,osv), and the findings above are real and complete for them. nuget was not scanned (nuget: the solution did not restore on the analyzer's .NET SDK (an SDK/target-framework/restore mismatch, common for an older codebase), so there was no restored dependency graph to scan), so this is not the whole dependency surface and the result is reported at reduced confidence.

✓ On the Gold path — maintain.

Detailed fixes: d30_recommendation.md.

D31 · IaC & Container Security10.0 / 10Exemplary○ Nothing flagged

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

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

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

trivy found no infrastructure-as-code or container misconfigurations.

✓ On the Gold path — maintain.

Detailed fixes: d31_recommendation.md.

D34 · Knowledge Freshness10.0 / 10Exemplary✓ Tool-verified

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

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

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

Every significant source file has living knowledge — recently and meaningfully worked. Counted over 159 of the 283 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

✓ On the Gold path — maintain.

Detailed fixes: d34_recommendation.md.

D35 · Change Coupling9.9 / 10Stronggated by 8 serious findings✓ Tool-verified

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

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

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

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

Strongest change-coupling: SkiaView.cs↔SkiaViewAccelerated.cs 88%; BrowserHost.cs↔drawnui-web.js 75%; WebInput.cs↔drawnui-web.js 64%

Change coupling: SkiaView.cs ↔ SkiaViewAccelerated.cs · ×7src/Maui/DrawnUi/Views/SkiaView.cs:1
Change-coupling hub: SkiaButton.cs → SkiaSwitch.cs, SkiaToggle.cs, SkiaHotspot.cssrc/Shared/DrawnUi/Controls/Button/SkiaButton.cs

What to do

  1. Resolve the 7 Change coupling finding(s) in Change Coupling — start with SkiaView.cs, BrowserHost.cs, WebInput.cs. — One of this dimension's main actionable groups (7 warning-level).
  2. Resolve the 1 Change-coupling hub finding(s) in Change Coupling — start with SkiaButton.cs. — One of this dimension's main actionable groups (1 warning-level).

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

D36 · Supply-chain Provenance & Signing0.0 / 10Critical✓ Tool-verified

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

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

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

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

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

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

What to do

  1. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
  2. 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).
  3. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).

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

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

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

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

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

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

✓ On the Gold path — maintain.

Detailed fixes: d43_recommendation.md.

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

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

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

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

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

✓ On the Gold path — maintain.

Detailed fixes: d44_recommendation.md.

Frontend & cross-cutting dimensions

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

AC1 · Text alternatives3.5 / 10Weak✓ Tool-verified

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

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

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

  • A <canvas> with no aria-label/title and no inner fallback content can't be described by assistive tech. Add a name or fallback content. — tpls/Wasm/EmptyCode/wwwroot/index.html:16

What to do

  • Add a text alternative — alt on images (alt="" for purely decorative ones), a title or aria-label on meaningful svg, an aria-label or inner fallback content on canvas, and a captions <track> on video.
AC2 · Forms & labels5.2 / 10Adequate✓ Tool-verified

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

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

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

  • This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label. — src/Blazor/DrawnUi/Views/Entry.razor:8

What to do

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

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

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

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

  • No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>. (×2) — tpls/Blazor/EmptyCode/wwwroot/index.html:2, tpls/Wasm/EmptyCode/wwwroot/index.html:2
  • No <main> (or role="main") means no "skip to content" target and a weaker landmark map. This document's body is only the mount point <div id="root">, so there is no content here to wrap — render the <main> from the component mounted into it. — tpls/React/EmptyCode/index.html:2

What to do

  • Declare <html lang>, a document <title> and a <main> landmark, keep headings in order, leave zoom enabled, title iframes and drop meta-refresh.
AC4 · Keyboard semantics3.5 / 10Weak✓ Tool-verified

Other · Accessibility — Whether interactive behaviour is keyboard-reachable — no click handler on a non-interactive element lacking a role, tabindex and key handler, no element the repo's own CSS styles `cursor: pointer` without giving it any of the three, no unfocusable element whose only binding is a mouse enter/leave pair or a double-click, no positive tabindex, no href-less anchor, no placeholder-href (#/javascript) link acting as a button. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: click handlers on non-interactive elements lacking role+tabindex+key handler, positive tabindex values, and href-less anchors. Components skipped, spreads suppressed. Deterministic, hard fact per element.

Coverage: Population: elements that pose a keyboard-semantics question, in the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx) — a non-natively-interactive element carrying a click handler, a double-click or hover enter/leave binding, a pointer-only gesture on a tabindex="0" element, or `cursor: pointer` from the repo's own CSS; an href-less or placeholder-href (#, javascript:) anchor; and any element with a positive tabindex. Natively interactive elements used correctly (<button>, <a href>, form controls) are NOT in the population — there is nothing to judge — so a page of nothing but correct controls gives AC4 nothing to measure. Keyboard reachability is judged from the markup, never from a rendered page. ★ An interactive element declared in a tagged-template (html`…`) or hyperscript frontend is NOT in this population — no producer reads either — so an empty population is reported as an analyzer gap, never as "this repository has no interactive elements".

  • A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler. — src/Blazor/DrawnUi/Internals/Core/TouchContentView.razor:6

What to do

  • Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.
AC5 · ARIA correctness2.3 / 10Critical✓ Tool-verified

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

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

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

  • This is not a valid WAI-ARIA attribute, so assistive technology ignores it (usually a typo). Use the correct aria-* attribute. (×3) — src/Blazor/DrawnUi/Views/Canvas.razor:176, src/Blazor/DrawnUi/Views/Canvas.razor:176, src/Blazor/DrawnUi/Views/Canvas.razor:176

What to do

  • Use valid, non-abstract roles, supply the ARIA state each role requires, and never put aria-hidden on a focusable element.
AC6 · Visual & motion safety4.2 / 10Weak✓ Tool-verified

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

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

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

  • `.xaml-a11y-element[role="text"]:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — src/Blazor/DrawnUi/Views/Canvas.razor:116
  • `.xaml-entry-input:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. — src/Blazor/DrawnUi/Views/Entry.razor.css:19
  • `.btn` moves (`transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. (×2) — src/Blazor/Samples/BlazorSandboxServer/BlazorSandboxServer/wwwroot/app.css:26, src/Blazor/Samples/BlazorSandboxHybrid/BlazorSandboxHybrid/wwwroot/app.css:26
  • `.wasm-loader-spinner` moves (`animation: wasm-loader-spin 0.9s linear infinite`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — src/Blazor/Samples/BlazorSandboxHybrid/BlazorSandboxHybrid/wwwroot/app.css:146
  • `.home-card` moves (`transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — src/Blazor/Samples/BlazorSandbox/Pages/Home.razor.css:99
  • `.boot-shell::before` moves (`animation: boot-blob 6s ease-in-out infinite`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — src/Blazor/DrawnUi/wwwroot/drawnui-loader.css:119
  • `.boot-shell::after` moves (`animation: boot-blob 7.5s ease-in-out infinite reverse`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — src/Blazor/DrawnUi/wwwroot/drawnui-loader.css:128
  • `.boot-stage` moves (`animation: boot-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — src/Blazor/DrawnUi/wwwroot/drawnui-loader.css:144
  • `.boot-logo-wrap` moves (`animation: boot-float 4.6s ease-in-out infinite`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — src/Blazor/DrawnUi/wwwroot/drawnui-loader.css:156
  • `.boot-logo` moves (`animation: boot-glow 3.4s ease-in-out infinite`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — src/Blazor/DrawnUi/wwwroot/drawnui-loader.css:182
  • `.boot-spark` moves (`animation: boot-sparkle var(--du, 2s) var(--de, 0s) ease-in-out infinite`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — src/Blazor/DrawnUi/wwwroot/drawnui-loader.css:232
  • `.boot-progress-track::after` moves (`animation: boot-shimmer 1.8s ease-in-out infinite`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — src/Blazor/DrawnUi/wwwroot/drawnui-loader.css:255
  • `.boot-progress-fill` moves (`transition: width 0.16s ease-out`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — src/Blazor/DrawnUi/wwwroot/drawnui-loader.css:266

What to do

  • Keep a visible focus style (don't remove the outline without a replacement), guard animation with prefers-reduced-motion, and raise low-contrast colour pairs to at least 4.5:1.
AX1 · Captive dependencies10.0 / 10Exemplary✓ Tool-verified

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

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

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

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

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

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

AX2 · Stateful singletons1.0 / 10Critical✓ Tool-verified

Other · Architecture — Whether singleton services avoid mutable shared instance state that concurrent callers would race on.

Method: Roslyn scan: singleton field mutations unguarded by lock or Interlocked, per type; syntax-based guard detection. Deterministic, traceable per field.

  • `SkiaImageManager` 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 (Initialized; e.g. `Initialized` at line 178). — src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:8
  • `SkiaFontManager` 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 (Initialized; e.g. `Initialized` at line 18). — src/Blazor/DrawnUi/Internals/Core/SkiaFontManager.cs:10
  • `Screen` is not registered, but `Super` creates it and keeps it in the static `_screen`, 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 (_BottomInset, _TopInset, _LeftInset, _RightInset, _Density, _WidthDip; e.g. `_BottomInset` at line 14). (×2) — src/Shared/DrawnUi/Internals/Helpers/Screen.cs:3, src/Maui/DrawnUi/Internals/Helpers/Screen.Maui.cs:3
  • `RestartingTimer` is not registered, but `Super` creates it and keeps it in the static `_timerStopRenderingInBackground`, 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 (Context, IsRunning, disposed, cancellation; e.g. `Context` at line 35). — src/Shared/DrawnUi/Internals/Helpers/RestartingTimer.cs:7
  • `RestartingTimer` is not registered, but `BlazorHotReload` creates it and keeps it in the static `Debounce`, 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 (IsRunning, cancellation; e.g. `IsRunning` at line 130). — src/Shared/DrawnUi/Internals/Helpers/RestartingTimer.cs:86
  • `FrameTimeInterpolator` 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 (_targetFps, _currentTimeStep, _fpsBuffer, LastFrameStep, IsSkippingFrames, _lastFrameTime; e.g. `_targetFps` at line 42). — src/Shared/DrawnUi/Features/Animations/FrameTimeInterpolator.cs:6
  • `SkiaGradient` is not registered, but `SkiaDecoratedColumn` creates it and keeps it in the static `HorizontalGradient`, 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 (_version; e.g. `_version` at line 520). — src/Shared/DrawnUi/Internals/Models/SkiaGradient.cs:7
  • `RadioButtons` 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 (_byName; e.g. `_byName` at line 171). — src/Shared/DrawnUi/Controls/RadioButtons/RadioButtons.cs:7
  • `RestartingTimer` is not registered, but `HotReloadService` creates it and keeps it in the static `UpdateOnTimerOnly`, 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 (IsRunning, disposed, cancellation; e.g. `IsRunning` at line 130). — src/Shared/DrawnUi/Internals/Helpers/RestartingTimer.cs:86
  • `SkiaFontManager` 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 (Fonts, Initialized; e.g. `Fonts` at line 90). — src/Maui/DrawnUi/Features/Fonts/SkiaFontManager.cs:43
  • `SkiaImageManager` 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 (_isLoadingLocked, IsDisposed, IsOffline; e.g. `_isLoadingLocked` at line 315). — src/Maui/DrawnUi/Features/Images/SkiaImageManager.cs:8
  • `MauiThemeProvider` is not registered, but `ThemeBindingManager` creates it and keeps it in the static `_themeProvider`, 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 (_lastTheme; e.g. `_lastTheme` at line 44). — src/Maui/DrawnUi/Internals/Extensions/ThemeBindingExtension.cs:10
  • `InsetsListener` is not registered, but `Super` creates it and keeps it in the static `_insetsListener`, 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 (_reported, _returnInsets; e.g. `_reported` at line 364). — src/Maui/DrawnUi/Platforms/Android/Super.Android.cs:317
  • `RestartingTimer` is not registered, but `HotReloadService` creates it and keeps it in the static `UpdateOnTimerOnly`, 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 (IsRunning, cancellation; e.g. `IsRunning` at line 130). — src/Shared/DrawnUi/Internals/Helpers/RestartingTimer.cs:86
  • `SkiaImageManager` 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 (_isLoadingLocked, IsOffline; e.g. `_isLoadingLocked` at line 315). — src/Maui/DrawnUi/Features/Images/SkiaImageManager.cs:8
  • `RestartingTimer` is not registered, but `HotReloadService` creates it and keeps it in the static `Debounce`, 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 (IsRunning, cancellation; e.g. `IsRunning` at line 130). — src/Shared/DrawnUi/Internals/Helpers/RestartingTimer.cs:86
  • `SkiaFontManager` 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 (Initialized; e.g. `Initialized` at line 56). — src/SharedNet/Internals/Core/SkiaFontManager.cs:3
  • `RestartingTimer` is not registered, but `HotReloadService` creates it and keeps it in the static `_timer`, 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 (IsRunning, cancellation; e.g. `IsRunning` at line 130). — src/Shared/DrawnUi/Internals/Helpers/RestartingTimer.cs:86
  • `WebSkiaView` is not registered, but `BrowserHost` creates it and keeps it in the static `_view`, 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 (_glInfo, _dirty, _enableRenderLoop, _dpi, _canvasSize, _glInterface; e.g. `_glInfo` at line 77). — src/Wasm/DrawnUi/WebSkiaView.cs:13
  • `SkiaFontManager` 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 (Initialized; e.g. `Initialized` at line 27). — src/Wasm/DrawnUi/SkiaFontManager.Web.cs:13
  • `Renderer3D` 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 (_anisotropy; e.g. `_anisotropy` at line 405). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — src/SharedAdd3d/Renderer3D.cs:17
  • `Scene3D` 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 (_rayScratch; e.g. `_rayScratch` at line 463). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — src/SharedAdd3d/Scene3D.cs:95
  • `MetalRenderer3D` 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 (_failed, _device, _mtlDevice, _models, _images, _vs; e.g. `_failed` at line 199). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — src/Maui/Addons/DrawnUi.Maui.Add3d/Apple/MetalRenderer3D.cs:19
  • `MainThread` 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 (_beginInvokeHandler, _isMainThreadHandler; e.g. `_beginInvokeHandler` at line 20). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — src/SharedNet/Internals/Core/MainThread.cs:11
  • `KeyboardManager` 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 (_module, _attached, SoftKeyboardInput, _keyUsedByCanvas, IsKeyForOtherElement, IsDispatchingKeyDown; e.g. `_module` at line 20). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — src/Blazor/DrawnUi/Features/Keyboard/KeyboardManager.Blazor.cs:6
  • `DrawnExtensions` 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 (StartupSettings; e.g. `StartupSettings` at line 17). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — src/Blazor/DrawnUi/Internals/Core/DrawnExtensions.cs:7
  • `Super` 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 (RefreshRate, _services, _servicesFromHandler, _nativeAppLifecycleModule, _lifecycleProxyRef, StatusBarHeight; e.g. `RefreshRate` at line 71). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — src/Blazor/DrawnUi/Super.Blazor.cs:32
  • `SkiaSvg` 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 (Initialized; e.g. `Initialized` at line 576). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — src/Shared/DrawnUi/Draw/Svg/SkiaSvg.cs:13
  • `SkiaLabel` 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 (_registrar; e.g. `_registrar` at line 51). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. (×2) — src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:40, src/Maui/DrawnUi/Draw/Text/SkiaLabel.Maui.cs:4
  • `PendulumAnimator` 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 (instances; e.g. `instances` at line 39). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — src/Shared/DrawnUi/Features/Animators/PendulumAnimator.cs:7
  • `SkiaPicker` 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 (_pickerModule; e.g. `_pickerModule` at line 18). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — src/Blazor/DrawnUi/Compat/SkiaPicker.Blazor.cs:5
  • `SkiaSpinner` 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 (_lastRandomColor, _firstRandomColor; e.g. `_lastRandomColor` at line 195). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — src/Shared/DrawnUi/Controls/Pickers/Spinner/SkiaSpinner.cs:11
  • `BrowserApi` 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 (_resizeModule; e.g. `_resizeModule` at line 98). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — src/Blazor/DrawnUi/Views/BrowserInterop.Blazor.cs:7
  • `SkSl` 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 (_packageHttp; e.g. `_packageHttp` at line 28). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — src/Shared/DrawnUi/Features/Shaders/SKSL.cs:7
  • `SkiaShell` 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 (tab_routes, s_routeCount, s_routes; e.g. `tab_routes` at line 2077). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:27
  • `SkiaSprite` 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 (RegisteredAnimations; e.g. `RegisteredAnimations` at line 92). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — src/Shared/DrawnUi/Controls/PlayFrames/SkiaSprite.SpriteFrameImage.cs:5
  • `SkiaControl` 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 (_offscreenBakeFrameContext, _offscreenBakeDistorted, _recordingOffscreenBake, _updateOrigin; e.g. `_offscreenBakeFrameContext` at line 1105). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — src/Maui/DrawnUi/Draw/Base/SkiaControl.Maui.cs:14
  • `SkiaLayout` 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 (PaintedBoundsTop, PaintedBoundsBottom, PaintedSkeleton, PaintedStaleServe, _contentSizeMeasureDepth, CollectedBakeTree; e.g. `PaintedBoundsTop` at line 112). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt. — src/Maui/DrawnUi/Draw/Layout/SkiaLayout.Grid.Maui.cs:8

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.
AX3 · Project dependency cycles10.0 / 10Exemplary✓ Tool-verified

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

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

  • The namespaces DrawnUi ↔ DrawnUi.Controls ↔ DrawnUi.Draw ↔ DrawnUi.Infrastructure ↔ DrawnUi.Infrastructure.Helpers ↔ DrawnUi.Infrastructure.Models ↔ DrawnUi.Models ↔ DrawnUi.Views depend on each other. The lightest dependency in the cycle is DrawnUi → DrawnUi.Models (DrawnUi.HotReloadService → DrawnUi.Models.RestartingTimer, 1 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. — src/Maui/DrawnUi/HotReload.cs:5

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.
AX5 · Architecture & structure10.0 / 10Exemplary✓ Tool-verified

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.

AX6 · Interface segregation9.8 / 10Exemplary✓ Tool-verified

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

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

  • `IDrawnBase` declares 42 members: `DrawingRect`, `Tag`, `IsVisible`, `IsDisposed`, `IsDisposing`, `IsVisibleInViewTree`, `GetOnScreenVisibleArea`, `Invalidate`, `InvalidateParents`, `ClipSmart`, `CreateClip`, `RegisterAnimator`, `UnregisterAnimator`, `UnregisterAllAnimatorsByType`, `RegisterGestureListener`, `UnregisterGestureListener`, `PostAnimators`, `Views`, `AddSubView`, `RemoveSubView`, `MeasuredSize`, `Destination`, `HeightRequest`, `WidthRequest`, `Height`, `Width`, `TranslationX`, `TranslationY`, `InputTransparent`, `IsClippedToBounds`, `ClipEffects`, `UpdateLocks`, `InvalidateByChild`, `UpdateByChild`, `ShouldInvalidateByChildren`, `RenderingScale`, `X`, `Y`, `InvalidateViewport`, `Repaint`, and 2 more. 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. — src/Shared/DrawnUi/Internals/Interfaces/IDrawnBase.cs:5
  • `ISkiaControl` declares 18 members: `VisualLayer`, `Parent`, `Margin`, `Padding`, `SetParent`, `IsGhost`, `Clipping`, `ZIndex`, `OptionalOnBeforeDrawing`, `OnBeforeMeasure`, `Arrange`, `Render`, `RenderedAtDestination`, `SetChildren`, `Measure`, `HorizontalOptions`, `VerticalOptions`, `CanDraw`. 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. — src/Shared/DrawnUi/Internals/Interfaces/ISkiaControl.cs:3
  • `ISkiaAccessibilityNode` declares 18 members: `AccessibilityId`, `AccessibilityRole`, `AccessibilityLabel`, `AccessibilityHint`, `AccessibilityCanInteract`, `AccessibilityIsPressed`, `AccessibilityIsExpanded`, `AccessibilityLive`, `IsAccessibilityElement`, `GetAccessibilityPixelRect`, `OnAccessibilityActivated`, `OnAccessibilityKey`, `GetAccessibilityValue`, `OnAccessibilitySetValue`, `NotifyAccessibility`, `OnAccessibilityUnregistered`, `NotifyAccessibilityFocused`, `OnAccessibilityFocused`. 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. — src/Shared/DrawnUi/Internals/Interfaces/ISkiaAccessibilityNode.cs:9

What to do

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

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

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

C1 · Data Protection3.0 / 10Weak✓ 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.).
C2 · Access Controls0.0 / 10Critical✓ Tool-verified

Other · Security — Whether access is authorized by default — a framework authorization attribute/decorator or policy, or imperative guard methods (throw-on-violation) called from handlers.

Method: Roslyn scan: [Authorize] usage and authorization policies, plus imperative throw-on-violation guard methods detected via syntax. Deterministic.

  • No [Authorize]/policies and no imperative guard methods (throw-on-violation) were found — endpoints may be unprotected.

What to do

  • Protect endpoints by default-deny: [Authorize] + role/policy authorization, or imperative guard methods (throw-on-violation) called from every handler.
ED5 · Idempotency10.0 / 10Exemplary○ Nothing flagged

Other · Readiness — Whether retry-prone mutations (command handlers and message or event consumers) are idempotent, so an at-least-once redelivery or a client retry does not apply the effect twice.

Method: Roslyn (any mutation, ungated): each persistent write of a command handler or message/event consumer is idempotent when a guard is visible (an exists/dedup read that gates an exit, upsert, idempotency-key/inbox used in a condition or store call, versioned or fixed-value write, dedup envelope or pipeline), at risk only on positive double-apply evidence (a fresh-identity insert, an accumulation on a loaded and saved object, a growing member list, an unkeyed POST/SMTP send/Stripe charge), and otherwise not classified. Deterministic, no model; not scored when more than half are not classified. Advisory.

Coverage: Population: retry-prone mutations — command handlers (CQRS write side) + message/event consumers (IConsumer/I*EventHandler) — that mutate persistent state; runs on any repo with mutations, not only event-driven ones. Every mutation is classified exhaustively and deterministically: guarded, at risk on positive evidence, or not classified; the score is over the classified ones and is withheld when they are fewer than half.

GD1 · Unfinished & placeholder code10.0 / 10Exemplary✓ Tool-verified

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.

  • A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface. (×14) — src/Shared/DrawnUi/Draw/Layout/RenderLabel.cs:9, src/Maui/DrawnUi/Draw/Element/SkiaMauiElement.cs:703, src/Maui/DrawnUi/Draw/Element/SkiaMauiElement.cs:708, …
  • A placeholder string ("This is a single label with a multile te…") is still in shipped code — typical of generated boilerplate that was never filled in. (×3) — src/Maui/Samples/FastRepro/MauiProgram.cs:14, src/Maui/Samples/Sandbox/MauiProgram.cs:10, src/Maui/Samples/Player/MauiProgram.cs:13
  • A placeholder string ("Lorem ipsum dolor sit amet, consectetur …") is still in shipped code — typical of generated boilerplate that was never filled in. — src/Maui/Samples/FastRepro/PlanesTest.cs:39
  • A placeholder string (" lorem ipsum dolor") is still in shipped code — typical of generated boilerplate that was never filled in. (×3) — src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs:33, src/Net/Samples/VirtualizationHarnessDemo/ChatLikeScene.cs:163, src/Net/Samples/VirtualizationHarnessDemo/TelegramLikeRepro.cs:40

What to do

  • Finish or delete NotImplementedException stubs and replace placeholder literals before shipping.
IC1 · Incompleteness & stubs4.6 / 10Weak✓ Tool-verified

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.

  • `NativeInvalidate` is a shipped member whose body only throws — and it is REACHED: src/Maui/DrawnUi/Controls/EditText/SkiaMauiEditor.cs:479 references it. This is not dead surface that can be deleted — anything taking that path throws at runtime. Implement the member, or remove the code that reaches it. — src/Maui/DrawnUi/Draw/Element/SkiaMauiElement.cs:703
  • `LayoutNativeView` is a shipped member whose body only throws — and it is REACHED: src/Maui/DrawnUi/Draw/Element/SkiaMauiElement.cs:336 references it (10 further site(s) in this project). This is not dead surface that can be deleted — anything taking that path throws at runtime. Implement the member, or remove the code that reaches it. — src/Maui/DrawnUi/Draw/Element/SkiaMauiElement.cs:708
  • `SetNativeVisibility` is a shipped member whose body only throws — and it is REACHED: src/Maui/DrawnUi/Draw/Element/SkiaMauiElement.cs:235 references it (1 further site(s) in this project). This is not dead surface that can be deleted — anything taking that path throws at runtime. Implement the member, or remove the code that reaches it. — src/Maui/DrawnUi/Draw/Element/SkiaMauiElement.cs:713
  • `GetFont` is a shipped member whose body only throws — and it is REACHED: src/Maui/DrawnUi/Features/Fonts/SkiaFontManager.cs:348 references it (1 further site(s) in this project). This is not dead surface that can be deleted — anything taking that path throws at runtime. Implement the member, or remove the code that reaches it. — src/Maui/DrawnUi/Features/Fonts/SkiaFontManager.cs:299
  • `LoadImageOnPlatformAsync` is a shipped member whose body only throws — and it is REACHED: src/Maui/DrawnUi/Features/Images/SkiaImageManager.cs:393 references it (2 further site(s) in this project). This is not dead surface that can be deleted — anything taking that path throws at runtime. Implement the member, or remove the code that reaches it. — src/Maui/DrawnUi/Features/Images/SkiaImageManager.cs:511
  • `ReportHotreloadChildAdded` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. (×3) — src/Blazor/DrawnUi/Draw/SkiaControl.Blazor.cs:14, src/Blazor/DrawnUi/Draw/SkiaLayout.Blazor.cs:19, src/Net/DrawnUi/Draw/SkiaControl.Net.cs:9
  • `ReportHotreloadChildRemoved` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. (×3) — src/Blazor/DrawnUi/Draw/SkiaControl.Blazor.cs:18, src/Blazor/DrawnUi/Draw/SkiaLayout.Blazor.cs:14, src/Net/DrawnUi/Draw/SkiaControl.Net.cs:13
  • `OnChildRemoved` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. (×2) — src/Blazor/DrawnUi/Draw/VisualDiagnostics.cs:5, src/Net/DrawnUi/Draw/VisualDiagnostics.cs:5
  • `OnChildAdded` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. (×2) — src/Blazor/DrawnUi/Draw/VisualDiagnostics.cs:10, src/Net/DrawnUi/Draw/VisualDiagnostics.cs:9
  • `Free` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — src/Maui/Addons/DrawnUi.Maui.Rive/SkiaRive.cs:157
  • `CloseAll` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — src/Maui/DrawnUi/Controls/Navigation/SkiaShell.NavigationLayer.cs:100
  • `SetupModalsVisibility` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:1458
  • `PopToRootAsync` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:2273
  • The `if` and its `else` contain the same 1 statement, so no input can make the condition matter. Implement the distinction that was intended, or drop the branch and keep the body. — src/Maui/DrawnUi/Platforms/Android/GlideExtensions.cs:192
  • `CaptureScreenshotAsync` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — src/Maui/DrawnUi/Platforms/Apple/Super.Apple.cs:75
  • `RefreshSystem` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. (×3) — src/Maui/DrawnUi/Platforms/MacCatalyst/Files.Mac.cs:7, src/Maui/DrawnUi/Platforms/Windows/Files.Windows.cs:7, src/Maui/DrawnUi/Platforms/iOS/Files.iOS.cs:7
  • `PlatformBeginInvokeOnMainThread` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — src/Maui/DrawnUi/Platforms/MacCatalyst/Super.Mac.cs:105
  • `SetFocusNative` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — src/Net/DrawnUi/Draw/SkiaEditor.Net.cs:102
  • `Update` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — src/Net/DrawnUi/Views/SkiaViewAccelerated.Net.cs:15
  • `OnTabSelectionChanged` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — src/Shared/DrawnUi/Controls/Layouts/SkiaTabsSelector.cs:271
  • `PushView` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs:246
  • `PopModal` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs:400
  • `DebugAction` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs:728
  • `SetupTransitionAnimation` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs:849
  • `UpdateSelectedView` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs:1221
  • `ShowSelectionAsyncPlatform` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — src/Shared/DrawnUi/Controls/Pickers/SkiaPicker.cs:203
  • The branch `if (orientation == ScrollOrientation.Both)` throws `NotImplementedException` 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. — src/Shared/DrawnUi/Controls/PlayFrames/RefreshIndicator.cs:120
  • `PlayRippleAnimation` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:9687
  • `PlayShimmerAnimation` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:9701
  • `Draw` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — src/Shared/DrawnUi/Draw/Layout/RenderLabel.cs:9
  • `PlayEdgeGlowAnimation` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:784
  • `SetCursorPositionNative` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — src/Shared/DrawnUi/EditText/SkiaEditor.cs:2655

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.
M1 · Documentation (README)6.6 / 10Adequate✓ Tool-verified

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

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

What to do

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

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

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

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

What to do

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

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

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

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

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

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

P1 · CI/CD gates8.5 / 10Strong✓ Tool-verified

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

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

What to do

  • Run the test suite in CI via an explicit runner step (`dotnet test` for the toolchain this pipeline already uses) and gate merges on it.
P10 · Library API & versioning9.1 / 10Exemplary✓ Tool-verified

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

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

  • 138 public types in `DrawnUi.Draw` are marked as implementation by their own namespace, folder or name: `DrawnExtensions` (src/Blazor/DrawnUi/Internals/Core/DrawnExtensions.cs:7, `Internals`), `DrawnUiApp` (src/Blazor/DrawnUi/Internals/Core/DrawnUiApp.Blazor.cs:5, `Internals`), `DrawnUiBlazorBuilder` (src/Blazor/DrawnUi/Internals/Core/DrawnUiBlazorBuilder.cs:5, `Internals`), `FluentExtensions` (src/Blazor/DrawnUi/Internals/Core/FluentExtensions.Blazor.cs:6, `Internals`), `FontCollectionExtensions` (src/Blazor/DrawnUi/Internals/Core/FontCollectionExtensions.cs:10, `Internals`), `SkiaFontManager` (src/Blazor/DrawnUi/Internals/Core/SkiaFontManager.cs:10, `Internals`), `SkiaView` (src/Blazor/DrawnUi/Internals/Core/SkiaView.cs:8, `Internals`), `SKCanvasViewWrap` (src/Blazor/DrawnUi/Internals/Core/SkiaView.cs:194, `Internals`), and 130 more. While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers. — src/Blazor/DrawnUi/Internals/Core/DrawnExtensions.cs:7
  • 8 public types in `DrawnUi.Extensions` are marked as implementation by their own namespace, folder or name: `InternalExtensions` (src/Maui/DrawnUi/Internals/Extensions/InternalExtensions.Maui.cs:5, `Internals`), `InternalExtensions` (src/Maui/DrawnUi/Internals/Extensions/InternalExtensions.Maui.cs:5, `Internals`), `InternalExtensions` (src/Maui/DrawnUi/Internals/Extensions/InternalExtensions.Maui.cs:5, `Internals`), `InternalExtensions` (src/Maui/DrawnUi/Internals/Extensions/InternalExtensions.Maui.cs:5, `Internals`), `InternalExtensions` (src/Maui/DrawnUi/Internals/Extensions/InternalExtensions.Maui.cs:5, `Internals`), `InternalExtensions` (src/Maui/DrawnUi/Internals/Extensions/InternalExtensions.Maui.cs:5, `Internals`), `InternalExtensions` (src/Maui/DrawnUi/Internals/Extensions/InternalExtensions.Maui.cs:5, `Internals`), `InternalExtensions` (src/Maui/DrawnUi/Internals/Extensions/InternalExtensions.Maui.cs:5, `Internals`). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers. — src/Maui/DrawnUi/Internals/Extensions/InternalExtensions.Maui.cs:5
  • 8 public types in `DrawnUi.Models` are marked as implementation by their own namespace, folder or name: `Screen` (src/Maui/DrawnUi/Internals/Helpers/Screen.Maui.cs:3, `Internals`), `Screen` (src/Maui/DrawnUi/Internals/Helpers/Screen.Maui.cs:3, `Internals`), `Screen` (src/Maui/DrawnUi/Internals/Helpers/Screen.Maui.cs:3, `Internals`), `Screen` (src/Maui/DrawnUi/Internals/Helpers/Screen.Maui.cs:3, `Internals`), `Screen` (src/Maui/DrawnUi/Internals/Helpers/Screen.Maui.cs:3, `Internals`), `Screen` (src/Maui/DrawnUi/Internals/Helpers/Screen.Maui.cs:3, `Internals`), `Screen` (src/Maui/DrawnUi/Internals/Helpers/Screen.Maui.cs:3, `Internals`), `Screen` (src/Maui/DrawnUi/Internals/Helpers/Screen.Maui.cs:3, `Internals`). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers. — src/Maui/DrawnUi/Internals/Helpers/Screen.Maui.cs:3
  • 8 public types in `DrawnUi.Internals.Markup` are marked as implementation by their own namespace, folder or name: `MarkupExtensions` (src/Maui/DrawnUi/Internals/Markup/MarkupExtensions.cs:4, `Internals`), `MarkupExtensions` (src/Maui/DrawnUi/Internals/Markup/MarkupExtensions.cs:4, `Internals`), `MarkupExtensions` (src/Maui/DrawnUi/Internals/Markup/MarkupExtensions.cs:4, `Internals`), `MarkupExtensions` (src/Maui/DrawnUi/Internals/Markup/MarkupExtensions.cs:4, `Internals`), `MarkupExtensions` (src/Maui/DrawnUi/Internals/Markup/MarkupExtensions.cs:4, `Internals`), `MarkupExtensions` (src/Maui/DrawnUi/Internals/Markup/MarkupExtensions.cs:4, `Internals`), `MarkupExtensions` (src/Maui/DrawnUi/Internals/Markup/MarkupExtensions.cs:4, `Internals`), `MarkupExtensions` (src/Maui/DrawnUi/Internals/Markup/MarkupExtensions.cs:4, `Internals`). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers. — src/Maui/DrawnUi/Internals/Markup/MarkupExtensions.cs:4
  • 40 public types in `DrawnUi.Infrastructure.Xaml` are marked as implementation by their own namespace, folder or name: `ColumnDefinitionTypeConverter` (src/Maui/DrawnUi/Internals/Xaml/ColumnDefinitionTypeConverter.cs:8, `Internals`), `ColumnDefinitionTypeConverter` (src/Maui/DrawnUi/Internals/Xaml/ColumnDefinitionTypeConverter.cs:8, `Internals`), `ColumnDefinitionTypeConverter` (src/Maui/DrawnUi/Internals/Xaml/ColumnDefinitionTypeConverter.cs:8, `Internals`), `ColumnDefinitionTypeConverter` (src/Maui/DrawnUi/Internals/Xaml/ColumnDefinitionTypeConverter.cs:8, `Internals`), `ColumnDefinitionTypeConverter` (src/Maui/DrawnUi/Internals/Xaml/ColumnDefinitionTypeConverter.cs:8, `Internals`), `ColumnDefinitionTypeConverter` (src/Maui/DrawnUi/Internals/Xaml/ColumnDefinitionTypeConverter.cs:8, `Internals`), `ColumnDefinitionTypeConverter` (src/Maui/DrawnUi/Internals/Xaml/ColumnDefinitionTypeConverter.cs:8, `Internals`), `ColumnDefinitionTypeConverter` (src/Maui/DrawnUi/Internals/Xaml/ColumnDefinitionTypeConverter.cs:8, `Internals`), and 32 more. While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers. — src/Maui/DrawnUi/Internals/Xaml/ColumnDefinitionTypeConverter.cs:8
  • 32 public types in `DrawnUi.Internals` are marked as implementation by their own namespace, folder or name: `SelectableAction` (src/Shared/DrawnUi/Internals/Models/SelectableAction.cs:3, `Internals`), `SelectableAction` (src/Shared/DrawnUi/Internals/Models/SelectableAction.cs:3, `Internals`), `SelectableAction` (src/Shared/DrawnUi/Internals/Models/SelectableAction.cs:3, `Internals`), `SelectableAction` (src/Shared/DrawnUi/Internals/Models/SelectableAction.cs:3, `Internals`), `SelectableAction` (src/Shared/DrawnUi/Internals/Models/SelectableAction.cs:3, `Internals`), `SelectableAction` (src/Shared/DrawnUi/Internals/Models/SelectableAction.cs:3, `Internals`), `SelectableAction` (src/Shared/DrawnUi/Internals/Models/SelectableAction.cs:3, `Internals`), `SelectableAction` (src/Shared/DrawnUi/Internals/Models/SelectableAction.cs:3, `Internals`), and 24 more. While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers. — src/Shared/DrawnUi/Internals/Models/SelectableAction.cs:3
  • `DrawnUi.Controls.MauiEditorHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0)`, `DrawnUi.Maui.Add3d(net9.0)`, `DrawnUi.Maui.Game(net9.0)`, `DrawnUi.Maui.MapsUi(net9.0)`, `DrawnUi.Maui.Rive(net9.0)`, `DrawnUi.MauiGraphics(net9.0)`, `SomeBenchmarks`, `Tutorials(net9.0)`, `UnitTests`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5
  • `DrawnUi.Controls.MauiEditorHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0-android)`, `DrawnUi.Maui.Add3d(net9.0-android)`, `DrawnUi.Maui.Game(net9.0-android)`, `DrawnUi.Maui.MapsUi(net9.0-android)`, `DrawnUi.Maui.Rive(net9.0-android)`, `DrawnUi.MauiGraphics(net9.0-android)`, `GameTemplate(net9.0-android)`, `Tutorials(net9.0-android)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5
  • `DrawnUi.Controls.MauiEditorHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0-ios)`, `DrawnUi.Maui.Add3d(net9.0-ios)`, `DrawnUi.Maui.Game(net9.0-ios)`, `DrawnUi.Maui.MapsUi(net9.0-ios)`, `DrawnUi.Maui.Rive(net9.0-ios)`, `DrawnUi.MauiGraphics(net9.0-ios)`, `GameTemplate(net9.0-ios)`, `Tutorials(net9.0-ios)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5
  • `DrawnUi.Controls.MauiEditorHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0-maccatalyst)`, `DrawnUi.Maui.Add3d(net9.0-maccatalyst)`, `DrawnUi.Maui.Game(net9.0-maccatalyst)`, `DrawnUi.Maui.MapsUi(net9.0-maccatalyst)`, `DrawnUi.Maui.Rive(net9.0-maccatalyst)`, `DrawnUi.MauiGraphics(net9.0-maccatalyst)`, `GameTemplate(net9.0-maccatalyst)`, `Tutorials(net9.0-maccatalyst)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5
  • `DrawnUi.Controls.MauiEditorHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net10.0)`, `DrawnUi.Maui.Add3d(net10.0)`, `DrawnUi.Maui.Game(net10.0)`, `DrawnUi.Maui.MapsUi(net10.0)`, `DrawnUi.Maui.Rive(net10.0)`, `DrawnUi.MauiGraphics(net10.0)`, `Tutorials(net10.0)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5
  • `DrawnUi.Controls.MauiEditorHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net10.0-android)`, `DrawnUi.Maui.Add3d(net10.0-android)`, `DrawnUi.Maui.Game(net10.0-android)`, `DrawnUi.Maui.MapsUi(net10.0-android)`, `DrawnUi.Maui.Rive(net10.0-android)`, `DrawnUi.MauiGraphics(net10.0-android)`, `FastRepro(net10.0-android)`, `HelloMaui(net10.0-android)`, `Tutorials(net10.0-android)`, `Tutorials(net10.0-android)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5
  • `DrawnUi.Controls.MauiEditorHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net10.0-ios)`, `DrawnUi.Maui.Add3d(net10.0-ios)`, `DrawnUi.Maui.Game(net10.0-ios)`, `DrawnUi.Maui.MapsUi(net10.0-ios)`, `DrawnUi.Maui.Rive(net10.0-ios)`, `DrawnUi.MauiGraphics(net10.0-ios)`, `FastRepro(net10.0-ios)`, `HelloMaui(net10.0-ios)`, `Tutorials(net10.0-ios)`, `Tutorials(net10.0-ios)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5
  • `DrawnUi.Controls.MauiEditorHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net10.0-maccatalyst)`, `DrawnUi.Maui.Add3d(net10.0-maccatalyst)`, `DrawnUi.Maui.Game(net10.0-maccatalyst)`, `DrawnUi.Maui.MapsUi(net10.0-maccatalyst)`, `DrawnUi.Maui.Rive(net10.0-maccatalyst)`, `DrawnUi.MauiGraphics(net10.0-maccatalyst)`, `FastRepro(net10.0-maccatalyst)`, `HelloMaui(net10.0-maccatalyst)`, `Tutorials(net10.0-maccatalyst)`, `Tutorials(net10.0-maccatalyst)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5
  • `DrawnUi.Controls.MauiEntryHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0)`, `DrawnUi.Maui.Add3d(net9.0)`, `DrawnUi.Maui.Game(net9.0)`, `DrawnUi.Maui.MapsUi(net9.0)`, `DrawnUi.Maui.Rive(net9.0)`, `DrawnUi.MauiGraphics(net9.0)`, `SomeBenchmarks`, `Tutorials(net9.0)`, `UnitTests`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6
  • `DrawnUi.Controls.MauiEntryHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0-android)`, `DrawnUi.Maui.Add3d(net9.0-android)`, `DrawnUi.Maui.Game(net9.0-android)`, `DrawnUi.Maui.MapsUi(net9.0-android)`, `DrawnUi.Maui.Rive(net9.0-android)`, `DrawnUi.MauiGraphics(net9.0-android)`, `GameTemplate(net9.0-android)`, `Tutorials(net9.0-android)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6
  • `DrawnUi.Controls.MauiEntryHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0-ios)`, `DrawnUi.Maui.Add3d(net9.0-ios)`, `DrawnUi.Maui.Game(net9.0-ios)`, `DrawnUi.Maui.MapsUi(net9.0-ios)`, `DrawnUi.Maui.Rive(net9.0-ios)`, `DrawnUi.MauiGraphics(net9.0-ios)`, `GameTemplate(net9.0-ios)`, `Tutorials(net9.0-ios)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6
  • `DrawnUi.Controls.MauiEntryHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0-maccatalyst)`, `DrawnUi.Maui.Add3d(net9.0-maccatalyst)`, `DrawnUi.Maui.Game(net9.0-maccatalyst)`, `DrawnUi.Maui.MapsUi(net9.0-maccatalyst)`, `DrawnUi.Maui.Rive(net9.0-maccatalyst)`, `DrawnUi.MauiGraphics(net9.0-maccatalyst)`, `GameTemplate(net9.0-maccatalyst)`, `Tutorials(net9.0-maccatalyst)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6
  • `DrawnUi.Controls.MauiEntryHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net10.0)`, `DrawnUi.Maui.Add3d(net10.0)`, `DrawnUi.Maui.Game(net10.0)`, `DrawnUi.Maui.MapsUi(net10.0)`, `DrawnUi.Maui.Rive(net10.0)`, `DrawnUi.MauiGraphics(net10.0)`, `Tutorials(net10.0)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6
  • `DrawnUi.Controls.MauiEntryHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net10.0-android)`, `DrawnUi.Maui.Add3d(net10.0-android)`, `DrawnUi.Maui.Game(net10.0-android)`, `DrawnUi.Maui.MapsUi(net10.0-android)`, `DrawnUi.Maui.Rive(net10.0-android)`, `DrawnUi.MauiGraphics(net10.0-android)`, `FastRepro(net10.0-android)`, `HelloMaui(net10.0-android)`, `Tutorials(net10.0-android)`, `Tutorials(net10.0-android)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6
  • `DrawnUi.Controls.MauiEntryHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net10.0-ios)`, `DrawnUi.Maui.Add3d(net10.0-ios)`, `DrawnUi.Maui.Game(net10.0-ios)`, `DrawnUi.Maui.MapsUi(net10.0-ios)`, `DrawnUi.Maui.Rive(net10.0-ios)`, `DrawnUi.MauiGraphics(net10.0-ios)`, `FastRepro(net10.0-ios)`, `HelloMaui(net10.0-ios)`, `Tutorials(net10.0-ios)`, `Tutorials(net10.0-ios)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6
  • `DrawnUi.Controls.MauiEntryHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net10.0-maccatalyst)`, `DrawnUi.Maui.Add3d(net10.0-maccatalyst)`, `DrawnUi.Maui.Game(net10.0-maccatalyst)`, `DrawnUi.Maui.MapsUi(net10.0-maccatalyst)`, `DrawnUi.Maui.Rive(net10.0-maccatalyst)`, `DrawnUi.MauiGraphics(net10.0-maccatalyst)`, `FastRepro(net10.0-maccatalyst)`, `HelloMaui(net10.0-maccatalyst)`, `Tutorials(net10.0-maccatalyst)`, `Tutorials(net10.0-maccatalyst)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6
  • `DrawnUi.Draw.AddGestures` (src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:9) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0-android)`, `DrawnUi.Maui.Add3d(net9.0-android)`, `DrawnUi.Maui.Game(net9.0-android)`, `DrawnUi.Maui.MapsUi(net9.0-android)`, `DrawnUi.Maui.Rive(net9.0-android)`, `DrawnUi.MauiGraphics(net9.0-android)`, `GameTemplate(net9.0-android)`, `Tutorials(net9.0-android)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:9
  • `DrawnUi.Draw.AddGestures` (src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:9) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0-ios)`, `DrawnUi.Maui.Add3d(net9.0-ios)`, `DrawnUi.Maui.Game(net9.0-ios)`, `DrawnUi.Maui.MapsUi(net9.0-ios)`, `DrawnUi.Maui.Rive(net9.0-ios)`, `DrawnUi.MauiGraphics(net9.0-ios)`, `GameTemplate(net9.0-ios)`, `Tutorials(net9.0-ios)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:9
  • `DrawnUi.Draw.AddGestures` (src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:9) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0-maccatalyst)`, `DrawnUi.Maui.Add3d(net9.0-maccatalyst)`, `DrawnUi.Maui.Game(net9.0-maccatalyst)`, `DrawnUi.Maui.MapsUi(net9.0-maccatalyst)`, `DrawnUi.Maui.Rive(net9.0-maccatalyst)`, `DrawnUi.MauiGraphics(net9.0-maccatalyst)`, `GameTemplate(net9.0-maccatalyst)`, `Tutorials(net9.0-maccatalyst)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:9
  • `DrawnUi.Draw.AddGestures` (src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:9) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net10.0)`, `DrawnUi.Maui.Add3d(net10.0)`, `DrawnUi.Maui.Game(net10.0)`, `DrawnUi.Maui.MapsUi(net10.0)`, `DrawnUi.Maui.Rive(net10.0)`, `DrawnUi.MauiGraphics(net10.0)`, `Tutorials(net10.0)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:9
  • `DrawnUi.Draw.AddGestures` (src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:9) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net10.0-android)`, `DrawnUi.Maui.Add3d(net10.0-android)`, `DrawnUi.Maui.Game(net10.0-android)`, `DrawnUi.Maui.MapsUi(net10.0-android)`, `DrawnUi.Maui.Rive(net10.0-android)`, `DrawnUi.MauiGraphics(net10.0-android)`, `FastRepro(net10.0-android)`, `HelloMaui(net10.0-android)`, `Tutorials(net10.0-android)`, `Tutorials(net10.0-android)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:9
  • `DrawnUi.Draw.AddGestures` (src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:9) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net10.0-ios)`, `DrawnUi.Maui.Add3d(net10.0-ios)`, `DrawnUi.Maui.Game(net10.0-ios)`, `DrawnUi.Maui.MapsUi(net10.0-ios)`, `DrawnUi.Maui.Rive(net10.0-ios)`, `DrawnUi.MauiGraphics(net10.0-ios)`, `FastRepro(net10.0-ios)`, `HelloMaui(net10.0-ios)`, `Tutorials(net10.0-ios)`, `Tutorials(net10.0-ios)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:9
  • `DrawnUi.Draw.AddGestures` (src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:9) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net10.0-maccatalyst)`, `DrawnUi.Maui.Add3d(net10.0-maccatalyst)`, `DrawnUi.Maui.Game(net10.0-maccatalyst)`, `DrawnUi.Maui.MapsUi(net10.0-maccatalyst)`, `DrawnUi.Maui.Rive(net10.0-maccatalyst)`, `DrawnUi.MauiGraphics(net10.0-maccatalyst)`, `FastRepro(net10.0-maccatalyst)`, `HelloMaui(net10.0-maccatalyst)`, `Tutorials(net10.0-maccatalyst)`, `Tutorials(net10.0-maccatalyst)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:9
  • `DrawnUi.HotReloadService` (src/Maui/DrawnUi/HotReload.cs:5) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0)`, `DrawnUi.Maui.Add3d(net9.0)`, `DrawnUi.Maui.Game(net9.0)`, `DrawnUi.Maui.MapsUi(net9.0)`, `DrawnUi.Maui.Rive(net9.0)`, `DrawnUi.MauiGraphics(net9.0)`, `SomeBenchmarks`, `Tutorials(net9.0)`, `UnitTests`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/HotReload.cs:5
  • `DrawnUi.HotReloadService` (src/Maui/DrawnUi/HotReload.cs:5) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0-android)`, `DrawnUi.Maui.Add3d(net9.0-android)`, `DrawnUi.Maui.Game(net9.0-android)`, `DrawnUi.Maui.MapsUi(net9.0-android)`, `DrawnUi.Maui.Rive(net9.0-android)`, `DrawnUi.MauiGraphics(net9.0-android)`, `GameTemplate(net9.0-android)`, `Tutorials(net9.0-android)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/HotReload.cs:5
  • `DrawnUi.HotReloadService` (src/Maui/DrawnUi/HotReload.cs:5) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0-ios)`, `DrawnUi.Maui.Add3d(net9.0-ios)`, `DrawnUi.Maui.Game(net9.0-ios)`, `DrawnUi.Maui.MapsUi(net9.0-ios)`, `DrawnUi.Maui.Rive(net9.0-ios)`, `DrawnUi.MauiGraphics(net9.0-ios)`, `GameTemplate(net9.0-ios)`, `Tutorials(net9.0-ios)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/HotReload.cs:5
  • `DrawnUi.HotReloadService` (src/Maui/DrawnUi/HotReload.cs:5) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0-maccatalyst)`, `DrawnUi.Maui.Add3d(net9.0-maccatalyst)`, `DrawnUi.Maui.Game(net9.0-maccatalyst)`, `DrawnUi.Maui.MapsUi(net9.0-maccatalyst)`, `DrawnUi.Maui.Rive(net9.0-maccatalyst)`, `DrawnUi.MauiGraphics(net9.0-maccatalyst)`, `GameTemplate(net9.0-maccatalyst)`, `Tutorials(net9.0-maccatalyst)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/HotReload.cs:5
  • `DrawnUi.HotReloadService` (src/Maui/DrawnUi/HotReload.cs:5) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net10.0)`, `DrawnUi.Maui.Add3d(net10.0)`, `DrawnUi.Maui.Game(net10.0)`, `DrawnUi.Maui.MapsUi(net10.0)`, `DrawnUi.Maui.Rive(net10.0)`, `DrawnUi.MauiGraphics(net10.0)`, `Tutorials(net10.0)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/HotReload.cs:5
  • `DrawnUi.HotReloadService` (src/Maui/DrawnUi/HotReload.cs:5) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net10.0-android)`, `DrawnUi.Maui.Add3d(net10.0-android)`, `DrawnUi.Maui.Game(net10.0-android)`, `DrawnUi.Maui.MapsUi(net10.0-android)`, `DrawnUi.Maui.Rive(net10.0-android)`, `DrawnUi.MauiGraphics(net10.0-android)`, `FastRepro(net10.0-android)`, `HelloMaui(net10.0-android)`, `Tutorials(net10.0-android)`, `Tutorials(net10.0-android)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/HotReload.cs:5
  • `DrawnUi.HotReloadService` (src/Maui/DrawnUi/HotReload.cs:5) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net10.0-ios)`, `DrawnUi.Maui.Add3d(net10.0-ios)`, `DrawnUi.Maui.Game(net10.0-ios)`, `DrawnUi.Maui.MapsUi(net10.0-ios)`, `DrawnUi.Maui.Rive(net10.0-ios)`, `DrawnUi.MauiGraphics(net10.0-ios)`, `FastRepro(net10.0-ios)`, `HelloMaui(net10.0-ios)`, `Tutorials(net10.0-ios)`, `Tutorials(net10.0-ios)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/HotReload.cs:5
  • `DrawnUi.HotReloadService` (src/Maui/DrawnUi/HotReload.cs:5) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net10.0-maccatalyst)`, `DrawnUi.Maui.Add3d(net10.0-maccatalyst)`, `DrawnUi.Maui.Game(net10.0-maccatalyst)`, `DrawnUi.Maui.MapsUi(net10.0-maccatalyst)`, `DrawnUi.Maui.Rive(net10.0-maccatalyst)`, `DrawnUi.MauiGraphics(net10.0-maccatalyst)`, `FastRepro(net10.0-maccatalyst)`, `HelloMaui(net10.0-maccatalyst)`, `Tutorials(net10.0-maccatalyst)`, `Tutorials(net10.0-maccatalyst)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/HotReload.cs:5
  • `DrawnUi.Controls.DrawnUiBasePageHandler` (src/Maui/DrawnUi/Platforms/Android/Controls/DrawnUiBasePageHandler.cs:6) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0)`, `DrawnUi.Maui.Add3d(net9.0)`, `DrawnUi.Maui.Game(net9.0)`, `DrawnUi.Maui.MapsUi(net9.0)`, `DrawnUi.Maui.Rive(net9.0)`, `DrawnUi.MauiGraphics(net9.0)`, `SomeBenchmarks`, `Tutorials(net9.0)`, `UnitTests`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/Platforms/Android/Controls/DrawnUiBasePageHandler.cs:6
  • `DrawnUi.Controls.DrawnUiBasePageHandler` (src/Maui/DrawnUi/Platforms/Android/Controls/DrawnUiBasePageHandler.cs:6) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0-android)`, `DrawnUi.Maui.Add3d(net9.0-android)`, `DrawnUi.Maui.Game(net9.0-android)`, `DrawnUi.Maui.MapsUi(net9.0-android)`, `DrawnUi.Maui.Rive(net9.0-android)`, `DrawnUi.MauiGraphics(net9.0-android)`, `GameTemplate(net9.0-android)`, `Tutorials(net9.0-android)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/Platforms/Android/Controls/DrawnUiBasePageHandler.cs:6
  • `DrawnUi.Controls.DrawnUiBasePageHandler` (src/Maui/DrawnUi/Platforms/Android/Controls/DrawnUiBasePageHandler.cs:6) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0-ios)`, `DrawnUi.Maui.Add3d(net9.0-ios)`, `DrawnUi.Maui.Game(net9.0-ios)`, `DrawnUi.Maui.MapsUi(net9.0-ios)`, `DrawnUi.Maui.Rive(net9.0-ios)`, `DrawnUi.MauiGraphics(net9.0-ios)`, `GameTemplate(net9.0-ios)`, `Tutorials(net9.0-ios)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such. — src/Maui/DrawnUi/Platforms/Android/Controls/DrawnUiBasePageHandler.cs:6

What to do

  • Hide `DrawnUi.Draw` (`DrawnExtensions`, `DrawnUiApp`, `DrawnUiBlazorBuilder`, `FluentExtensions`, `FontCollectionExtensions`, `SkiaFontManager`, `SkiaView`, `SKCanvasViewWrap`, and 130 more) (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): its own namespace, folder or name already says it is implementation, and hidden it can change without breaking a consumer.
  • Hide `DrawnUi.Extensions` (`InternalExtensions`, `InternalExtensions`, `InternalExtensions`, `InternalExtensions`, `InternalExtensions`, `InternalExtensions`, `InternalExtensions`, `InternalExtensions`) (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): its own namespace, folder or name already says it is implementation, and hidden it can change without breaking a consumer.
  • Hide `DrawnUi.Models` (`Screen`, `Screen`, `Screen`, `Screen`, `Screen`, `Screen`, `Screen`, `Screen`) (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): its own namespace, folder or name already says it is implementation, and hidden it can change without breaking a consumer.
  • Hide `DrawnUi.Internals.Markup` (`MarkupExtensions`, `MarkupExtensions`, `MarkupExtensions`, `MarkupExtensions`, `MarkupExtensions`, `MarkupExtensions`, `MarkupExtensions`, `MarkupExtensions`) (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): its own namespace, folder or name already says it is implementation, and hidden it can change without breaking a consumer.
  • Hide `DrawnUi.Infrastructure.Xaml` (`ColumnDefinitionTypeConverter`, `ColumnDefinitionTypeConverter`, `ColumnDefinitionTypeConverter`, `ColumnDefinitionTypeConverter`, `ColumnDefinitionTypeConverter`, `ColumnDefinitionTypeConverter`, `ColumnDefinitionTypeConverter`, `ColumnDefinitionTypeConverter`, and 32 more) (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): its own namespace, folder or name already says it is implementation, and hidden it can change without breaking a consumer.
  • Hide `DrawnUi.Internals` (`SelectableAction`, `SelectableAction`, `SelectableAction`, `SelectableAction`, `SelectableAction`, `SelectableAction`, `SelectableAction`, `SelectableAction`, and 24 more) (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): its own namespace, folder or name already says it is implementation, and hidden it can change without breaking a consumer.
  • Make `DrawnUi.Controls.MauiEditorHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.MauiEditorHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.MauiEditorHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.MauiEditorHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.MauiEditorHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.MauiEditorHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.MauiEditorHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.MauiEditorHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.MauiEntryHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.MauiEntryHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.MauiEntryHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.MauiEntryHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.MauiEntryHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.MauiEntryHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.MauiEntryHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.MauiEntryHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.AddGestures` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.AddGestures` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.AddGestures` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.AddGestures` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.AddGestures` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.AddGestures` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.AddGestures` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.HotReloadService` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.HotReloadService` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.HotReloadService` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.HotReloadService` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.HotReloadService` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.HotReloadService` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.HotReloadService` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.HotReloadService` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.DrawnUiBasePageHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.DrawnUiBasePageHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.DrawnUiBasePageHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.DrawnUiBasePageHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.DrawnUiBasePageHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.DrawnUiBasePageHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.DrawnUiBasePageHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.DrawnUiBasePageHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.KeyboardLayoutListener` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.KeyboardLayoutListener` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.KeyboardLayoutListener` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.KeyboardLayoutListener` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.KeyboardLayoutListener` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.KeyboardLayoutListener` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.KeyboardLayoutListener` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.KeyboardLayoutListener` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.RetainedSkiaGLTextureRenderer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.RetainedSkiaGLTextureRenderer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.RetainedSkiaGLTextureRenderer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.RetainedSkiaGLTextureRenderer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.RetainedSkiaGLTextureRenderer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.RetainedSkiaGLTextureRenderer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.RetainedSkiaGLTextureRenderer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.RetainedSkiaGLTextureRenderer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.SkiaGLTexture` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.SkiaGLTexture` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.SkiaGLTexture` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.SkiaGLTexture` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.SkiaGLTexture` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.SkiaGLTexture` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.SkiaGLTexture` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.SkiaGLTexture` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.ThermalStateService` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.ThermalStateService` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.ThermalStateService` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.ThermalStateService` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.ThermalStateService` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.ThermalStateService` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.ThermalStateService` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.ThermalStateService` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SkiaViewAccelerated` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SkiaViewAccelerated` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SkiaViewAccelerated` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SkiaViewAccelerated` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SkiaViewAccelerated` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SkiaViewAccelerated` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SkiaViewAccelerated` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SkiaViewAccelerated` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.OpenGles` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.NativeLibraryLoader` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.OpenGles` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.NativeLibraryLoader` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.OpenGles` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.NativeLibraryLoader` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.OpenGles` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.NativeLibraryLoader` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.OpenGles` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.NativeLibraryLoader` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.OpenGles` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.NativeLibraryLoader` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.OpenGles` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.NativeLibraryLoader` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.OpenGles` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.NativeLibraryLoader` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.VisibilityAwarePlatformView` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.VisibilityAwarePlatformView` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.VisibilityAwarePlatformView` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.VisibilityAwarePlatformView` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.VisibilityAwarePlatformView` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.VisibilityAwarePlatformView` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.VisibilityAwarePlatformView` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.VisibilityAwarePlatformView` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SkiaView` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SkiaView` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SkiaView` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SkiaView` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SkiaView` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SkiaView` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SkiaView` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SkiaView` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.HotReloadService` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.HotReloadService` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.HotReloadService` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.HotReloadService` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.HotReloadService` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.HotReloadService` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `AppoMobi.Gestures.TouchEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `AppoMobi.Gestures.TouchEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `AppoMobi.Gestures.TouchEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `AppoMobi.Gestures.TouchEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `AppoMobi.Gestures.TouchEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `AppoMobi.Gestures.TouchEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.Grid` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.Grid` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.Grid` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.Grid` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.Grid` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaViewAccelerated` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaViewAccelerated` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaViewAccelerated` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaViewAccelerated` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaViewAccelerated` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.OpenTk.GpuDrawable` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.OpenTk.GpuDrawable` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.OpenTk.OpenTkKeyMapper` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.OpenTk.WindowChrome` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.SkiaDrawer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.SkiaDrawer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.SkiaDrawer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.SkiaDrawer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.SkiaDrawer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.ScrollPickerLabelContainer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.ScrollPickerLabelContainer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.ScrollPickerLabelContainer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.ScrollPickerLabelContainer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.ScrollPickerLabelContainer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.ScrollPickerLabelContainer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.ScrollPickerLabelContainer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.ScrollPickerLabelContainer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.ScrollPickerLabelContainer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.ScrollPickerLabelContainer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.ScrollPickerLabelContainer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.ScrollPickerLabelContainer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.ScrollPickerLabelContainer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.ScrollPickerLabelContainer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.ScrollPickerLabelContainer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.ScrollPickerLabelContainer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.SkiaWheelPickerCell` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.SkiaWheelPickerCell` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.SkiaWheelPickerCell` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.SkiaWheelPickerCell` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.SkiaWheelPickerCell` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.SkiaWheelPickerCell` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.SkiaWheelPickerCell` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.SkiaWheelPickerCell` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.SkiaWheelPickerCell` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.SkiaWheelPickerCell` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.SkiaWheelPickerCell` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.SkiaWheelPickerCell` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Controls.SkiaWheelPickerCell` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ProgressTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ProgressTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ProgressTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ProgressTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ProgressTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ProgressTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ProgressTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ProgressTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ProgressTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ProgressTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ProgressTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ProgressTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ProgressTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ProgressTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ProgressTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaScrollBar` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaScrollBar` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaScrollBar` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SliderTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SliderTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SliderTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SliderTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SliderTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SliderTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SliderTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SliderTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SliderTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SliderTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SliderTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SliderTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SliderTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SliderTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SliderTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SliderTrail` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ObservableAttachedItemsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ObservableAttachedItemsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ObservableAttachedItemsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ObservableAttachedItemsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ObservableAttachedItemsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ObservableAttachedItemsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ObservableAttachedItemsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ObservableAttachedItemsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ObservableAttachedItemsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ObservableAttachedItemsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ObservableAttachedItemsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ObservableAttachedItemsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ObservableAttachedItemsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ObservableAttachedItemsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.VisualTreeHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.VisualTreeHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.VisualTreeHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.VisualTreeHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.VisualTreeHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.VisualTreeHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.VisualTreeHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.VisualTreeHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Xaml.FrameworkImageSourceConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Xaml.FrameworkImageSourceConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Xaml.FrameworkImageSourceConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Xaml.FrameworkImageSourceConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Xaml.FrameworkImageSourceConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Xaml.FrameworkImageSourceConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Xaml.FrameworkImageSourceConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ImageLoadQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ImageLoadQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ImageLoadQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ImageLoadQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ImageLoadQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ImageLoadQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ImageLoadQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ImageLoadQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ImageLoadQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ImageLoadQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ImageLoadQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ImageLoadQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ImageLoadQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ImageLoadQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ImageLoadQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.ImageSourceResourceStream` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.ImageSourceResourceStream` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.ImageSourceResourceStream` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.ImageSourceResourceStream` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.ImageSourceResourceStream` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.ImageSourceResourceStream` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.ImageSourceResourceStream` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.ImageSourceResourceStream` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.ImageSourceResourceStream` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.ImageSourceResourceStream` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.ImageSourceResourceStream` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.ImageSourceResourceStream` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.ImageSourceResourceStream` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.ImageSourceResourceStream` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.ImageSourceResourceStream` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DataContextIterator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DataContextIterator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DataContextIterator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DataContextIterator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DataContextIterator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DataContextIterator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DataContextIterator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DataContextIterator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DataContextIterator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DataContextIterator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DataContextIterator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DataContextIterator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DataContextIterator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DataContextIterator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DataContextIterator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DataContextIterator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.MeasuredListCells` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.MeasuredListCells` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.MeasuredListCells` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.MeasuredListCells` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.MeasuredListCells` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.MeasuredListCells` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.MeasuredListCells` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.MeasuredListCells` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.MeasuredListCells` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.MeasuredListCells` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.MeasuredListCells` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.MeasuredListCells` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.MeasuredListCells` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.MeasuredListCells` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.MeasuredListCells` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.MeasuredListCells` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaSvg` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaSvg` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaSvg` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaSvg` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IDrawnTextSpan` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IDrawnTextSpan` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IDrawnTextSpan` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IDrawnTextSpan` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IDrawnTextSpan` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IDrawnTextSpan` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IDrawnTextSpan` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IDrawnTextSpan` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ActionOverlayEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ActionOverlayEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ActionOverlayEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ActionOverlayEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ActionOverlayEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ActionOverlayEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ActionOverlayEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ActionOverlayEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ActionOverlayEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ActionOverlayEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ActionOverlayEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ActionOverlayEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ActionOverlayEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ActionOverlayEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ActionOverlayEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ActionOverlayEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.RippleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.RippleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.RippleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.RippleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.RippleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.RippleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.RippleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.RippleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.RippleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.RippleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.RippleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.RippleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.RippleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.RippleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.RippleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.RippleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ShimmerAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ShimmerAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ShimmerAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ShimmerAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ShimmerAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ShimmerAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ShimmerAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ShimmerAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ShimmerAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ShimmerAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ShimmerAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ShimmerAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ShimmerAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ShimmerAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ShimmerAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ShimmerAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.CriticallyDampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.UnderdampedSpringTimingVectorParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ToggleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ToggleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ToggleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ToggleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ToggleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ToggleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ToggleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ToggleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ToggleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ToggleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ToggleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ToggleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ToggleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ToggleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ToggleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ToggleAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ColorBlendAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ColorBlendAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ColorBlendAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ColorBlendAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ColorBlendAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ColorBlendAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ColorBlendAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ColorBlendAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.EdgeGlowAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.EdgeGlowAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.EdgeGlowAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.EdgeGlowAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.EdgeGlowAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.EdgeGlowAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.EdgeGlowAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.EdgeGlowAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.EdgeGlowAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.EdgeGlowAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.EdgeGlowAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.EdgeGlowAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.EdgeGlowAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.EdgeGlowAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.EdgeGlowAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.EdgeGlowAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.PingPongAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.PingPongAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.PingPongAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.PingPongAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.PingPongAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.PingPongAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.PingPongAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.PingPongAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.PingPongAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.PingPongAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.PingPongAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.PingPongAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.PingPongAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.PingPongAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.PingPongAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.PingPongAnimator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ChainAdjustBrightnessEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ChainAdjustBrightnessEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ChainAdjustBrightnessEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ChainAdjustBrightnessEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ChainAdjustBrightnessEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ChainAdjustBrightnessEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ChainAdjustBrightnessEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ChainAdjustBrightnessEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ChainAdjustBrightnessEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ChainAdjustBrightnessEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ChainAdjustBrightnessEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ChainAdjustBrightnessEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ChainAdjustBrightnessEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ChainAdjustBrightnessEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ChainAdjustBrightnessEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ChainAdjustBrightnessEffect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaLayer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.SkSl` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.SkSl` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.SkSl` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.SkSl` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.SkSl` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.SkSl` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.SkSl` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.SkSl` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.SkSl` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.SkSl` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.SkSl` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.SkSl` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.SkSl` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.SkSl` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.SkSl` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaSamplingOptions` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaSamplingOptions` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaSamplingOptions` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaSamplingOptions` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaSamplingOptions` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaSamplingOptions` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaSamplingOptions` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaSamplingOptions` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaSamplingOptions` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaSamplingOptions` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaSamplingOptions` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaSamplingOptions` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaSamplingOptions` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaSamplingOptions` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaSamplingOptions` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaImageEffects` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaImageEffects` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaImageEffects` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaImageEffects` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaImageEffects` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaImageEffects` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaImageEffects` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaImageEffects` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaImageEffects` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaImageEffects` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaImageEffects` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaImageEffects` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaImageEffects` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaImageEffects` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaImageEffects` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaImageEffects` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.Aria` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.Aria` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.Aria` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.Aria` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.Aria` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.Aria` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.Aria` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.Aria` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.LongKeyGenerator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.LongKeyGenerator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.LongKeyGenerator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.LongKeyGenerator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.LongKeyGenerator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.LongKeyGenerator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.LongKeyGenerator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.LongKeyGenerator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.LongKeyGenerator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.LongKeyGenerator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.LongKeyGenerator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.LongKeyGenerator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.LongKeyGenerator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.LongKeyGenerator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.LongKeyGenerator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.LongKeyGenerator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.Looper` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.Looper` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.Looper` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.Looper` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.Looper` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.Looper` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.Looper` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.Looper` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.PerpetualPendulum` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.PerpetualPendulum` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.PerpetualPendulum` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.PerpetualPendulum` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.PerpetualPendulum` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.PerpetualPendulum` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.PerpetualPendulum` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.PerpetualPendulum` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.PerpetualPendulum` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.PerpetualPendulum` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.PerpetualPendulum` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.PerpetualPendulum` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.PerpetualPendulum` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.PerpetualPendulum` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.PerpetualPendulum` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.PerpetualPendulum` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.RestartingTimer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.RestartingTimer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.RestartingTimer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.RestartingTimer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.RestartingTimer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.RestartingTimer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.RestartingTimer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.RestartingTimer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.RestartingTimer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.RestartingTimer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.RestartingTimer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.RestartingTimer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.RestartingTimer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.RestartingTimer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.RestartingTimer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Helpers.RubberBandUtils` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Helpers.RubberBandUtils` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Helpers.RubberBandUtils` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Helpers.RubberBandUtils` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Helpers.RubberBandUtils` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Helpers.RubberBandUtils` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Helpers.RubberBandUtils` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Helpers.RubberBandUtils` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Helpers.RubberBandUtils` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Helpers.RubberBandUtils` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Helpers.RubberBandUtils` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Helpers.RubberBandUtils` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Helpers.RubberBandUtils` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Helpers.RubberBandUtils` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Helpers.RubberBandUtils` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Helpers.RubberBandUtils` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ISkiaGpuDrawable` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ISkiaGpuDrawable` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ISkiaGpuDrawable` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ISkiaGpuDrawable` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ISkiaGpuDrawable` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ISkiaGpuDrawable` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ISkiaGpuDrawable` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ISkiaGpuDrawable` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ISkiaGpuDrawable` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ISkiaGpuDrawable` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ISkiaGpuDrawable` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ISkiaGpuDrawable` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.ISkiaGpuDrawable` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.GridSpan` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.GridSpan` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.GridSpan` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.GridSpan` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.GridSpan` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.GridSpan` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.GridSpan` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.GridSpan` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.GridSpan` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.GridSpan` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.GridSpan` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.GridSpan` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.GridSpan` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.GridSpan` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.GridSpan` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Models.GridSpan` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.LimitedQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.LimitedQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.LimitedQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.LimitedQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.LimitedQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.LimitedQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.LimitedQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.LimitedQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.LimitedQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.LimitedQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.LimitedQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.LimitedQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.LimitedQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.LimitedQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.LimitedQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Models.LimitedQueue` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Xaml.SkiaShadowsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Xaml.SkiaShadowsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Xaml.SkiaShadowsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Xaml.SkiaShadowsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Xaml.SkiaShadowsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Xaml.SkiaShadowsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Xaml.SkiaShadowsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Xaml.SkiaShadowsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Xaml.SkiaShadowsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Xaml.SkiaShadowsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Xaml.SkiaShadowsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Xaml.SkiaShadowsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Xaml.SkiaShadowsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Xaml.SkiaShadowsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Xaml.SkiaShadowsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Infrastructure.Xaml.SkiaShadowsCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IInvokeProvider` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IInvokeProvider` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IInvokeProvider` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IInvokeProvider` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IInvokeProvider` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IInvokeProvider` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IInvokeProvider` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IInvokeProvider` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IInvokeProvider` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IUiaRangeValueProvider` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IUiaValueProvider` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IUiaScrollItemProvider` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IUiaToggleProvider` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IUiaExpandCollapseProvider` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IInvokeProvider` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IUiaRangeValueProvider` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IUiaValueProvider` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IUiaScrollItemProvider` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IUiaToggleProvider` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IUiaExpandCollapseProvider` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.CanvasRestoreScope` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.CanvasRestoreScope` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.CanvasRestoreScope` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.CanvasRestoreScope` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.CanvasRestoreScope` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.CanvasRestoreScope` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.CanvasRestoreScope` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.CanvasRestoreScope` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfaceStats` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfacePool` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfaceStats` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfacePool` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfaceStats` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfacePool` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfaceStats` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfacePool` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfaceStats` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfacePool` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfaceStats` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfacePool` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfaceStats` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfacePool` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfaceStats` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfacePool` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfaceStats` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfacePool` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfaceStats` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfacePool` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfaceStats` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfacePool` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfaceStats` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfacePool` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfaceStats` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfacePool` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfaceStats` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfacePool` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfaceStats` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfacePool` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfaceStats` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.SurfacePool` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `System.Windows.Input.Command` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `System.Windows.Input.Command` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `System.Windows.Input.Command` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `System.Windows.Input.Command` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DataTemplateSelector` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DataTemplateSelector` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DataTemplateSelector` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DataTemplateSelector` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DataTemplateSelector` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DataTemplateSelector` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DataTemplateSelector` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DataTemplateSelector` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DevicePlatform` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DevicePlatform` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DevicePlatform` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DevicePlatform` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DevicePlatform` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DevicePlatform` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DevicePlatform` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DevicePlatform` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.PropertyChangingEventArgs` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DrawnFontAttributesConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FontSizeConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.AddGestures` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.PropertyChangingEventArgs` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DrawnFontAttributesConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FontSizeConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.AddGestures` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DrawnExtensions` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.PropertyChangingEventArgs` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DrawnFontAttributesConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FontSizeConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.AddGestures` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.PropertyChangingEventArgs` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DrawnFontAttributesConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FontSizeConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.AddGestures` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DrawnExtensions` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.PropertyChangingEventArgs` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DrawnFontAttributesConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FontSizeConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.AddGestures` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DrawnExtensions` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.PropertyChangingEventArgs` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DrawnFontAttributesConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FontSizeConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.AddGestures` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DrawnExtensions` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.PropertyChangingEventArgs` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DrawnFontAttributesConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FontSizeConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.AddGestures` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DrawnExtensions` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.PropertyChangingEventArgs` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DrawnFontAttributesConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FontSizeConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.AddGestures` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.DrawnExtensions` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.EasingTypeConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.EasingTypeConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.EasingTypeConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.EasingTypeConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.EasingTypeConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.EasingTypeConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.EasingTypeConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.EasingTypeConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FontCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FontCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FontCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FontCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FontCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FontCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FontCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FontCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FontWeights` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FontWeights` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FontWeights` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FontWeights` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FontWeights` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FontWeights` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FontWeights` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FontWeights` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.WeakEventManager` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.WeakEventManager` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.WeakEventManager` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.WeakEventManager` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.WeakEventManager` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.WeakEventManager` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.WeakEventManager` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.WeakEventManager` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.AssetCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.AssetCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.AssetCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.AssetCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.AssetCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.AssetCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.AssetCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.AssetCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IElementHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IElementHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IElementHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IElementHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IElementHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IElementHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IElementHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.IElementHandler` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FileImageSource` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FileImageSource` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FileImageSource` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FileImageSource` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FileImageSource` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FileImageSource` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.FileImageSource` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.Layout` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.Layout` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.Layout` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.Layout` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.Layout` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.Layout` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.Layout` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.Layout` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.LayoutOptionsConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.LayoutOptionsConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.LayoutOptionsConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.LayoutOptionsConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.LayoutOptionsConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.LayoutOptionsConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.LayoutOptionsConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Views.LayoutOptionsConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.LinearGradientBrush` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.LinearGradientBrush` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.LinearGradientBrush` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.LinearGradientBrush` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.LinearGradientBrush` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.LinearGradientBrush` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.LinearGradientBrush` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.LinearGradientBrush` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.MainThread` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.MainThread` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.MainThread` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.RadialGradientBrush` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.RadialGradientBrush` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.RadialGradientBrush` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.RadialGradientBrush` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.RadialGradientBrush` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.RadialGradientBrush` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.RadialGradientBrush` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.RadialGradientBrush` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SolidColorBrush` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SolidColorBrush` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SolidColorBrush` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SolidColorBrush` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SolidColorBrush` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SolidColorBrush` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SolidColorBrush` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SolidColorBrush` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.StylesCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.StylesCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.StylesCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.StylesCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.StylesCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.StylesCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.StylesCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.StylesCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.VisualTreeChangeEventArgs` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.VisualTreeChangeEventArgs` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.VisualTreeChangeEventArgs` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.VisualTreeChangeEventArgs` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.VisualTreeChangeEventArgs` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.VisualTreeChangeEventArgs` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.VisualTreeChangeEventArgs` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.VisualTreeChangeEventArgs` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.BrowserHost` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.HotReloadService` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.JsInterop` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaHtmlCanvasInterop` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.WebInput` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.WebSkiaView` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.WebTextInput` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Wpf.DrawnGridLengthParser` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Wpf.DrawnColumnDefinitionsConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Wpf.DrawnRowDefinitionsConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Wpf.DrawnColumnDefinitionsConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Wpf.DrawnRowDefinitionsConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Wpf.DrawnColorConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Wpf.DrawnThicknessConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Wpf.DrawnCornerRadiusConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Wpf.DrawnColorConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Wpf.DrawnThicknessConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Wpf.DrawnCornerRadiusConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Wpf.AppPackageServices` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Wpf.AppPackageServices` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Wpf.DrawnUiElement` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Draw.SkiaViewAccelerated` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Wpf.WpfDrawable` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `DrawnUi.Wpf.WpfDrawable` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
P2 · Observability6.2 / 10Adequate✓ Tool-verified

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

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

  • Only 22/30 service-like projects use logging (pure contract/DTO projects are excluded — they have nothing to log). Of those 30, 12 ship a process this repository operates; the rest are libraries their consumer hosts, where the logging decision belongs to the host.
  • `src/Maui/DrawnUi/Platforms/Android/Super.Android.cs` reports through `Console.Write…` at line 750 although other files in its project log through a logger. Console lines carry no level, category or structured properties and never reach the log pipeline or its exporters. — src/Maui/DrawnUi/Platforms/Android/Super.Android.cs:750
  • `src/Maui/DrawnUi/Platforms/Android/Super.Android.cs` reports through `Console.Write…` at line 837 although other files in its project log through a logger. Console lines carry no level, category or structured properties and never reach the log pipeline or its exporters. — src/Maui/DrawnUi/Platforms/Android/Super.Android.cs:837
  • `src/Maui/DrawnUi/Platforms/iOS/Super.iOS.cs` reports through `Console.Write…` at line 111 although other files in its project log through a logger. Console lines carry no level, category or structured properties and never reach the log pipeline or its exporters. — src/Maui/DrawnUi/Platforms/iOS/Super.iOS.cs:111
  • `src/Maui/DrawnUi/Platforms/MacCatalyst/Super.Mac.cs` reports through `Console.Write…` at line 173 although other files in its project log through a logger. Console lines carry no level, category or structured properties and never reach the log pipeline or its exporters. — src/Maui/DrawnUi/Platforms/MacCatalyst/Super.Mac.cs:173

What to do

  • Extend structured logging across the projects you operate, and give the library ones a diagnostics seam instead — an `EventSource`/`ActivitySource` the host can subscribe to, or an optional logger on your options object — rather than taking a logging dependency on your consumers' behalf.
  • Replace `Console.Write…` in service code with the project's injected `ILogger<T>` (message templates with named properties), so delivery outcomes and failures reach the log pipeline with a level and a category.
  • Add a health-check endpoint (AddHealthChecks/MapHealthChecks) so orchestrators and load balancers can probe liveness/readiness.
P3 · Security & performance tooling1.0 / 10Critical✓ Tool-verified

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

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

  • No static application security testing detected. For this repository's stack, add 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 4 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:6
  • `Tests/Labels/LabelsBenchmarks.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`. — Tests/Labels/LabelsBenchmarks.csproj:14

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.
P4 · Deployment & Rollback10.0 / 10Exemplary✓ Tool-verified

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

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

P6 · Release Hygiene5.0 / 10Adequate✓ Tool-verified

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

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

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

What to do

  • Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.
P7 · Outbound HTTP resilience3.0 / 10Weak✓ Tool-verified

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 { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }` 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. A slow or failing dependency will hold this service's request, thread or connection — and cascade — until the call gives up on its own (100 s for HttpClient's default). (×2) — src/Blazor/DrawnUi/Internals/Core/DrawnExtensions.cs:22, src/Blazor/Samples/LoadMoreRepro/Program.cs:10
  • `services.AddHttpClient(HttpClientKey, configureDelegate)` registers an outbound HTTP client with no resilience handler, retry policy or timeout of its own in its builder chain. A slow or failing dependency will hold this service's request, thread or connection — and cascade — until the call gives up on its own (100 s for HttpClient's default). — src/Maui/DrawnUi/Features/Images/ImagesExtensions.cs:28
  • `services.AddHttpClient(HttpClientKey, client => { client.DefaultRequestHeader...` registers an outbound HTTP client with no resilience handler, retry policy or timeout of its own in its builder chain. A slow or failing dependency will hold this service's request, thread or connection — and cascade — until the call gives up on its own (100 s for HttpClient's default). — src/Maui/DrawnUi/Features/Images/ImagesExtensions.cs:40
  • `new HttpClient()` 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. A slow or failing dependency will hold this service's request, thread or connection — and cascade — until the call gives up on its own (100 s for HttpClient's default). (×4) — src/Maui/DrawnUi/Features/Images/ImagesExtensions.cs:84, src/Shared/DrawnUi/Features/Shaders/SKSL.cs:28, src/Wasm/DrawnUi/SkiaFontManager.Web.cs:42, …
  • `new HttpClient { BaseAddress = HttpBaseAddress }` 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. A slow or failing dependency will hold this service's request, thread or connection — and cascade — until the call gives up on its own (100 s for HttpClient's default). — src/Net/DrawnUi/Features/SkiaImageManager.Net.cs:615
  • `new HttpClient { BaseAddress = SkiaImageManager.HttpBaseAddress }` 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. A slow or failing dependency will hold this service's request, thread or connection — and cascade — until the call gives up on its own (100 s for HttpClient's default). — src/Shared/DrawnUi/Features/Shaders/SKSL.cs:26
  • `new HttpClient { BaseAddress = baseUri }` 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. A slow or failing dependency will hold this service's request, thread or connection — and cascade — until the call gives up on its own (100 s for HttpClient's default). (×2) — src/Wasm/DrawnUi/SkiaFontManager.Web.cs:41, src/Wasm/DrawnUi/SkiaFontManager.Web.cs:101
  • `new HttpClient(new PackageFileHandler(root)) { BaseAddress = PackageBase }` 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. A slow or failing dependency will hold this service's request, thread or connection — and cascade — until the call gives up on its own (100 s for HttpClient's default). — src/Wpf/Drawnui.Wpf/Features/AppPackageServices.Wpf.cs:22

What to do

  • Add `AddStandardResilienceHandler()` (or a Polly policy and an explicit timeout) to each client registration flagged here, so a flaky dependency can't take the app down.
PF1 · Benchmark discipline9.5 / 10Exemplary✓ Tool-verified

Readiness · Performance — Whether the code protects its performance with benchmarks — a benchmark suite, allocation/memory measurement, and (ideally) a CI gate. Presence is credited as a bonus, never a deduction.

Method: Repo + source scan: BenchmarkDotNet referenced (csproj/source), [Benchmark]/[MemoryDiagnoser] attribute counts, and a benchmark step in CI; off .NET, the same ladder over Go testing.B, Rust criterion/#[bench]/divan, JMH/kotlinx-benchmark, pytest-benchmark/asv/pyperf, tinybench/mitata/vitest bench/benchmark.js and Swift package-benchmark — scored as a bonus ladder (absence is neutral, never a deduction). Deterministic, presence detection.

PF3 · Async & latency hygiene2.1 / 10Critical✓ Tool-verified

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

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

  • 13 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). (×10) — src/Shared/DrawnUi/Controls/PlayFrames/SkiaLottie.cs:379, src/Shared/DrawnUi/Draw/Images/SkiaImage.cs:547, src/Maui/DrawnUi/Features/Fonts/SkiaFontManager.cs:82, …
  • `.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). — src/Shared/DrawnUi/Draw/Images/SkiaImage.cs:649
  • `Task.Wait()` 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). (×2) — src/Maui/DrawnUi/Platforms/Windows/Views/DrawnSwapChainPanel.cs:282, src/Maui/DrawnUi/Platforms/Windows/Views/DrawnSwapChainPanel.cs:305
  • Only 5/173 awaits in library code use ConfigureAwait(false). A library that captures the caller's context can stall or deadlock its host — the classic way a dependency drags an app down.
  • `await base.GetTileAsync(httpClient, tileInfo, cancellationToken)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`. — src/Maui/Addons/DrawnUi.Maui.MapsUi/CustomizeDownloadedTiles.cs:26
  • `await this.PopModalAsync(modal, animate.GetValueOrDefault())` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`. — src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:354
  • `await RemoveModal(modal, animate.GetValueOrDefault())` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`. — src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:359
  • `await PushModalRoute(skia, registered, animate)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`. — src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:415
  • `await this.PushAsync(skia, animate.GetValueOrDefault(), false)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`. — src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:420
  • `await this.PushModalAsync(skia, false, animate.GetValueOrDefault())` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`. — src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:440
  • `await this.PushAsync(skia, animate)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`. — src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:458
  • `await AwaitNavigationLock()` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`. (×4) — src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:484, src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:607, src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:744, …
  • `await PushAsync(page, animated)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`. — src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:520
  • `await PopModalAsync(animate)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`. — src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:589
  • `await PopAsync(animate)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`. — src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:594
  • `await NavigationLayout.PopPage()` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`. — src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:617
  • `await FreezeRootLayoutInternal(control, (SkiaControl)sender, animated)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`. — src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:696
  • `await Task.Delay(15)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`. (×2) — src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:798, src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:810
  • `await Task.Delay(20)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`. — src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:835
  • `await SetFrozenLayerVisibility(control, true)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`. — src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:872
  • `await RemoveModal(control.Parent as SkiaControl, true)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`. — src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:888
  • `await PushModalAsync(page, useGestures, animated, freezeBackground)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`. — src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:1011
  • `await PopModalAsync(inStack, animated)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`. — src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:1020
  • `await modal.TranslateToAsync(0, ShellLayout.MeasuredSize.Units.Height, 250, Easing....` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`. — src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:1076
  • `await UnfreezeRootLayout(control, animated)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`. — src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:1140

What to do

  • Make the call chain async end-to-end and await it — never block on a Task with .Wait()/.GetAwaiter().GetResult().
  • In library code, append .ConfigureAwait(false) to every await (or set <ConfigureAwait>false</ConfigureAwait> / use the analyzer CA2007) so the library never captures the host's context.
S1 · Web-Security Posture8.0 / 10Strong✓ Tool-verified

Other · Security — Transport security, security headers, secure cookies, input validation, middleware order and crypto hygiene (presence, not runtime).

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

  • None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, …) is configured — defense in depth, even when a reverse proxy could set them. (−2.0 on this card.)
  • This web host's pipeline is composed here and adds no security response header (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, a frame policy) to what it serves. (×2) — src/Blazor/Samples/BlazorSandboxHybrid/BlazorSandboxHybrid/Program.cs:4, src/Blazor/Samples/BlazorSandboxServer/BlazorSandboxServer/Program.cs:5

What to do

  • Add security response headers (Content-Security-Policy first, then Strict-Transport-Security, X-Content-Type-Options and a frame policy) — defense in depth, even when a reverse proxy could set them.
X1 · Async correctness5.2 / 10Adequate✓ Tool-verified

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.

  • `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained. (×27) — src/Blazor/DrawnUi/Views/VisualElement.cs:209, src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:399, src/Shared/DrawnUi/Controls/Layouts/SkiaTabsSelector.cs:21, …
  • 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. (×12) — src/Shared/DrawnUi/Controls/PlayFrames/SkiaLottie.cs:379, src/Shared/DrawnUi/Draw/Images/SkiaImage.cs:546, src/Shared/DrawnUi/Draw/Images/SkiaImage.cs:649, …
  • `.Wait(…)` blocks this thread until the task completes or the bound expires — sync-over-async: it can deadlock under a synchronization context and it parks a thread while it waits. `await` the task (with `.WaitAsync(timeout, token)` where the bound matters). — src/Shared/DrawnUi/Super.cs:554

What to do

  • async void method: Update
X12 · Unreachable branch10.0 / 10Exemplary○ Nothing flagged

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

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

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.

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

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

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

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

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

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

  • `FindColorProperties` is public and takes the `JToken` from its caller, and it calls itself at line 862 with a child of the node it was given (and at line 870) — and nowhere in `FindColorProperties` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the tree it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. A document nested past the stack that remains raises `StackOverflowException`, which .NET neither lets you catch nor unwinds: the process is torn down where it stands, taking every other request in flight with it, and no `try`/`catch` around `FindColorProperties` can intervene. Thread a depth argument through `FindColorProperties` and reject the document past a fixed maximum, or rewrite the descent with an explicit stack. — src/Shared/DrawnUi/Controls/PlayFrames/SkiaLottie.cs:862

What to do

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

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

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

  • `SkiaImageManager` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `_initializeSemaphore` itself (line 13), which makes that instance its own. But `_initializeSemaphore` is named in none of the methods the disposal search covered: `Dispose` (line 584) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`_initializeSemaphore?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree. — src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:13
  • `cancelAnimation` is a `CancellationTokenSource`, which implements `IDisposable`, and it is created here (line 905). Every use of it in `ExecuteTransitionAnimation` 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 cancelAnimation = …;`), which releases it at the end of the scope on every path including a throw. — src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs:905
  • `animation` is a `EdgeGlowAnimator`, which implements `IDisposable`, and it is created here (line 791). Every use of it in `PlayEdgeGlowAnimation` 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 animation = …;`), which releases it at the end of the scope on every path including a throw. — src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:791
  • `SkiaControl` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `_fadeCancelTokenSource` itself (line 1205), which makes that instance its own. But `_fadeCancelTokenSource` is named in none of the methods the disposal search covered: `Dispose` (line 7186), `Dispose` (line 7331), `StopPostAnimators` (line 3256), `OnDisposing` (line 3273), `DisposeObject` (line 4295), `DisposeObject` (line 4304), `Dispose` (line 7186), `OnLifecycleStateChanged` (line 7301), `Dispose` (line 7331), `DisposeChildren` (line 9872), `OnWillDisposeWithChildren` (line 9888) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`_fadeCancelTokenSource?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree. — src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:1205
  • `SkiaControl` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `_scaleCancelTokenSource` itself (line 1272), which makes that instance its own. But `_scaleCancelTokenSource` is named in none of the methods the disposal search covered: `Dispose` (line 7186), `Dispose` (line 7331), `StopPostAnimators` (line 3256), `OnDisposing` (line 3273), `DisposeObject` (line 4295), `DisposeObject` (line 4304), `Dispose` (line 7186), `OnLifecycleStateChanged` (line 7301), `Dispose` (line 7331), `DisposeChildren` (line 9872), `OnWillDisposeWithChildren` (line 9888) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`_scaleCancelTokenSource?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree. — src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:1272
  • `SkiaControl` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `_translateCancelTokenSource` itself (line 1337), which makes that instance its own. But `_translateCancelTokenSource` is named in none of the methods the disposal search covered: `Dispose` (line 7186), `Dispose` (line 7331), `StopPostAnimators` (line 3256), `OnDisposing` (line 3273), `DisposeObject` (line 4295), `DisposeObject` (line 4304), `Dispose` (line 7186), `OnLifecycleStateChanged` (line 7301), `Dispose` (line 7331), `DisposeChildren` (line 9872), `OnWillDisposeWithChildren` (line 9888) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`_translateCancelTokenSource?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree. — src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:1337
  • `SkiaControl` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `_rotateCancelTokenSource` itself (line 1404), which makes that instance its own. But `_rotateCancelTokenSource` is named in none of the methods the disposal search covered: `Dispose` (line 7186), `Dispose` (line 7331), `StopPostAnimators` (line 3256), `OnDisposing` (line 3273), `DisposeObject` (line 4295), `DisposeObject` (line 4304), `Dispose` (line 7186), `OnLifecycleStateChanged` (line 7301), `Dispose` (line 7331), `DisposeChildren` (line 9872), `OnWillDisposeWithChildren` (line 9888) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`_rotateCancelTokenSource?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree. — src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:1404
  • `iterator` is a `RawIterator`, which implements `IDisposable`, and it is created here (line 8048). Every use of it in `IsSimpleRectangle` 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 iterator = …;`), which releases it at the end of the scope on every path including a throw. — src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:8048
  • `animation` is a `RippleAnimator`, which implements `IDisposable`, and it is created here (line 9695). Every use of it in `PlayRippleAnimation` 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 animation = …;`), which releases it at the end of the scope on every path including a throw. — src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:9695
  • `animation` is a `ShimmerAnimator`, which implements `IDisposable`, and it is created here (line 9710). Every use of it in `PlayShimmerAnimation` 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 animation = …;`), which releases it at the end of the scope on every path including a throw. — src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:9710
  • `AnimatorBase` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `_cancellationTokenSource` itself (line 88), which makes that instance its own. But `_cancellationTokenSource` is named in none of the methods the disposal search covered: `Dispose` (line 204), `Stop` (line 169) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`_cancellationTokenSource?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree. — src/Shared/DrawnUi/Features/Animators/AnimatorBase.cs:88
  • `DrawnView` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `semaphoreOffscreenProcess` itself (line 2471), which makes that instance its own. But `semaphoreOffscreenProcess` is named in none of the methods the disposal search covered: `Dispose` (line 1466), `Dispose` (line 1474), `Dispose` (line 1466), `Dispose` (line 1474), `WillDispose` (line 1500), `OnDispose` (line 1508) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`semaphoreOffscreenProcess?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree. — src/Shared/DrawnUi/Views/DrawnView.cs:2471
  • `n` is a `SkiaControl`, which implements `IDisposable`, and it is created here (line 47). Every use of it in `Init` 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 n = …;`), which releases it at the end of the scope on every path including a throw. — src/Net/DrawnUi/Super.Net.cs:47
  • `CanvasHost` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `_drawable` itself (line 24), which makes that instance its own. But `_drawable` is named in none of the methods the disposal search covered: `Dispose` (line 122) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`_drawable?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree. — src/OpenTk/DrawnUi/CanvasHost.cs:24
  • `n` is a `SkiaControl`, which implements `IDisposable`, and it is created here (line 54). Every use of it in `Init` 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 n = …;`), which releases it at the end of the scope on every path including a throw. — src/OpenTk/DrawnUi/Super.OpenTk.cs:54
  • `n` is a `SkiaControl`, which implements `IDisposable`, and it is created here (line 107). Every use of it in `Init` 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 n = …;`), which releases it at the end of the scope on every path including a throw. — src/Wasm/DrawnUi/Super.Web.cs:107
  • `DrawnUiElement` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `_drawable` itself (line 39), which makes that instance its own. But `_drawable` is named in none of the methods the disposal search covered: `Dispose` (line 474), `ReleaseSurface` (line 520) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`_drawable?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree. — src/Wpf/Drawnui.Wpf/Views/DrawnUiElement.cs:39
  • `editor` is a `SkiaEditor`, which implements `IDisposable`, and it is created here (line 101). Every use of it in `Field` 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 editor = …;`), which releases it at the end of the scope on every path including a throw. — src/Shared/Samples/Add3dGallery.Shared/Pages/GalleryPage.Form.cs:101
  • `_diceRoll` is a `CancellationTokenSource` this type creates itself, and here (line 205) a new instance is written over it — but `RollDice` itself reads through `_diceRoll` before replacing it, so it expects an instance to be there, and nothing earlier in `RollDice` disposes, closes, saves or hands on the instance being replaced. The assignment makes it unreachable while it still holds what it holds (a timer that keeps firing, a callback registered on a longer-lived token, a socket, a handle), and no later `Dispose` can reach it: the type's own disposal releases only the CURRENT instance. The cost accumulates once per overwrite. Release the previous instance first (`_diceRoll?.Dispose();` before the assignment), or swap it out with `Interlocked.Exchange` and dispose what comes back. — src/Shared/Samples/Add3dGallery.Shared/Pages/GalleryPage.Dice.cs:205
  • `scroll` is a `SkiaScroll`, which implements `IDisposable`, and it is created here (line 46). Every use of it in `CreateContent` 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 scroll = …;`), which releases it at the end of the scope on every path including a throw. — src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/NewsFeedLayout.cs:46

What to do

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

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 86/231 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 — this work can't be stopped early once started. (×33) — src/SharedAdd3d/SkiaModel3D.cs:166, src/Blazor/DrawnUi/Compat/SkiaPicker.Blazor.cs:10, src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs:298, …
  • 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. (×2) — src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:23, src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs:897
  • Queues or hands on an async lambda whose work calls something that takes a CancellationToken, while neither this method nor the delegate supplies one — that work can't be stopped early once started. Take a CancellationToken here and let the lambda capture it, or use a delegate that is handed one (`Func<CancellationToken, Task>`). (×4) — src/Shared/DrawnUi/Controls/Button/SkiaButton.cs:799, src/Shared/DrawnUi/Controls/Touch/SkiaHotspot.cs:124, src/Shared/DrawnUi/Draw/Images/SkiaImage.cs:790, …

What to do

  • Thread a CancellationToken through async methods so work stops promptly on cancellation.
X20 · Mistyped argument guard5.4 / 10Adequate✓ Tool-verified

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.

  • The guard on line 2989 rejects `result` and line 2990 reports that rejection as `ArgumentNullException` — but the condition's own test `result.Points.Length == 0` is true of a value that is NOT null: it reads a member of `result`, so it can only be evaluated on a non-null `result` (a null one would throw `NullReferenceException` before the guard decided anything). So a caller whose `result` is present but fails that test is told it was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition. — src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:2990
  • The guard on line 193 rejects `eventName` and line 194 reports that rejection as `ArgumentNullException` — but the condition's own test `string.IsNullOrEmpty(eventName)` is true of a value that is NOT null: it is satisfied by an EMPTY `eventName`, and on that path `eventName` was already proven non-null by the very expression that decided it (`||` short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition. — src/SharedNet/Internals/Core/GridLength.cs:194
  • The guard on line 211 rejects `eventName` and line 212 reports that rejection as `ArgumentNullException` — but the condition's own test `string.IsNullOrEmpty(eventName)` is true of a value that is NOT null: it is satisfied by an EMPTY `eventName`, and on that path `eventName` was already proven non-null by the very expression that decided it (`||` short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition. — src/SharedNet/Internals/Core/GridLength.cs:212
  • The guard on line 278 rejects `eventName` and line 279 reports that rejection as `ArgumentNullException` — but the condition's own test `string.IsNullOrEmpty(eventName)` is true of a value that is NOT null: it is satisfied by an EMPTY `eventName`, and on that path `eventName` was already proven non-null by the very expression that decided it (`||` short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition. — src/SharedNet/Internals/Core/GridLength.cs:279
  • The guard on line 296 rejects `eventName` and line 297 reports that rejection as `ArgumentNullException` — but the condition's own test `string.IsNullOrEmpty(eventName)` is true of a value that is NOT null: it is satisfied by an EMPTY `eventName`, and on that path `eventName` was already proven non-null by the very expression that decided it (`||` short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition. — src/SharedNet/Internals/Core/GridLength.cs:297
  • The guard on line 2219 rejects `route` and line 2220 reports that rejection as `ArgumentNullException` — but the condition's own test `string.IsNullOrWhiteSpace(route)` is true of a value that is NOT null: it is satisfied by an EMPTY `route`, and on that path `route` was already proven non-null by the very expression that decided it (`||` short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition. — src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:2220

What to do

  • Each finding names the throw and the test in its own condition that is true of a NON-null value. Confirm from the two, then throw the exception that describes what was actually wrong: `ArgumentException` for a value that arrived empty, or the .NET 8 helpers that spell the whole guard in one line and pick the type for you — `ArgumentException.ThrowIfNullOrEmpty(s)` / `ThrowIfNullOrWhiteSpace(s)` for strings, `ArgumentNullException.ThrowIfNull(x)` followed by `ArgumentOutOfRangeException.ThrowIfZero(x.Count)` for a collection. Splitting the two conditions is usually clearer than picking one exception for both: they are different failures and the caller may want to handle them differently.
X21 · Side-effecting pattern guard10.0 / 10Exemplary○ Nothing flagged

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

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

X22 · Contradicted release guard6.5 / 10Adequate✓ Tool-verified

Other · Code Health — Whether a method that TAKES a lock or semaphore and gives it back from a flag-guarded `finally` returns the value that flag implies — reporting success while the guard hands the primitive back admits a second caller the exclusion was there to keep out, and reporting failure while the guard keeps it leaves nothing to ever give it back. Also whether a `finally` that gives the primitive back unconditionally can run in a state where the method does not hold it: after a timed wait whose result was discarded, after an acquire inside the `try` that can fail, after the body already released it, or never, because a `return` left between the acquire and the `try`.

Method: Roslyn syntax: `try` statements whose `finally` releases a synchronisation primitive under a bare local-bool guard, where the method also TOOK that same primitive before the `try`, checked for a `return` of a bool literal whose value disagrees with the flag state the method's own straight-line assignments put it in. Deterministic, provable per finding. Advisory.

  • `SemaphoreNavigationStack.WaitAsync()` has already taken `SemaphoreNavigationStack` when this `return` leaves, and the `finally` that calls `SemaphoreNavigationStack.Release()` belongs to the `try` below it, so it never runs: `SemaphoreNavigationStack` stays held and every later waiter blocks. Move the `return` inside the `try`, or take `SemaphoreNavigationStack` after it. — src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs:745

What to do

  • Each finding names the return, the `finally` guard it disagrees with, and the flag state the method's own assignments put it in at that point. Confirm from the three, then make the two statements of ownership agree: the flag and the returned value both say whether the caller now owns the primitive, so a return reporting success must leave the guard skipping the release, and a return reporting failure must leave it performing one. Setting the flag immediately before the return that reports success — never after it, and never on a path that goes on to report failure — is what keeps the pair readable.
X23 · Unguarded diagnostic materialisation10.0 / 10Exemplary○ Nothing flagged

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

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

X24 · Document value interpolated into markup unescaped1.2 / 10Critical✓ Tool-verified

Other · Security — Whether text read out of the document being converted is escaped before it is written into generated markup — a value the document's author chose, interpolated into an attribute the surrounding literal delimits, can close that attribute and open another.

Method: Roslyn semantic model over the whole compilation: a string-typed `Value`/`InnerText`/`InnerXml`/`Text` member declared inside `DocumentFormat.OpenXml` or `System.Xml` is a taint SOURCE, propagated through assignments, returns, arguments, tuple elements and string composition to its transitive closure, then read at interpolated-string holes that sit in a markup position the surrounding literal itself delimits. Escaper/encoder calls and enclosing validator conditions cut the flow. Flow- and container-insensitive by construction. A second arm needs no provenance at all and reports a type that CONTRADICTS ITSELF — the same expression escaped at one delimited markup hole and interpolated raw at another hole in the same markup position of the same type, which the type's own escaping proves is a defect without knowing where the value came from. On a repository with no .NET source it reads JavaScript/TypeScript off the token stream with the same rule: a DOM read of raw document text (`getAttribute`, `textContent`, `innerText`, `nodeValue`) is the source, propagated through local bindings and string composition, and judged at template-literal and concatenation holes in the same two delimited markup positions; escapers and validating conditions cut it, and documentation-site, test, vendored and minified scripts are not read. Deterministic, provable per finding. Advisory.

  • `ret` is text this program did not author, and it is written into the text of an element through Blazor's `MarkupString` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. (×9) — src/Blazor/DrawnUi/Internals/Core/TouchContentView.razor:28, src/Blazor/DrawnUi/Views/Canvas.razor:658, src/Blazor/DrawnUi/Views/ContentView.razor:24, …
  • `$"margin: {SpacingUnits} auto {SpacingUnits} auto;"` is text this program did not author, and it is written into the text of an element through Blazor's `MarkupString` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. (×3) — src/Blazor/DrawnUi/Views/Grid.razor:108, src/Blazor/DrawnUi/Views/ScrollView.razor:49, src/Blazor/DrawnUi/Views/StackLayout.razor:49
  • `$"margin: 0 0 {SpacingRowsUnits} 0;"` is text this program did not author, and it is written into the text of an element through Blazor's `MarkupString` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — src/Blazor/DrawnUi/Views/Grid.razor:109
  • `$"{RowSpacing}{Units}"` is text this program did not author, and it is written into the text of an element through Blazor's `MarkupString` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — src/Blazor/DrawnUi/Views/Grid.razor:132
  • `$"{ColumnSpacing}{Units}"` is text this program did not author, and it is written into the text of an element through Blazor's `MarkupString` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — src/Blazor/DrawnUi/Views/Grid.razor:137
  • `$"margin: 0 0 {SpacingUnits} 0;"` is text this program did not author, and it is written into the text of an element through Blazor's `MarkupString` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. (×2) — src/Blazor/DrawnUi/Views/ScrollView.razor:51, src/Blazor/DrawnUi/Views/StackLayout.razor:51
  • `$"margin: 0 {SpacingUnits} 0 0;"` is text this program did not author, and it is written into the text of an element through Blazor's `MarkupString` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. (×2) — src/Blazor/DrawnUi/Views/ScrollView.razor:53, src/Blazor/DrawnUi/Views/StackLayout.razor:53
  • `$"{Spacing}{Units}"` is text this program did not author, and it is written into the text of an element through Blazor's `MarkupString` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. (×2) — src/Blazor/DrawnUi/Views/ScrollView.razor:93, src/Blazor/DrawnUi/Views/StackLayout.razor:93
  • `$"xe{Uid.Replace("-", "")}"` is text this program did not author, and it is written into the text of an element through `new MarkupString(…)` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — src/Blazor/DrawnUi/Views/VisualElement.cs:236
  • `$".xe{Uid.Replace("-", "")}"` is text this program did not author, and it is written into the text of an element through `new MarkupString(…)` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — src/Blazor/DrawnUi/Views/VisualElement.cs:244

What to do

  • Each finding names the expression, the attribute it lands in and the line. Confirm the value's origin from the read this analyzer traced, then escape it at the sink or validate it against the shape the attribute accepts before interpolating.
X25 · Inert configuration knob10.0 / 10Exemplary○ Nothing flagged

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

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

X26 · Unsynchronised callback handoff5.3 / 10Adequate✓ Tool-verified

Other · Code Health — Whether a value handed from a callback to the body that waits on it crosses on something built to be crossed — a `Queue<T>`/`List<T>`/`Dictionary<K,V>` written inside an event handler and read back outside it is mutated by two flows at once, and the semaphore or completion source beside it orders how MANY items exist while leaving the collection's own head, tail and backing array unprotected.

Method: Roslyn syntax: method, accessor, local-function and lambda bodies that declare BOTH a non-thread-safe generic collection (`Queue`/`Stack`/`List`/`Dictionary`/`HashSet`/`Sorted*`/`LinkedList`) and a synchronisation primitive (`SemaphoreSlim`/`TaskCompletionSource`/`ManualResetEvent(Slim)`/`AutoResetEvent`/`CountdownEvent`) as locals, then read for a `+=`-registered lambda that raises that primitive while the body outside every lambda waits on it — and, in that scope, a mutating call on the collection inside the lambda paired with a mention of it outside. Any `lock` in the scope abstains it. On a repository with no .NET source the same handoff is read in Java off the engine’s own token stream (test source sets, vendored and demonstration paths not): an `ArrayList`/`LinkedList`/`ArrayDeque`/`PriorityQueue`/`Hash*`/`LinkedHash*`/`Tree*` local and a `CountDownLatch`/`Semaphore`/`CompletableFuture` local, a lambda or anonymous class that raises the primitive and mutates the collection, and a wait outside it; any `synchronized` or `lock()` abstains the body. Because each of those primitives orders what the callback wrote before raising it, only a touch that provably overlaps the callback is convicted: one after the registration and before the next wait, or one in a loop registered-before, waiting on every pass and not declaring the collection. Deterministic, provable per finding. Advisory.

  • `AndroidExtensions.Timers` is a `Dictionary<…>` that a `CancellationToken.Register(…)` callback writes (`[…] =` on line 91) and `StartTimerOnMainThreadAsync` reads (line 45). The runtime runs that callback on a thread the rest of the type does not own — a pool or I/O thread for a watcher, timer or process event, the completing thread for a continuation, the cancelling thread for a token registration, the pool for a `Progress<T>` made without a UI context — while `StartTimerOnMainThreadAsync` runs on whichever thread calls it. `Dictionary<…>` allows many readers or one writer, never both: a read that meets the write sees a torn resize, an enumeration throws `InvalidOperationException`, and two writes lose or duplicate entries. Take one `lock` over the write and every read of `Timers`, use a `System.Collections.Concurrent` collection, or marshal the callback onto the reader's synchronisation context. — src/Maui/DrawnUi/Platforms/Android/AndroidExtensions.cs:91

What to do

  • Hand values between a callback and the body waiting on it through a type built to be crossed — `System.Collections.Concurrent.ConcurrentQueue<T>` drops in beside the existing signal, and `System.Threading.Channels.Channel<T>` replaces the signal as well — or take a `lock` over every access to the shared collection on both sides. A counting semaphore beside it orders how MANY items exist and takes no exclusion over the collection's own internal state.
X27 · Collection changed while being enumerated10.0 / 10Exemplary○ Nothing flagged

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.

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.

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

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

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

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

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

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

  • `ContinueWith` with a continuation that does nothing discards the antecedent's failure — the task it returns completes successfully whether or not the work faulted, so the failure vanishes with no log and no rethrow. Await the task and handle the exception, or report the fault from the continuation (`t.Exception`). (×2) — src/Blazor/DrawnUi/Features/Keyboard/KeyboardManager.Blazor.cs:35, src/Blazor/DrawnUi/Features/Keyboard/KeyboardManager.Blazor.cs:47
  • 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. (×30) — src/Blazor/DrawnUi/Views/BrowserInterop.Blazor.cs:19, src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs:42, src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs:70, …
  • `catch` 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. (×7) — src/Shared/DrawnUi/Draw/SkiaShape.Shared.cs:115, src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:1266, src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:1330, …
  • 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). — src/Maui/DrawnUi/Platforms/iOS/Views/VisibilityAwarePlatformView.cs:218

What to do

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

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

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

X4 · Structured logging3.9 / 10Weak✓ Tool-verified

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

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

  • Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it. (×40) — src/SharedAdd3d/Renderer3D.cs:273, src/SharedAdd3d/SkiaModel3D.cs:107, src/SharedAdd3d/SkiaModel3D.cs:202, …

What to do

  • Interpolated log message defeats structured logging
X5 · Nullable reference types5.2 / 10Adequate✓ Tool-verified

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 `positions`: line 175 writes `positions?.Length`, which says `positions` can be null, but line 191 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 `positions` truly cannot be null here, the `?.` is misleading. Settle it one way — test `positions` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — src/SharedAdd3d/Scene3D.cs:191
  • This method contradicts itself about `layout`: line 90 assigns it with `as SkiaLayout`, which hands back null rather than throwing when the value is not a `SkiaLayout`, but line 91 then dereferences it directly as `layout.GetOrderedSubviews` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `layout` once before the first use and handle the null case, or cast with `(SkiaLayout)` so the failure is reported where it happens — rather than leaving the two readings side by side. — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Grid.Structure.cs:91
  • This method contradicts itself about `structure`: line 109 writes `structure?.GetCount`, which says `structure` can be null, but line 144 then dereferences it directly as `structure.GetChildren` 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 `structure` truly cannot be null here, the `?.` is misleading. Settle it one way — test `structure` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Masonry.cs:144
  • This method contradicts itself about `control`: line 1384 writes `control?.Parent`, which says `control` can be null, but line 1391 then dereferences it directly as `control.GetAccessibilityPixelRect` 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 `control` truly cannot be null here, the `?.` is misleading. Settle it one way — test `control` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.Scrolling.cs:1391
  • This method contradicts itself about `control`: line 413 writes `control?.CachedImage`, which says `control` can be null, but line 414 then dereferences it directly as `control.RenderObject` 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 `control` truly cannot be null here, the `?.` is misleading. Settle it one way — test `control` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — src/Shared/DrawnUi/Features/Effects/SkiaShaderEffect.cs:414
  • This method contradicts itself about `host`: line 430 writes `host?.ScreenBounds`, which says `host` can be null, but line 478 then dereferences it directly as `host.ShowPopup` 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 `host` truly cannot be null here, the `?.` is misleading. Settle it one way — test `host` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — src/Shared/DrawnUi/Views/DrawnView.Popups.cs:478
  • This method contradicts itself about `cells`: line 1002 writes `cells?.FirstOrDefault`, which says `cells` can be null, but line 1007 then dereferences it directly as `cells.Where` 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 `cells` truly cannot be null here, the `?.` is misleading. Settle it one way — test `cells` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — src/Shared/DrawnUi/Views/SkiaAccessibilityManager.cs:1007
  • This method contradicts itself about `sender`: line 1805 assigns it with `as SkiaControl`, which hands back null rather than throwing when the value is not a `SkiaControl`, but line 1806 then dereferences it directly as `sender.TranslationY` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `sender` once before the first use and handle the null case, or cast with `(SkiaControl)` so the failure is reported where it happens — rather than leaving the two readings side by side. — src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:1806
  • This method contradicts itself about `canvas`: line 1924 assigns it with `as Canvas`, which hands back null rather than throwing when the value is not a `Canvas`, but line 1928 then dereferences it directly as `canvas.Content` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `canvas` once before the first use and handle the null case, or cast with `(Canvas)` so the failure is reported where it happens — rather than leaving the two readings side by side. — src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:1928
  • This method contradicts itself about `instance`: line 70 assigns it with `as FontRegistrar`, which hands back null rather than throwing when the value is not a `FontRegistrar`, but line 71 then dereferences it directly as `instance.GetType` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `instance` once before the first use and handle the null case, or cast with `(FontRegistrar)` so the failure is reported where it happens — rather than leaving the two readings side by side. — src/Maui/DrawnUi/Features/Fonts/SkiaFontManager.cs:71
  • This method contradicts itself about `wrapper`: line 22 assigns it with `as Tasks.RunningTimer`, which hands back null rather than throwing when the value is not a `Tasks.RunningTimer`, but line 24 then dereferences it directly as `wrapper.IsExecuting` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `wrapper` once before the first use and handle the null case, or cast with `(Tasks.RunningTimer)` so the failure is reported where it happens — rather than leaving the two readings side by side. — src/Maui/DrawnUi/Platforms/Android/AndroidExtensions.cs:24
  • This method contradicts itself about `layout`: line 254 assigns it with `as Android.Views.ViewGroup`, which hands back null rather than throwing when the value is not a `Android.Views.ViewGroup`, but line 255 then dereferences it directly as `layout.SetClipChildren` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `layout` once before the first use and handle the null case, or cast with `(Android.Views.ViewGroup)` so the failure is reported where it happens — rather than leaving the two readings side by side. — src/Maui/DrawnUi/Platforms/Android/DrawnView.Android.cs:255
  • This method contradicts itself about `platformView`: line 173 writes `platformView?.Dispose`, which says `platformView` can be null, but line 168 then dereferences it directly as `platformView.TextChanged` 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 `platformView` truly cannot be null here, the `?.` is misleading. Settle it one way — test `platformView` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — src/Maui/DrawnUi/Platforms/Android/MauiEditorHandler.Android.cs:168
  • This method contradicts itself about `instance`: line 170 assigns it with `as FontRegistrar`, which hands back null rather than throwing when the value is not a `FontRegistrar`, but line 171 then dereferences it directly as `instance.GetType` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `instance` once before the first use and handle the null case, or cast with `(FontRegistrar)` so the failure is reported where it happens — rather than leaving the two readings side by side. — src/Maui/DrawnUi/Platforms/Apple/SkiaFontManager.Apple.cs:171
  • This method contradicts itself about `instance`: line 33 assigns it with `as FontRegistrar`, which hands back null rather than throwing when the value is not a `FontRegistrar`, but line 34 then dereferences it directly as `instance.GetType` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `instance` once before the first use and handle the null case, or cast with `(FontRegistrar)` so the failure is reported where it happens — rather than leaving the two readings side by side. — src/Maui/DrawnUi/Platforms/Windows/SkiaFontManager.Windows.cs:34
  • This method contradicts itself about `platformView`: line 40 writes `platformView?.Dispose`, which says `platformView` can be null, but line 36 then dereferences it directly as `platformView.PaintSurface` 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 `platformView` truly cannot be null here, the `?.` is misleading. Settle it one way — test `platformView` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — src/Maui/DrawnUi/Platforms/Windows/Views/SKGLViewHandlerRetained.cs:36
  • This method contradicts itself about `platformView`: line 68 writes `platformView?.Dispose`, which says `platformView` can be null, but line 64 then dereferences it directly as `platformView.PaintSurface` 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 `platformView` truly cannot be null here, the `?.` is misleading. Settle it one way — test `platformView` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — src/Maui/DrawnUi/Platforms/Windows/WinCanvasHandler.cs:64
  • This method contradicts itself about `skia`: line 1161 assigns it with `as SkiaControl`, which hands back null rather than throwing when the value is not a `SkiaControl`, but line 1167 then dereferences it directly as `skia.NeedUpdate` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `skia` once before the first use and handle the null case, or cast with `(SkiaControl)` so the failure is reported where it happens — rather than leaving the two readings side by side. — src/Maui/DrawnUi/Views/Canvas.cs:1167
  • This method contradicts itself about `canvas`: line 54 writes `canvas?.AccessibilityManager`, which says `canvas` can be null, but line 58 then dereferences it directly as `canvas.RenderingScale` 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 `canvas` truly cannot be null here, the `?.` is misleading. Settle it one way — test `canvas` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side. — src/Wpf/Drawnui.Wpf/Views/Accessibility/DrawnUiAutomationPeers.cs:58
  • This method contradicts itself about `label`: line 109 assigns it with `as SkiaLabel`, which hands back null rather than throwing when the value is not a `SkiaLabel`, but line 111 then dereferences it directly as `label.MeasuredSize` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `label` once before the first use and handle the null case, or cast with `(SkiaLabel)` so the failure is reported where it happens — rather than leaving the two readings side by side. — src/Maui/Samples/Sandbox/Chat/WidgetChatMessage.cs:111
  • This method contradicts itself about `label`: line 117 assigns it with `as SkiaLabel`, which hands back null rather than throwing when the value is not a `SkiaLabel`, but line 118 then dereferences it directly as `label.MeasuredSize` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `label` once before the first use and handle the null case, or cast with `(SkiaLabel)` so the failure is reported where it happens — rather than leaving the two readings side by side. — src/Maui/Samples/Sandbox/Chat/WidgetChatMessage.cs:118
  • 24/60 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.
  • ~0.1 `!` suppressions per 1k syntax nodes — 40 suppression(s) across the 605502 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 `!`.

WCAG coverage — what static analysis assessed

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

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

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

Reference — by lens

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

LensScoreRatingImpact
Code Health49.9Weak — gated by D2, X4Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture72.2Adequate — gated by AX2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Maturity64.9Adequate — gated by M2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness47.2Weak — gated by P3, P7Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security36.2Weak — gated by D36, C1, C2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Accessibility34.5Weak — gated by AC1, AC4, AC5Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Performance52.7Adequate — gated by PF3Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Unscored — 5 check(s) recorded observations but carry no score

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

  • P12 CI test-gate honesty — 1 observation(s) recorded · Reported, not scored — 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 — 40 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 — 32 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
  • X8 JS interop contract — 4 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 — 29 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.

  • AX4 Dependency direction — not applicable to a transaction-script/CRUD architecture (the inward-dependency rule is for layered/clean styles)
  • 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
  • AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • AXR1 Runtime accessibility — docker build failed (exit 1) — 3.824 For more reasons, including package naming enforcement, visit https://aka.ms/failure-installing-tool ------ Dockerfile:5 -------------------- 3 | 4 | # Install DocFX 5 | >>> RUN dotnet tool install -g docfx 6 | 7 | # Set the working directory -------------------- ERROR: failed to solve: process "/bin/sh -c dotnet tool install -g docfx" did not complete successfully: exit code: 1; likely cause (the repository): a RUN step of the repository's Dockerfile exited with code 1 (`/bin/sh -c dotnet tool install -g docfx`): the build's own command failed, for example a compile or test error; runtime evidence skipped The cause is in the repository, not in our sandbox: a RUN step of the repository's Dockerfile exited with code 1 (`/bin/sh -c dotnet tool install -g docfx`): the build's own command failed, for example a compile or test error. Nothing here says the surface is inaccessible, only that it was never rendered.
  • D12 Dependency Hygiene — Dependency hygiene not measured
  • D16 Bus Factor — single-maintainer repository — bus factor is not applicable
  • D22 Internal API Consistency — No intentionally-exposed public API to evaluate for consistency.
  • 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
  • D32 Data Compliance (PII/GDPR) — 15 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: this repository did not build in our analyzer environment (a C#/MSBuild compiler error), so no coverage could be collected. It is excluded from the score rather than counted as a near-zero defect. We did not read WHERE the failing diagnostic is, so this does not claim the fault is in your test code — a repository written for an older SDK band can compile for you and not for us. Run `dotnet build` on this commit; if it succeeds, the gap is ours. Committing the Cobertura/OpenCover/lcov report your CI already produces also lets us measure real coverage without building anything.
  • DM1 Domain Modelling — applicable but not scored (2 of 3 signals for this style — below the bar we score at): 9 strongly-typed id(s); 9 value object(s)
  • ED1 Event-Driven — not scored — this repository shows none of the 3 signals this lens looks for
  • ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
  • 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
  • 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.
  • 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
  • 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
  • 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.

Critical — 137 finding(s)
D17 · Explicit Debt · EmptyCatchBlock · ×45
  • EmptyCatchBlock src/Blazor/DrawnUi/Views/BrowserInterop.Blazor.cs:19 — 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 src/Blazor/Samples/BlazorSandbox/Helpers/AppSettings.cs:49 — 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 src/Maui/DrawnUi/Features/Fonts/SkiaFontManager.cs:480 — 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 src/Maui/DrawnUi/Internals/Xaml/BindablePropertyExtension.cs:19 — 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 src/Maui/DrawnUi/Platforms/Android/DrawnView.Android.cs:139 — 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 src/Maui/DrawnUi/Platforms/Android/SkiaEditor.Android.cs:115 — 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 src/Maui/DrawnUi/Platforms/Android/Super.Android.cs:58 — 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 src/Maui/DrawnUi/Platforms/Android/Super.Android.cs:183 — 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 src/Maui/DrawnUi/Platforms/Android/Super.Android.cs:816 — 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 src/Maui/DrawnUi/Platforms/Windows/DrawnView.Windows.cs:34 — 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 src/Maui/DrawnUi/Platforms/Windows/DrawnView.Windows.cs:227 — 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 src/Maui/DrawnUi/Platforms/Windows/Super.Windows.cs:237 — 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 src/Maui/DrawnUi/Platforms/Windows/Views/OpenGles.cs:655 — 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 src/Maui/DrawnUi/Platforms/Windows/Views/OpenGles.cs:676 — 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 src/Maui/DrawnUi/Platforms/Windows/Views/OpenGles.cs:696 — 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 src/Maui/DrawnUi/Platforms/iOS/Views/VisibilityAwarePlatformView.cs:100 — 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 src/Maui/DrawnUi/Platforms/iOS/Views/VisibilityAwarePlatformView.cs:144 — 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 src/Maui/DrawnUi/Platforms/iOS/Views/VisibilityAwarePlatformView.cs:218 — 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 src/Maui/Samples/GameTemplate/Sprites/PooledSprite.cs:58 — 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 src/OpenTk/DrawnUi/CanvasHost.cs:152 — 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 src/OpenTk/DrawnUi/DrawnUiWindow.cs:557 — 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 src/OpenTk/DrawnUi/DrawnUiWindow.cs:572 — 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 src/OpenTk/Samples/OpenTkOverlay/CubeWindow.cs:313 — 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 src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs:42 — 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 src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs:70 — 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.
  • + 20 more in this group — see findings.md.
D17 · Explicit Debt · WriteOnlyPrivateField · ×43
  • WriteOnlyPrivateField src/Maui/DrawnUi/Internals/Models/SkiaSetter.cs:9 — private ConditionalWeakTable<BindableObject, object> _originalValues — 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 src/Maui/DrawnUi/Platforms/Android/Retained/SkiaGLTextureView.cs:490 — private int[] configSpec — 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 src/Maui/DrawnUi/Platforms/Android/Retained/SkiaGLTextureView.cs:545 — private int[] value — 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 src/Maui/DrawnUi/Platforms/Android/Retained/SkiaGLTextureView.cs:648 — private bool _firstFrameRendered — 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 src/Maui/DrawnUi/Platforms/Android/Vulkan/SkiaVulkanTextureView.cs:59 — private int _swapWidth — 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 src/Maui/DrawnUi/Platforms/Android/Vulkan/SkiaVulkanTextureView.cs:60 — private int _swapHeight — 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 src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsAutomationPeer.cs:220 — private int _index — 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.
  • WriteOnlyPrivateField src/Maui/DrawnUi/Platforms/Windows/Views/SKSwapChainPanelRetained.cs:27 — private bool _needsFullRedraw — assigned 4 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 src/Maui/DrawnUi/Views/BasePageReloadable.cs:68 — private bool wasBuilt — 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 src/Maui/DrawnUi/Views/Canvas.cs:97 — private bool _wasMeasured — 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 src/Maui/DrawnUi/Views/Canvas.cs:411 — private bool isEmpty — 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 src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs:51 — private Motion _motion — 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.
  • WriteOnlyPrivateField src/Maui/Samples/FastRepro/Views/Sprites/SpriteSnappedBoardPage.cs:36 — private Motion _motion — 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.
  • WriteOnlyPrivateField src/Maui/Samples/HelloMaui/Pages/SnappingPage.cs:89 — private Dictionary<string, SkiaButton> _toggles — 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 src/OpenTk/Samples/HelloOpenTk/Pages/SnappingPage.cs:90 — private Dictionary<string, SkiaButton> _toggles — 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 src/Wpf/Samples/HelloWpf/Pages/SnappingPage.cs:90 — private Dictionary<string, SkiaButton> _toggles — 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 src/Maui/Samples/HelloMaui/Pages/SnappingPage.cs:93 — private double _speed — 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.
  • WriteOnlyPrivateField src/OpenTk/Samples/HelloOpenTk/Pages/SnappingPage.cs:94 — private double _speed — 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.
  • WriteOnlyPrivateField src/Wpf/Samples/HelloWpf/Pages/SnappingPage.cs:94 — private double _speed — 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.
  • WriteOnlyPrivateField src/Maui/Samples/HelloMaui/Pages/SpritesPage.cs:24 — private double _fps — 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.
  • WriteOnlyPrivateField src/OpenTk/Samples/HelloOpenTk/Pages/SpritesPage.cs:25 — private double _fps — 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.
  • WriteOnlyPrivateField src/Wpf/Samples/HelloWpf/Pages/SpritesPage.cs:25 — private double _fps — 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.
  • WriteOnlyPrivateField src/Net/Tests/DrawnUi.Net.Tests/ScrollBarHoldTests.cs:18 — private ITestOutputHelper _out — 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 src/Shared/DrawnUi/Controls/Drawer/SkiaDrawer.cs:668 — private bool GesturesPassThrough — 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 src/Shared/DrawnUi/Controls/Layouts/SkiaCarousel.cs:694 — private SemaphoreSlim semaphoreItemSouce — 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.
  • + 18 more in this group — see findings.md.
D17 · Explicit Debt · NoWarnInCsproj · ×20
  • NoWarnInCsproj src/Maui/DrawnUi/DrawnUi.Maui.csproj:38 — 1701 — 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 src/Net/DrawnUi/DrawnUi.Net.csproj:27 — 1701 — 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 src/Wpf/Drawnui.Wpf/DrawnUi.Wpf.csproj:54 — 1701 — 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 src/Wpf/Addons/DrawnUi.Wpf.Game/DrawnUi.Wpf.Game.csproj:34 — 1701 — 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 src/Directory.Build.props:15 — 1701 — 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 src/Maui/DrawnUi/DrawnUi.Maui.csproj:38 — 1702 — 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 src/Net/DrawnUi/DrawnUi.Net.csproj:27 — 1702 — 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 src/Wpf/Drawnui.Wpf/DrawnUi.Wpf.csproj:54 — 1702 — 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 src/Wpf/Addons/DrawnUi.Wpf.Game/DrawnUi.Wpf.Game.csproj:34 — 1702 — 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 src/Directory.Build.props:15 — 1702 — 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 src/Maui/DrawnUi/DrawnUi.Maui.csproj:38 — XLS0505 — 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 src/Net/DrawnUi/DrawnUi.Net.csproj:27 — XLS0505 — 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 src/Directory.Build.props:15 — XLS0505 — 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 src/Native/DrawnUi.Native.Windows/DrawnUi.Native.Windows.csproj:10 — NU5128 — this warning is switched off for the WHOLE project, including builds years from now. It is raised by the build itself — the packaging, restore or SDK step — about the project as a whole, not by the compiler or an analyzer at a line of code, so there is no call site to narrow it to and no per-site directive that could carry a reason: this element is the only place the decision can be recorded. Say WHY here, in a comment on the entry, or fix what the rule is reporting and drop the code from the list.
  • NoWarnInCsproj src/Wpf/Drawnui.Wpf/DrawnUi.Wpf.csproj:54 — CS0108 — 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 src/Wpf/Addons/DrawnUi.Wpf.Game/DrawnUi.Wpf.Game.csproj:34 — CS0108 — 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 src/Wpf/Drawnui.Wpf/DrawnUi.Wpf.csproj:54 — CS0109 — 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 src/Wpf/Addons/DrawnUi.Wpf.Game/DrawnUi.Wpf.Game.csproj:34 — CS0109 — 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 src/Wpf/Drawnui.Wpf/DrawnUi.Wpf.csproj:54 — CS0114 — 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 src/Wpf/Addons/DrawnUi.Wpf.Game/DrawnUi.Wpf.Game.csproj:34 — CS0114 — 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.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
IC1 · Incompleteness & stubs · Unfinished stub · ×5
  • Unfinished stub — throws NotImplementedException src/Maui/DrawnUi/Draw/Element/SkiaMauiElement.cs:703 — `NativeInvalidate` is a shipped member whose body only throws — and it is REACHED: src/Maui/DrawnUi/Controls/EditText/SkiaMauiEditor.cs:479 references it. This is not dead surface that can be deleted — anything taking that path throws at runtime. Implement the member, or remove the code that reaches it.
  • Unfinished stub — throws NotImplementedException src/Maui/DrawnUi/Draw/Element/SkiaMauiElement.cs:708 — `LayoutNativeView` is a shipped member whose body only throws — and it is REACHED: src/Maui/DrawnUi/Draw/Element/SkiaMauiElement.cs:336 references it (10 further site(s) in this project). This is not dead surface that can be deleted — anything taking that path throws at runtime. Implement the member, or remove the code that reaches it.
  • Unfinished stub — throws NotImplementedException src/Maui/DrawnUi/Draw/Element/SkiaMauiElement.cs:713 — `SetNativeVisibility` is a shipped member whose body only throws — and it is REACHED: src/Maui/DrawnUi/Draw/Element/SkiaMauiElement.cs:235 references it (1 further site(s) in this project). This is not dead surface that can be deleted — anything taking that path throws at runtime. Implement the member, or remove the code that reaches it.
  • Unfinished stub — throws NotImplementedException src/Maui/DrawnUi/Features/Fonts/SkiaFontManager.cs:299 — `GetFont` is a shipped member whose body only throws — and it is REACHED: src/Maui/DrawnUi/Features/Fonts/SkiaFontManager.cs:348 references it (1 further site(s) in this project). This is not dead surface that can be deleted — anything taking that path throws at runtime. Implement the member, or remove the code that reaches it.
  • Unfinished stub — throws NotImplementedException src/Maui/DrawnUi/Features/Images/SkiaImageManager.cs:511 — `LoadImageOnPlatformAsync` is a shipped member whose body only throws — and it is REACHED: src/Maui/DrawnUi/Features/Images/SkiaImageManager.cs:393 references it (2 further site(s) in this project). This is not dead surface that can be deleted — anything taking that path throws at runtime. Implement the member, or remove the code that reaches it.
AC2 · Forms & labels · <input> without a programmatic label · ×1
  • <input> without a programmatic label src/Blazor/DrawnUi/Views/Entry.razor:8 — This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label.
AC4 · Keyboard semantics · Click handler on a non-interactive <div> · ×1
  • Click handler on a non-interactive <div> src/Blazor/DrawnUi/Internals/Core/TouchContentView.razor:6 — A click handler on a plain element isn't keyboard-operable. Use a <button>, or add role + tabindex="0" + a key handler.
AC5 · ARIA correctness · Unknown ARIA attribute "aria-checked")"" · ×1
  • Unknown ARIA attribute "aria-checked")"" src/Blazor/DrawnUi/Views/Canvas.razor:176 — This is not a valid WAI-ARIA attribute, so assistive technology ignores it (usually a typo). Use the correct aria-* attribute.
AC5 · ARIA correctness · Unknown ARIA attribute "aria-selected")"" · ×1
  • Unknown ARIA attribute "aria-selected")"" src/Blazor/DrawnUi/Views/Canvas.razor:176 — This is not a valid WAI-ARIA attribute, so assistive technology ignores it (usually a typo). Use the correct aria-* attribute.
AC5 · ARIA correctness · Unknown ARIA attribute "aria-pressed")"" · ×1
  • Unknown ARIA attribute "aria-pressed")"" src/Blazor/DrawnUi/Views/Canvas.razor:176 — This is not a valid WAI-ARIA attribute, so assistive technology ignores it (usually a typo). Use the correct aria-* attribute.
AX3 · Project dependency cycles · Namespace dependency cycle · ×1
  • Namespace dependency cycle src/Maui/DrawnUi/HotReload.cs:5 — The namespaces DrawnUi ↔ DrawnUi.Controls ↔ DrawnUi.Draw ↔ DrawnUi.Infrastructure ↔ DrawnUi.Infrastructure.Helpers ↔ DrawnUi.Infrastructure.Models ↔ DrawnUi.Models ↔ DrawnUi.Views depend on each other. The lightest dependency in the cycle is DrawnUi → DrawnUi.Models (DrawnUi.HotReloadService → DrawnUi.Models.RestartingTimer, 1 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.
D14 · License Compliance · Banned license · ×1
  • Banned license: Fizzler — `Fizzler` 1.3.1 resolves to SPDX id LGPL-3.0-or-later, and this run's banned set is AGPL-3.0, GPL-2.0, GPL-3.0, LGPL-3.0. The id is read as an SPDX expression: an `OR` is a choice and is charged only when every branch is banned, an `AND` binds every operand, and a `WITH` exception leaves the licence it attaches to as it is. Each licence id is then matched as a SUBSTRING that starts at a token boundary, not an exact comparison — which is how variants like `-only` and `-or-later` are caught while `LGPL-2.0-only` is not read as `GPL-2.0`, and it is the rule to apply if you re-check this by hand. The set is policy, not law: it is configurable, so a licence banned here may be acceptable in your context, and the row is then something to record an exception for rather than to fix. ★ This arm reads the resolved package list and knows nothing about dependency SCOPE — it cannot tell a runtime dependency from a build- or test-only one, so unlike the Bundler arm it is NOT claiming this ships to your users. Check where it sits before acting. ★ DEPTH: this repository's MSBuild projects declare 58 direct `PackageReference`(s), and 192 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. ★ The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do — that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository's licence policy rather than replacing it: add `LGPL-3.0-only` / `LGPL-3.0-or-later` to the allow-list of the licence check your CI runs (`license-checker --onlyAllow`, the `allow-licenses` input of GitHub's dependency-review-action, `[licenses] allow` in cargo-deny's deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan's banned set is not read from that file, so the row stays until it is hidden.
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
Serious — 2446 finding(s)
D17 · Explicit Debt · CommentedOutCode · ×352
  • CommentedOutCode Tests/PreviewTests/Chat/WidgetChatMessage.cs:15 — 8 consecutive commented-code lines
  • CommentedOutCode src/Maui/Addons/DrawnUi.MauiGraphics/SkiaGraphics.cs:98 — 8 consecutive commented-code lines
  • CommentedOutCode src/Maui/DrawnUi/Controls/EditText/MauiEditor.cs:74 — 8 consecutive commented-code lines
  • CommentedOutCode src/Maui/Samples/Sandbox/Chat/WidgetChatMessage.cs:15 — 8 consecutive commented-code lines
  • CommentedOutCode src/Shared/DrawnUi/Controls/PlayFrames/AnimatedFramesRenderer.cs:65 — 8 consecutive commented-code lines
  • CommentedOutCode src/Shared/DrawnUi/Controls/Slider/SkiaSlider.cs:2822 — 8 consecutive commented-code lines
  • CommentedOutCode src/Shared/DrawnUi/Controls/Slider/SkiaSlider.cs:3189 — 8 consecutive commented-code lines
  • CommentedOutCode src/Shared/DrawnUi/Controls/Slider/SkiaSlider.cs:3208 — 8 consecutive commented-code lines
  • CommentedOutCode src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:3642 — 8 consecutive commented-code lines
  • CommentedOutCode src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:3651 — 8 consecutive commented-code lines
  • CommentedOutCode src/Shared/DrawnUi/Draw/Base/VisualTreeHandler.cs:249 — 8 consecutive commented-code lines
  • CommentedOutCode src/Shared/DrawnUi/Draw/Images/SkiaImage.cs:246 — 8 consecutive commented-code lines
  • CommentedOutCode src/Shared/DrawnUi/Draw/Layout/BuildRowLayout.cs:69 — 8 consecutive commented-code lines
  • CommentedOutCode src/Shared/DrawnUi/Draw/Layout/BuildRowLayout.cs:165 — 8 consecutive commented-code lines
  • CommentedOutCode src/Shared/DrawnUi/Draw/Layout/BuildRowLayout.cs:196 — 8 consecutive commented-code lines
  • CommentedOutCode src/Shared/DrawnUi/Draw/Layout/BuildRowLayout.cs:295 — 8 consecutive commented-code lines
  • CommentedOutCode src/Shared/DrawnUi/Draw/Layout/BuildRowLayout.cs:304 — 8 consecutive commented-code lines
  • CommentedOutCode src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:673 — 8 consecutive commented-code lines
  • CommentedOutCode src/Shared/DrawnUi/Draw/Layout/SkiaLayout.IList.cs:149 — 8 consecutive commented-code lines
  • CommentedOutCode src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Shared.cs:588 — 8 consecutive commented-code lines
  • CommentedOutCode src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Shared.cs:2682 — 8 consecutive commented-code lines
  • CommentedOutCode src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:247 — 8 consecutive commented-code lines
  • CommentedOutCode src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:1247 — 8 consecutive commented-code lines
  • CommentedOutCode Tests/PreviewTests/Chat/WidgetChatMessage.cs:492 — 9 consecutive commented-code lines
  • CommentedOutCode src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:160 — 9 consecutive commented-code lines
  • + 327 more in this group — see findings.md.
D17 · Explicit Debt · TodoComment · ×130
  • TodoComment Tests/PreviewTests/Chat/WidgetChatMessage.cs:70 — //todo AvatarDefault.IsVisible = true; — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Maui/Samples/Sandbox/Chat/WidgetChatMessage.cs:70 — //todo AvatarDefault.IsVisible = true; — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment Tests/PreviewTests/MainPageCodeStack.cs:81 — Margin = new Thickness(16, 28, 8, 8), //TODO BUG 2 - looks like absolute bug — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Maui/Samples/Sandbox/Dev/MainPageCodeStack.cs:80 — Margin = new Thickness(16, 28, 8, 8), //TODO BUG 2 - looks like absolute bug — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment Tests/PreviewTests/ViewModels/ChatMessage.cs:54 — //todo attachments — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Maui/Samples/Sandbox/ViewModels/ChatMessage.cs:54 — //todo attachments — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment Tests/PreviewTests/Views/Aloha/BaseChartDrawable.cs:566 — //TODO Add support for negative values — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Maui/Samples/Sandbox/Views/Aloha/BaseChartDrawable.cs:566 — //TODO Add support for negative values — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:36 — //todo can do something for hotreload etc — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/NewsCell.cs:35 — //UseCache = SkiaCacheType.None; //TODO fix bug - with cache enabled fade in animation visual gets stall below final value — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Maui/Addons/DrawnUi.Maui.MapsUi/SkiaMapsUi.cs:554 — //todo add event — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Maui/Addons/DrawnUi.Maui.Rive/SkiaRive.cs:111 — //todo bind all platforms!!! — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Maui/Addons/DrawnUi.Maui.Rive/SkiaRive.cs:237 — //todo add method to animator!!! — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Maui/DrawnUi/Controls/EditText/SkiaMauiEntry.cs:130 — //todo make static prop — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:345 — //todo find the existing drawer if any — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:366 — //todo !!!! — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:994 — //todo use stringbuilder? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:1420 — //todo hide other modals in stacks below control — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:1492 — //todo weakreference !!!!!!!! — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:1891 — //todo pass canvas props to content — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:2562 — //todo go up the tree as ..\something — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:2623 — //todo remove all existing pages from this level — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Maui/DrawnUi/Draw/Base/SkiaControl.Maui.cs:298 — //TODO: could hotreload the ViewModel — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Maui/DrawnUi/Draw/Element/SkiaMauiElement.cs:73 — //todo System.InvalidOperationException: Unable to convert DrawnUi.Controls.MauiEditor to Android.Views.View — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Maui/DrawnUi/Draw/Element/SkiaMauiElement.cs:498 — //todo apply transforms — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • + 105 more in this group — see findings.md.
D15 · Churn × Complexity Hotspots · Hotspot · ×56
  • Hotspot: src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:2624 — src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs changed 70 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 84 in SkiaControl.ProcessGestures at line 2624. 6 of those changes were fix/bug commits, and the other 64 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 21:54:48 +01:00' --until='2026-11-16 21:54:48 +01:00' --full-history --no-merges -- src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.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: src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:457 — src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs changed 38 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 83 in SkiaLabel.DrawLines at line 457. 6 of those changes were fix/bug commits, and the other 32 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 21:54:48 +01:00' --until='2026-11-16 21:54:48 +01:00' --full-history --no-merges -- src/Shared/DrawnUi/Draw/Text/SkiaLabel.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: src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:1171 — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 134 in SkiaLayout.MeasureStack at line 1171. 3 of those changes were fix/bug commits, and the other 19 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 21:54:48 +01:00' --until='2026-11-16 21:54:48 +01:00' --full-history --no-merges -- src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.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: src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.Gestures.cs src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.Gestures.cs:371 — src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.Gestures.cs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 155 in SkiaScroll.ProcessGestures at line 371. 3 of those changes were fix/bug commits, and the other 11 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 21:54:48 +01:00' --until='2026-11-16 21:54:48 +01:00' --full-history --no-merges -- src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.Gestures.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: src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:3297 — src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 56 in SkiaScroll.Draw at line 3297. 2 of those changes were fix/bug commits, and the other 22 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 21:54:48 +01:00' --until='2026-11-16 21:54:48 +01:00' --full-history --no-merges -- src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.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: src/Shared/DrawnUi/EditText/SkiaEditor.cs src/Shared/DrawnUi/EditText/SkiaEditor.cs:1168 — src/Shared/DrawnUi/EditText/SkiaEditor.cs changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in SkiaEditor.UpdateCursorVisibility at line 1168. 3 of those changes were fix/bug commits, and the other 21 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 21:54:48 +01:00' --until='2026-11-16 21:54:48 +01:00' --full-history --no-merges -- src/Shared/DrawnUi/EditText/SkiaEditor.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: src/Maui/DrawnUi/Views/Canvas.cs src/Maui/DrawnUi/Views/Canvas.cs:570 — src/Maui/DrawnUi/Views/Canvas.cs changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 58 in Canvas.ProcessGestures at line 570. 2 of those changes were fix/bug commits, and the other 17 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 21:54:48 +01:00' --until='2026-11-16 21:54:48 +01:00' --full-history --no-merges -- src/Maui/DrawnUi/Views/Canvas.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: src/Shared/DrawnUi/Views/SkiaAccessibilityManager.cs src/Shared/DrawnUi/Views/SkiaAccessibilityManager.cs:896 — src/Shared/DrawnUi/Views/SkiaAccessibilityManager.cs changed 33 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in SkiaAccessibilityManager.MoveInGroup at line 896. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 21:54:48 +01:00' --until='2026-11-16 21:54:48 +01:00' --full-history --no-merges -- src/Shared/DrawnUi/Views/SkiaAccessibilityManager.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: src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:60 — src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 61 in Canvas.ProcessGestures at line 60. 2 of those changes were fix/bug commits, and the other 13 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 21:54:48 +01:00' --until='2026-11-16 21:54:48 +01:00' --full-history --no-merges -- src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.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: src/Shared/DrawnUi/Views/DrawnView.cs src/Shared/DrawnUi/Views/DrawnView.cs:2572 — src/Shared/DrawnUi/Views/DrawnView.cs changed 38 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in DrawnView.Draw at line 2572. 2 of those changes were fix/bug commits, and the other 36 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 21:54:48 +01:00' --until='2026-11-16 21:54:48 +01:00' --full-history --no-merges -- src/Shared/DrawnUi/Views/DrawnView.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: src/SharedAdd3d/SkiaModel3D.cs src/SharedAdd3d/SkiaModel3D.cs:1010 — src/SharedAdd3d/SkiaModel3D.cs changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in SkiaModel3D.ProcessGestures at line 1010. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 21:54:48 +01:00' --until='2026-11-16 21:54:48 +01:00' --full-history --no-merges -- src/SharedAdd3d/SkiaModel3D.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: src/Wasm/DrawnUi/wwwroot/drawnui-web.js src/Wasm/DrawnUi/wwwroot/drawnui-web.js:419 — src/Wasm/DrawnUi/wwwroot/drawnui-web.js changed 30 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in drawnui-web.pageScrollAxes at line 419. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 21:54:48 +01:00' --until='2026-11-16 21:54:48 +01:00' --full-history --no-merges -- src/Wasm/DrawnUi/wwwroot/drawnui-web.js`: 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: src/Shared/DrawnUi/Controls/Drawer/SkiaDrawer.cs src/Shared/DrawnUi/Controls/Drawer/SkiaDrawer.cs:679 — src/Shared/DrawnUi/Controls/Drawer/SkiaDrawer.cs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 81 in SkiaDrawer.ProcessGestures at line 679. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 21:54:48 +01:00' --until='2026-11-16 21:54:48 +01:00' --full-history --no-merges -- src/Shared/DrawnUi/Controls/Drawer/SkiaDrawer.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: src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Shared.cs src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Shared.cs:2098 — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Shared.cs changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in SkiaLayout.OnItemsSourceCollectionChanged at line 2098. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 21:54:48 +01:00' --until='2026-11-16 21:54:48 +01:00' --full-history --no-merges -- src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Shared.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: src/Wpf/Drawnui.Wpf/Views/DrawnUiElement.cs src/Wpf/Drawnui.Wpf/Views/DrawnUiElement.cs:975 — src/Wpf/Drawnui.Wpf/Views/DrawnUiElement.cs changed 29 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in DrawnUiElement.OnPreviewKeyDown at line 975. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 21:54:48 +01:00' --until='2026-11-16 21:54:48 +01:00' --full-history --no-merges -- src/Wpf/Drawnui.Wpf/Views/DrawnUiElement.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: src/Net/DrawnUi/Views/Canvas.Gestures.Net.cs src/Net/DrawnUi/Views/Canvas.Gestures.Net.cs:63 — src/Net/DrawnUi/Views/Canvas.Gestures.Net.cs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in Canvas.ProcessNetGestures at line 63. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 21:54:48 +01:00' --until='2026-11-16 21:54:48 +01:00' --full-history --no-merges -- src/Net/DrawnUi/Views/Canvas.Gestures.Net.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: src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs:1151 — src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in SkiaControl.UseRenderingObject at line 1151. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 21:54:48 +01:00' --until='2026-11-16 21:54:48 +01:00' --full-history --no-merges -- src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.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: src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.Scrolling.cs src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.Scrolling.cs:675 — src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.Scrolling.cs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in SkiaScroll.GetContentOffsetBounds at line 675. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 21:54:48 +01:00' --until='2026-11-16 21:54:48 +01:00' --full-history --no-merges -- src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.Scrolling.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: src/OpenTk/DrawnUi/DrawnUiWindow.cs src/OpenTk/DrawnUi/DrawnUiWindow.cs:426 — src/OpenTk/DrawnUi/DrawnUiWindow.cs changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in DrawnUiWindow.OnKeyDown at line 426. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 21:54:48 +01:00' --until='2026-11-16 21:54:48 +01:00' --full-history --no-merges -- src/OpenTk/DrawnUi/DrawnUiWindow.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: src/Blazor/DrawnUi/Views/Canvas.razor src/Blazor/DrawnUi/Views/Canvas.razor — src/Blazor/DrawnUi/Views/Canvas.razor changed 29 times in last 90 days, max cyclomatic complexity 19. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 21:54:48 +01:00' --until='2026-11-16 21:54:48 +01:00' --full-history --no-merges -- src/Blazor/DrawnUi/Views/Canvas.razor`: 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: src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:614 — src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in TooltipsMenusPage.OnKeyDown at line 614. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 21:54:48 +01:00' --until='2026-11-16 21:54:48 +01:00' --full-history --no-merges -- src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.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: src/SharedAdd3d/Renderer3D.cs src/SharedAdd3d/Renderer3D.cs:682 — src/SharedAdd3d/Renderer3D.cs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in Renderer3D.DrawItem at line 682. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 21:54:48 +01:00' --until='2026-11-16 21:54:48 +01:00' --full-history --no-merges -- src/SharedAdd3d/Renderer3D.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: src/Shared/DrawnUi/Controls/Button/SkiaButton.cs src/Shared/DrawnUi/Controls/Button/SkiaButton.cs:570 — src/Shared/DrawnUi/Controls/Button/SkiaButton.cs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in SkiaButton.ApplyProperties at line 570. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 21:54:48 +01:00' --until='2026-11-16 21:54:48 +01:00' --full-history --no-merges -- src/Shared/DrawnUi/Controls/Button/SkiaButton.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: src/Shared/DrawnUi/Controls/Layouts/SkiaCarousel.cs src/Shared/DrawnUi/Controls/Layouts/SkiaCarousel.cs:1966 — src/Shared/DrawnUi/Controls/Layouts/SkiaCarousel.cs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in SkiaCarousel.ProcessCarouselGestures at line 1966. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 21:54:48 +01:00' --until='2026-11-16 21:54:48 +01:00' --full-history --no-merges -- src/Shared/DrawnUi/Controls/Layouts/SkiaCarousel.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: src/Blazor/DrawnUi/wwwroot/drawnui-keyboard.js src/Blazor/DrawnUi/wwwroot/drawnui-keyboard.js:227 — src/Blazor/DrawnUi/wwwroot/drawnui-keyboard.js changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in drawnui-keyboard.attachTouchTextInput at line 227. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 21:54:48 +01:00' --until='2026-11-16 21:54:48 +01:00' --full-history --no-merges -- src/Blazor/DrawnUi/wwwroot/drawnui-keyboard.js`: 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.
  • + 31 more in this group — see findings.md.
D3 · God Classes · TooManyMethods · ×47
  • TooManyMethods: SkiaControl src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs — TooManyMethods — 5803 significant lines (blank, comment-only and punctuation-only lines excluded), 440 methods, declared across 6 files: Base/SkiaControl.Shared.cs (363), Base/SkiaControl.Cache.cs (45), Draw/SkiaControl.NetShared.cs (12), Base/SkiaControl.Effects.cs (10), +2 more file(s). The bar is 30 methods; this is 410 over it, 14.67× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: SkiaLayout src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs — TooManyMethods — 5499 significant lines (blank, comment-only and punctuation-only lines excluded), 249 methods, declared across 10 files: Layout/SkiaLayout.ListView.cs (85), Layout/SkiaLayout.Shared.cs (79), Layout/SkiaLayout.ColumnRow.cs (50), Layout/SkiaLayout.Grid.cs (9), +6 more file(s). The bar is 30 methods; this is 219 over it, 8.30× 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: DrawnView src/Shared/DrawnUi/Views/DrawnView.cs — TooManyMethods — 2250 significant lines (blank, comment-only and punctuation-only lines excluded), 222 methods, declared across 7 files: Views/DrawnView.cs (141), Views/DrawnView.Blazor.cs (34), Views/DrawnView.TextSelection.cs (16), Views/DrawnView.Popups.cs (12), +3 more file(s). The bar is 30 methods; this is 192 over it, 7.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: SkiaScroll src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs — TooManyMethods — 3113 significant lines (blank, comment-only and punctuation-only lines excluded), 146 methods, declared across 4 files: Scroll/SkiaScroll.cs (85), Scroll/SkiaScroll.Scrolling.cs (44), Scroll/SkiaScroll.Gestures.cs (16), Scroll/SkiaScroll.Virtual.cs (1). The bar is 30 methods; this is 116 over it, 4.87× 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: SkiaEditor src/Shared/DrawnUi/EditText/SkiaEditor.cs — TooManyMethods — 1570 significant lines (blank, comment-only and punctuation-only lines excluded), 118 methods, declared across 2 files: EditText/SkiaEditor.cs (96), EditText/SkiaEditor.Blazor.cs (22). The bar is 30 methods; this is 88 over it, 3.93× 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: SkiaLabel src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs — TooManyMethods — 2752 significant lines (blank, comment-only and punctuation-only lines excluded), 112 methods. The bar is 30 methods; this is 82 over it, 3.73× 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: SkiaShell src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs — TooManyMethods — 1106 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: SkiaAccessibilityManager src/Shared/DrawnUi/Views/SkiaAccessibilityManager.cs — TooManyMethods — 879 significant lines (blank, comment-only and punctuation-only lines excluded), 72 methods. The bar is 30 methods; this is 42 over it, 2.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: OpenGles src/Maui/DrawnUi/Platforms/Windows/Views/OpenGles.cs — TooManyMethods — 265 significant lines (blank, comment-only and punctuation-only lines excluded), 70 methods. The bar is 30 methods; this is 40 over it, 2.33× 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: SkiaMapsUi src/Maui/Addons/DrawnUi.Maui.MapsUi/SkiaMapsUi.cs — TooManyMethods — 596 significant lines (blank, comment-only and punctuation-only lines excluded), 65 methods. The bar is 30 methods; this is 35 over it, 2.17× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: ViewsAdapter src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs — TooManyMethods — 805 significant lines (blank, comment-only and punctuation-only lines excluded), 61 methods. The bar is 30 methods; this is 31 over it, 2.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: LinuxAtSpiProvider src/OpenTk/DrawnUi/Accessibility/LinuxAtSpiProvider.cs — TooManyMethods — 726 significant lines (blank, comment-only and punctuation-only lines excluded), 55 methods. The bar is 30 methods; this is 25 over it, 1.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: SkiaImage src/Shared/DrawnUi/Draw/Images/SkiaImage.cs — TooManyMethods — 1032 significant lines (blank, comment-only and punctuation-only lines excluded), 54 methods. The bar is 30 methods; this is 24 over it, 1.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: SkiaShape src/Shared/DrawnUi/Draw/SkiaShape.cs — TooManyMethods — 1059 significant lines (blank, comment-only and punctuation-only lines excluded), 53 methods, declared across 3 files: Draw/SkiaShape.cs (29), Draw/SkiaShape.Shared.cs (17), Draw/SkiaShape.Bevel.cs (7). The bar is 30 methods; this is 23 over it, 1.77× 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: SkiaCarousel src/Shared/DrawnUi/Controls/Layouts/SkiaCarousel.cs — TooManyMethods — 987 significant lines (blank, comment-only and punctuation-only lines excluded), 53 methods. The bar is 30 methods; this is 23 over it, 1.77× 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: SkiaModel3D src/SharedAdd3d/SkiaModel3D.cs — TooManyMethods — 682 significant lines (blank, comment-only and punctuation-only lines excluded), 53 methods. The bar is 30 methods; this is 23 over it, 1.77× 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: DrawnUiElement src/Wpf/Drawnui.Wpf/Views/DrawnUiElement.cs — TooManyMethods — 534 significant lines (blank, comment-only and punctuation-only lines excluded), 52 methods. The bar is 30 methods; this is 22 over it, 1.73× 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: DrawnView src/Maui/DrawnUi/Views/DrawnView.Maui.cs — TooManyMethods — 342 significant lines (blank, comment-only and punctuation-only lines excluded), 49 methods, declared across 3 files: Views/DrawnView.Maui.cs (26), Apple/DrawnView.Apple.cs (13), Apple/DrawnView.Accessibility.Apple.cs (10). The bar is 30 methods; this is 19 over it, 1.63× 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: Canvas.razor › __RazorCode_Canvas_1 src/Blazor/DrawnUi/Views/Canvas.razor — TooManyMethods — 48 methods. The bar is 30 methods; this is 18 over it, 1.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: SkiaSlider src/Shared/DrawnUi/Controls/Slider/SkiaSlider.cs — TooManyMethods — 1035 significant lines (blank, comment-only and punctuation-only lines excluded), 47 methods. The bar is 30 methods; this is 17 over it, 1.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: SkiaViewSwitcher src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs — TooManyMethods — 600 significant lines (blank, comment-only and punctuation-only lines excluded), 47 methods. The bar is 30 methods; this is 17 over it, 1.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: Canvas src/Maui/DrawnUi/Views/Canvas.cs — TooManyMethods — 590 significant lines (blank, comment-only and punctuation-only lines excluded), 47 methods. The bar is 30 methods; this is 17 over it, 1.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: Super src/Shared/DrawnUi/Super.cs — TooManyMethods — 481 significant lines (blank, comment-only and punctuation-only lines excluded), 47 methods, declared across 5 files: DrawnUi/Super.cs (22), DrawnUi/Super.Blazor.cs (20), DrawnUi/Super.Blazor.Shell.cs (3), DrawnUi/Super.Blazor.Wasm.cs (1), +1 more file(s). The bar is 30 methods; this is 17 over it, 1.57× 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: SkiaImageManager src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs — TooManyMethods — 471 significant lines (blank, comment-only and punctuation-only lines excluded), 47 methods, declared across 2 files: Draw/SkiaImageManager.Blazor.cs (41), Images/SkiaImageManager.Budget.cs (6). The bar is 30 methods; this is 17 over it, 1.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: SkiaShell src/Net/DrawnUi/Controls/SkiaShell.cs — TooManyMethods — 633 significant lines (blank, comment-only and punctuation-only lines excluded), 45 methods. The bar is 30 methods; this is 15 over it, 1.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.
  • + 22 more in this group — see findings.md.
SC1 · Supply-chain hygiene · NuGet dependencies are not locked · ×40
  • NuGet dependencies are not locked Tests/Labels/LabelsBenchmarks.csproj:14 — Tests/Labels/LabelsBenchmarks.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 Tests/PreviewTests/PreviewTests.csproj:62 — Tests/PreviewTests/PreviewTests.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 src/Blazor/DrawnUi.Server/DrawnUi.Blazor.Server.csproj:29 — src/Blazor/DrawnUi.Server/DrawnUi.Blazor.Server.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 src/Blazor/DrawnUi/DrawnUi.Blazor.csproj:33 — src/Blazor/DrawnUi/DrawnUi.Blazor.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 src/Blazor/Samples/Add3dGallery/Add3dGallery.csproj:18 — src/Blazor/Samples/Add3dGallery/Add3dGallery.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 src/Blazor/Samples/BlazorSandbox/BlazorSandbox.csproj:24 — src/Blazor/Samples/BlazorSandbox/BlazorSandbox.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 src/Blazor/Samples/BlazorSandboxHybrid/BlazorSandboxHybrid.Client/BlazorSandboxHybrid.Client.csproj:13 — src/Blazor/Samples/BlazorSandboxHybrid/BlazorSandboxHybrid.Client/BlazorSandboxHybrid.Client.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 src/Blazor/Samples/BlazorSandboxHybrid/BlazorSandboxHybrid/BlazorSandboxHybrid.csproj:11 — src/Blazor/Samples/BlazorSandboxHybrid/BlazorSandboxHybrid/BlazorSandboxHybrid.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 src/Blazor/Samples/LoadMoreRepro/LoadMoreRepro.csproj:13 — src/Blazor/Samples/LoadMoreRepro/LoadMoreRepro.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 src/Maui/Addons/DrawnUi.Maui.MapsUi/DrawnUi.Maui.MapsUi.csproj:6 — src/Maui/Addons/DrawnUi.Maui.MapsUi/DrawnUi.Maui.MapsUi.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 src/Maui/Addons/DrawnUi.Maui.Rive/DrawnUi - Backup.Maui.Rive.csproj:18 — src/Maui/Addons/DrawnUi.Maui.Rive/DrawnUi - Backup.Maui.Rive.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 src/Maui/Addons/DrawnUi.Maui.Rive/DrawnUi.Maui.Rive.csproj:10 — src/Maui/Addons/DrawnUi.Maui.Rive/DrawnUi.Maui.Rive.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 src/Maui/Addons/DrawnUi.MauiGraphics/DrawnUi.MauiGraphics.csproj:16 — src/Maui/Addons/DrawnUi.MauiGraphics/DrawnUi.MauiGraphics.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 src/Maui/Directory.Build.props:25 — src/Maui/Directory.Build.props 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 src/Maui/DrawnUi/DrawnUi.Maui.csproj:15 — src/Maui/DrawnUi/DrawnUi.Maui.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 src/Maui/Samples/Add3dGalleryMaui/Add3dGalleryMaui.csproj:43 — src/Maui/Samples/Add3dGalleryMaui/Add3dGalleryMaui.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 src/Maui/Samples/FastRepro/FastRepro.csproj:122 — src/Maui/Samples/FastRepro/FastRepro.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 src/Maui/Samples/GameTemplate/GameTemplate.csproj:51 — src/Maui/Samples/GameTemplate/GameTemplate.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 src/Maui/Samples/HelloMaui/HelloMaui.csproj:48 — src/Maui/Samples/HelloMaui/HelloMaui.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 src/Maui/Samples/MauiPong/MauiPong.csproj:46 — src/Maui/Samples/MauiPong/MauiPong.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 src/Maui/Samples/Player/PlayerTests.csproj:124 — src/Maui/Samples/Player/PlayerTests.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 src/Maui/Samples/Sandbox/Sandbox.csproj:159 — src/Maui/Samples/Sandbox/Sandbox.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 src/Maui/Samples/Tutorials/Tutorials.csproj:22 — src/Maui/Samples/Tutorials/Tutorials.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 src/Native/winui/SkiaSharp.Views.WinUI.Native/SkiaSharp.Views.WinUI.Native/packages.config:3 — src/Native/winui/SkiaSharp.Views.WinUI.Native/SkiaSharp.Views.WinUI.Native/packages.config 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 src/Net/DrawnUi/DrawnUi.Net.csproj:32 — src/Net/DrawnUi/DrawnUi.Net.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.
  • + 15 more in this group — see findings.md.
D3 · God Classes · FileTooLong · ×37
  • FileTooLong: Base/SkiaControl.Shared.cs src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs — FileTooLong — 4666 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 4166 over it, 9.33× 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: Text/SkiaLabel.cs src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs — FileTooLong — 2766 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2266 over it, 5.53× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Layout/SkiaLayout.ListView.cs src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs — FileTooLong — 2343 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1843 over it, 4.69× 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: Scroll/SkiaScroll.cs src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs — FileTooLong — 2006 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1506 over it, 4.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: Views/DrawnView.cs src/Shared/DrawnUi/Views/DrawnView.cs — FileTooLong — 1498 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 998 over it, 3.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: Layout/SkiaLayout.ColumnRow.cs src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs — FileTooLong — 1425 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 925 over it, 2.85× 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: EditText/SkiaEditor.cs src/Shared/DrawnUi/EditText/SkiaEditor.cs — FileTooLong — 1376 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 876 over it, 2.75× 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: Layout/SkiaLayout.Shared.cs src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Shared.cs — FileTooLong — 1184 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 684 over it, 2.37× 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: Navigation/SkiaShell.cs src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs — FileTooLong — 1155 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 655 over it, 2.31× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Images/SkiaImage.cs src/Shared/DrawnUi/Draw/Images/SkiaImage.cs — FileTooLong — 1049 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 549 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: Slider/SkiaSlider.cs src/Shared/DrawnUi/Controls/Slider/SkiaSlider.cs — FileTooLong — 1039 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 539 over it, 2.08× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Layouts/SkiaCarousel.cs src/Shared/DrawnUi/Controls/Layouts/SkiaCarousel.cs — FileTooLong — 994 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 494 over it, 1.99× 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: Views/SkiaAccessibilityManager.cs src/Shared/DrawnUi/Views/SkiaAccessibilityManager.cs — FileTooLong — 914 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 414 over it, 1.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: Retained/SkiaGLTextureView.cs src/Maui/DrawnUi/Platforms/Android/Retained/SkiaGLTextureView.cs — FileTooLong — 853 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 353 over it, 1.71× 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: Base/SkiaControl.Cache.cs src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs — FileTooLong — 838 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 338 over it, 1.68× 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: Layout/ViewsAdapter.cs src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs — FileTooLong — 806 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 306 over it, 1.61× 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: Meshes/SKMesh.cs src/Shared/DrawnUi/Features/Meshes/SKMesh.cs — FileTooLong — 759 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 259 over it, 1.52× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Accessibility/LinuxAtSpiProvider.cs src/OpenTk/DrawnUi/Accessibility/LinuxAtSpiProvider.cs — FileTooLong — 740 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 240 over it, 1.48× 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: Button/SkiaButton.cs src/Shared/DrawnUi/Controls/Button/SkiaButton.cs — FileTooLong — 705 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 205 over it, 1.41× 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: Android/VulkanRenderer3D.cs src/Maui/Addons/DrawnUi.Maui.Add3d/Platforms/Android/VulkanRenderer3D.cs — FileTooLong — 700 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 200 over it, 1.40× 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: SharedAdd3d/SkiaModel3D.cs src/SharedAdd3d/SkiaModel3D.cs — FileTooLong — 693 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 193 over it, 1.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: Meshes/SKMeshSpecification.cs src/Shared/DrawnUi/Features/Meshes/SKMeshSpecification.cs — FileTooLong — 689 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 189 over it, 1.38× 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/drawnui-web.js src/Wasm/DrawnUi/wwwroot/drawnui-web.js — FileTooLong — 673 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 173 over it, 1.35× 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/SkiaShell.cs src/Net/DrawnUi/Controls/SkiaShell.cs — FileTooLong — 664 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 164 over it, 1.33× 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: Scroll/SkiaScroll.Scrolling.cs src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.Scrolling.cs — FileTooLong — 646 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 146 over it, 1.29× 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.
  • + 12 more in this group — see findings.md.
X2 · Cancellation propagation · Async method without CancellationToken · ×33
  • Async method without CancellationToken: Load src/SharedAdd3d/SkiaModel3D.cs:166 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: ShowSelectionAsyncPlatform src/Blazor/DrawnUi/Compat/SkiaPicker.Blazor.cs:10 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: CopyToClipboardAsync src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs:298 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: PasteFromClipboardAsync src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs:312 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: AttachToKeyboardAsync src/Blazor/DrawnUi/Features/Keyboard/KeyboardManager.Blazor.cs:13 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: AttachNativeAppLifecycleAsync src/Blazor/DrawnUi/Super.Blazor.cs:89 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: IsFullscreenEnabledAsync src/Blazor/DrawnUi/Views/BrowserInterop.Blazor.cs:36 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: SetFullscreenEnabledAsync src/Blazor/DrawnUi/Views/BrowserInterop.Blazor.cs:59 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: GetResizeModuleAsync src/Blazor/DrawnUi/Views/BrowserInterop.Blazor.cs:85 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: InitializeFull src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:399 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: ApplySelectedIndexInternal src/Shared/DrawnUi/Controls/Layouts/SkiaTabsSelector.cs:21 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: PopPage src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs:404 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: PopTabToRoot src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs:481 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: ProcessIndexBufferAsync src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs:740 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: WaitForNextFrameAsync src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs:833 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: ApplySelectedIndex src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs:1019 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: OpenSelectionAsync src/Shared/DrawnUi/Controls/Pickers/SkiaPicker.cs:168 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: LoadAndApplySourceAsync src/Shared/DrawnUi/Controls/PlayFrames/SkiaGif.cs:225 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: LoadSource src/Shared/DrawnUi/Controls/PlayFrames/SkiaGif.cs:250 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: LoadSource src/Shared/DrawnUi/Controls/PlayFrames/SkiaLottie.cs:399 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: LoadAndApplySourceAsync src/Shared/DrawnUi/Controls/PlayFrames/SkiaLottie.cs:729 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: LoadSource src/Shared/DrawnUi/Draw/Svg/SkiaSvg.cs:631 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: ScrollToIndex src/Shared/DrawnUi/Draw/Layout/Windowing/WindowedSource.cs:137 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: ScrollToNewest src/Shared/DrawnUi/Draw/Layout/Windowing/WindowedSource.cs:194 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: ScrollToOldest src/Shared/DrawnUi/Draw/Layout/Windowing/WindowedSource.cs:238 — No CancellationToken parameter — this work can't be stopped early once started.
  • + 8 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (5 lines × 2) · ×32
  • Duplicated block (5 lines × 2) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:2539 — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:2539-2543 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:2868-2872 — 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 `src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:2539` 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 (5 lines × 2) src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:8 — src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:8-12 | src/Net/DrawnUi/Features/SkiaImageManager.Net.cs:7-11 — before extracting anything, compare `src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs` and `src/Net/DrawnUi/Features/SkiaImageManager.Net.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:8` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) src/Shared/DrawnUi/Controls/PlayFrames/SkiaLottie.cs:911 — src/Shared/DrawnUi/Controls/PlayFrames/SkiaLottie.cs:911-915 | src/Shared/DrawnUi/Controls/PlayFrames/SkiaLottie.cs:918-922 — 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 `src/Shared/DrawnUi/Controls/PlayFrames/SkiaLottie.cs:911` 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) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:2136 — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:2136-2140 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:2182-2186 — 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 `src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:2136` 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) src/Shared/DrawnUi/Internals/Helpers/RubberBandUtils.cs:33 — src/Shared/DrawnUi/Internals/Helpers/RubberBandUtils.cs:33-37 | src/Shared/DrawnUi/Internals/Helpers/RubberBandUtils.cs:42-46 — 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 `src/Shared/DrawnUi/Internals/Helpers/RubberBandUtils.cs:33` 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 (5 lines × 2) src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsAutomationPeer.cs:236 — src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsAutomationPeer.cs:236-240 | src/Wpf/Drawnui.Wpf/Views/Accessibility/DrawnUiAutomationPeers.cs:221-225 — 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 `src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsAutomationPeer.cs:236` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsAutomationPeer.cs:235` calls `RaisePropertyChangedEvent`, `ToState` and `src/Wpf/Drawnui.Wpf/Views/Accessibility/DrawnUiAutomationPeers.cs:220` 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) src/Maui/DrawnUi/Platforms/Windows/DrawnView.Windows.cs:120 — src/Maui/DrawnUi/Platforms/Windows/DrawnView.Windows.cs:120-124 | src/Maui/DrawnUi/Platforms/Windows/DrawnView.Windows.cs:221-225 — 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) src/SharedAdd3d/SkiaModel3D.cs:970 — src/SharedAdd3d/SkiaModel3D.cs:970-974 | src/SharedAdd3d/SkiaScene3D.cs:483-487 — 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 (5 lines × 2) src/SharedAdd3d/SkiaModel3D.cs:970 — src/SharedAdd3d/SkiaModel3D.cs:970-974 | src/SharedAdd3d/SkiaScene3D.cs:483-487 — 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 (5 lines × 2) src/Blazor/DrawnUi.Server/HeadlessDrawable.cs:10 — src/Blazor/DrawnUi.Server/HeadlessDrawable.cs:10-14 | src/Net/DrawnUi/Testing/HeadlessCanvasHost.cs:266-270 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (5 lines × 2) src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:163 — src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:163-167 | src/Net/DrawnUi/Views/DrawnView.Net.cs:132-136 — before extracting anything, compare `src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs` and `src/Net/DrawnUi/Views/DrawnView.Net.cs` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (5 lines × 2) src/SharedNet/Internals/Core/FontCollection.cs:14 — src/SharedNet/Internals/Core/FontCollection.cs:14-18 | src/SharedNet/Internals/Core/IAssetCollection.cs:21-25 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. 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) src/Maui/DrawnUi/Platforms/MacCatalyst/Super.Mac.cs:59 — src/Maui/DrawnUi/Platforms/MacCatalyst/Super.Mac.cs:59-63 | src/Maui/DrawnUi/Platforms/iOS/Views/DrawnUiBasePageHandler.cs:119-123 — 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 (5 lines × 2) src/OpenTk/DrawnUi/Accessibility/LinuxAtSpiProvider.cs:338 — src/OpenTk/DrawnUi/Accessibility/LinuxAtSpiProvider.cs:338-342 | src/OpenTk/DrawnUi/Accessibility/WindowsUiaProvider.cs:391-395 — 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) src/OpenTk/Samples/HelloOpenTk/Pages/SnappingPage.cs:350 — src/OpenTk/Samples/HelloOpenTk/Pages/SnappingPage.cs:350-354 | src/Wpf/Samples/HelloWpf/Pages/SnappingPage.cs:350-354 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/SnappingPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/SnappingPage.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 317 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 2) src/Blazor/Samples/BlazorSandbox/Pages/SkMeshProbe.razor:181 — src/Blazor/Samples/BlazorSandbox/Pages/SkMeshProbe.razor:181-209 | src/Blazor/Samples/BlazorSandbox/Pages/SkMeshProbe.razor:332-336 — 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 `src/Blazor/Samples/BlazorSandbox/Pages/SkMeshProbe.razor:181` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (5 lines × 2) src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs:102 — src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs:102-107 | src/Net/Samples/VirtualizationHarnessDemo/TelegramLikeRepro.cs:85-89 — before extracting anything, compare `src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs` and `src/Net/Samples/VirtualizationHarnessDemo/TelegramLikeRepro.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 53 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 `src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs:102` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs:110` calls `NonBackgroundFraction` and `src/Net/Samples/VirtualizationHarnessDemo/TelegramLikeRepro.cs:90` 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) src/Net/Samples/VirtualizationHarnessDemo/MoveReorderRepro.cs:98 — src/Net/Samples/VirtualizationHarnessDemo/MoveReorderRepro.cs:98-106 | src/Net/Samples/VirtualizationHarnessDemo/SplitGridRepro.cs:96-100 — 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 `src/Net/Samples/VirtualizationHarnessDemo/MoveReorderRepro.cs:98` 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 (5 lines × 2) src/Blazor/Samples/BlazorSandbox/Pages/GameButton.cs:130 — src/Blazor/Samples/BlazorSandbox/Pages/GameButton.cs:130-134 | src/Maui/Samples/Tutorials/Tutorials/CustomButton/GameButton.cs:122-126 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. 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 (5 lines × 2) src/Blazor/Samples/BlazorSandbox/Pages/GameButton.cs:138 — src/Blazor/Samples/BlazorSandbox/Pages/GameButton.cs:138-142 | src/Maui/Samples/Tutorials/Tutorials/CustomButton/GameButton.cs:130-134 — 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 (5 lines × 2) src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/BannerImage.cs:16 — src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/BannerImage.cs:16-20 | src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Views/BannerImage.cs:14-18 — before extracting anything, compare `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/BannerImage.cs` and `src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Views/BannerImage.cs` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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 (5 lines × 2) src/Maui/Samples/FastRepro/ColorPicker/SliderColor.xaml.cs:161 — src/Maui/Samples/FastRepro/ColorPicker/SliderColor.xaml.cs:161-165 | src/Maui/Samples/Sandbox/Views/Controls/ColorPicker/SliderColor.xaml.cs:161-165 — before extracting anything, compare `src/Maui/Samples/FastRepro/ColorPicker/SliderColor.xaml.cs` and `src/Maui/Samples/Sandbox/Views/Controls/ColorPicker/SliderColor.xaml.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (5 lines × 2) src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs:235 — src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs:235-239 | src/Maui/Samples/FastRepro/Views/Sprites/SpriteSnappedBoardPage.cs:245-249 — before extracting anything, compare `src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs` and `src/Maui/Samples/FastRepro/Views/Sprites/SpriteSnappedBoardPage.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 63 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 (5 lines × 2) src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs:306 — src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs:306-310 | src/Maui/Samples/FastRepro/Views/Sprites/SpriteSnappedBoardPage.cs:264-268 — before extracting anything, compare `src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs` and `src/Maui/Samples/FastRepro/Views/Sprites/SpriteSnappedBoardPage.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 63 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 (5 lines × 2) src/OpenTk/Samples/Add3dGalleryOpenTk/Program.cs:79 — src/OpenTk/Samples/Add3dGalleryOpenTk/Program.cs:79-83 | src/OpenTk/Samples/HelloOpenTk/HelloApp.cs:173-177 — 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.
  • + 7 more in this group — see findings.md.
X3 · Exception handling · Swallowed exception (empty catch) · ×31
  • Swallowed exception (empty catch) src/Blazor/DrawnUi/Views/BrowserInterop.Blazor.cs:19 — 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) src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs:42 — 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) src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs:70 — 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) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:1224 — 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) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:1233 — 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) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:1292 — 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) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:1301 — 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) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:1357 — 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) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:1366 — 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) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:1423 — 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) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:1432 — 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) src/Shared/DrawnUi/Internals/Helpers/Looper.cs:79 — 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) src/Shared/DrawnUi/Internals/Helpers/RestartingTimer.cs:208 — 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) src/Shared/DrawnUi/Super.cs:230 — 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) src/Maui/DrawnUi/Features/Fonts/SkiaFontManager.cs:480 — 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) src/Maui/DrawnUi/Internals/Xaml/BindablePropertyExtension.cs:19 — 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) src/Maui/DrawnUi/Platforms/Android/DrawnView.Android.cs:139 — 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) src/Maui/DrawnUi/Platforms/Android/SkiaEditor.Android.cs:115 — 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) src/Maui/DrawnUi/Platforms/Android/Super.Android.cs:58 — 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) src/Maui/DrawnUi/Platforms/Android/Super.Android.cs:183 — 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) src/Maui/DrawnUi/Platforms/Android/Super.Android.cs:816 — 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) src/Maui/DrawnUi/Platforms/iOS/Views/VisibilityAwarePlatformView.cs:100 — 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) src/Maui/DrawnUi/Platforms/iOS/Views/VisibilityAwarePlatformView.cs:144 — 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) src/Maui/DrawnUi/Platforms/iOS/Views/VisibilityAwarePlatformView.cs:218 — 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).
  • Swallowed exception (empty catch) src/Maui/DrawnUi/Platforms/Windows/DrawnView.Windows.cs:34 — 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.
  • + 6 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (6 lines × 2) · ×29
  • Duplicated block (6 lines × 2) src/Maui/Addons/DrawnUi.Maui.MapsUi/IMapPin.cs:7 — src/Maui/Addons/DrawnUi.Maui.MapsUi/IMapPin.cs:7-12 | src/Maui/Addons/DrawnUi.Maui.MapsUi/MapPin.cs:7-12 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (6 lines × 2) src/Shared/DrawnUi/Draw/Layout/Windowing/ItemsSourceWindow.cs:66 — src/Shared/DrawnUi/Draw/Layout/Windowing/ItemsSourceWindow.cs:66-71 | src/Shared/DrawnUi/Draw/Layout/Windowing/ItemsSourceWindow.cs:498-503 — 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) src/Shared/DrawnUi/Draw/Text/SkiaLabel.Bidi.cs:26 — src/Shared/DrawnUi/Draw/Text/SkiaLabel.Bidi.cs:26-31 | src/Shared/DrawnUi/Draw/Text/SkiaLabel.Bidi.cs:44-49 — 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) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:3138 — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:3138-3143 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:3290-3295 — 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 `src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:3138` 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) src/SharedNet/Internals/Core/Color.cs:38 — src/SharedNet/Internals/Core/Color.cs:38-43 | src/SharedNet/Internals/Core/Color.cs:48-53 — 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 (6 lines × 2) src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsAutomationPeer.cs:324 — src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsAutomationPeer.cs:324-329 | src/Wpf/Drawnui.Wpf/Views/Accessibility/DrawnUiAutomationPeers.cs:283-288 — 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 `src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsAutomationPeer.cs:324` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 2) src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:257 — src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:257-262 | src/Net/DrawnUi/Features/SkiaImageManager.Net.cs:234-239 — before extracting anything, compare `src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs` and `src/Net/DrawnUi/Features/SkiaImageManager.Net.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:257` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 2) src/Shared/DrawnUi/EditText/SkiaEditor.cs:1293 — src/Shared/DrawnUi/EditText/SkiaEditor.cs:1293-1298 | src/Shared/DrawnUi/EditText/SkiaEditor.cs:1323-1328 — 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) src/Maui/DrawnUi/Internals/Extensions/ColorExtensions.cs:119 — src/Maui/DrawnUi/Internals/Extensions/ColorExtensions.cs:119-124 | src/Maui/DrawnUi/Internals/Extensions/ColorExtensions.cs:131-136 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/DrawnUi/Internals/Extensions/ColorExtensions.cs:119` 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) src/Net/DrawnUi/Testing/HeadlessCanvasHost.cs:113 — src/Net/DrawnUi/Testing/HeadlessCanvasHost.cs:113-118 | src/Net/DrawnUi/Testing/HeadlessCanvasHost.cs:203-208 — 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) src/OpenTk/DrawnUi/Accessibility/LinuxAtSpiProvider.cs:360 — src/OpenTk/DrawnUi/Accessibility/LinuxAtSpiProvider.cs:360-365 | src/OpenTk/DrawnUi/Accessibility/WindowsUiaProvider.cs:381-386 — 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 (6 lines × 2) src/SharedAdd3d/SkiaModel3D.cs:1247 — src/SharedAdd3d/SkiaModel3D.cs:1247-1252 | src/SharedAdd3d/SkiaScene3D.cs:609-614 — 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 (6 lines × 2) src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:518 — src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:518-523 | src/Net/DrawnUi/Features/SkiaImageManager.Net.cs:452-457 — before extracting anything, compare `src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs` and `src/Net/DrawnUi/Features/SkiaImageManager.Net.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (6 lines × 2) src/Shared/DrawnUi/Controls/Progress/SkiaRangeBase.cs:124 — src/Shared/DrawnUi/Controls/Progress/SkiaRangeBase.cs:124-129 | src/Shared/DrawnUi/Controls/Slider/SkiaSlider.cs:1678-1683 — 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 (6 lines × 2) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:4987 — src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:4987-4992 | src/Shared/DrawnUi/Views/DrawnView.TextSelection.cs:47-52 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. 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 (6 lines × 2) src/Maui/DrawnUi/Internals/Extensions/FluentExtensions.Maui.cs:168 — src/Maui/DrawnUi/Internals/Extensions/FluentExtensions.Maui.cs:168-173 | src/SharedNet/Internals/Extensions/FluentExtensions.NonMaui.cs:173-178 — 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 (6 lines × 2) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:4987 — src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:4987-4992 | src/Shared/DrawnUi/Views/DrawnView.TextSelection.cs:47-52 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. 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 (6 lines × 2) src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs:195 — src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs:195-200 | src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs:211-216 — 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 (6 lines × 2) src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs:433 — src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs:433-438 | src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs:553-558 — 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) src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs:503 — src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs:503-508 | src/Wpf/Samples/HelloWpf/Pages/LayoutsPage.cs:505-510 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/LayoutsPage.cs` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 118 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 2) src/OpenTk/Samples/HelloOpenTk/Pages/ShadersPage.cs:203 — src/OpenTk/Samples/HelloOpenTk/Pages/ShadersPage.cs:203-208 | src/Wpf/Samples/HelloWpf/Pages/ShadersPage.cs:203-208 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/ShadersPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/ShadersPage.cs` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (6 lines × 2) src/OpenTk/Samples/HelloOpenTk/Pages/ShellPage.cs:391 — src/OpenTk/Samples/HelloOpenTk/Pages/ShellPage.cs:391-396 | src/Wpf/Samples/HelloWpf/Pages/ShellPage.cs:391-396 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/ShellPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/ShellPage.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 236 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (6 lines × 2) src/Blazor/Samples/BlazorSandboxHybrid/BlazorSandboxHybrid.Client/Components/WasmDrawnPanel.razor:27 — src/Blazor/Samples/BlazorSandboxHybrid/BlazorSandboxHybrid.Client/Components/WasmDrawnPanel.razor:27-32 | src/Blazor/Samples/BlazorSandboxHybrid/BlazorSandboxHybrid.ServerComponents/ServerDrawnPanel.razor:27-32 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (6 lines × 2) src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs:69 — src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs:69-74 | src/Maui/Samples/FastRepro/SkiaTest/MotionMarkScene.cs:74-79 — before extracting anything, compare `src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs` and `src/Maui/Samples/FastRepro/SkiaTest/MotionMarkScene.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 107 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 (6 lines × 2) src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs:697 — src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs:697-702 | src/Maui/Samples/FastRepro/Views/Sprites/SpriteSnappedBoardPage.cs:340-345 — before extracting anything, compare `src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs` and `src/Maui/Samples/FastRepro/Views/Sprites/SpriteSnappedBoardPage.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 63 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 `src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs:697` 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.
  • + 4 more in this group — see findings.md.
D3 · God Classes · MethodTooLong · ×28
  • MethodTooLong: SkiaScroll.ProcessGestures src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.Gestures.cs:371 — MethodTooLong — ProcessGestures runs 277 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 177 over it, 2.77× 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: SkiaLabel.DrawLines src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:457 — MethodTooLong — DrawLines runs 264 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 164 over it, 2.64× 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: SkiaLabel.DecomposeText src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:1885 — MethodTooLong — DecomposeText runs 260 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 160 over it, 2.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: SkiaLayout.DrawStackVisibleChildren src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:2851 — MethodTooLong — DrawStackVisibleChildren runs 230 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 130 over it, 2.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: SkiaLayout.MeasureStack src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:1171 — MethodTooLong — MeasureStack runs 215 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 115 over it, 2.15× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: BuildWrapLayout.Build src/Shared/DrawnUi/Draw/Layout/SkiaLayout.BuildWrapLayout.cs:18 — MethodTooLong — Build runs 212 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 112 over it, 2.12× 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: GLThread.GuardedRun src/Maui/DrawnUi/Platforms/Android/Retained/SkiaGLTextureView.cs:712 — MethodTooLong — GuardedRun runs 194 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 94 over it, 1.94× 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: SkiaLayout.MeasureList src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:1210 — MethodTooLong — MeasureList runs 189 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 89 over it, 1.89× 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: SkiaDrawer.ProcessGestures src/Shared/DrawnUi/Controls/Drawer/SkiaDrawer.cs:679 — MethodTooLong — ProcessGestures runs 182 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 82 over it, 1.82× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: SkiaLabel.OnMeasuring src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:1136 — MethodTooLong — OnMeasuring runs 173 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 73 over it, 1.73× 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: SKMeshSpecification.Make src/Shared/DrawnUi/Features/Meshes/SKMeshSpecification.cs:276 — MethodTooLong — Make runs 173 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 73 over it, 1.73× 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: SkiaLayout.MeasureStackLegacy src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:307 — MethodTooLong — MeasureStackLegacy runs 166 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 66 over it, 1.66× 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: SkiaControl.ProcessGestures src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:2624 — MethodTooLong — ProcessGestures runs 164 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 64 over it, 1.64× 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: SkiaShape.Paint src/Shared/DrawnUi/Draw/SkiaShape.cs:614 — MethodTooLong — Paint runs 161 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 61 over it, 1.61× 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: SkiaControl.MeasureContentCore src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:6035 — MethodTooLong — MeasureContentCore runs 143 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 43 over it, 1.43× 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: SkiaLayout.DrawStack src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:2569 — MethodTooLong — DrawStack 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: SkiaScroll.DrawViews src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:3629 — MethodTooLong — DrawViews 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: SkiaEditor.ProcessGestures src/Shared/DrawnUi/EditText/SkiaEditor.cs:848 — MethodTooLong — ProcessGestures 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: SkiaEditor.UpdateCursorVisibility src/Shared/DrawnUi/EditText/SkiaEditor.cs:1168 — MethodTooLong — UpdateCursorVisibility 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: SkiaScroll.PositionViewport src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:2726 — MethodTooLong — PositionViewport 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: SkiaImage.SetImageSource src/Shared/DrawnUi/Draw/Images/SkiaImage.cs:562 — MethodTooLong — SetImageSource runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12× 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: SkiaScroll.Draw src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:3297 — MethodTooLong — Draw runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08× 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: Canvas.ProcessGestures src/Maui/DrawnUi/Views/Canvas.cs:570 — MethodTooLong — ProcessGestures runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: Canvas.ProcessGestures src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:60 — MethodTooLong — ProcessGestures runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: SkiaSlider.ProcessGestures src/Shared/DrawnUi/Controls/Slider/SkiaSlider.cs:1129 — MethodTooLong — ProcessGestures runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • + 3 more in this group — see findings.md.
X1 · Async correctness · async void method · ×27
  • async void method: Update src/Blazor/DrawnUi/Views/VisualElement.cs:209 — `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained.
  • async void method: InitializeFull src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:399 — `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained.
  • async void method: ApplySelectedIndexInternal src/Shared/DrawnUi/Controls/Layouts/SkiaTabsSelector.cs:21 — `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained.
  • async void method: PushView src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs:246 — `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained.
  • async void method: DebugAction src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs:728 — `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained.
  • async void method: UpdateSelectedView src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs:1221 — `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained.
  • async void method: PlayEdgeGlowAnimation src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:784 — `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained.
  • async void method: PlayRippleAnimation src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:9687 — `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained.
  • async void method: PlayShimmerAnimation src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:9701 — `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained.
  • async void method: LoadPackageFileThenCompile src/Shared/DrawnUi/Features/Effects/SkiaShaderEffect.cs:756 — `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained.
  • async void method: Run src/Shared/DrawnUi/Internals/Helpers/RestartingTimer.cs:186 — `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained.
  • async void method: FinalizeTransition src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:862 — `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained.
  • async void method: LoadImageFrames src/Maui/DrawnUi/Controls/PlayFrames/SkiaMediaImage.cs:60 — `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained.
  • async void method: CheckPermissionsAsync src/Maui/DrawnUi/Features/FileSystem/Files.cs:21 — `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained.
  • async void method: ProcessQueue src/Maui/DrawnUi/Features/Images/SkiaImageManager.cs:755 — `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained.
  • async void method: PreloadQueue src/Maui/Samples/HelloMaui/Pages/ImagesPage.cs:156 — `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained.
  • async void method: StartRefresh src/Maui/Samples/HelloMaui/Pages/ScrollPage.cs:211 — `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained.
  • async void method: Attack src/Maui/Samples/HelloMaui/Pages/SpritesPage.cs:229 — `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained.
  • async void method: AnimatePress src/Maui/Samples/Sandbox/Dev/MainPageDev.xaml.cs:25 — `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained.
  • async void method: SelectFIle src/Maui/Samples/Sandbox/Dev/MainPageDev.xaml.cs:129 — `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained.
  • async void method: AnimatePress src/Maui/Samples/Sandbox/Views/Controls/SmallButton.xaml.cs:24 — `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained.
  • async void method: OnCardsClicked src/Maui/Samples/Tutorials/MainPage.xaml.cs:10 — `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained.
  • async void method: OnCardsCodeClicked src/Maui/Samples/Tutorials/MainPage.xaml.cs:15 — `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained.
  • async void method: OnNewsFeedClicked src/Maui/Samples/Tutorials/MainPage.xaml.cs:20 — `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained.
  • async void method: OnFirstAppClicked src/Maui/Samples/Tutorials/MainPage.xaml.cs:25 — `async void` can't be awaited and its exceptions crash the process instead of propagating. Return `Task` — or, where the delegate contract requires void (timer/event/callback registrations), make this a thin void shim that awaits a Task-returning inner method inside try/catch so exceptions are contained.
  • + 2 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (8 lines × 2) · ×26
  • Duplicated block (8 lines × 2) src/Maui/DrawnUi/Platforms/Apple/SkiaFontManager.Apple.cs:192 — src/Maui/DrawnUi/Platforms/Apple/SkiaFontManager.Apple.cs:192-199 | src/Maui/DrawnUi/Platforms/Windows/SkiaFontManager.Windows.cs:55-62 — 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 `src/Maui/DrawnUi/Platforms/Apple/SkiaFontManager.Apple.cs:192` 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) src/Shared/DrawnUi/Draw/Text/SkiaLabel.Bidi.cs:41 — src/Shared/DrawnUi/Draw/Text/SkiaLabel.Bidi.cs:41-48 | src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:3140-3147 — 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 `src/Shared/DrawnUi/Draw/Text/SkiaLabel.Bidi.cs:41` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) src/Maui/Addons/DrawnUi.Maui.Add3d/Platforms/Android/VulkanRenderer3D.cs:1000 — src/Maui/Addons/DrawnUi.Maui.Add3d/Platforms/Android/VulkanRenderer3D.cs:1000-1007 | src/SharedAdd3d/Renderer3D.cs:696-703 — 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 `src/Maui/Addons/DrawnUi.Maui.Add3d/Platforms/Android/VulkanRenderer3D.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 (8 lines × 2) src/Shared/DrawnUi/Controls/Switches/SkiaSwitch.cs:123 — src/Shared/DrawnUi/Controls/Switches/SkiaSwitch.cs:123-130 | src/Shared/DrawnUi/Controls/Switches/SkiaSwitch.cs:174-181 — 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 `src/Shared/DrawnUi/Controls/Switches/SkiaSwitch.cs:123` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:176 — src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:176-185 | src/Net/DrawnUi/Views/DrawnView.Net.cs:141-148 — before extracting anything, compare `src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs` and `src/Net/DrawnUi/Views/DrawnView.Net.cs` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 2) src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:292 — src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:292-302 | src/Net/DrawnUi/Views/DrawnView.Net.cs:244-251 — before extracting anything, compare `src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs` and `src/Net/DrawnUi/Views/DrawnView.Net.cs` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (8 lines × 2) src/Shared/DrawnUi/Controls/Drawer/SkiaDrawer.cs:401 — src/Shared/DrawnUi/Controls/Drawer/SkiaDrawer.cs:401-408 | src/Shared/DrawnUi/Internals/Extensions/PointExtensions.cs:9-16 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. 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 `initialVelocity` to `double` in one and `this double` 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) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.ModalWrapper.cs:115 — src/Maui/DrawnUi/Controls/Navigation/SkiaShell.ModalWrapper.cs:115-122 | src/Shared/DrawnUi/Controls/Layouts/ContentWithBackdrop.cs:31-38 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. 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) src/Shared/DrawnUi/Draw/SkiaShape.cs:1028 — src/Shared/DrawnUi/Draw/SkiaShape.cs:1028-1035 | src/Shared/DrawnUi/Features/Effects/ChainDropShadowsEffect.cs:34-41 — 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 (8 lines × 2) src/Maui/DrawnUi/Controls/EditText/SkiaMauiEditor.cs:306 — src/Maui/DrawnUi/Controls/EditText/SkiaMauiEditor.cs:306-313 | src/Maui/DrawnUi/Controls/EditText/SkiaMauiEntry.cs:287-295 — before extracting anything, compare `src/Maui/DrawnUi/Controls/EditText/SkiaMauiEditor.cs` and `src/Maui/DrawnUi/Controls/EditText/SkiaMauiEntry.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 98 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 2) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.ModalWrapper.cs:115 — src/Maui/DrawnUi/Controls/Navigation/SkiaShell.ModalWrapper.cs:115-122 | src/Shared/DrawnUi/Controls/Layouts/ContentWithBackdrop.cs:31-38 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. 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) src/Maui/DrawnUi/Platforms/Android/AndroidExtensions.cs:125 — src/Maui/DrawnUi/Platforms/Android/AndroidExtensions.cs:125-132 | src/Maui/DrawnUi/Platforms/Windows/WindowsExtensions.cs:25-32 — 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 (8 lines × 2) src/Maui/DrawnUi/Views/SkiaView.cs:49 — src/Maui/DrawnUi/Views/SkiaView.cs:49-56 | src/Maui/DrawnUi/Views/SkiaViewAccelerated.cs:19-26 — before extracting anything, compare `src/Maui/DrawnUi/Views/SkiaView.cs` and `src/Maui/DrawnUi/Views/SkiaViewAccelerated.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 109 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) src/Shared/DrawnUi/Draw/SkiaShape.cs:1028 — src/Shared/DrawnUi/Draw/SkiaShape.cs:1028-1035 | src/Shared/DrawnUi/Features/Effects/ChainDropShadowsEffect.cs:34-41 — 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 (8 lines × 2) src/Maui/DrawnUi/Controls/EditText/SkiaMauiEditor.cs:306 — src/Maui/DrawnUi/Controls/EditText/SkiaMauiEditor.cs:306-313 | src/Maui/DrawnUi/Controls/EditText/SkiaMauiEntry.cs:287-295 — before extracting anything, compare `src/Maui/DrawnUi/Controls/EditText/SkiaMauiEditor.cs` and `src/Maui/DrawnUi/Controls/EditText/SkiaMauiEntry.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 98 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 2) src/Maui/DrawnUi/Platforms/Android/AndroidExtensions.cs:125 — src/Maui/DrawnUi/Platforms/Android/AndroidExtensions.cs:125-132 | src/Maui/DrawnUi/Platforms/Windows/WindowsExtensions.cs:25-32 — 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 (8 lines × 2) src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs:126 — src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs:126-133 | src/Net/Samples/VirtualizationHarnessDemo/TelegramLikeRepro.cs:106-113 — before extracting anything, compare `src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs` and `src/Net/Samples/VirtualizationHarnessDemo/TelegramLikeRepro.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 2) src/Maui/Samples/Sandbox/Views/Aloha/SkiaMultiBarChart.cs:55 — src/Maui/Samples/Sandbox/Views/Aloha/SkiaMultiBarChart.cs:55-62 | src/Maui/Samples/Sandbox/Views/Aloha/SkiaMultiBarChart.cs:114-121 — 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 `src/Maui/Samples/Sandbox/Views/Aloha/SkiaMultiBarChart.cs:55` 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) src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs:244 — src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs:244-251 | src/Maui/Samples/FastRepro/Views/Sprites/SpriteSnappedBoardPage.cs:254-261 — before extracting anything, compare `src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs` and `src/Maui/Samples/FastRepro/Views/Sprites/SpriteSnappedBoardPage.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 63 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) src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:486 — src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:486-493 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:486-493 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs` as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 395 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (8 lines × 2) src/Shared/Samples/Add3dGallery.Shared/Pages/GalleryPage.Form.cs:82 — src/Shared/Samples/Add3dGallery.Shared/Pages/GalleryPage.Form.cs:82-89 | src/Shared/Samples/Add3dGallery.Shared/Pages/GalleryPage.cs:260-267 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/Shared/Samples/Add3dGallery.Shared/Pages/GalleryPage.Form.cs:82` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `src/Shared/Samples/Add3dGallery.Shared/Pages/GalleryPage.cs:269` calls `Round`, `CardInner` and `src/Shared/Samples/Add3dGallery.Shared/Pages/GalleryPage.Form.cs:91` 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 (8 lines × 2) src/Net/Samples/VirtualizationHarnessDemo/PlaneDriftRepro.cs:41 — src/Net/Samples/VirtualizationHarnessDemo/PlaneDriftRepro.cs:41-48 | src/Net/Samples/VirtualizationHarnessDemo/SplitGridRepro.cs:34-41 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (8 lines × 2) src/Net/Samples/VirtualizationHarnessDemo/ScrollBarOverflowRepro.cs:78 — src/Net/Samples/VirtualizationHarnessDemo/ScrollBarOverflowRepro.cs:78-85 | src/Net/Samples/VirtualizationHarnessDemo/ScrollBarOverflowRepro.cs:105-112 — 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 `src/Net/Samples/VirtualizationHarnessDemo/ScrollBarOverflowRepro.cs:78` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) src/Maui/Samples/FastRepro/ColorPicker/SliderColor.xaml.cs:118 — src/Maui/Samples/FastRepro/ColorPicker/SliderColor.xaml.cs:118-125 | src/Maui/Samples/Sandbox/Views/Controls/ColorPicker/SliderColor.xaml.cs:118-125 — before extracting anything, compare `src/Maui/Samples/FastRepro/ColorPicker/SliderColor.xaml.cs` and `src/Maui/Samples/Sandbox/Views/Controls/ColorPicker/SliderColor.xaml.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (8 lines × 2) src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs:214 — src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs:214-221 | src/Maui/Samples/FastRepro/SkiaTest/MotionMarkScene.cs:217-224 — before extracting anything, compare `src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs` and `src/Maui/Samples/FastRepro/SkiaTest/MotionMarkScene.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 107 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.
  • + 1 more in this group — see findings.md.
PF3 · Async & latency hygiene · Awaits without ConfigureAwait(false) · ×26
  • Awaits without ConfigureAwait(false) — Only 5/173 awaits in library code use ConfigureAwait(false). A library that captures the caller's context can stall or deadlock its host — the classic way a dependency drags an app down.
  • Awaits without ConfigureAwait(false) src/Maui/Addons/DrawnUi.Maui.MapsUi/CustomizeDownloadedTiles.cs:26 — `await base.GetTileAsync(httpClient, tileInfo, cancellationToken)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`.
  • Awaits without ConfigureAwait(false) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:354 — `await this.PopModalAsync(modal, animate.GetValueOrDefault())` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`.
  • Awaits without ConfigureAwait(false) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:359 — `await RemoveModal(modal, animate.GetValueOrDefault())` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`.
  • Awaits without ConfigureAwait(false) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:415 — `await PushModalRoute(skia, registered, animate)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`.
  • Awaits without ConfigureAwait(false) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:420 — `await this.PushAsync(skia, animate.GetValueOrDefault(), false)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`.
  • Awaits without ConfigureAwait(false) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:440 — `await this.PushModalAsync(skia, false, animate.GetValueOrDefault())` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`.
  • Awaits without ConfigureAwait(false) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:458 — `await this.PushAsync(skia, animate)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`.
  • Awaits without ConfigureAwait(false) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:484 — `await AwaitNavigationLock()` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`.
  • Awaits without ConfigureAwait(false) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:520 — `await PushAsync(page, animated)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`.
  • Awaits without ConfigureAwait(false) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:589 — `await PopModalAsync(animate)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`.
  • Awaits without ConfigureAwait(false) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:594 — `await PopAsync(animate)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`.
  • Awaits without ConfigureAwait(false) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:607 — `await AwaitNavigationLock()` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`.
  • Awaits without ConfigureAwait(false) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:617 — `await NavigationLayout.PopPage()` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`.
  • Awaits without ConfigureAwait(false) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:696 — `await FreezeRootLayoutInternal(control, (SkiaControl)sender, animated)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`.
  • Awaits without ConfigureAwait(false) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:744 — `await AwaitNavigationLock()` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`.
  • Awaits without ConfigureAwait(false) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:798 — `await Task.Delay(15)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`.
  • Awaits without ConfigureAwait(false) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:810 — `await Task.Delay(15)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`.
  • Awaits without ConfigureAwait(false) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:835 — `await Task.Delay(20)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`.
  • Awaits without ConfigureAwait(false) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:872 — `await SetFrozenLayerVisibility(control, true)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`.
  • Awaits without ConfigureAwait(false) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:888 — `await RemoveModal(control.Parent as SkiaControl, true)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`.
  • Awaits without ConfigureAwait(false) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:1011 — `await PushModalAsync(page, useGestures, animated, freezeBackground)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`.
  • Awaits without ConfigureAwait(false) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:1020 — `await PopModalAsync(inStack, animated)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`.
  • Awaits without ConfigureAwait(false) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:1076 — `await modal.TranslateToAsync(0, ShellLayout.MeasuredSize.Units.Height, 250, Easing....` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`.
  • Awaits without ConfigureAwait(false) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:1140 — `await UnfreezeRootLayout(control, animated)` resumes on the caller's captured context. In library code that context belongs to the host application, so a host that blocks on this call (or runs on a UI thread) can stall or deadlock — append `.ConfigureAwait(false)`.
  • + 1 more in this group — see findings.md.
X24 · Document value interpolated into markup unescaped · Untrusted text written into markup unescaped · ×23
  • Untrusted text written into markup unescaped src/Blazor/DrawnUi/Internals/Core/TouchContentView.razor:28 — `ret` is text this program did not author, and it is written into the text of an element through Blazor's `MarkupString` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped src/Blazor/DrawnUi/Views/Canvas.razor:658 — `ret` is text this program did not author, and it is written into the text of an element through Blazor's `MarkupString` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped src/Blazor/DrawnUi/Views/ContentView.razor:24 — `ret` is text this program did not author, and it is written into the text of an element through Blazor's `MarkupString` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped src/Blazor/DrawnUi/Views/Entry.razor:60 — `ret` is text this program did not author, and it is written into the text of an element through Blazor's `MarkupString` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped src/Blazor/DrawnUi/Views/Grid.razor:108 — `$"margin: {SpacingUnits} auto {SpacingUnits} auto;"` is text this program did not author, and it is written into the text of an element through Blazor's `MarkupString` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped src/Blazor/DrawnUi/Views/Grid.razor:109 — `$"margin: 0 0 {SpacingRowsUnits} 0;"` is text this program did not author, and it is written into the text of an element through Blazor's `MarkupString` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped src/Blazor/DrawnUi/Views/Grid.razor:119 — `ret` is text this program did not author, and it is written into the text of an element through Blazor's `MarkupString` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped src/Blazor/DrawnUi/Views/Grid.razor:132 — `$"{RowSpacing}{Units}"` is text this program did not author, and it is written into the text of an element through Blazor's `MarkupString` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped src/Blazor/DrawnUi/Views/Grid.razor:137 — `$"{ColumnSpacing}{Units}"` is text this program did not author, and it is written into the text of an element through Blazor's `MarkupString` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped src/Blazor/DrawnUi/Views/Label.razor:30 — `ret` is text this program did not author, and it is written into the text of an element through Blazor's `MarkupString` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped src/Blazor/DrawnUi/Views/ScrollView.razor:49 — `$"margin: {SpacingUnits} auto {SpacingUnits} auto;"` is text this program did not author, and it is written into the text of an element through Blazor's `MarkupString` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped src/Blazor/DrawnUi/Views/ScrollView.razor:51 — `$"margin: 0 0 {SpacingUnits} 0;"` is text this program did not author, and it is written into the text of an element through Blazor's `MarkupString` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped src/Blazor/DrawnUi/Views/ScrollView.razor:53 — `$"margin: 0 {SpacingUnits} 0 0;"` is text this program did not author, and it is written into the text of an element through Blazor's `MarkupString` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped src/Blazor/DrawnUi/Views/ScrollView.razor:63 — `ret` is text this program did not author, and it is written into the text of an element through Blazor's `MarkupString` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped src/Blazor/DrawnUi/Views/ScrollView.razor:93 — `$"{Spacing}{Units}"` is text this program did not author, and it is written into the text of an element through Blazor's `MarkupString` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped src/Blazor/DrawnUi/Views/StackLayout.razor:49 — `$"margin: {SpacingUnits} auto {SpacingUnits} auto;"` is text this program did not author, and it is written into the text of an element through Blazor's `MarkupString` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped src/Blazor/DrawnUi/Views/StackLayout.razor:51 — `$"margin: 0 0 {SpacingUnits} 0;"` is text this program did not author, and it is written into the text of an element through Blazor's `MarkupString` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped src/Blazor/DrawnUi/Views/StackLayout.razor:53 — `$"margin: 0 {SpacingUnits} 0 0;"` is text this program did not author, and it is written into the text of an element through Blazor's `MarkupString` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped src/Blazor/DrawnUi/Views/StackLayout.razor:63 — `ret` is text this program did not author, and it is written into the text of an element through Blazor's `MarkupString` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped src/Blazor/DrawnUi/Views/StackLayout.razor:93 — `$"{Spacing}{Units}"` is text this program did not author, and it is written into the text of an element through Blazor's `MarkupString` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped src/Blazor/DrawnUi/Views/SvgIcon.razor:68 — `ret` is text this program did not author, and it is written into the text of an element through Blazor's `MarkupString` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped src/Blazor/DrawnUi/Views/VisualElement.cs:236 — `$"xe{Uid.Replace("-", "")}"` is text this program did not author, and it is written into the text of an element through `new MarkupString(…)` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped src/Blazor/DrawnUi/Views/VisualElement.cs:244 — `$".xe{Uid.Replace("-", "")}"` is text this program did not author, and it is written into the text of an element through `new MarkupString(…)` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
D4 · Code Duplication · Duplicated block (7 lines × 2) · ×22
  • Duplicated block (7 lines × 2) src/Blazor/DrawnUi/Internals/Core/SkiaFontManager.cs:124 — src/Blazor/DrawnUi/Internals/Core/SkiaFontManager.cs:124-130 | src/Wasm/DrawnUi/SkiaFontManager.Web.cs:128-134 — before extracting anything, compare `src/Blazor/DrawnUi/Internals/Core/SkiaFontManager.cs` and `src/Wasm/DrawnUi/SkiaFontManager.Web.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `src/Wasm/DrawnUi/SkiaFontManager.Web.cs:136` calls `WaitAsync` and `src/Blazor/DrawnUi/Internals/Core/SkiaFontManager.cs:132` 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 (7 lines × 2) src/Maui/Addons/DrawnUi.Maui.Add3d/Apple/MetalRenderer3D.cs:516 — src/Maui/Addons/DrawnUi.Maui.Add3d/Apple/MetalRenderer3D.cs:516-522 | src/Maui/Addons/DrawnUi.Maui.Add3d/Platforms/Android/VulkanRenderer3D.cs:992-998 — 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 `src/Maui/Addons/DrawnUi.Maui.Add3d/Apple/MetalRenderer3D.cs:516` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (7 lines × 2) src/Maui/DrawnUi/Platforms/Android/DrawnView.Accessibility.Android.cs:113 — src/Maui/DrawnUi/Platforms/Android/DrawnView.Accessibility.Android.cs:113-119 | src/Maui/DrawnUi/Platforms/Apple/DrawnView.Accessibility.Apple.cs:172-178 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (7 lines × 2) src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsUiaProvider.cs:67 — src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsUiaProvider.cs:67-73 | src/OpenTk/DrawnUi/Accessibility/WindowsUiaProvider.cs:62-68 — before extracting anything, compare `src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsUiaProvider.cs` and `src/OpenTk/DrawnUi/Accessibility/WindowsUiaProvider.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsUiaProvider.cs:67` 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 (7 lines × 2) src/Shared/DrawnUi/Controls/PlayFrames/SkiaSprite.SpriteFrameImage.cs:180 — src/Shared/DrawnUi/Controls/PlayFrames/SkiaSprite.SpriteFrameImage.cs:180-186 | src/Shared/DrawnUi/Draw/Images/SkiaImage.cs:1615-1622 — 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 `src/Shared/DrawnUi/Draw/Images/SkiaImage.cs:1615` 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) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:9216 — src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:9216-9222 | src/Shared/DrawnUi/Draw/Svg/SkiaSvg.cs:729-735 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `src/Shared/DrawnUi/Draw/Svg/SkiaSvg.cs:737` calls `DrawPath` and `src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:9224` 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 (7 lines × 2) src/Shared/DrawnUi/Draw/Layout/Windowing/ItemsSourceWindow.cs:65 — src/Shared/DrawnUi/Draw/Layout/Windowing/ItemsSourceWindow.cs:65-71 | src/Shared/DrawnUi/Draw/Layout/Windowing/ItemsSourceWindow.cs:189-196 — 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) src/Net/DrawnUi/Testing/HeadlessCanvasHost.cs:123 — src/Net/DrawnUi/Testing/HeadlessCanvasHost.cs:123-130 | src/Net/DrawnUi/Testing/HeadlessCanvasHost.cs:215-221 — 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) src/OpenTk/DrawnUi/DesktopGestureHandler.cs:85 — src/OpenTk/DrawnUi/DesktopGestureHandler.cs:85-91 | src/Wpf/Drawnui.Wpf/Views/DrawnUiElement.cs:778-784 — 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 `src/OpenTk/DrawnUi/DesktopGestureHandler.cs:85` 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 `button` to `MouseButton` in one and `WpfMouseButton` 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) src/OpenTk/Samples/HelloOpenTk/Pages/ShadersPage.cs:212 — src/OpenTk/Samples/HelloOpenTk/Pages/ShadersPage.cs:212-218 | src/Wpf/Samples/HelloWpf/Pages/ShadersPage.cs:212-218 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/ShadersPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/ShadersPage.cs` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (7 lines × 2) src/OpenTk/Samples/HelloOpenTk/Pages/SnappingPage.cs:359 — src/OpenTk/Samples/HelloOpenTk/Pages/SnappingPage.cs:359-365 | src/Wpf/Samples/HelloWpf/Pages/SnappingPage.cs:359-365 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/SnappingPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/SnappingPage.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 317 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (7 lines × 2) src/Blazor/Samples/BlazorSandboxServer/BlazorSandboxServer/Components/Pages/ServerMetricCanvas.razor:16 — src/Blazor/Samples/BlazorSandboxServer/BlazorSandboxServer/Components/Pages/ServerMetricCanvas.razor:16-22 | src/Blazor/Samples/BlazorSandboxServer/BlazorSandboxServer/Components/Pages/ServerTrendCanvas.razor:16-22 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Note 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 × 2) src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs:59 — src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs:59-65 | src/Net/Samples/VirtualizationHarnessDemo/TelegramLikeRepro.cs:47-54 — before extracting anything, compare `src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs` and `src/Net/Samples/VirtualizationHarnessDemo/TelegramLikeRepro.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (7 lines × 2) src/Net/Samples/VirtualizationHarnessDemo/CachedScrollTrimRepro.cs:195 — src/Net/Samples/VirtualizationHarnessDemo/CachedScrollTrimRepro.cs:195-201 | src/Net/Samples/VirtualizationHarnessDemo/DeleteGapRepro.cs:21-30 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `src/Net/Samples/VirtualizationHarnessDemo/CachedScrollTrimRepro.cs:194` calls `SetAutoDoubleBuffering`, `WriteLine` and `src/Net/Samples/VirtualizationHarnessDemo/DeleteGapRepro.cs:21` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (7 lines × 2) src/Net/Samples/VirtualizationHarnessDemo/MeasureFirstWindowRepro.cs:178 — src/Net/Samples/VirtualizationHarnessDemo/MeasureFirstWindowRepro.cs:178-184 | src/Net/Samples/VirtualizationHarnessDemo/TelegramLikeRepro.cs:201-207 — 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 `src/Net/Samples/VirtualizationHarnessDemo/MeasureFirstWindowRepro.cs:178` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (7 lines × 2) src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/NewsCell.cs:456 — src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/NewsCell.cs:456-462 | src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Views/NewsCell.xaml.cs:197-203 — 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 (7 lines × 2) src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs:51 — src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs:51-57 | src/Maui/Samples/FastRepro/SkiaTest/MotionMarkScene.cs:56-62 — before extracting anything, compare `src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs` and `src/Maui/Samples/FastRepro/SkiaTest/MotionMarkScene.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 107 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 (7 lines × 2) src/Maui/Samples/FastRepro/Views/NewsCell.xaml.cs:72 — src/Maui/Samples/FastRepro/Views/NewsCell.xaml.cs:72-78 | src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Views/NewsCell.xaml.cs:135-141 — before extracting anything, compare `src/Maui/Samples/FastRepro/Views/NewsCell.xaml.cs` and `src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Views/NewsCell.xaml.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (7 lines × 2) src/Maui/Samples/FastRepro/Views/NewsCell.xaml.cs:133 — src/Maui/Samples/FastRepro/Views/NewsCell.xaml.cs:133-139 | src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Views/NewsCell.xaml.cs:197-203 — before extracting anything, compare `src/Maui/Samples/FastRepro/Views/NewsCell.xaml.cs` and `src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Views/NewsCell.xaml.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (7 lines × 2) src/OpenTk/Samples/HelloOpenTk/Pages/ReorderPage.cs:171 — src/OpenTk/Samples/HelloOpenTk/Pages/ReorderPage.cs:171-177 | src/Wpf/Samples/HelloWpf/Pages/ReorderPage.cs:171-177 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/ReorderPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/ReorderPage.cs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 225 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (7 lines × 2) src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:593 — src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:593-599 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:593-599 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs` as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 395 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (7 lines × 2) src/OpenTk/Samples/HelloOpenTk/Pages/WarriorSprite.cs:54 — src/OpenTk/Samples/HelloOpenTk/Pages/WarriorSprite.cs:54-60 | src/Wpf/Samples/HelloWpf/Pages/WarriorSprite.cs:54-60 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/WarriorSprite.cs` and `src/Wpf/Samples/HelloWpf/Pages/WarriorSprite.cs` as WHOLE FILES: 93% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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.
AX2 · Stateful singletons · Stateful shared instance · ×21
  • Stateful shared instance: SkiaImageManager src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:8 — `SkiaImageManager` 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 (Initialized; e.g. `Initialized` at line 178).
  • Stateful shared instance: SkiaFontManager src/Blazor/DrawnUi/Internals/Core/SkiaFontManager.cs:10 — `SkiaFontManager` 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 (Initialized; e.g. `Initialized` at line 18).
  • Stateful shared instance: Screen src/Shared/DrawnUi/Internals/Helpers/Screen.cs:3 — `Screen` is not registered, but `Super` creates it and keeps it in the static `_screen`, 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 (_BottomInset, _TopInset, _LeftInset, _RightInset, _Density, _WidthDip; e.g. `_BottomInset` at line 14).
  • Stateful shared instance: RestartingTimer src/Shared/DrawnUi/Internals/Helpers/RestartingTimer.cs:7 — `RestartingTimer` is not registered, but `Super` creates it and keeps it in the static `_timerStopRenderingInBackground`, 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 (Context, IsRunning, disposed, cancellation; e.g. `Context` at line 35).
  • Stateful shared instance: RestartingTimer src/Shared/DrawnUi/Internals/Helpers/RestartingTimer.cs:86 — `RestartingTimer` is not registered, but `BlazorHotReload` creates it and keeps it in the static `Debounce`, 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 (IsRunning, cancellation; e.g. `IsRunning` at line 130).
  • Stateful shared instance: FrameTimeInterpolator src/Shared/DrawnUi/Features/Animations/FrameTimeInterpolator.cs:6 — `FrameTimeInterpolator` 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 (_targetFps, _currentTimeStep, _fpsBuffer, LastFrameStep, IsSkippingFrames, _lastFrameTime; e.g. `_targetFps` at line 42).
  • Stateful shared instance: SkiaGradient src/Shared/DrawnUi/Internals/Models/SkiaGradient.cs:7 — `SkiaGradient` is not registered, but `SkiaDecoratedColumn` creates it and keeps it in the static `HorizontalGradient`, 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 (_version; e.g. `_version` at line 520).
  • Stateful shared instance: RadioButtons src/Shared/DrawnUi/Controls/RadioButtons/RadioButtons.cs:7 — `RadioButtons` 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 (_byName; e.g. `_byName` at line 171).
  • Stateful shared instance: RestartingTimer src/Shared/DrawnUi/Internals/Helpers/RestartingTimer.cs:86 — `RestartingTimer` is not registered, but `HotReloadService` creates it and keeps it in the static `UpdateOnTimerOnly`, 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 (IsRunning, disposed, cancellation; e.g. `IsRunning` at line 130).
  • Stateful shared instance: SkiaFontManager src/Maui/DrawnUi/Features/Fonts/SkiaFontManager.cs:43 — `SkiaFontManager` 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 (Fonts, Initialized; e.g. `Fonts` at line 90).
  • Stateful shared instance: SkiaImageManager src/Maui/DrawnUi/Features/Images/SkiaImageManager.cs:8 — `SkiaImageManager` 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 (_isLoadingLocked, IsDisposed, IsOffline; e.g. `_isLoadingLocked` at line 315).
  • Stateful shared instance: MauiThemeProvider src/Maui/DrawnUi/Internals/Extensions/ThemeBindingExtension.cs:10 — `MauiThemeProvider` is not registered, but `ThemeBindingManager` creates it and keeps it in the static `_themeProvider`, 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 (_lastTheme; e.g. `_lastTheme` at line 44).
  • Stateful shared instance: InsetsListener src/Maui/DrawnUi/Platforms/Android/Super.Android.cs:317 — `InsetsListener` is not registered, but `Super` creates it and keeps it in the static `_insetsListener`, 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 (_reported, _returnInsets; e.g. `_reported` at line 364).
  • Stateful shared instance: Screen src/Maui/DrawnUi/Internals/Helpers/Screen.Maui.cs:3 — `Screen` is not registered, but `Super` creates it and keeps it in the static `_screen`, 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 (_BottomInset, _TopInset, _LeftInset, _RightInset, _Density, _WidthDip; e.g. `_BottomInset` at line 14).
  • Stateful shared instance: RestartingTimer src/Shared/DrawnUi/Internals/Helpers/RestartingTimer.cs:86 — `RestartingTimer` is not registered, but `HotReloadService` creates it and keeps it in the static `UpdateOnTimerOnly`, 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 (IsRunning, cancellation; e.g. `IsRunning` at line 130).
  • Stateful shared instance: SkiaImageManager src/Maui/DrawnUi/Features/Images/SkiaImageManager.cs:8 — `SkiaImageManager` 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 (_isLoadingLocked, IsOffline; e.g. `_isLoadingLocked` at line 315).
  • Stateful shared instance: RestartingTimer src/Shared/DrawnUi/Internals/Helpers/RestartingTimer.cs:86 — `RestartingTimer` is not registered, but `HotReloadService` creates it and keeps it in the static `Debounce`, 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 (IsRunning, cancellation; e.g. `IsRunning` at line 130).
  • Stateful shared instance: SkiaFontManager src/SharedNet/Internals/Core/SkiaFontManager.cs:3 — `SkiaFontManager` 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 (Initialized; e.g. `Initialized` at line 56).
  • Stateful shared instance: RestartingTimer src/Shared/DrawnUi/Internals/Helpers/RestartingTimer.cs:86 — `RestartingTimer` is not registered, but `HotReloadService` creates it and keeps it in the static `_timer`, 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 (IsRunning, cancellation; e.g. `IsRunning` at line 130).
  • Stateful shared instance: WebSkiaView src/Wasm/DrawnUi/WebSkiaView.cs:13 — `WebSkiaView` is not registered, but `BrowserHost` creates it and keeps it in the static `_view`, 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 (_glInfo, _dirty, _enableRenderLoop, _dpi, _canvasSize, _glInterface; e.g. `_glInfo` at line 77).
  • Stateful shared instance: SkiaFontManager src/Wasm/DrawnUi/SkiaFontManager.Web.cs:13 — `SkiaFontManager` 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 (Initialized; e.g. `Initialized` at line 27).
X5 · Nullable reference types · Symbol treated as nullable, then dereferenced unguarded · ×21
  • Symbol treated as nullable, then dereferenced unguarded src/SharedAdd3d/Scene3D.cs:191 — This method contradicts itself about `positions`: line 175 writes `positions?.Length`, which says `positions` can be null, but line 191 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 `positions` truly cannot be null here, the `?.` is misleading. Settle it one way — test `positions` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Grid.Structure.cs:91 — This method contradicts itself about `layout`: line 90 assigns it with `as SkiaLayout`, which hands back null rather than throwing when the value is not a `SkiaLayout`, but line 91 then dereferences it directly as `layout.GetOrderedSubviews` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `layout` once before the first use and handle the null case, or cast with `(SkiaLayout)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Masonry.cs:144 — This method contradicts itself about `structure`: line 109 writes `structure?.GetCount`, which says `structure` can be null, but line 144 then dereferences it directly as `structure.GetChildren` 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 `structure` truly cannot be null here, the `?.` is misleading. Settle it one way — test `structure` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.Scrolling.cs:1391 — This method contradicts itself about `control`: line 1384 writes `control?.Parent`, which says `control` can be null, but line 1391 then dereferences it directly as `control.GetAccessibilityPixelRect` 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 `control` truly cannot be null here, the `?.` is misleading. Settle it one way — test `control` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded src/Shared/DrawnUi/Features/Effects/SkiaShaderEffect.cs:414 — This method contradicts itself about `control`: line 413 writes `control?.CachedImage`, which says `control` can be null, but line 414 then dereferences it directly as `control.RenderObject` 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 `control` truly cannot be null here, the `?.` is misleading. Settle it one way — test `control` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded src/Shared/DrawnUi/Views/DrawnView.Popups.cs:478 — This method contradicts itself about `host`: line 430 writes `host?.ScreenBounds`, which says `host` can be null, but line 478 then dereferences it directly as `host.ShowPopup` 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 `host` truly cannot be null here, the `?.` is misleading. Settle it one way — test `host` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded src/Shared/DrawnUi/Views/SkiaAccessibilityManager.cs:1007 — This method contradicts itself about `cells`: line 1002 writes `cells?.FirstOrDefault`, which says `cells` can be null, but line 1007 then dereferences it directly as `cells.Where` 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 `cells` truly cannot be null here, the `?.` is misleading. Settle it one way — test `cells` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:1806 — This method contradicts itself about `sender`: line 1805 assigns it with `as SkiaControl`, which hands back null rather than throwing when the value is not a `SkiaControl`, but line 1806 then dereferences it directly as `sender.TranslationY` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `sender` once before the first use and handle the null case, or cast with `(SkiaControl)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:1928 — This method contradicts itself about `canvas`: line 1924 assigns it with `as Canvas`, which hands back null rather than throwing when the value is not a `Canvas`, but line 1928 then dereferences it directly as `canvas.Content` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `canvas` once before the first use and handle the null case, or cast with `(Canvas)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded src/Maui/DrawnUi/Features/Fonts/SkiaFontManager.cs:71 — This method contradicts itself about `instance`: line 70 assigns it with `as FontRegistrar`, which hands back null rather than throwing when the value is not a `FontRegistrar`, but line 71 then dereferences it directly as `instance.GetType` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `instance` once before the first use and handle the null case, or cast with `(FontRegistrar)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded src/Maui/DrawnUi/Platforms/Android/AndroidExtensions.cs:24 — This method contradicts itself about `wrapper`: line 22 assigns it with `as Tasks.RunningTimer`, which hands back null rather than throwing when the value is not a `Tasks.RunningTimer`, but line 24 then dereferences it directly as `wrapper.IsExecuting` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `wrapper` once before the first use and handle the null case, or cast with `(Tasks.RunningTimer)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded src/Maui/DrawnUi/Platforms/Android/DrawnView.Android.cs:255 — This method contradicts itself about `layout`: line 254 assigns it with `as Android.Views.ViewGroup`, which hands back null rather than throwing when the value is not a `Android.Views.ViewGroup`, but line 255 then dereferences it directly as `layout.SetClipChildren` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `layout` once before the first use and handle the null case, or cast with `(Android.Views.ViewGroup)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded src/Maui/DrawnUi/Platforms/Android/MauiEditorHandler.Android.cs:168 — This method contradicts itself about `platformView`: line 173 writes `platformView?.Dispose`, which says `platformView` can be null, but line 168 then dereferences it directly as `platformView.TextChanged` 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 `platformView` truly cannot be null here, the `?.` is misleading. Settle it one way — test `platformView` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded src/Maui/DrawnUi/Platforms/Apple/SkiaFontManager.Apple.cs:171 — This method contradicts itself about `instance`: line 170 assigns it with `as FontRegistrar`, which hands back null rather than throwing when the value is not a `FontRegistrar`, but line 171 then dereferences it directly as `instance.GetType` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `instance` once before the first use and handle the null case, or cast with `(FontRegistrar)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded src/Maui/DrawnUi/Platforms/Windows/SkiaFontManager.Windows.cs:34 — This method contradicts itself about `instance`: line 33 assigns it with `as FontRegistrar`, which hands back null rather than throwing when the value is not a `FontRegistrar`, but line 34 then dereferences it directly as `instance.GetType` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `instance` once before the first use and handle the null case, or cast with `(FontRegistrar)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded src/Maui/DrawnUi/Platforms/Windows/Views/SKGLViewHandlerRetained.cs:36 — This method contradicts itself about `platformView`: line 40 writes `platformView?.Dispose`, which says `platformView` can be null, but line 36 then dereferences it directly as `platformView.PaintSurface` 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 `platformView` truly cannot be null here, the `?.` is misleading. Settle it one way — test `platformView` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded src/Maui/DrawnUi/Platforms/Windows/WinCanvasHandler.cs:64 — This method contradicts itself about `platformView`: line 68 writes `platformView?.Dispose`, which says `platformView` can be null, but line 64 then dereferences it directly as `platformView.PaintSurface` 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 `platformView` truly cannot be null here, the `?.` is misleading. Settle it one way — test `platformView` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded src/Maui/DrawnUi/Views/Canvas.cs:1167 — This method contradicts itself about `skia`: line 1161 assigns it with `as SkiaControl`, which hands back null rather than throwing when the value is not a `SkiaControl`, but line 1167 then dereferences it directly as `skia.NeedUpdate` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `skia` once before the first use and handle the null case, or cast with `(SkiaControl)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded src/Wpf/Drawnui.Wpf/Views/Accessibility/DrawnUiAutomationPeers.cs:58 — This method contradicts itself about `canvas`: line 54 writes `canvas?.AccessibilityManager`, which says `canvas` can be null, but line 58 then dereferences it directly as `canvas.RenderingScale` 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 `canvas` truly cannot be null here, the `?.` is misleading. Settle it one way — test `canvas` once before the first use and handle the null case, or drop the `?.` — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded src/Maui/Samples/Sandbox/Chat/WidgetChatMessage.cs:111 — This method contradicts itself about `label`: line 109 assigns it with `as SkiaLabel`, which hands back null rather than throwing when the value is not a `SkiaLabel`, but line 111 then dereferences it directly as `label.MeasuredSize` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `label` once before the first use and handle the null case, or cast with `(SkiaLabel)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded src/Maui/Samples/Sandbox/Chat/WidgetChatMessage.cs:118 — This method contradicts itself about `label`: line 117 assigns it with `as SkiaLabel`, which hands back null rather than throwing when the value is not a `SkiaLabel`, but line 118 then dereferences it directly as `label.MeasuredSize` with no null test between them and no guard around it. If the `as` is right, that dereference throws NullReferenceException on the input it was written for — and the NullReferenceException names neither the cast nor the type that failed. Settle it one way — test `label` once before the first use and handle the null case, or cast with `(SkiaLabel)` so the failure is reported where it happens — rather than leaving the two readings side by side.
AX2 · Stateful singletons · Process-global static state · ×19
  • Process-global static state: Renderer3D src/SharedAdd3d/Renderer3D.cs:17 — `Renderer3D` 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 (_anisotropy; e.g. `_anisotropy` at line 405). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: Scene3D src/SharedAdd3d/Scene3D.cs:95 — `Scene3D` 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 (_rayScratch; e.g. `_rayScratch` at line 463). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: MetalRenderer3D src/Maui/Addons/DrawnUi.Maui.Add3d/Apple/MetalRenderer3D.cs:19 — `MetalRenderer3D` 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 (_failed, _device, _mtlDevice, _models, _images, _vs; e.g. `_failed` at line 199). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: MainThread src/SharedNet/Internals/Core/MainThread.cs:11 — `MainThread` 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 (_beginInvokeHandler, _isMainThreadHandler; e.g. `_beginInvokeHandler` at line 20). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: KeyboardManager src/Blazor/DrawnUi/Features/Keyboard/KeyboardManager.Blazor.cs:6 — `KeyboardManager` 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 (_module, _attached, SoftKeyboardInput, _keyUsedByCanvas, IsKeyForOtherElement, IsDispatchingKeyDown; e.g. `_module` at line 20). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: DrawnExtensions src/Blazor/DrawnUi/Internals/Core/DrawnExtensions.cs:7 — `DrawnExtensions` 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 (StartupSettings; e.g. `StartupSettings` at line 17). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: Super src/Blazor/DrawnUi/Super.Blazor.cs:32 — `Super` 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 (RefreshRate, _services, _servicesFromHandler, _nativeAppLifecycleModule, _lifecycleProxyRef, StatusBarHeight; e.g. `RefreshRate` at line 71). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: SkiaSvg src/Shared/DrawnUi/Draw/Svg/SkiaSvg.cs:13 — `SkiaSvg` 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 (Initialized; e.g. `Initialized` at line 576). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: SkiaLabel src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:40 — `SkiaLabel` 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 (_registrar; e.g. `_registrar` at line 51). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: PendulumAnimator src/Shared/DrawnUi/Features/Animators/PendulumAnimator.cs:7 — `PendulumAnimator` 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 (instances; e.g. `instances` at line 39). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: SkiaPicker src/Blazor/DrawnUi/Compat/SkiaPicker.Blazor.cs:5 — `SkiaPicker` 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 (_pickerModule; e.g. `_pickerModule` at line 18). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: SkiaSpinner src/Shared/DrawnUi/Controls/Pickers/Spinner/SkiaSpinner.cs:11 — `SkiaSpinner` 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 (_lastRandomColor, _firstRandomColor; e.g. `_lastRandomColor` at line 195). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: BrowserApi src/Blazor/DrawnUi/Views/BrowserInterop.Blazor.cs:7 — `BrowserApi` 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 (_resizeModule; e.g. `_resizeModule` at line 98). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: SkSl src/Shared/DrawnUi/Features/Shaders/SKSL.cs:7 — `SkSl` 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 (_packageHttp; e.g. `_packageHttp` at line 28). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: SkiaShell src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:27 — `SkiaShell` 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 (tab_routes, s_routeCount, s_routes; e.g. `tab_routes` at line 2077). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: SkiaSprite src/Shared/DrawnUi/Controls/PlayFrames/SkiaSprite.SpriteFrameImage.cs:5 — `SkiaSprite` 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 (RegisteredAnimations; e.g. `RegisteredAnimations` at line 92). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: SkiaControl src/Maui/DrawnUi/Draw/Base/SkiaControl.Maui.cs:14 — `SkiaControl` 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 (_offscreenBakeFrameContext, _offscreenBakeDistorted, _recordingOffscreenBake, _updateOrigin; e.g. `_offscreenBakeFrameContext` at line 1105). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: SkiaLayout src/Maui/DrawnUi/Draw/Layout/SkiaLayout.Grid.Maui.cs:8 — `SkiaLayout` 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 (PaintedBoundsTop, PaintedBoundsBottom, PaintedSkeleton, PaintedStaleServe, _contentSizeMeasureDepth, CollectedBakeTree; e.g. `PaintedBoundsTop` at line 112). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
  • Process-global static state: SkiaLabel src/Maui/DrawnUi/Draw/Text/SkiaLabel.Maui.cs:4 — `SkiaLabel` 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 (_registrar; e.g. `_registrar` at line 51). Concurrent callers lose updates, and a collection that is not built for concurrent writers can corrupt.
D4 · Code Duplication · Duplicated block (16 lines × 2) · ×17
  • Duplicated block (16 lines × 2) src/SharedAdd3d/SkiaModel3D.cs:752 — src/SharedAdd3d/SkiaModel3D.cs:752-767 | src/SharedAdd3d/SkiaScene3D.cs:392-407 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `src/SharedAdd3d/SkiaModel3D.cs:748` calls `TiltTarget` and `src/SharedAdd3d/SkiaScene3D.cs:388` 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 (16 lines × 2) src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:179 — src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:179-194 | src/Maui/DrawnUi/Views/Canvas.cs:689-704 — before extracting anything, compare `src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs` and `src/Maui/DrawnUi/Views/Canvas.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:179` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) src/Shared/DrawnUi/Controls/PlayFrames/SkiaLottie.cs:480 — src/Shared/DrawnUi/Controls/PlayFrames/SkiaLottie.cs:480-495 | src/Shared/DrawnUi/Draw/Images/FrameworkImageSourceConverter.cs:23-38 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (16 lines × 2) src/Maui/DrawnUi/Internals/Extensions/DrawnExtensions.cs:334 — src/Maui/DrawnUi/Internals/Extensions/DrawnExtensions.cs:334-349 | src/Maui/DrawnUi/Internals/Extensions/DrawnExtensions.cs:366-381 — 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 `src/Maui/DrawnUi/Internals/Extensions/DrawnExtensions.cs:334` 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) src/Maui/DrawnUi/Views/Canvas.cs:689 — src/Maui/DrawnUi/Views/Canvas.cs:689-704 | src/Net/DrawnUi/Views/Canvas.Gestures.Net.cs:174-189 — before extracting anything, compare `src/Maui/DrawnUi/Views/Canvas.cs` and `src/Net/DrawnUi/Views/Canvas.Gestures.Net.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/DrawnUi/Views/Canvas.cs:689` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:46 — src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:46-61 | src/Net/DrawnUi/Features/SkiaImageManager.Net.cs:15-30 — before extracting anything, compare `src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs` and `src/Net/DrawnUi/Features/SkiaImageManager.Net.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (16 lines × 2) src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:51 — src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:51-66 | src/Net/DrawnUi/Views/DrawnView.Net.cs:48-63 — before extracting anything, compare `src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs` and `src/Net/DrawnUi/Views/DrawnView.Net.cs` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:51` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:49` calls `WriteLine` and `src/Net/DrawnUi/Views/DrawnView.Net.cs:47` 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 (16 lines × 2) src/Shared/DrawnUi/Controls/Touch/SkiaHotspot.cs:93 — src/Shared/DrawnUi/Controls/Touch/SkiaHotspot.cs:93-108 | src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:2203-2219 — 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 `src/Shared/DrawnUi/Controls/Touch/SkiaHotspot.cs:93` 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 (16 lines × 2) src/Maui/Samples/HelloMaui/Pages/MultiRippleWithTouchEffect.cs:47 — src/Maui/Samples/HelloMaui/Pages/MultiRippleWithTouchEffect.cs:47-62 | src/Shared/DrawnUi/Features/Effects/SkiaTouchShockwaveEffect.cs:111-126 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (16 lines × 2) src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs:138 — src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs:138-153 | src/Net/DrawnUi/Draw/SkiaEditor.Net.cs:131-146 — before extracting anything, compare `src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs` and `src/Net/DrawnUi/Draw/SkiaEditor.Net.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 153 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (16 lines × 2) src/Maui/Samples/FastRepro/ColorPicker/SkiaColorsPanel.cs:203 — src/Maui/Samples/FastRepro/ColorPicker/SkiaColorsPanel.cs:203-218 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorsPanel.cs:202-217 — before extracting anything, compare `src/Maui/Samples/FastRepro/ColorPicker/SkiaColorsPanel.cs` and `src/Maui/Samples/Sandbox/Views/Controls/SkiaColorsPanel.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (16 lines × 2) src/OpenTk/Samples/HelloOpenTk/Pages/ReorderCell.cs:109 — src/OpenTk/Samples/HelloOpenTk/Pages/ReorderCell.cs:109-124 | src/Wpf/Samples/HelloWpf/Pages/ReorderCell.cs:109-124 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/ReorderCell.cs` and `src/Wpf/Samples/HelloWpf/Pages/ReorderCell.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (16 lines × 2) src/OpenTk/Samples/HelloOpenTk/Pages/UnevenCellsPage.cs:107 — src/OpenTk/Samples/HelloOpenTk/Pages/UnevenCellsPage.cs:107-122 | src/Wpf/Samples/HelloWpf/Pages/UnevenCellsPage.cs:107-122 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/UnevenCellsPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/UnevenCellsPage.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (16 lines × 2) src/Maui/Samples/FastRepro/ColorPicker/SkiaColorsPanel.cs:164 — src/Maui/Samples/FastRepro/ColorPicker/SkiaColorsPanel.cs:164-179 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorsPanel.cs:163-178 — before extracting anything, compare `src/Maui/Samples/FastRepro/ColorPicker/SkiaColorsPanel.cs` and `src/Maui/Samples/Sandbox/Views/Controls/SkiaColorsPanel.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (16 lines × 2) src/Blazor/Samples/BlazorSandbox/Pages/SkMeshProjectionProbe.razor:222 — src/Blazor/Samples/BlazorSandbox/Pages/SkMeshProjectionProbe.razor:222-237 | src/Blazor/Samples/BlazorSandbox/Pages/SkMeshRocketProbe.razor:337-352 — 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 (16 lines × 2) src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:289 — src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:289-305 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs:287-302 — before extracting anything, compare `src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs` and `src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 366 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (16 lines × 2) src/Maui/Samples/FastRepro/ColorPicker/SkiaColorsPanel.cs:137 — src/Maui/Samples/FastRepro/ColorPicker/SkiaColorsPanel.cs:137-152 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorsPanel.cs:136-151 — before extracting anything, compare `src/Maui/Samples/FastRepro/ColorPicker/SkiaColorsPanel.cs` and `src/Maui/Samples/Sandbox/Views/Controls/SkiaColorsPanel.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (12 lines × 2) · ×17
  • Duplicated block (12 lines × 2) src/OpenTk/DrawnUi/DrawnUiWindow.cs:547 — src/OpenTk/DrawnUi/DrawnUiWindow.cs:547-558 | src/OpenTk/Samples/OpenTkOverlay/CubeWindow.cs:303-314 — 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 (12 lines × 2) src/Blazor/DrawnUi/Internals/Core/SkiaView.cs:125 — src/Blazor/DrawnUi/Internals/Core/SkiaView.cs:125-136 | src/Blazor/DrawnUi/Internals/Core/SkiaViewAccelerated.cs:95-109 — before extracting anything, compare `src/Blazor/DrawnUi/Internals/Core/SkiaView.cs` and `src/Blazor/DrawnUi/Internals/Core/SkiaViewAccelerated.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (12 lines × 2) src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:532 — src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:532-543 | src/Net/DrawnUi/Views/DrawnView.Net.cs:429-440 — before extracting anything, compare `src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs` and `src/Net/DrawnUi/Views/DrawnView.Net.cs` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (12 lines × 2) src/Shared/DrawnUi/Features/Effects/ChainAdjustBrightnessEffect.cs:49 — src/Shared/DrawnUi/Features/Effects/ChainAdjustBrightnessEffect.cs:49-60 | src/Shared/DrawnUi/Features/Effects/ChainAdjustLightnessEffect.cs:47-58 — before extracting anything, compare `src/Shared/DrawnUi/Features/Effects/ChainAdjustBrightnessEffect.cs` and `src/Shared/DrawnUi/Features/Effects/ChainAdjustLightnessEffect.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 112 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) src/Maui/DrawnUi/Controls/EditText/SkiaMauiEditor.cs:414 — src/Maui/DrawnUi/Controls/EditText/SkiaMauiEditor.cs:414-425 | src/Maui/DrawnUi/Controls/EditText/SkiaMauiEntry.cs:402-413 — before extracting anything, compare `src/Maui/DrawnUi/Controls/EditText/SkiaMauiEditor.cs` and `src/Maui/DrawnUi/Controls/EditText/SkiaMauiEntry.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 98 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) src/Maui/DrawnUi/Draw/Base/SkiaControl.Maui.cs:68 — src/Maui/DrawnUi/Draw/Base/SkiaControl.Maui.cs:68-79 | src/Maui/DrawnUi/Views/DrawnView.Maui.cs:59-70 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. 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) src/Maui/DrawnUi/Platforms/MacCatalyst/Super.Mac.cs:83 — src/Maui/DrawnUi/Platforms/MacCatalyst/Super.Mac.cs:83-94 | src/Maui/DrawnUi/Platforms/iOS/Views/DrawnUiBasePageHandler.cs:148-159 — 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 (12 lines × 2) src/Maui/DrawnUi/Platforms/Windows/MauiEditorHandler.Windows.cs:17 — src/Maui/DrawnUi/Platforms/Windows/MauiEditorHandler.Windows.cs:17-28 | src/Maui/DrawnUi/Platforms/Windows/MauiEntryHandler.Windows.cs:23-51 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (12 lines × 2) src/Shared/DrawnUi/Features/Effects/ChainAdjustBrightnessEffect.cs:49 — src/Shared/DrawnUi/Features/Effects/ChainAdjustBrightnessEffect.cs:49-60 | src/Shared/DrawnUi/Features/Effects/ChainAdjustLightnessEffect.cs:47-58 — before extracting anything, compare `src/Shared/DrawnUi/Features/Effects/ChainAdjustBrightnessEffect.cs` and `src/Shared/DrawnUi/Features/Effects/ChainAdjustLightnessEffect.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 112 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) src/Maui/DrawnUi/Draw/Base/SkiaControl.Maui.cs:68 — src/Maui/DrawnUi/Draw/Base/SkiaControl.Maui.cs:68-79 | src/Maui/DrawnUi/Views/DrawnView.Maui.cs:59-70 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. 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) src/Shared/DrawnUi/Features/Effects/ChainAdjustBrightnessEffect.cs:49 — src/Shared/DrawnUi/Features/Effects/ChainAdjustBrightnessEffect.cs:49-60 | src/Shared/DrawnUi/Features/Effects/ChainAdjustLightnessEffect.cs:47-58 — before extracting anything, compare `src/Shared/DrawnUi/Features/Effects/ChainAdjustBrightnessEffect.cs` and `src/Shared/DrawnUi/Features/Effects/ChainAdjustLightnessEffect.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 112 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) src/Shared/Samples/Pong.Shared/Game/PongGame.Loop.cs:21 — src/Shared/Samples/Pong.Shared/Game/PongGame.Loop.cs:21-32 | src/Shared/Samples/Pong.Shared/Game/PongGame.Loop.cs:51-62 — 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) src/OpenTk/Samples/HelloOpenTk/Pages/ShellPage.cs:14 — src/OpenTk/Samples/HelloOpenTk/Pages/ShellPage.cs:14-25 | src/Wpf/Samples/HelloWpf/Pages/ShellPage.cs:14-25 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/ShellPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/ShellPage.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 236 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/OpenTk/Samples/HelloOpenTk/Pages/ShellPage.cs:14` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs:207 — src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs:207-218 | src/Net/Samples/VirtualizationHarnessDemo/TelegramLikeRepro.cs:180-191 — before extracting anything, compare `src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs` and `src/Net/Samples/VirtualizationHarnessDemo/TelegramLikeRepro.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 53 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 `src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs:207` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/DrawnListCell.cs:31 — src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/DrawnListCell.cs:31-42 | src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Views/DrawnListCell.cs:29-40 — before extracting anything, compare `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/DrawnListCell.cs` and `src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Views/DrawnListCell.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (12 lines × 2) src/Maui/Samples/FastRepro/ColorPicker/ColorPicker.xaml.cs:95 — src/Maui/Samples/FastRepro/ColorPicker/ColorPicker.xaml.cs:95-106 | src/Maui/Samples/Sandbox/Views/Controls/ColorPicker/ColorPicker.xaml.cs:90-101 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. 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) src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs:235 — src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs:235-246 | src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs:338-349 — before extracting anything, compare `src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs` and `src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 174 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.
IC1 · Incompleteness & stubs · Empty method body · ×17
  • Empty method body — does nothing with its inputs src/Blazor/DrawnUi/Draw/SkiaControl.Blazor.cs:14 — `ReportHotreloadChildAdded` 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 src/Blazor/DrawnUi/Draw/SkiaControl.Blazor.cs:18 — `ReportHotreloadChildRemoved` 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 src/Blazor/DrawnUi/Draw/SkiaLayout.Blazor.cs:14 — `ReportHotreloadChildRemoved` 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 src/Blazor/DrawnUi/Draw/SkiaLayout.Blazor.cs:19 — `ReportHotreloadChildAdded` 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 src/Blazor/DrawnUi/Draw/VisualDiagnostics.cs:5 — `OnChildRemoved` 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 src/Blazor/DrawnUi/Draw/VisualDiagnostics.cs:10 — `OnChildAdded` 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 src/Maui/Addons/DrawnUi.Maui.Rive/SkiaRive.cs:157 — `Free` 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 src/Maui/DrawnUi/Platforms/MacCatalyst/Files.Mac.cs:7 — `RefreshSystem` 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 src/Maui/DrawnUi/Platforms/MacCatalyst/Super.Mac.cs:105 — `PlatformBeginInvokeOnMainThread` 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 src/Maui/DrawnUi/Platforms/Windows/Files.Windows.cs:7 — `RefreshSystem` 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 src/Maui/DrawnUi/Platforms/iOS/Files.iOS.cs:7 — `RefreshSystem` 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 src/Net/DrawnUi/Draw/SkiaControl.Net.cs:9 — `ReportHotreloadChildAdded` 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 src/Net/DrawnUi/Draw/SkiaControl.Net.cs:13 — `ReportHotreloadChildRemoved` 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 src/Net/DrawnUi/Draw/SkiaEditor.Net.cs:102 — `SetFocusNative` 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 src/Net/DrawnUi/Draw/VisualDiagnostics.cs:5 — `OnChildRemoved` 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 src/Net/DrawnUi/Draw/VisualDiagnostics.cs:9 — `OnChildAdded` 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 src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs:400 — `PopModal` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it.
D4 · Code Duplication · Duplicated block (14 lines × 2) · ×16
  • Duplicated block (14 lines × 2) src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:544 — src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:544-557 | src/Net/DrawnUi/Features/SkiaImageManager.Net.cs:90-103 — before extracting anything, compare `src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs` and `src/Net/DrawnUi/Features/SkiaImageManager.Net.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:544` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:1610 — src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:1610-1623 | src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:1659-1672 — 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 `src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:1610` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:133 — src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:133-146 | src/Net/DrawnUi/Features/SkiaImageManager.Net.cs:180-193 — before extracting anything, compare `src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs` and `src/Net/DrawnUi/Features/SkiaImageManager.Net.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (14 lines × 2) src/Blazor/DrawnUi/Draw/SkiaControl.Blazor.cs:12 — src/Blazor/DrawnUi/Draw/SkiaControl.Blazor.cs:12-25 | src/Net/DrawnUi/Draw/SkiaControl.Net.cs:7-20 — before extracting anything, compare `src/Blazor/DrawnUi/Draw/SkiaControl.Blazor.cs` and `src/Net/DrawnUi/Draw/SkiaControl.Net.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/DrawnUi/Draw/SkiaControl.Blazor.cs:12` 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) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.BuildWrapLayout.cs:325 — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.BuildWrapLayout.cs:325-340 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:1721-1734 — 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 `src/Shared/DrawnUi/Draw/Layout/SkiaLayout.BuildWrapLayout.cs:325` 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. 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 (14 lines × 2) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:921 — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:921-934 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:1109-1122 — 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 `src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:921` 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) src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:273 — src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:273-286 | src/Net/DrawnUi/Views/DrawnView.Net.cs:225-238 — before extracting anything, compare `src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs` and `src/Net/DrawnUi/Views/DrawnView.Net.cs` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (14 lines × 2) src/Shared/DrawnUi/Controls/Layouts/SkiaDecoratedColumn.cs:233 — src/Shared/DrawnUi/Controls/Layouts/SkiaDecoratedColumn.cs:233-246 | src/Shared/DrawnUi/Controls/Layouts/SkiaDecoratedGrid.cs:194-207 — 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 (14 lines × 2) src/Maui/DrawnUi/Controls/EditText/SkiaMauiEditor.cs:185 — src/Maui/DrawnUi/Controls/EditText/SkiaMauiEditor.cs:185-198 | src/Maui/DrawnUi/Controls/EditText/SkiaMauiEntry.cs:147-161 — before extracting anything, compare `src/Maui/DrawnUi/Controls/EditText/SkiaMauiEditor.cs` and `src/Maui/DrawnUi/Controls/EditText/SkiaMauiEntry.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 98 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 (14 lines × 2) src/Maui/DrawnUi/Draw/Base/SkiaControl.Maui.cs:51 — src/Maui/DrawnUi/Draw/Base/SkiaControl.Maui.cs:51-64 | src/Maui/DrawnUi/Views/DrawnView.Maui.cs:42-55 — 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) src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/NewsViewModel.cs:106 — src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/NewsViewModel.cs:106-119 | src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/NewsFeedSupport.cs:282-295 — before extracting anything, compare `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/NewsViewModel.cs` and `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/NewsFeedSupport.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/NewsViewModel.cs:106` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) src/Maui/Samples/FastRepro/ColorPicker/SliderColor.xaml.cs:145 — src/Maui/Samples/FastRepro/ColorPicker/SliderColor.xaml.cs:145-158 | src/Maui/Samples/Sandbox/Views/Controls/ColorPicker/SliderColor.xaml.cs:145-158 — before extracting anything, compare `src/Maui/Samples/FastRepro/ColorPicker/SliderColor.xaml.cs` and `src/Maui/Samples/Sandbox/Views/Controls/ColorPicker/SliderColor.xaml.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (14 lines × 2) src/OpenTk/Samples/HelloOpenTk/Pages/ReorderPage.cs:223 — src/OpenTk/Samples/HelloOpenTk/Pages/ReorderPage.cs:223-236 | src/Wpf/Samples/HelloWpf/Pages/ReorderPage.cs:223-236 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/ReorderPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/ReorderPage.cs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 225 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (14 lines × 2) src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs:94 — src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs:94-107 | src/Net/Samples/VirtualizationHarnessDemo/PreparedViewsRepro.cs:94-107 — before extracting anything, compare `src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs` and `src/Net/Samples/VirtualizationHarnessDemo/PreparedViewsRepro.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 103 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 (14 lines × 2) src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:204 — src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:204-217 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs:201-214 — before extracting anything, compare `src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs` and `src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 366 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (14 lines × 2) src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:316 — src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:316-329 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs:314-327 — before extracting anything, compare `src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs` and `src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 366 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (9 lines × 2) · ×15
  • Duplicated block (9 lines × 2) src/Shared/DrawnUi/Controls/Layouts/SkiaCarousel.cs:793 — src/Shared/DrawnUi/Controls/Layouts/SkiaCarousel.cs:793-801 | src/Shared/DrawnUi/Controls/Layouts/SkiaCarousel.cs:826-834 — 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 `src/Shared/DrawnUi/Controls/Layouts/SkiaCarousel.cs:793` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (9 lines × 2) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:1039 — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:1039-1047 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:1243-1251 — 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 `src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:1039` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) src/Maui/DrawnUi/Platforms/Android/Super.Android.cs:537 — src/Maui/DrawnUi/Platforms/Android/Super.Android.cs:537-545 | src/Maui/DrawnUi/Platforms/Android/Super.Android.cs:571-579 — 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 `src/Maui/DrawnUi/Platforms/Android/Super.Android.cs:537` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) src/Maui/DrawnUi/Platforms/Windows/SoftwareWindowsCanvas.cs:283 — src/Maui/DrawnUi/Platforms/Windows/SoftwareWindowsCanvas.cs:283-291 | src/Maui/DrawnUi/Platforms/Windows/WinCanvas.cs:210-218 — before extracting anything, compare `src/Maui/DrawnUi/Platforms/Windows/SoftwareWindowsCanvas.cs` and `src/Maui/DrawnUi/Platforms/Windows/WinCanvas.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 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 `src/Maui/DrawnUi/Platforms/Windows/SoftwareWindowsCanvas.cs:283` 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, `src/Maui/DrawnUi/Platforms/Windows/SoftwareWindowsCanvas.cs:292` calls `todoGetPixelsFrom` and `src/Maui/DrawnUi/Platforms/Windows/WinCanvas.cs:221` 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 (9 lines × 2) src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs:263 — src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs:263-271 | src/Net/DrawnUi/Draw/SkiaEditor.Net.cs:256-265 — before extracting anything, compare `src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs` and `src/Net/DrawnUi/Draw/SkiaEditor.Net.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 153 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 2) src/Shared/DrawnUi/Draw/Text/LineGlyph.cs:6 — src/Shared/DrawnUi/Draw/Text/LineGlyph.cs:6-59 | src/Shared/DrawnUi/Draw/Text/UsedGlyph.cs:24-32 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 2) src/Shared/DrawnUi/Controls/PlayFrames/SkiaLottie.cs:271 — src/Shared/DrawnUi/Controls/PlayFrames/SkiaLottie.cs:271-279 | src/Shared/DrawnUi/Internals/Models/SkiaGradient.cs:490-498 — 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) src/Maui/DrawnUi/Draw/Base/SkiaControl.Maui.cs:117 — src/Maui/DrawnUi/Draw/Base/SkiaControl.Maui.cs:117-125 | src/Maui/DrawnUi/Views/DrawnView.Maui.cs:108-116 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. 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) src/Maui/DrawnUi/Platforms/Android/DrawnView.Android.cs:362 — src/Maui/DrawnUi/Platforms/Android/DrawnView.Android.cs:362-370 | src/Maui/DrawnUi/Platforms/Windows/DrawnView.Windows.cs:985-994 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 2) src/Net/DrawnUi/Super.Net.cs:41 — src/Net/DrawnUi/Super.Net.cs:41-49 | src/OpenTk/DrawnUi/Super.OpenTk.cs:48-56 — before extracting anything, compare `src/Net/DrawnUi/Super.Net.cs` and `src/OpenTk/DrawnUi/Super.OpenTk.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (9 lines × 2) src/Net/Samples/VirtualizationHarnessDemo/MeasureFirstWindowRepro.cs:84 — src/Net/Samples/VirtualizationHarnessDemo/MeasureFirstWindowRepro.cs:84-92 | src/Net/Samples/VirtualizationHarnessDemo/MeasureFirstWindowRepro.cs:119-127 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/Net/Samples/VirtualizationHarnessDemo/MeasureFirstWindowRepro.cs:84` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) src/OpenTk/Samples/HelloOpenTk/Pages/CellsPage.cs:113 — src/OpenTk/Samples/HelloOpenTk/Pages/CellsPage.cs:113-121 | src/Wpf/Samples/HelloWpf/Pages/CellsPage.cs:113-121 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/CellsPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/CellsPage.cs` as WHOLE FILES: 98% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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) src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:336 — src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:336-344 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:336-344 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs` as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 395 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (9 lines × 2) src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs:88 — src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs:88-96 | src/Net/Samples/VirtualizationHarnessDemo/MoveReorderRepro.cs:101-109 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (9 lines × 2) src/Net/Samples/VirtualizationHarnessDemo/MoveReorderRepro.cs:101 — src/Net/Samples/VirtualizationHarnessDemo/MoveReorderRepro.cs:101-109 | src/Net/Samples/VirtualizationHarnessDemo/MoveReorderRepro.cs:156-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.
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×14
  • Duplicated block (11 lines × 2) src/Shared/DrawnUi/Controls/PlayFrames/SkiaLottie.cs:431 — src/Shared/DrawnUi/Controls/PlayFrames/SkiaLottie.cs:431-441 | src/Shared/DrawnUi/Controls/PlayFrames/SkiaLottie.cs:462-472 — 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 `src/Shared/DrawnUi/Controls/PlayFrames/SkiaLottie.cs:431` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) src/Blazor/DrawnUi/Views/Canvas.razor:682 — src/Blazor/DrawnUi/Views/Canvas.razor:682-692 | src/Blazor/DrawnUi/Views/VisualElement.cs:112-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.
  • Duplicated block (11 lines × 2) src/Blazor/DrawnUi/Internals/Core/FluentExtensions.Blazor.cs:27 — src/Blazor/DrawnUi/Internals/Core/FluentExtensions.Blazor.cs:27-37 | src/Wasm/DrawnUi/FluentExtensions.Wasm.cs:25-35 — before extracting anything, compare `src/Blazor/DrawnUi/Internals/Core/FluentExtensions.Blazor.cs` and `src/Wasm/DrawnUi/FluentExtensions.Wasm.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (11 lines × 2) src/Maui/Addons/DrawnUi.Maui.MapsUi/SkiaMapsUi.cs:203 — src/Maui/Addons/DrawnUi.Maui.MapsUi/SkiaMapsUi.cs:203-213 | src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs:704-714 — 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 `src/Maui/Addons/DrawnUi.Maui.MapsUi/SkiaMapsUi.cs:203` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:504 — src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:504-514 | src/Net/DrawnUi/Features/SkiaImageManager.Net.cs:438-448 — before extracting anything, compare `src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs` and `src/Net/DrawnUi/Features/SkiaImageManager.Net.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:504` 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 (11 lines × 2) src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsUiaProvider.cs:355 — src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsUiaProvider.cs:355-365 | src/OpenTk/DrawnUi/Accessibility/WindowsUiaProvider.cs:439-449 — before extracting anything, compare `src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsUiaProvider.cs` and `src/OpenTk/DrawnUi/Accessibility/WindowsUiaProvider.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (11 lines × 2) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:10601 — src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:10601-10611 | src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:10637-10647 — 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) src/Maui/DrawnUi/Platforms/Android/SkiaEditor.Android.cs:146 — src/Maui/DrawnUi/Platforms/Android/SkiaEditor.Android.cs:146-156 | src/Maui/DrawnUi/Platforms/Apple/SkiaEditor.Apple.cs:209-219 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (11 lines × 2) src/Maui/DrawnUi/Views/SkiaView.cs:263 — src/Maui/DrawnUi/Views/SkiaView.cs:263-273 | src/Maui/DrawnUi/Views/SkiaViewAccelerated.cs:116-126 — before extracting anything, compare `src/Maui/DrawnUi/Views/SkiaView.cs` and `src/Maui/DrawnUi/Views/SkiaViewAccelerated.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 109 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 (11 lines × 2) src/Maui/DrawnUi/Platforms/Android/SkiaEditor.Android.cs:146 — src/Maui/DrawnUi/Platforms/Android/SkiaEditor.Android.cs:146-156 | src/Maui/DrawnUi/Platforms/Apple/SkiaEditor.Apple.cs:209-219 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (11 lines × 2) src/Net/DrawnUi/Super.Net.cs:121 — src/Net/DrawnUi/Super.Net.cs:121-131 | src/OpenTk/DrawnUi/Super.OpenTk.cs:156-166 — before extracting anything, compare `src/Net/DrawnUi/Super.Net.cs` and `src/OpenTk/DrawnUi/Super.OpenTk.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (11 lines × 2) src/Maui/Samples/Sandbox/Views/Aloha/BaseChartDrawable.cs:752 — src/Maui/Samples/Sandbox/Views/Aloha/BaseChartDrawable.cs:752-762 | src/Maui/Samples/Sandbox/Views/Aloha/BaseChartDrawable.cs:780-790 — 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 `src/Maui/Samples/Sandbox/Views/Aloha/BaseChartDrawable.cs:752` 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 (11 lines × 2) src/Maui/Samples/Sandbox/DrawnTabBar.cs:75 — src/Maui/Samples/Sandbox/DrawnTabBar.cs:75-85 | src/Maui/Samples/Sandbox/DrawnTabBar.cs:117-129 — 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 `src/Maui/Samples/Sandbox/DrawnTabBar.cs:75` 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 (11 lines × 2) src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:505 — src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:505-515 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:505-515 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs` as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 395 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
GD1 · Unfinished & placeholder code · Unfinished stub · ×14
  • Unfinished stub — throws NotImplementedException src/Shared/DrawnUi/Draw/Layout/RenderLabel.cs:9 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException src/Maui/DrawnUi/Draw/Element/SkiaMauiElement.cs:703 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException src/Maui/DrawnUi/Draw/Element/SkiaMauiElement.cs:708 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException src/Maui/DrawnUi/Draw/Element/SkiaMauiElement.cs:713 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException src/Maui/DrawnUi/Features/Fonts/SkiaFontManager.cs:299 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException src/Maui/DrawnUi/Features/Images/SkiaImageManager.cs:511 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException src/Shared/DrawnUi/EditText/SkiaEditor.cs:2655 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException src/Shared/DrawnUi/EditText/SkiaEditor.cs:2660 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException src/Shared/DrawnUi/EditText/SkiaEditor.cs:2665 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException src/Shared/DrawnUi/EditText/SkiaEditor.cs:2670 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException src/Shared/DrawnUi/Super.cs:73 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException src/Maui/Samples/FastRepro/TestCarouselLooped.xaml.cs:119 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException src/Maui/Samples/FastRepro/TestCarouselLooped.xaml.cs:136 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException src/Maui/Samples/Sandbox/Views/MainPageCarousels.xaml.cs:79 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
PF3 · Async & latency hygiene · Sync-over-async blocking · ×14
  • Sync-over-async blocking — 13 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 src/Shared/DrawnUi/Controls/PlayFrames/SkiaLottie.cs:379 — `.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 src/Shared/DrawnUi/Draw/Images/SkiaImage.cs:547 — `.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 src/Shared/DrawnUi/Draw/Images/SkiaImage.cs:649 — `.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 src/Maui/DrawnUi/Features/Fonts/SkiaFontManager.cs:82 — `.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 src/Maui/DrawnUi/Platforms/Android/SkiaFontManager.Android.cs:163 — `.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 src/Maui/DrawnUi/Platforms/Apple/SkiaFontManager.Apple.cs:180 — `.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 src/Maui/DrawnUi/Platforms/Windows/Files.Windows.cs:23 — `.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 src/Maui/DrawnUi/Platforms/Windows/Files.Windows.cs:24 — `.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 src/Maui/DrawnUi/Platforms/Windows/SkiaFontManager.Windows.cs:43 — `.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 src/Maui/DrawnUi/Platforms/Windows/Views/DrawnSwapChainPanel.cs:282 — `Task.Wait()` 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 src/Maui/DrawnUi/Platforms/Windows/Views/DrawnSwapChainPanel.cs:305 — `Task.Wait()` 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 src/Maui/Samples/Sandbox/Dev/TestPage.xaml.cs:24 — `.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 src/Net/Samples/VirtualizationHarnessDemo/AssetResolveRepro.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).
D17 · Explicit Debt · DeadPreprocessorBranch · ×13
  • DeadPreprocessorBranch src/Blazor/Samples/BlazorSandbox/Layout/NavMenuItems.cs:159 — #if SHOW_TESTING // hidden in every build; define SHOW_TESTING to list the testing pages — 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 src/Maui/DrawnUi/Platforms/Apple/DrawnView.Apple.cs:31 — #if NONE — 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 src/Maui/DrawnUi/Platforms/Apple/SkiaImageManager.Apple.cs:10 — #if USENUKE — 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 src/Maui/DrawnUi/Platforms/Apple/SkiaImageManager.Apple.cs:53 — #if USENUKE — 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 src/Maui/DrawnUi/Platforms/Apple/SkiaImageManager.Apple.cs:112 — #if USENUKE — 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 src/Maui/DrawnUi/Platforms/Windows/DrawnView.Windows.cs:952 — #if LEGACY — 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 src/Maui/Samples/FastRepro/MainPageEditors.cs:167 — #if xDEBUG — 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 src/Maui/Samples/FastRepro/MainPageEditors.cs:258 — #if notyetDEBUG — 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 src/Maui/Samples/GameTemplate/MainPage.RescalingCanvas.cs:9 — #if PREVIEWS — 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 src/Maui/Samples/GameTemplate/MainPage.cs:6 — #if PREVIEWS — 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 src/Maui/Samples/GameTemplate/MainPage.cs:62 — #if NEED_DEBUG — 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 src/Shared/DrawnUi/Internals/Models/ScaledSize.cs:206 — #if disabledDEBUG — 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 src/SharedNet/Internals/Core/Thickness.cs:311 — #if false // Decompilation log — 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.
D4 · Code Duplication · Duplicated block (15 lines × 2) · ×13
  • Duplicated block (15 lines × 2) src/Blazor/DrawnUi/Internals/Core/SkiaFontManager.cs:104 — src/Blazor/DrawnUi/Internals/Core/SkiaFontManager.cs:104-118 | src/Wasm/DrawnUi/SkiaFontManager.Web.cs:110-124 — before extracting anything, compare `src/Blazor/DrawnUi/Internals/Core/SkiaFontManager.cs` and `src/Wasm/DrawnUi/SkiaFontManager.Web.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/DrawnUi/Internals/Core/SkiaFontManager.cs:104` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) src/Shared/DrawnUi/Controls/Labels/SkiaRichLabel.cs:77 — src/Shared/DrawnUi/Controls/Labels/SkiaRichLabel.cs:77-91 | src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:1492-1506 — 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 `src/Shared/DrawnUi/Controls/Labels/SkiaRichLabel.cs:77` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) src/SharedAdd3d/SkiaModel3D.cs:772 — src/SharedAdd3d/SkiaModel3D.cs:772-786 | src/SharedAdd3d/SkiaScene3D.cs:411-425 — 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 (15 lines × 2) src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:234 — src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:234-248 | src/Net/DrawnUi/Views/DrawnView.Net.cs:188-202 — before extracting anything, compare `src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs` and `src/Net/DrawnUi/Views/DrawnView.Net.cs` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:234` 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 (15 lines × 2) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:4985 — src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:4985-4999 | src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:5077-5091 — 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 `src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:4985` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (15 lines × 2) src/Shared/DrawnUi/Controls/Touch/SkiaHotspotZoom.cs:65 — src/Shared/DrawnUi/Controls/Touch/SkiaHotspotZoom.cs:65-79 | src/Shared/DrawnUi/Controls/Zoom/ZoomContent.cs:333-347 — 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 `src/Shared/DrawnUi/Controls/Touch/SkiaHotspotZoom.cs:65` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) src/Maui/DrawnUi/Controls/PlayFrames/SkiaMediaImage.cs:29 — src/Maui/DrawnUi/Controls/PlayFrames/SkiaMediaImage.cs:29-43 | src/Maui/DrawnUi/Features/Images/SkiaImageManager.cs:407-424 — 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 `src/Maui/DrawnUi/Controls/PlayFrames/SkiaMediaImage.cs:29` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) src/Maui/DrawnUi/Controls/EditText/SkiaMauiEditor.cs:252 — src/Maui/DrawnUi/Controls/EditText/SkiaMauiEditor.cs:252-266 | src/Maui/DrawnUi/Controls/EditText/SkiaMauiEntry.cs:234-248 — before extracting anything, compare `src/Maui/DrawnUi/Controls/EditText/SkiaMauiEditor.cs` and `src/Maui/DrawnUi/Controls/EditText/SkiaMauiEntry.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 98 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 (15 lines × 2) src/Maui/DrawnUi/Platforms/MacCatalyst/Super.Mac.cs:207 — src/Maui/DrawnUi/Platforms/MacCatalyst/Super.Mac.cs:207-221 | src/Maui/DrawnUi/Platforms/iOS/Super.iOS.cs:280-296 — before extracting anything, compare `src/Maui/DrawnUi/Platforms/MacCatalyst/Super.Mac.cs` and `src/Maui/DrawnUi/Platforms/iOS/Super.iOS.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 117 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (15 lines × 2) src/Maui/DrawnUi/Platforms/MacCatalyst/Super.Mac.cs:207 — src/Maui/DrawnUi/Platforms/MacCatalyst/Super.Mac.cs:207-221 | src/Maui/DrawnUi/Platforms/iOS/Super.iOS.cs:280-296 — before extracting anything, compare `src/Maui/DrawnUi/Platforms/MacCatalyst/Super.Mac.cs` and `src/Maui/DrawnUi/Platforms/iOS/Super.iOS.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 117 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (15 lines × 2) src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs:69 — src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs:69-83 | src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs:203-217 — 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) src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/DrawnListCell.cs:7 — src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/DrawnListCell.cs:7-21 | src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Views/DrawnListCell.cs:5-19 — before extracting anything, compare `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/DrawnListCell.cs` and `src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Views/DrawnListCell.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/DrawnListCell.cs:7` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs:394 — src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs:394-408 | src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs:494-508 — before extracting anything, compare `src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs` and `src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 174 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.
D4 · Code Duplication · Duplicated block (7 lines × 3) · ×13
  • Duplicated block (7 lines × 3) src/Blazor/DrawnUi/Super.Blazor.cs:167 — src/Blazor/DrawnUi/Super.Blazor.cs:167-173 | src/Net/DrawnUi/Super.Net.cs:77-83 | src/Wasm/DrawnUi/Super.Web.cs:153-159 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (7 lines × 3) src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:46 — src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:46-52 | src/Maui/DrawnUi/Views/Canvas.cs:562-568 | src/Net/DrawnUi/Views/Canvas.Gestures.Net.cs:43-49 — before extracting anything, compare `src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs` and `src/Maui/DrawnUi/Views/Canvas.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (7 lines × 3) src/Maui/DrawnUi/Platforms/Android/SkiaMauiElement.Android.cs:57 — src/Maui/DrawnUi/Platforms/Android/SkiaMauiElement.Android.cs:57-66 | src/Maui/DrawnUi/Platforms/Apple/SkiaMauiElement.Apple.cs:15-24 | src/Maui/DrawnUi/Platforms/Windows/SkiaMauiElement.Windows.cs:69-75 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
  • Duplicated block (7 lines × 3) src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs:170 — src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs:170-176 | src/Net/Samples/VirtualizationHarnessDemo/TelegramLikeRepro.cs:121-127 | src/Net/Samples/VirtualizationHarnessDemo/TelegramLikeRepro.cs:160-166 — before extracting anything, compare `src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs` and `src/Net/Samples/VirtualizationHarnessDemo/TelegramLikeRepro.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 53 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 (7 lines × 3) src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs:133 — src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs:133-139 | src/Net/Samples/VirtualizationHarnessDemo/MeasureVisibleWindowRepro.cs:136-142 | src/Net/Samples/VirtualizationHarnessDemo/MeasureVisibleWindowRepro.cs:160-166 — before extracting anything, compare `src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs` and `src/Net/Samples/VirtualizationHarnessDemo/MeasureVisibleWindowRepro.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (7 lines × 3) src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs:62 — src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs:62-68 | src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs:69-75 | src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs:203-209 — before extracting anything, compare `src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs` and `src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 174 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 `src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs:62` 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 × 3) src/Maui/Samples/HelloMaui/Pages/KeyboardPage.cs:122 — src/Maui/Samples/HelloMaui/Pages/KeyboardPage.cs:122-128 | src/OpenTk/Samples/HelloOpenTk/Pages/KeyboardPage.cs:123-129 | src/Wpf/Samples/HelloWpf/Pages/KeyboardPage.cs:123-129 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/KeyboardPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/KeyboardPage.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (7 lines × 3) src/Maui/Samples/HelloMaui/Pages/AccessibilityPage.cs:213 — src/Maui/Samples/HelloMaui/Pages/AccessibilityPage.cs:213-219 | src/OpenTk/Samples/HelloOpenTk/Pages/AccessibilityPage.cs:212-218 | src/Wpf/Samples/HelloWpf/Pages/AccessibilityPage.cs:213-219 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/AccessibilityPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/AccessibilityPage.cs` as WHOLE FILES: 94% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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 × 3) src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:41 — src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:41-47 | src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs:43-49 | src/Wpf/Samples/HelloWpf/Pages/LayoutsPage.cs:45-51 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (7 lines × 3) src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:72 — src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:72-78 | src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs:74-80 | src/Wpf/Samples/HelloWpf/Pages/LayoutsPage.cs:76-82 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (7 lines × 3) src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs:249 — src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs:249-255 | src/OpenTk/Samples/HelloOpenTk/Pages/ReorderPage.cs:250-256 | src/Wpf/Samples/HelloWpf/Pages/ReorderPage.cs:250-256 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/ReorderPage.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (7 lines × 3) src/Maui/Samples/HelloMaui/Pages/SpritesPage.cs:231 — src/Maui/Samples/HelloMaui/Pages/SpritesPage.cs:231-237 | src/OpenTk/Samples/HelloOpenTk/Pages/SpritesPage.cs:232-238 | src/Wpf/Samples/HelloWpf/Pages/SpritesPage.cs:232-238 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/SpritesPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/SpritesPage.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (7 lines × 3) src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:520 — src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:520-526 | src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:522-528 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:522-528 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 295 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
P7 · Outbound HTTP resilience · Outbound HTTP without resilience · ×13
  • Outbound HTTP without resilience src/Blazor/DrawnUi/Internals/Core/DrawnExtensions.cs:22 — `new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }` 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. A slow or failing dependency will hold this service's request, thread or connection — and cascade — until the call gives up on its own (100 s for HttpClient's default).
  • Outbound HTTP without resilience src/Blazor/Samples/LoadMoreRepro/Program.cs:10 — `new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }` 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. A slow or failing dependency will hold this service's request, thread or connection — and cascade — until the call gives up on its own (100 s for HttpClient's default).
  • Outbound HTTP without resilience src/Maui/DrawnUi/Features/Images/ImagesExtensions.cs:28 — `services.AddHttpClient(HttpClientKey, configureDelegate)` registers an outbound HTTP client with no resilience handler, retry policy or timeout of its own in its builder chain. A slow or failing dependency will hold this service's request, thread or connection — and cascade — until the call gives up on its own (100 s for HttpClient's default).
  • Outbound HTTP without resilience src/Maui/DrawnUi/Features/Images/ImagesExtensions.cs:40 — `services.AddHttpClient(HttpClientKey, client => { client.DefaultRequestHeader...` registers an outbound HTTP client with no resilience handler, retry policy or timeout of its own in its builder chain. A slow or failing dependency will hold this service's request, thread or connection — and cascade — until the call gives up on its own (100 s for HttpClient's default).
  • Outbound HTTP without resilience src/Maui/DrawnUi/Features/Images/ImagesExtensions.cs:84 — `new HttpClient()` 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. A slow or failing dependency will hold this service's request, thread or connection — and cascade — until the call gives up on its own (100 s for HttpClient's default).
  • Outbound HTTP without resilience src/Net/DrawnUi/Features/SkiaImageManager.Net.cs:615 — `new HttpClient { BaseAddress = HttpBaseAddress }` 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. A slow or failing dependency will hold this service's request, thread or connection — and cascade — until the call gives up on its own (100 s for HttpClient's default).
  • Outbound HTTP without resilience src/Shared/DrawnUi/Features/Shaders/SKSL.cs:26 — `new HttpClient { BaseAddress = SkiaImageManager.HttpBaseAddress }` 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. A slow or failing dependency will hold this service's request, thread or connection — and cascade — until the call gives up on its own (100 s for HttpClient's default).
  • Outbound HTTP without resilience src/Shared/DrawnUi/Features/Shaders/SKSL.cs:28 — `new HttpClient()` 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. A slow or failing dependency will hold this service's request, thread or connection — and cascade — until the call gives up on its own (100 s for HttpClient's default).
  • Outbound HTTP without resilience src/Wasm/DrawnUi/SkiaFontManager.Web.cs:41 — `new HttpClient { BaseAddress = baseUri }` 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. A slow or failing dependency will hold this service's request, thread or connection — and cascade — until the call gives up on its own (100 s for HttpClient's default).
  • Outbound HTTP without resilience src/Wasm/DrawnUi/SkiaFontManager.Web.cs:42 — `new HttpClient()` 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. A slow or failing dependency will hold this service's request, thread or connection — and cascade — until the call gives up on its own (100 s for HttpClient's default).
  • Outbound HTTP without resilience src/Wasm/DrawnUi/SkiaFontManager.Web.cs:101 — `new HttpClient { BaseAddress = baseUri }` 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. A slow or failing dependency will hold this service's request, thread or connection — and cascade — until the call gives up on its own (100 s for HttpClient's default).
  • Outbound HTTP without resilience src/Wasm/DrawnUi/SkiaFontManager.Web.cs:102 — `new HttpClient()` 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. A slow or failing dependency will hold this service's request, thread or connection — and cascade — until the call gives up on its own (100 s for HttpClient's default).
  • Outbound HTTP without resilience src/Wpf/Drawnui.Wpf/Features/AppPackageServices.Wpf.cs:22 — `new HttpClient(new PackageFileHandler(root)) { BaseAddress = PackageBase }` 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. A slow or failing dependency will hold this service's request, thread or connection — and cascade — until the call gives up on its own (100 s for HttpClient's default).
AC6 · Visual & motion safety · Animation without a prefers-reduced-motion guard · ×12
  • Animation without a prefers-reduced-motion guard src/Blazor/Samples/BlazorSandboxServer/BlazorSandboxServer/wwwroot/app.css:26 — `.btn` moves (`transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard src/Blazor/Samples/BlazorSandboxHybrid/BlazorSandboxHybrid/wwwroot/app.css:26 — `.btn` moves (`transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard src/Blazor/Samples/BlazorSandboxHybrid/BlazorSandboxHybrid/wwwroot/app.css:146 — `.wasm-loader-spinner` moves (`animation: wasm-loader-spin 0.9s linear infinite`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard src/Blazor/Samples/BlazorSandbox/Pages/Home.razor.css:99 — `.home-card` moves (`transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard src/Blazor/DrawnUi/wwwroot/drawnui-loader.css:119 — `.boot-shell::before` moves (`animation: boot-blob 6s ease-in-out infinite`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard src/Blazor/DrawnUi/wwwroot/drawnui-loader.css:128 — `.boot-shell::after` moves (`animation: boot-blob 7.5s ease-in-out infinite reverse`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard src/Blazor/DrawnUi/wwwroot/drawnui-loader.css:144 — `.boot-stage` moves (`animation: boot-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard src/Blazor/DrawnUi/wwwroot/drawnui-loader.css:156 — `.boot-logo-wrap` moves (`animation: boot-float 4.6s ease-in-out infinite`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard src/Blazor/DrawnUi/wwwroot/drawnui-loader.css:182 — `.boot-logo` moves (`animation: boot-glow 3.4s ease-in-out infinite`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard src/Blazor/DrawnUi/wwwroot/drawnui-loader.css:232 — `.boot-spark` moves (`animation: boot-sparkle var(--du, 2s) var(--de, 0s) ease-in-out infinite`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard src/Blazor/DrawnUi/wwwroot/drawnui-loader.css:255 — `.boot-progress-track::after` moves (`animation: boot-shimmer 1.8s ease-in-out infinite`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard src/Blazor/DrawnUi/wwwroot/drawnui-loader.css:266 — `.boot-progress-fill` moves (`transition: width 0.16s ease-out`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
D4 · Code Duplication · Edited copies of one member (3 members, 8+ corresponding lines) · ×12
  • Edited copies of one member (3 members, 8+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:501 — src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:501-508 | src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs:502-509 | src/Wpf/Samples/HelloWpf/Pages/LayoutsPage.cs:504-511 — 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.
  • Edited copies of one member (3 members, 8+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs:210 — src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs:210-217 | src/OpenTk/Samples/HelloOpenTk/Pages/ShadersPage.cs:211-218 | src/Wpf/Samples/HelloWpf/Pages/ShadersPage.cs:211-218 — 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.
  • Edited copies of one member (3 members, 8+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/SnappingPage.cs:357 — src/Maui/Samples/HelloMaui/Pages/SnappingPage.cs:357-364 | src/OpenTk/Samples/HelloOpenTk/Pages/SnappingPage.cs:358-365 | src/Wpf/Samples/HelloWpf/Pages/SnappingPage.cs:358-365 — 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.
  • Edited copies of one member (3 members, 8+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs:169 — src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs:169-176 | src/OpenTk/Samples/HelloOpenTk/Pages/ReorderPage.cs:170-177 | src/Wpf/Samples/HelloWpf/Pages/ReorderPage.cs:170-177 — 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.
  • Edited copies of one member (3 members, 8+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs:248 — src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs:248-255 | src/OpenTk/Samples/HelloOpenTk/Pages/ReorderPage.cs:249-256 | src/Wpf/Samples/HelloWpf/Pages/ReorderPage.cs:249-256 — 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.
  • Edited copies of one member (3 members, 8+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/WarriorSprite.cs:53 — src/Maui/Samples/HelloMaui/Pages/WarriorSprite.cs:53-60 | src/OpenTk/Samples/HelloOpenTk/Pages/WarriorSprite.cs:53-60 | src/Wpf/Samples/HelloWpf/Pages/WarriorSprite.cs:53-60 — 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.
  • Edited copies of one member (3 members, 8+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:40 — src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:40-47 | src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs:42-49 | src/Wpf/Samples/HelloWpf/Pages/LayoutsPage.cs:44-51 — 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.
  • Edited copies of one member (3 members, 8+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:71 — src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:71-78 | src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs:73-80 | src/Wpf/Samples/HelloWpf/Pages/LayoutsPage.cs:75-82 — 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.
  • Edited copies of one member (3 members, 8+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/SpritesPage.cs:230 — src/Maui/Samples/HelloMaui/Pages/SpritesPage.cs:230-237 | src/OpenTk/Samples/HelloOpenTk/Pages/SpritesPage.cs:231-238 | src/Wpf/Samples/HelloWpf/Pages/SpritesPage.cs:231-238 — 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.
  • Edited copies of one member (3 members, 8+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/AccessibilityPage.cs:212 — src/Maui/Samples/HelloMaui/Pages/AccessibilityPage.cs:212-219 | src/OpenTk/Samples/HelloOpenTk/Pages/AccessibilityPage.cs:211-218 | src/Wpf/Samples/HelloWpf/Pages/AccessibilityPage.cs:212-219 — 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.
  • Edited copies of one member (3 members, 8+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:590 — src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:590-597 | src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:592-599 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:592-599 — 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.
  • Edited copies of one member (3 members, 8+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:519 — src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:519-526 | src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:521-528 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:521-528 — 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.
IC1 · Incompleteness & stubs · Fake-async · ×12
  • Fake-async — async method never awaits src/Maui/DrawnUi/Controls/Navigation/SkiaShell.NavigationLayer.cs:100 — `CloseAll` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
  • Fake-async — async method never awaits src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:1458 — `SetupModalsVisibility` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
  • Fake-async — async method never awaits src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:2273 — `PopToRootAsync` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
  • Fake-async — async method never awaits src/Maui/DrawnUi/Platforms/Apple/Super.Apple.cs:75 — `CaptureScreenshotAsync` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
  • Fake-async — async method never awaits src/Shared/DrawnUi/Controls/Layouts/SkiaTabsSelector.cs:271 — `OnTabSelectionChanged` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
  • Fake-async — async method never awaits src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs:246 — `PushView` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
  • Fake-async — async method never awaits src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs:728 — `DebugAction` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
  • Fake-async — async method never awaits src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs:849 — `SetupTransitionAnimation` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
  • Fake-async — async method never awaits src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs:1221 — `UpdateSelectedView` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
  • Fake-async — async method never awaits src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:9687 — `PlayRippleAnimation` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
  • Fake-async — async method never awaits src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:9701 — `PlayShimmerAnimation` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
  • Fake-async — async method never awaits src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:784 — `PlayEdgeGlowAnimation` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
X1 · Async correctness · Sync-over-async (deadlock risk) · ×12
  • Sync-over-async (deadlock risk) src/Shared/DrawnUi/Controls/PlayFrames/SkiaLottie.cs:379 — 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) src/Shared/DrawnUi/Draw/Images/SkiaImage.cs:546 — 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) src/Shared/DrawnUi/Draw/Images/SkiaImage.cs:649 — 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) src/Maui/DrawnUi/Features/Fonts/SkiaFontManager.cs:82 — 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) src/Maui/DrawnUi/Platforms/Android/SkiaFontManager.Android.cs:163 — 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) src/Maui/DrawnUi/Platforms/Apple/SkiaFontManager.Apple.cs:180 — 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) src/Maui/DrawnUi/Platforms/Windows/Files.Windows.cs:23 — 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) src/Maui/DrawnUi/Platforms/Windows/Files.Windows.cs:24 — 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) src/Maui/DrawnUi/Platforms/Windows/SkiaFontManager.Windows.cs:43 — 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) src/Maui/DrawnUi/Platforms/Windows/Views/DrawnSwapChainPanel.cs:282 — 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) src/Maui/DrawnUi/Platforms/Windows/Views/DrawnSwapChainPanel.cs:305 — 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) src/Maui/Samples/Sandbox/Dev/TestPage.xaml.cs:24 — 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.
D4 · Code Duplication · Edited copies of one member (3 members, 7+ corresponding lines) · ×11
  • Edited copies of one member (3 members, 7+ corresponding lines) src/Maui/DrawnUi/Platforms/Android/DrawnView.Accessibility.Android.cs:111 — src/Maui/DrawnUi/Platforms/Android/DrawnView.Accessibility.Android.cs:111-120 | src/Maui/DrawnUi/Platforms/Apple/DrawnView.Accessibility.Apple.cs:170-179 | src/Maui/DrawnUi/Platforms/Windows/DrawnView.Windows.cs:666-672 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 7+ corresponding lines) src/OpenTk/DrawnUi/Accessibility/LinuxAtSpiProvider.cs:359 — src/OpenTk/DrawnUi/Accessibility/LinuxAtSpiProvider.cs:359-365 | src/OpenTk/DrawnUi/Accessibility/WindowsUiaProvider.cs:380-386 | src/Wasm/DrawnUi/WebAccessibility.cs:260-270 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 7+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/SnappingPage.cs:348 — src/Maui/Samples/HelloMaui/Pages/SnappingPage.cs:348-354 | src/OpenTk/Samples/HelloOpenTk/Pages/SnappingPage.cs:349-355 | src/Wpf/Samples/HelloWpf/Pages/SnappingPage.cs:349-355 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 7+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:600 — src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:600-606 | src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:602-608 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:602-608 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 7+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs:201 — src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs:201-207 | src/OpenTk/Samples/HelloOpenTk/Pages/ShadersPage.cs:202-208 | src/Wpf/Samples/HelloWpf/Pages/ShadersPage.cs:202-208 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 7+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:449 — src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:449-455 | src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:451-457 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:451-457 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 7+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/SpritesPage.cs:198 — src/Maui/Samples/HelloMaui/Pages/SpritesPage.cs:198-204 | src/OpenTk/Samples/HelloOpenTk/Pages/SpritesPage.cs:199-205 | src/Wpf/Samples/HelloWpf/Pages/SpritesPage.cs:199-205 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 7+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/AccessibilityPage.cs:231 — src/Maui/Samples/HelloMaui/Pages/AccessibilityPage.cs:231-237 | src/OpenTk/Samples/HelloOpenTk/Pages/AccessibilityPage.cs:230-236 | src/Wpf/Samples/HelloWpf/Pages/AccessibilityPage.cs:231-237 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 7+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:567 — src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:567-573 | src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs:568-574 | src/Wpf/Samples/HelloWpf/Pages/LayoutsPage.cs:570-576 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 7+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs:289 — src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs:289-295 | src/OpenTk/Samples/HelloOpenTk/Pages/ReorderPage.cs:290-296 | src/Wpf/Samples/HelloWpf/Pages/ReorderPage.cs:290-296 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 7+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs:186 — src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs:186-192 | src/OpenTk/Samples/HelloOpenTk/Pages/ReorderPage.cs:187-193 | src/Wpf/Samples/HelloWpf/Pages/ReorderPage.cs:187-193 — 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.
D6 · Cohesion (LCOM4) · Low cohesion · ×11
  • Low cohesion: DrawnView (LCOM4 23) src/Maui/DrawnUi/Platforms/Windows/DrawnView.Windows.cs:13 — DrawnView's methods fall into 23 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 23 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: DrawnView (LCOM4 13) src/Net/DrawnUi/Views/DrawnView.Net.cs:13 — DrawnView's methods fall into 13 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 13 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: SKGLViewHandlerRetained (LCOM4 6) src/Maui/DrawnUi/Platforms/Android/Retained/SKGLViewHandlerRetained.Android.cs:19 — SKGLViewHandlerRetained'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: Canvas (LCOM4 6) src/Net/DrawnUi/Views/Canvas.OpenTk.cs:6 — Canvas'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: SkiaShell (LCOM4 5) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:27 — SkiaShell's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: ShadersPage (LCOM4 4) src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs:11 — ShadersPage's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: ShadersPage (LCOM4 4) src/OpenTk/Samples/HelloOpenTk/Pages/ShadersPage.cs:12 — ShadersPage's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: ShellPage (LCOM4 4) src/OpenTk/Samples/HelloOpenTk/Pages/ShellPage.cs:14 — ShellPage's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: SnappingLayout (LCOM4 4) src/Shared/DrawnUi/Draw/Layout/SnappingLayout.cs:7 — SnappingLayout's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: ShadersPage (LCOM4 4) src/Wpf/Samples/HelloWpf/Pages/ShadersPage.cs:12 — ShadersPage's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: ShellPage (LCOM4 4) src/Wpf/Samples/HelloWpf/Pages/ShellPage.cs:14 — ShellPage's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
D4 · Code Duplication · Duplicated block (9 lines × 3) · ×10
  • Duplicated block (9 lines × 3) src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:570 — src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:570-578 | src/Net/DrawnUi/Views/DrawnView.Net.cs:466-474 | src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:9746-9754 — before extracting anything, compare `src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs` and `src/Net/DrawnUi/Views/DrawnView.Net.cs` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:570` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 3) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:704 — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:704-712 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:1851-1859 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:1437-1445 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:1849` calls `ApplyFillConstraints` and `src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:1432` 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) src/Blazor/DrawnUi/Internals/Core/FluentExtensions.Blazor.cs:11 — src/Blazor/DrawnUi/Internals/Core/FluentExtensions.Blazor.cs:11-23 | src/SharedNet/Internals/Extensions/FluentExtensions.NonMaui.cs:269-277 | src/Wasm/DrawnUi/FluentExtensions.Wasm.cs:9-21 — before extracting anything, compare `src/Blazor/DrawnUi/Internals/Core/FluentExtensions.Blazor.cs` and `src/Wasm/DrawnUi/FluentExtensions.Wasm.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 3) src/Maui/Samples/HelloMaui/Pages/SpritesPage.cs:161 — src/Maui/Samples/HelloMaui/Pages/SpritesPage.cs:161-169 | src/OpenTk/Samples/HelloOpenTk/Pages/SpritesPage.cs:162-170 | src/Wpf/Samples/HelloWpf/Pages/SpritesPage.cs:162-170 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/SpritesPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/SpritesPage.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (9 lines × 3) src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:455 — src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:455-463 | src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs:456-464 | src/Wpf/Samples/HelloWpf/Pages/LayoutsPage.cs:458-466 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:455` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (9 lines × 3) src/Maui/Samples/HelloMaui/Pages/AccessibilityPage.cs:200 — src/Maui/Samples/HelloMaui/Pages/AccessibilityPage.cs:200-208 | src/OpenTk/Samples/HelloOpenTk/Pages/AccessibilityPage.cs:199-207 | src/Wpf/Samples/HelloWpf/Pages/AccessibilityPage.cs:200-208 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/AccessibilityPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/AccessibilityPage.cs` as WHOLE FILES: 94% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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 × 3) src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:59 — src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:59-67 | src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs:61-69 | src/Wpf/Samples/HelloWpf/Pages/LayoutsPage.cs:63-71 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (9 lines × 3) src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs:209 — src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs:209-217 | src/OpenTk/Samples/HelloOpenTk/Pages/ReorderPage.cs:210-218 | src/Wpf/Samples/HelloWpf/Pages/ReorderPage.cs:210-218 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/ReorderPage.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (9 lines × 3) src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs:252 — src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs:252-260 | src/OpenTk/Samples/HelloOpenTk/Pages/ShadersPage.cs:253-261 | src/Wpf/Samples/HelloWpf/Pages/ShadersPage.cs:253-261 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/ShadersPage.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (9 lines × 3) src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:207 — src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:207-215 | src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:209-217 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:209-217 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 295 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (19 lines × 2) · ×10
  • Duplicated block (19 lines × 2) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:3702 — src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:3702-3720 | src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:3767-3785 — 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 `src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:3702` 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) src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs:182 — src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs:182-200 | src/Net/DrawnUi/Draw/SkiaEditor.Net.cs:175-193 — before extracting anything, compare `src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs` and `src/Net/DrawnUi/Draw/SkiaEditor.Net.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 153 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (19 lines × 2) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:3225 — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:3225-3243 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:3256-3274 — 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 (19 lines × 2) src/Shared/DrawnUi/Draw/SkiaShape.cs:980 — src/Shared/DrawnUi/Draw/SkiaShape.cs:980-998 | src/Shared/DrawnUi/Features/Effects/ChainDropShadowsEffect.cs:81-99 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `src/Shared/DrawnUi/Draw/SkiaShape.cs:1000` calls `InvalidateEffectsMargin` and `src/Shared/DrawnUi/Features/Effects/ChainDropShadowsEffect.cs:101` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (19 lines × 2) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:2897 — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:2897-2915 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:3179-3197 — 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 (19 lines × 2) src/Maui/DrawnUi/Platforms/MacCatalyst/Super.Mac.cs:227 — src/Maui/DrawnUi/Platforms/MacCatalyst/Super.Mac.cs:227-245 | src/Maui/DrawnUi/Platforms/iOS/Super.iOS.cs:250-277 — before extracting anything, compare `src/Maui/DrawnUi/Platforms/MacCatalyst/Super.Mac.cs` and `src/Maui/DrawnUi/Platforms/iOS/Super.iOS.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 117 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (19 lines × 2) src/Maui/DrawnUi/Platforms/Windows/Views/Gles/GlesContext.cs:211 — src/Maui/DrawnUi/Platforms/Windows/Views/Gles/GlesContext.cs:211-229 | src/Wpf/Drawnui.Wpf/Views/Angle/AngleContext.cs:159-179 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (19 lines × 2) src/OpenTk/Samples/HelloOpenTk/Pages/TransformsPage.cs:267 — src/OpenTk/Samples/HelloOpenTk/Pages/TransformsPage.cs:267-285 | src/Wpf/Samples/HelloWpf/Pages/TransformsPage.cs:267-285 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/TransformsPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/TransformsPage.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 137 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (19 lines × 2) src/OpenTk/Samples/HelloOpenTk/Pages/TransformsPage.cs:401 — src/OpenTk/Samples/HelloOpenTk/Pages/TransformsPage.cs:401-419 | src/Wpf/Samples/HelloWpf/Pages/TransformsPage.cs:401-419 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/TransformsPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/TransformsPage.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 137 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (19 lines × 2) src/Blazor/Samples/BlazorSandbox/Pages/GameButton.cs:108 — src/Blazor/Samples/BlazorSandbox/Pages/GameButton.cs:108-126 | src/Maui/Samples/Tutorials/Tutorials/CustomButton/GameButton.cs:99-117 — 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 `src/Blazor/Samples/BlazorSandbox/Pages/GameButton.cs:108` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (6 lines × 3) · ×10
  • Duplicated block (6 lines × 3) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:3138 — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:3138-3143 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:3290-3295 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Shared.cs:1871-1876 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:3138` 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 × 3) src/Maui/DrawnUi/Platforms/Android/DrawnView.Accessibility.Android.cs:115 — src/Maui/DrawnUi/Platforms/Android/DrawnView.Accessibility.Android.cs:115-120 | src/Maui/DrawnUi/Platforms/Apple/DrawnView.Accessibility.Apple.cs:174-179 | src/Maui/DrawnUi/Platforms/Windows/DrawnView.Windows.cs:667-672 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/DrawnUi/Platforms/Android/DrawnView.Accessibility.Android.cs:115` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 3) src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs:195 — src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs:195-200 | src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs:211-216 | src/Net/Samples/VirtualizationHarnessDemo/TelegramLikeRepro.cs:184-189 — before extracting anything, compare `src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs` and `src/Net/Samples/VirtualizationHarnessDemo/TelegramLikeRepro.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (6 lines × 3) src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:450 — src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:450-455 | src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:452-457 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:452-457 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 295 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (6 lines × 3) src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs:231 — src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs:231-236 | src/OpenTk/Samples/HelloOpenTk/Pages/ReorderPage.cs:232-237 | src/Wpf/Samples/HelloWpf/Pages/ReorderPage.cs:232-237 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/ReorderPage.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs:231` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 3) src/Maui/Samples/HelloMaui/Pages/SnappingPage.cs:370 — src/Maui/Samples/HelloMaui/Pages/SnappingPage.cs:370-375 | src/OpenTk/Samples/HelloOpenTk/Pages/SnappingPage.cs:371-376 | src/Wpf/Samples/HelloWpf/Pages/SnappingPage.cs:371-376 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/SnappingPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/SnappingPage.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 305 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 3) src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:601 — src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:601-606 | src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:603-608 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:603-608 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 295 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (6 lines × 3) src/Maui/Samples/HelloMaui/Pages/AccessibilityPage.cs:232 — src/Maui/Samples/HelloMaui/Pages/AccessibilityPage.cs:232-237 | src/OpenTk/Samples/HelloOpenTk/Pages/AccessibilityPage.cs:231-236 | src/Wpf/Samples/HelloWpf/Pages/AccessibilityPage.cs:232-237 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/AccessibilityPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/AccessibilityPage.cs` as WHOLE FILES: 94% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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 (6 lines × 3) src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:568 — src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:568-573 | src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs:569-574 | src/Wpf/Samples/HelloWpf/Pages/LayoutsPage.cs:571-576 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (6 lines × 3) src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs:290 — src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs:290-295 | src/OpenTk/Samples/HelloOpenTk/Pages/ReorderPage.cs:291-296 | src/Wpf/Samples/HelloWpf/Pages/ReorderPage.cs:291-296 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/ReorderPage.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
X18 · Disposal-pattern correctness · Disposable created and abandoned in the method that made it · ×10
  • Disposable created and abandoned in the method that made it src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs:905 — `cancelAnimation` is a `CancellationTokenSource`, which implements `IDisposable`, and it is created here (line 905). Every use of it in `ExecuteTransitionAnimation` 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 cancelAnimation = …;`), 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 src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:791 — `animation` is a `EdgeGlowAnimator`, which implements `IDisposable`, and it is created here (line 791). Every use of it in `PlayEdgeGlowAnimation` 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 animation = …;`), 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 src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:8048 — `iterator` is a `RawIterator`, which implements `IDisposable`, and it is created here (line 8048). Every use of it in `IsSimpleRectangle` 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 iterator = …;`), 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 src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:9695 — `animation` is a `RippleAnimator`, which implements `IDisposable`, and it is created here (line 9695). Every use of it in `PlayRippleAnimation` 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 animation = …;`), 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 src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:9710 — `animation` is a `ShimmerAnimator`, which implements `IDisposable`, and it is created here (line 9710). Every use of it in `PlayShimmerAnimation` 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 animation = …;`), 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 src/Net/DrawnUi/Super.Net.cs:47 — `n` is a `SkiaControl`, which implements `IDisposable`, and it is created here (line 47). Every use of it in `Init` 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 n = …;`), 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 src/OpenTk/DrawnUi/Super.OpenTk.cs:54 — `n` is a `SkiaControl`, which implements `IDisposable`, and it is created here (line 54). Every use of it in `Init` 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 n = …;`), 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 src/Wasm/DrawnUi/Super.Web.cs:107 — `n` is a `SkiaControl`, which implements `IDisposable`, and it is created here (line 107). Every use of it in `Init` 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 n = …;`), 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 src/Shared/Samples/Add3dGallery.Shared/Pages/GalleryPage.Form.cs:101 — `editor` is a `SkiaEditor`, which implements `IDisposable`, and it is created here (line 101). Every use of it in `Field` 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 editor = …;`), 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 src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/NewsFeedLayout.cs:46 — `scroll` is a `SkiaScroll`, which implements `IDisposable`, and it is created here (line 46). Every use of it in `CreateContent` 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 scroll = …;`), which releases it at the end of the scope on every path including a throw.
D4 · Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) · ×9
  • Members sharing a duplicated core (4 members, 50+ identical tokens) src/Shared/DrawnUi/Controls/Progress/SkiaProgress.cs:25 — src/Shared/DrawnUi/Controls/Progress/SkiaProgress.cs:25-49 | src/Shared/DrawnUi/Controls/RadioButtons/SkiaRadioButton.cs:29-53 | src/Shared/DrawnUi/Controls/Switches/SkiaCheckbox.cs:25-49 | src/Shared/DrawnUi/Controls/Switches/SkiaSwitch.cs:17-41 — 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) src/Shared/DrawnUi/Controls/Switches/SkiaCheckbox.cs:106 — src/Shared/DrawnUi/Controls/Switches/SkiaCheckbox.cs:106-153 | src/Shared/DrawnUi/Controls/Switches/SkiaCheckbox.cs:156-203 | src/Shared/DrawnUi/Controls/Switches/SkiaCheckbox.cs:210-256 | src/Shared/DrawnUi/Controls/Switches/SkiaCheckbox.cs:259-306 — 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) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.BuildWrapLayout.cs:300 — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.BuildWrapLayout.cs:300-341 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:308-803 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:1006-1157 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:1709-1735 — 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) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:308 — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:308-803 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:1850-1860 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:1211-1584 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Masonry.cs:74-89 — 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) src/Maui/Samples/HelloMaui/Pages/MultiRippleWithTouchEffect.cs:40 — src/Maui/Samples/HelloMaui/Pages/MultiRippleWithTouchEffect.cs:40-64 | src/OpenTk/Samples/HelloOpenTk/Pages/MultiRippleWithTouchEffect.cs:40-64 | src/Shared/DrawnUi/Features/Effects/SkiaTouchShockwaveEffect.cs:104-129 | src/Wpf/Samples/HelloWpf/Pages/MultiRippleWithTouchEffect.cs:40-64 — 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) src/Maui/DrawnUi/Platforms/Android/Files.Android.cs:36 — src/Maui/DrawnUi/Platforms/Android/Files.Android.cs:36-54 | src/Maui/DrawnUi/Platforms/MacCatalyst/Files.Mac.cs:35-53 | src/Maui/DrawnUi/Platforms/Windows/Files.Windows.cs:45-63 | src/Maui/DrawnUi/Platforms/iOS/Files.iOS.cs:35-53 — 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) src/Maui/Samples/HelloMaui/Pages/RescalingLayout.cs:30 — src/Maui/Samples/HelloMaui/Pages/RescalingLayout.cs:30-43 | src/OpenTk/Samples/HelloOpenTk/Pages/RescalingLayout.cs:34-47 | src/Shared/Samples/Add3dGallery.Shared/Pages/RescalingLayout.cs:30-43 | src/Wpf/Samples/HelloWpf/Pages/RescalingLayout.cs:34-47 — 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) src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs:16 — src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs:16-80 | src/Net/Samples/VirtualizationHarnessDemo/FrontierSpinnerStuckRepro.cs:18-104 | src/Net/Samples/VirtualizationHarnessDemo/PreparedViewsRepro.cs:19-85 | src/Net/Samples/VirtualizationHarnessDemo/ScrollToTopWallRepro.cs:17-67 — 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) src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs:61 — src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs:61-216 | src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs:67-194 | src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs:201-273 | src/Net/Samples/VirtualizationHarnessDemo/LiftDragRepro.cs:70-253 — 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 (6 corresponding lines) · ×9
  • Edited copy of a member (6 corresponding lines) src/Blazor/DrawnUi/Views/VisualElement.cs:169 — src/Blazor/DrawnUi/Views/VisualElement.cs:169-174 | src/Blazor/DrawnUi/Views/VisualElement.cs:180-185 — 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) src/Net/DrawnUi/Testing/HeadlessCanvasHost.cs:249 — src/Net/DrawnUi/Testing/HeadlessCanvasHost.cs:249-254 | src/Net/Samples/SkiaEditorHarness/Program.cs:1036-1041 — 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) src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:112 — src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:112-121 | src/Net/DrawnUi/Views/DrawnView.Net.cs:87-92 — 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) src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:162 — src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:162-167 | src/Net/DrawnUi/Views/DrawnView.Net.cs:131-136 — 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) src/Maui/Samples/FastRepro/ColorPicker/SliderColor.xaml.cs:53 — src/Maui/Samples/FastRepro/ColorPicker/SliderColor.xaml.cs:53-58 | src/Maui/Samples/Sandbox/Views/Controls/ColorPicker/SliderColor.xaml.cs:53-58 — 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) src/Maui/Samples/HelloMaui/Pages/SnappingPage.cs:357 — src/Maui/Samples/HelloMaui/Pages/SnappingPage.cs:357-364 | src/Maui/Samples/HelloMaui/Pages/AnimationsPage.cs:194-199 — 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) src/Maui/Samples/FastRepro/Views/Sprites/WarriorSprite.cs:43 — src/Maui/Samples/FastRepro/Views/Sprites/WarriorSprite.cs:43-48 | src/Maui/Samples/FastRepro/Views/Sprites/SpriteSnappedBoardPage.cs:316-322 — 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) src/Blazor/Samples/BlazorSandboxServer/BlazorSandboxServer/Components/Pages/ServerMetricCanvas.razor:36 — src/Blazor/Samples/BlazorSandboxServer/BlazorSandboxServer/Components/Pages/ServerMetricCanvas.razor:36-41 | src/Blazor/Samples/BlazorSandboxServer/BlazorSandboxServer/Components/Pages/ServerTrendCanvas.razor:44-50 — 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) src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs:234 — src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs:234-239 | src/Maui/Samples/FastRepro/Views/Sprites/SpriteSnappedBoardPage.cs:244-249 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (13 lines × 2) · ×9
  • Duplicated block (13 lines × 2) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:5208 — src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:5208-5220 | src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:5236-5248 — 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 `src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:5208` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsUiaProvider.cs:189 — src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsUiaProvider.cs:189-201 | src/OpenTk/DrawnUi/Accessibility/WindowsUiaProvider.cs:247-259 — before extracting anything, compare `src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsUiaProvider.cs` and `src/OpenTk/DrawnUi/Accessibility/WindowsUiaProvider.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (13 lines × 2) src/Net/DrawnUi/Super.Net.cs:105 — src/Net/DrawnUi/Super.Net.cs:105-117 | src/OpenTk/DrawnUi/Super.OpenTk.cs:140-152 — before extracting anything, compare `src/Net/DrawnUi/Super.Net.cs` and `src/OpenTk/DrawnUi/Super.OpenTk.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (13 lines × 2) src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:599 — src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:599-611 | src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:9798-9810 — 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 `src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:599` 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 (13 lines × 2) src/Shared/DrawnUi/Draw/SkiaShape.Bevel.cs:211 — src/Shared/DrawnUi/Draw/SkiaShape.Bevel.cs:211-223 | src/Shared/DrawnUi/Draw/SkiaShape.Bevel.cs:237-250 — 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, `src/Shared/DrawnUi/Draw/SkiaShape.Bevel.cs:252` calls `MoveTo`, `LineTo` and `src/Shared/DrawnUi/Draw/SkiaShape.Bevel.cs:225` 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) src/Maui/DrawnUi/Platforms/iOS/Super.iOS.cs:331 — src/Maui/DrawnUi/Platforms/iOS/Super.iOS.cs:331-346 | src/Maui/DrawnUi/Platforms/iOS/Super.iOS.cs:413-425 — 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 `src/Maui/DrawnUi/Platforms/iOS/Super.iOS.cs:331` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) src/Shared/DrawnUi/Controls/Drawer/SkiaDrawer.cs:127 — src/Shared/DrawnUi/Controls/Drawer/SkiaDrawer.cs:127-139 | src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:2991-3003 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (13 lines × 2) src/Shared/DrawnUi/Features/Effects/BaseColorFilterEffect.cs:14 — src/Shared/DrawnUi/Features/Effects/BaseColorFilterEffect.cs:14-26 | src/Shared/DrawnUi/Features/Effects/BaseImageFilterEffect.cs:14-26 — 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 (13 lines × 2) src/OpenTk/DrawnUi/CanvasHost.cs:142 — src/OpenTk/DrawnUi/CanvasHost.cs:142-154 | src/OpenTk/DrawnUi/DrawnUiWindow.cs:562-574 — 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.
D4 · Code Duplication · Duplicated block (10 lines × 3) · ×9
  • Duplicated block (10 lines × 3) src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:596 — src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:596-605 | src/Net/DrawnUi/Views/DrawnView.Net.cs:491-500 | src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:9795-9804 — before extracting anything, compare `src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs` and `src/Net/DrawnUi/Views/DrawnView.Net.cs` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:596` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (10 lines × 3) src/Maui/Samples/HelloMaui/Pages/ContactCell.cs:86 — src/Maui/Samples/HelloMaui/Pages/ContactCell.cs:86-95 | src/OpenTk/Samples/HelloOpenTk/Pages/ContactCell.cs:87-96 | src/Wpf/Samples/HelloWpf/Pages/ContactCell.cs:87-96 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/ContactCell.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/ContactCell.cs` as WHOLE FILES: 98% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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 (10 lines × 3) src/Maui/Samples/HelloMaui/Pages/FeedCell.cs:72 — src/Maui/Samples/HelloMaui/Pages/FeedCell.cs:72-81 | src/OpenTk/Samples/HelloOpenTk/Pages/FeedCell.cs:73-82 | src/Wpf/Samples/HelloWpf/Pages/FeedCell.cs:73-82 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/FeedCell.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/FeedCell.cs` as WHOLE FILES: 98% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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 (10 lines × 3) src/Maui/Samples/HelloMaui/Pages/SnappingPage.cs:37 — src/Maui/Samples/HelloMaui/Pages/SnappingPage.cs:37-46 | src/OpenTk/Samples/HelloOpenTk/Pages/SnappingPage.cs:38-47 | src/Wpf/Samples/HelloWpf/Pages/SnappingPage.cs:38-47 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/SnappingPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/SnappingPage.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 305 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (10 lines × 3) src/Maui/Samples/HelloMaui/Pages/TransformsPage.cs:409 — src/Maui/Samples/HelloMaui/Pages/TransformsPage.cs:409-418 | src/OpenTk/Samples/HelloOpenTk/Pages/TransformsPage.cs:410-419 | src/Wpf/Samples/HelloWpf/Pages/TransformsPage.cs:410-419 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/TransformsPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/TransformsPage.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/HelloMaui/Pages/TransformsPage.cs:409` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 3) src/Maui/Samples/HelloMaui/Pages/ReorderCell.cs:218 — src/Maui/Samples/HelloMaui/Pages/ReorderCell.cs:218-227 | src/OpenTk/Samples/HelloOpenTk/Pages/ReorderCell.cs:219-228 | src/Wpf/Samples/HelloWpf/Pages/ReorderCell.cs:219-228 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/ReorderCell.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/ReorderCell.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (10 lines × 3) src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:531 — src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:531-540 | src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:533-542 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:533-542 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 295 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (10 lines × 3) src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:544 — src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:544-553 | src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:546-555 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:546-555 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 295 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (10 lines × 3) src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:558 — src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:558-567 | src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:560-569 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:560-569 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 295 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (5 lines × 3) · ×9
  • Duplicated block (5 lines × 3) src/Maui/DrawnUi/Features/Fonts/SkiaFontManager.cs:70 — src/Maui/DrawnUi/Features/Fonts/SkiaFontManager.cs:70-74 | src/Maui/DrawnUi/Platforms/Apple/SkiaFontManager.Apple.cs:170-174 | src/Maui/DrawnUi/Platforms/Windows/SkiaFontManager.Windows.cs:33-37 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
  • Duplicated block (5 lines × 3) src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsUiaProvider.cs:164 — src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsUiaProvider.cs:164-168 | src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsUiaProvider.cs:224-228 | src/OpenTk/DrawnUi/Accessibility/WindowsUiaProvider.cs:220-224 — before extracting anything, compare `src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsUiaProvider.cs` and `src/OpenTk/DrawnUi/Accessibility/WindowsUiaProvider.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 3) src/Maui/Samples/HelloMaui/Pages/WarriorSprite.cs:29 — src/Maui/Samples/HelloMaui/Pages/WarriorSprite.cs:29-33 | src/OpenTk/Samples/HelloOpenTk/Pages/WarriorSprite.cs:29-33 | src/Wpf/Samples/HelloWpf/Pages/WarriorSprite.cs:29-33 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/WarriorSprite.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/WarriorSprite.cs` as WHOLE FILES: 93% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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 (5 lines × 3) src/Blazor/Samples/BlazorSandboxHybrid/BlazorSandboxHybrid.Client/Components/WasmDrawnPanel.razor:28 — src/Blazor/Samples/BlazorSandboxHybrid/BlazorSandboxHybrid.Client/Components/WasmDrawnPanel.razor:28-32 | src/Blazor/Samples/BlazorSandboxHybrid/BlazorSandboxHybrid.ServerComponents/ServerDrawnPanel.razor:28-32 | src/Blazor/Samples/BlazorSandboxServer/BlazorSandboxServer/Components/Pages/DrawnHost.razor:196-200 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
  • Duplicated block (5 lines × 3) src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:504 — src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:504-508 | src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs:505-509 | src/Wpf/Samples/HelloWpf/Pages/LayoutsPage.cs:507-511 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:504` 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 (5 lines × 3) src/Maui/Samples/HelloMaui/Pages/SnappingPage.cs:350 — src/Maui/Samples/HelloMaui/Pages/SnappingPage.cs:350-354 | src/OpenTk/Samples/HelloOpenTk/Pages/SnappingPage.cs:351-355 | src/Wpf/Samples/HelloWpf/Pages/SnappingPage.cs:351-355 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/SnappingPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/SnappingPage.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 305 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/HelloMaui/Pages/SnappingPage.cs:350` 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 (5 lines × 3) src/Net/Samples/VirtualizationHarnessDemo/DeleteGapRepro.cs:30 — src/Net/Samples/VirtualizationHarnessDemo/DeleteGapRepro.cs:30-34 | src/Net/Samples/VirtualizationHarnessDemo/DeleteGapRepro.cs:132-136 | src/Net/Samples/VirtualizationHarnessDemo/ScrollBarOverflowRepro.cs:105-111 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `src/Net/Samples/VirtualizationHarnessDemo/DeleteGapRepro.cs:30` 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 (5 lines × 3) src/Maui/Samples/HelloMaui/Pages/KeyboardPage.cs:114 — src/Maui/Samples/HelloMaui/Pages/KeyboardPage.cs:114-118 | src/OpenTk/Samples/HelloOpenTk/Pages/KeyboardPage.cs:115-119 | src/Wpf/Samples/HelloWpf/Pages/KeyboardPage.cs:115-119 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/KeyboardPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/KeyboardPage.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (5 lines × 3) src/OpenTk/Samples/Add3dGalleryOpenTk/Program.cs:87 — src/OpenTk/Samples/Add3dGalleryOpenTk/Program.cs:87-91 | src/OpenTk/Samples/HelloOpenTk/HelloApp.cs:181-185 | src/OpenTk/Samples/OpenTkPong/Program.cs:141-145 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
X18 · Disposal-pattern correctness · Owned disposable field is never released · ×9
  • Owned disposable field is never released src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:13 — `SkiaImageManager` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `_initializeSemaphore` itself (line 13), which makes that instance its own. But `_initializeSemaphore` is named in none of the methods the disposal search covered: `Dispose` (line 584) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`_initializeSemaphore?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree.
  • Owned disposable field is never released src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:1205 — `SkiaControl` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `_fadeCancelTokenSource` itself (line 1205), which makes that instance its own. But `_fadeCancelTokenSource` is named in none of the methods the disposal search covered: `Dispose` (line 7186), `Dispose` (line 7331), `StopPostAnimators` (line 3256), `OnDisposing` (line 3273), `DisposeObject` (line 4295), `DisposeObject` (line 4304), `Dispose` (line 7186), `OnLifecycleStateChanged` (line 7301), `Dispose` (line 7331), `DisposeChildren` (line 9872), `OnWillDisposeWithChildren` (line 9888) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`_fadeCancelTokenSource?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree.
  • Owned disposable field is never released src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:1272 — `SkiaControl` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `_scaleCancelTokenSource` itself (line 1272), which makes that instance its own. But `_scaleCancelTokenSource` is named in none of the methods the disposal search covered: `Dispose` (line 7186), `Dispose` (line 7331), `StopPostAnimators` (line 3256), `OnDisposing` (line 3273), `DisposeObject` (line 4295), `DisposeObject` (line 4304), `Dispose` (line 7186), `OnLifecycleStateChanged` (line 7301), `Dispose` (line 7331), `DisposeChildren` (line 9872), `OnWillDisposeWithChildren` (line 9888) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`_scaleCancelTokenSource?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree.
  • Owned disposable field is never released src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:1337 — `SkiaControl` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `_translateCancelTokenSource` itself (line 1337), which makes that instance its own. But `_translateCancelTokenSource` is named in none of the methods the disposal search covered: `Dispose` (line 7186), `Dispose` (line 7331), `StopPostAnimators` (line 3256), `OnDisposing` (line 3273), `DisposeObject` (line 4295), `DisposeObject` (line 4304), `Dispose` (line 7186), `OnLifecycleStateChanged` (line 7301), `Dispose` (line 7331), `DisposeChildren` (line 9872), `OnWillDisposeWithChildren` (line 9888) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`_translateCancelTokenSource?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree.
  • Owned disposable field is never released src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:1404 — `SkiaControl` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `_rotateCancelTokenSource` itself (line 1404), which makes that instance its own. But `_rotateCancelTokenSource` is named in none of the methods the disposal search covered: `Dispose` (line 7186), `Dispose` (line 7331), `StopPostAnimators` (line 3256), `OnDisposing` (line 3273), `DisposeObject` (line 4295), `DisposeObject` (line 4304), `Dispose` (line 7186), `OnLifecycleStateChanged` (line 7301), `Dispose` (line 7331), `DisposeChildren` (line 9872), `OnWillDisposeWithChildren` (line 9888) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`_rotateCancelTokenSource?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree.
  • Owned disposable field is never released src/Shared/DrawnUi/Features/Animators/AnimatorBase.cs:88 — `AnimatorBase` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `_cancellationTokenSource` itself (line 88), which makes that instance its own. But `_cancellationTokenSource` is named in none of the methods the disposal search covered: `Dispose` (line 204), `Stop` (line 169) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`_cancellationTokenSource?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree.
  • Owned disposable field is never released src/Shared/DrawnUi/Views/DrawnView.cs:2471 — `DrawnView` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `semaphoreOffscreenProcess` itself (line 2471), which makes that instance its own. But `semaphoreOffscreenProcess` is named in none of the methods the disposal search covered: `Dispose` (line 1466), `Dispose` (line 1474), `Dispose` (line 1466), `Dispose` (line 1474), `WillDispose` (line 1500), `OnDispose` (line 1508) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`semaphoreOffscreenProcess?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree.
  • Owned disposable field is never released src/OpenTk/DrawnUi/CanvasHost.cs:24 — `CanvasHost` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `_drawable` itself (line 24), which makes that instance its own. But `_drawable` is named in none of the methods the disposal search covered: `Dispose` (line 122) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`_drawable?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree.
  • Owned disposable field is never released src/Wpf/Drawnui.Wpf/Views/DrawnUiElement.cs:39 — `DrawnUiElement` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `_drawable` itself (line 39), which makes that instance its own. But `_drawable` is named in none of the methods the disposal search covered: `Dispose` (line 474), `ReleaseSurface` (line 520) — that is `Dispose` plus every method `Dispose` calls BY NAME, so a release reached through an interface, a delegate or a base class is not followed and is worth checking before acting. On what was read, the type's disposal releases everything except the one thing it owns. A disposable the owner never disposes is held until finalization if its type has a finalizer, and forever if it does not — which for a synchronisation primitive, a timer, a stream or a handle means the resource accumulates once per instance for the life of the process. Release it in `Dispose` (`_drawable?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree.
X3 · Exception handling · Swallowed exception (caught, then discarded) · ×9
  • Swallowed exception (caught, then discarded) src/Blazor/DrawnUi/Features/Keyboard/KeyboardManager.Blazor.cs:35 — `ContinueWith` with a continuation that does nothing discards the antecedent's failure — the task it returns completes successfully whether or not the work faulted, so the failure vanishes with no log and no rethrow. Await the task and handle the exception, or report the fault from the continuation (`t.Exception`).
  • Swallowed exception (caught, then discarded) src/Blazor/DrawnUi/Features/Keyboard/KeyboardManager.Blazor.cs:47 — `ContinueWith` with a continuation that does nothing discards the antecedent's failure — the task it returns completes successfully whether or not the work faulted, so the failure vanishes with no log and no rethrow. Await the task and handle the exception, or report the fault from the continuation (`t.Exception`).
  • Swallowed exception (caught, then discarded) src/Shared/DrawnUi/Draw/SkiaShape.Shared.cs:115 — `catch` 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) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:1266 — `catch` 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) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:1330 — `catch` 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) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:1397 — `catch` 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) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:1458 — `catch` 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) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:2936 — `catch` 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) src/Shared/DrawnUi/Internals/Helpers/Looper.cs:185 — `catch` 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.
D4 · Code Duplication · Duplicated block (17 lines × 2) · ×8
  • Duplicated block (17 lines × 2) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:940 — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:940-956 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:1129-1145 — 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 `src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:940` 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 (17 lines × 2) src/Shared/DrawnUi/Draw/SkiaShape.cs:127 — src/Shared/DrawnUi/Draw/SkiaShape.cs:127-143 | src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:4748-4764 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (17 lines × 2) src/Maui/DrawnUi/Platforms/Windows/SoftwareWindowsCanvas.cs:243 — src/Maui/DrawnUi/Platforms/Windows/SoftwareWindowsCanvas.cs:243-259 | src/Maui/DrawnUi/Platforms/Windows/WinCanvas.cs:190-206 — before extracting anything, compare `src/Maui/DrawnUi/Platforms/Windows/SoftwareWindowsCanvas.cs` and `src/Maui/DrawnUi/Platforms/Windows/WinCanvas.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 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 (17 lines × 2) src/Maui/DrawnUi/Platforms/Apple/SkiaMauiElement.Apple.cs:127 — src/Maui/DrawnUi/Platforms/Apple/SkiaMauiElement.Apple.cs:127-143 | src/Maui/DrawnUi/Platforms/Windows/SkiaMauiElement.Windows.cs:207-224 — 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 `src/Maui/DrawnUi/Platforms/Apple/SkiaMauiElement.Apple.cs:127` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) src/Maui/DrawnUi/Controls/EditText/SkiaMauiEditor.cs:61 — src/Maui/DrawnUi/Controls/EditText/SkiaMauiEditor.cs:61-77 | src/Maui/DrawnUi/Controls/EditText/SkiaMauiEntry.cs:47-63 — before extracting anything, compare `src/Maui/DrawnUi/Controls/EditText/SkiaMauiEditor.cs` and `src/Maui/DrawnUi/Controls/EditText/SkiaMauiEntry.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 98 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 (17 lines × 2) src/Maui/Samples/Sandbox/Views/MainPageXaml2Pdf.xaml.cs:112 — src/Maui/Samples/Sandbox/Views/MainPageXaml2Pdf.xaml.cs:112-128 | src/Maui/Samples/Sandbox/Views/MainPageXaml2PdfPages.xaml.cs:159-175 — before extracting anything, compare `src/Maui/Samples/Sandbox/Views/MainPageXaml2Pdf.xaml.cs` and `src/Maui/Samples/Sandbox/Views/MainPageXaml2PdfPages.xaml.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 66 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, `src/Maui/Samples/Sandbox/Views/MainPageXaml2Pdf.xaml.cs:132` calls `DrawingContext`, `SKRect` and `src/Maui/Samples/Sandbox/Views/MainPageXaml2PdfPages.xaml.cs:179` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (17 lines × 2) src/Maui/Samples/FastRepro/ViewModels/NewsViewModel.cs:39 — src/Maui/Samples/FastRepro/ViewModels/NewsViewModel.cs:39-55 | src/Maui/Samples/Tutorials/Tutorials/NewsFeed/ViewModels/NewsViewModel.cs:75-91 — 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 `src/Maui/Samples/FastRepro/ViewModels/NewsViewModel.cs:39` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `src/Maui/Samples/Tutorials/Tutorials/NewsFeed/ViewModels/NewsViewModel.cs:73` calls `Delay` and `src/Maui/Samples/FastRepro/ViewModels/NewsViewModel.cs:37` 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 (17 lines × 2) src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:573 — src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:573-589 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:573-589 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs` as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 395 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D35 · Change Coupling · Change coupling · ×7
  • Change coupling: SkiaView.cs ↔ SkiaViewAccelerated.cs src/Maui/DrawnUi/Views/SkiaView.cs:1 — `src/Maui/DrawnUi/Views/SkiaView.cs` and `src/Maui/DrawnUi/Views/SkiaViewAccelerated.cs` change together 88% of the time (28 of the 32 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package — so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 28 shared commits counted here, the most recent 3 are `9700d539` Android stamps the Choreographer vsync for animators, views split the…; `f5aab5e1` tune maxfps; `04a64fc9` new fps count — run `git show` on any of them.
  • Change coupling: BrowserHost.cs ↔ drawnui-web.js src/Wasm/DrawnUi/BrowserHost.cs:1 — `src/Wasm/DrawnUi/BrowserHost.cs` and `src/Wasm/DrawnUi/wwwroot/drawnui-web.js` change together 75% of the time (9 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit — they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary — an event or message name, a route, a serialised shape — that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other's build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are `85fc7cbe` Keyboard follow on the web heads (SkiaScroll.AdaptToKeyboardAuto, dra…; `3c675918` DrawnUi.Web: a focused SkiaEditor has a real text input behind it, so…; `da503fc4` Web and Blazor heads: where devicePixelRatio and the canvas's device-… — run `git show` on any of them.
  • Change coupling: WebInput.cs ↔ drawnui-web.js src/Wasm/DrawnUi/WebInput.cs:1 — `src/Wasm/DrawnUi/WebInput.cs` and `src/Wasm/DrawnUi/wwwroot/drawnui-web.js` change together 64% of the time (14 of the 22 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit — they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary — an event or message name, a route, a serialised shape — that each side currently spells out on its own, which is exactly why a change to one drags the other. Declare that contract once where both sides read it (a shared schema, a generated constants file, an interface-definition file) so a change on one side fails the other's build instead of drifting silently; where the surface is too small to be worth that, name the counterpart in a comment on both sides so the next reader finds it. There is nothing here to merge. You can check this without leaving the row: of the 14 shared commits counted here, the most recent 3 are `ab658695` Pure Wasm: pointer events are no longer dated back by the browser eve…; `ae6bd9ef` 3D viewer double tap judged by when the taps happened (SkiaGesturesPa…; `f90bbc36` DrawnUi.Web: a tap on an editor gives its text input the page focus i… — run `git show` on any of them.
  • Change coupling: SkiaDynamicDrawnCell.cs ↔ SkiaControl.Cache.cs src/Shared/DrawnUi/Controls/RecycledCells/SkiaDynamicDrawnCell.cs:1 — `src/Shared/DrawnUi/Controls/RecycledCells/SkiaDynamicDrawnCell.cs` and `src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs` change together 64% of the time (7 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder — so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are `076023fb` Recycled double-buffered cells: a cell that keeps its pixels across a…; `cb3dd01d` Cells regression fix; `4045d2dc` dont kill cahe for ImageDoubleBuffered — run `git show` on any of them.
  • Change coupling: SkiaRadioButton.cs ↔ SkiaSlider.cs src/Shared/DrawnUi/Controls/RadioButtons/SkiaRadioButton.cs:1 — `src/Shared/DrawnUi/Controls/RadioButtons/SkiaRadioButton.cs` and `src/Shared/DrawnUi/Controls/Slider/SkiaSlider.cs` change together 50% of the time (8 of the 16 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder — so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are `5c1288f7` Default look: blue accent #3B82F6 for every control without a Control…; `17df5a6e` Input off: RespondsToGestures on every interactive control, MAUI IsEn…; `766d2f75` Hover for lists (ReceivesHover, HoverChanged, OnHovered); ImageCompos… — run `git show` on any of them.
  • Change coupling: SkiaToggle.cs ↔ SkiaControl.Shared.cs src/Shared/DrawnUi/Controls/Switches/SkiaToggle.cs:1 — `src/Shared/DrawnUi/Controls/Switches/SkiaToggle.cs` and `src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs` change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder — so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are `17df5a6e` Input off: RespondsToGestures on every interactive control, MAUI IsEn…; `766d2f75` Hover for lists (ReceivesHover, HoverChanged, OnHovered); ImageCompos…; `57ae1da4` a11y: class defaults, stable ids, disabled state, scroll focused node… — run `git show` on any of them.
  • Change coupling: SkiaSlider.cs ↔ SkiaToggle.cs src/Shared/DrawnUi/Controls/Slider/SkiaSlider.cs:1 — `src/Shared/DrawnUi/Controls/Slider/SkiaSlider.cs` and `src/Shared/DrawnUi/Controls/Switches/SkiaToggle.cs` change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder — so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are `17df5a6e` Input off: RespondsToGestures on every interactive control, MAUI IsEn…; `766d2f75` Hover for lists (ReceivesHover, HoverChanged, OnHovered); ImageCompos…; `57ae1da4` a11y: class defaults, stable ids, disabled state, scroll focused node… — run `git show` on any of them.
D4 · Code Duplication · Edited copy of a member (7 corresponding lines) · ×7
  • Edited copy of a member (7 corresponding lines) src/OpenTk/DrawnUi/Accessibility/LinuxAtSpiProvider.cs:359 — src/OpenTk/DrawnUi/Accessibility/LinuxAtSpiProvider.cs:359-365 | src/OpenTk/DrawnUi/Accessibility/WindowsUiaProvider.cs:380-386 — 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) src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:440 — src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:440-449 | src/Net/DrawnUi/Features/SkiaImageManager.Net.cs:393-399 — 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) src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:517 — src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:517-523 | src/Net/DrawnUi/Features/SkiaImageManager.Net.cs:451-457 — 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) src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:475 — src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:475-484 | src/Net/DrawnUi/Features/SkiaImageManager.Net.cs:418-424 — 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) src/OpenTk/Samples/HelloOpenTk/Pages/ShellPage.cs:390 — src/OpenTk/Samples/HelloOpenTk/Pages/ShellPage.cs:390-396 | src/Wpf/Samples/HelloWpf/Pages/ShellPage.cs:390-396 — 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) src/Net/Samples/VirtualizationHarnessDemo/CachedJumpRepro.cs:71 — src/Net/Samples/VirtualizationHarnessDemo/CachedJumpRepro.cs:71-77 | src/Net/Samples/VirtualizationHarnessDemo/RealChatJumpRepro.cs:39-45 — 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) src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:95 — src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:95-101 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs:89-95 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (23 lines × 2) · ×7
  • Duplicated block (23 lines × 2) src/Maui/DrawnUi/Internals/Extensions/DrawnExtensions.cs:499 — src/Maui/DrawnUi/Internals/Extensions/DrawnExtensions.cs:499-521 | src/Maui/DrawnUi/Internals/Extensions/DrawnExtensions.cs:543-565 — 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 `src/Maui/DrawnUi/Internals/Extensions/DrawnExtensions.cs:499` 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 `owner` to `this SkiaControl` in one and `this SkiaLabel` 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 (23 lines × 2) src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Services/NewsDataProvider.cs:53 — src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Services/NewsDataProvider.cs:53-75 | src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Services/NewsDataProvider.cs:53-75 — before extracting anything, compare `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Services/NewsDataProvider.cs` and `src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Services/NewsDataProvider.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (23 lines × 2) src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Services/NewsDataProvider.cs:119 — src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Services/NewsDataProvider.cs:119-141 | src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Services/NewsDataProvider.cs:119-141 — before extracting anything, compare `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Services/NewsDataProvider.cs` and `src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Services/NewsDataProvider.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (23 lines × 2) src/Maui/Samples/FastRepro/Services/NewsDataProvider.cs:53 — src/Maui/Samples/FastRepro/Services/NewsDataProvider.cs:53-75 | src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Services/NewsDataProvider.cs:53-75 — before extracting anything, compare `src/Maui/Samples/FastRepro/Services/NewsDataProvider.cs` and `src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Services/NewsDataProvider.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (23 lines × 2) src/Maui/Samples/FastRepro/Services/NewsDataProvider.cs:119 — src/Maui/Samples/FastRepro/Services/NewsDataProvider.cs:119-141 | src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Services/NewsDataProvider.cs:119-141 — before extracting anything, compare `src/Maui/Samples/FastRepro/Services/NewsDataProvider.cs` and `src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Services/NewsDataProvider.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (23 lines × 2) src/OpenTk/Samples/HelloOpenTk/Pages/TransformsPage.cs:289 — src/OpenTk/Samples/HelloOpenTk/Pages/TransformsPage.cs:289-311 | src/Wpf/Samples/HelloWpf/Pages/TransformsPage.cs:289-311 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/TransformsPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/TransformsPage.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 137 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (23 lines × 2) src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:428 — src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:428-450 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs:432-454 — before extracting anything, compare `src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs` and `src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 366 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (22 lines × 2) · ×7
  • Duplicated block (22 lines × 2) src/Maui/DrawnUi/Platforms/Windows/SoftwareWindowsCanvas.cs:204 — src/Maui/DrawnUi/Platforms/Windows/SoftwareWindowsCanvas.cs:204-225 | src/Maui/DrawnUi/Platforms/Windows/WinCanvas.cs:151-172 — before extracting anything, compare `src/Maui/DrawnUi/Platforms/Windows/SoftwareWindowsCanvas.cs` and `src/Maui/DrawnUi/Platforms/Windows/WinCanvas.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 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 (22 lines × 2) src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs:157 — src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs:157-178 | src/Net/DrawnUi/Draw/SkiaEditor.Net.cs:150-171 — before extracting anything, compare `src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs` and `src/Net/DrawnUi/Draw/SkiaEditor.Net.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 153 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (22 lines × 2) src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs:239 — src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs:239-260 | src/Net/DrawnUi/Draw/SkiaEditor.Net.cs:232-253 — before extracting anything, compare `src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs` and `src/Net/DrawnUi/Draw/SkiaEditor.Net.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 153 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (22 lines × 2) src/Blazor/DrawnUi/Internals/Core/SkiaView.cs:65 — src/Blazor/DrawnUi/Internals/Core/SkiaView.cs:65-86 | src/Blazor/DrawnUi/Internals/Core/SkiaViewAccelerated.cs:45-66 — before extracting anything, compare `src/Blazor/DrawnUi/Internals/Core/SkiaView.cs` and `src/Blazor/DrawnUi/Internals/Core/SkiaViewAccelerated.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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 (22 lines × 2) src/OpenTk/DrawnUi/CanvasHost.cs:68 — src/OpenTk/DrawnUi/CanvasHost.cs:68-89 | src/OpenTk/DrawnUi/DrawnUiWindow.cs:514-535 — 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 (22 lines × 2) src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs:130 — src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs:130-151 | src/Net/Samples/VirtualizationHarnessDemo/MeasureVisibleWindowRepro.cs:133-154 — before extracting anything, compare `src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs` and `src/Net/Samples/VirtualizationHarnessDemo/MeasureVisibleWindowRepro.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 122 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 (22 lines × 2) src/OpenTk/Samples/HelloOpenTk/Pages/AnimationsPage.cs:187 — src/OpenTk/Samples/HelloOpenTk/Pages/AnimationsPage.cs:187-208 | src/Wpf/Samples/HelloWpf/Pages/AnimationsPage.cs:187-208 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/AnimationsPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/AnimationsPage.cs` as WHOLE FILES: 99% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (18 lines × 2) · ×7
  • Duplicated block (18 lines × 2) src/Blazor/DrawnUi/Views/Canvas.razor:789 — src/Blazor/DrawnUi/Views/Canvas.razor:789-806 | src/Maui/DrawnUi/Views/Canvas.cs:1159-1176 — 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 `src/Blazor/DrawnUi/Views/Canvas.razor:789` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) src/Blazor/DrawnUi/Internals/Core/FluentExtensions.Blazor.cs:41 — src/Blazor/DrawnUi/Internals/Core/FluentExtensions.Blazor.cs:41-58 | src/Wasm/DrawnUi/FluentExtensions.Wasm.cs:39-56 — before extracting anything, compare `src/Blazor/DrawnUi/Internals/Core/FluentExtensions.Blazor.cs` and `src/Wasm/DrawnUi/FluentExtensions.Wasm.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (18 lines × 2) src/Maui/DrawnUi/Views/SkiaView.cs:123 — src/Maui/DrawnUi/Views/SkiaView.cs:123-140 | src/Maui/DrawnUi/Views/SkiaViewAccelerated.cs:241-258 — before extracting anything, compare `src/Maui/DrawnUi/Views/SkiaView.cs` and `src/Maui/DrawnUi/Views/SkiaViewAccelerated.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 109 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 (18 lines × 2) src/Maui/Addons/DrawnUi.Maui.Add3d/Apple/MetalRenderer3D.cs:337 — src/Maui/Addons/DrawnUi.Maui.Add3d/Apple/MetalRenderer3D.cs:337-354 | src/Maui/Addons/DrawnUi.Maui.Add3d/Platforms/Android/VulkanRenderer3D.cs:653-670 — 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 `src/Maui/Addons/DrawnUi.Maui.Add3d/Apple/MetalRenderer3D.cs:337` 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) src/Maui/DrawnUi/Views/SkiaView.cs:59 — src/Maui/DrawnUi/Views/SkiaView.cs:59-76 | src/Maui/DrawnUi/Views/SkiaViewAccelerated.cs:29-47 — before extracting anything, compare `src/Maui/DrawnUi/Views/SkiaView.cs` and `src/Maui/DrawnUi/Views/SkiaViewAccelerated.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 109 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 (18 lines × 2) src/Maui/Samples/Sandbox/Views/MainPageXaml2Pdf.xaml.cs:92 — src/Maui/Samples/Sandbox/Views/MainPageXaml2Pdf.xaml.cs:92-109 | src/Maui/Samples/Sandbox/Views/MainPageXaml2PdfPages.xaml.cs:135-152 — before extracting anything, compare `src/Maui/Samples/Sandbox/Views/MainPageXaml2Pdf.xaml.cs` and `src/Maui/Samples/Sandbox/Views/MainPageXaml2PdfPages.xaml.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 66 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 `src/Maui/Samples/Sandbox/Views/MainPageXaml2Pdf.xaml.cs:92` 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, `src/Maui/Samples/Sandbox/Views/MainPageXaml2PdfPages.xaml.cs:153` calls `foreach` and `src/Maui/Samples/Sandbox/Views/MainPageXaml2Pdf.xaml.cs:110` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (18 lines × 2) src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs:139 — src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs:139-156 | src/Net/Samples/VirtualizationHarnessDemo/PreparedViewsRepro.cs:152-169 — before extracting anything, compare `src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs` and `src/Net/Samples/VirtualizationHarnessDemo/PreparedViewsRepro.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 103 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 `src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs:139` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (15 lines × 3) · ×7
  • Duplicated block (15 lines × 3) src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:330 — src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:330-344 | src/Maui/DrawnUi/Views/DrawnView.Maui.cs:121-139 | src/Net/DrawnUi/Views/DrawnView.Net.cs:271-285 — before extracting anything, compare `src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs` and `src/Net/DrawnUi/Views/DrawnView.Net.cs` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (15 lines × 3) src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:726 — src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:726-740 | src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:728-742 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:728-742 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 295 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (15 lines × 3) src/Maui/Samples/HelloMaui/Pages/TransformsPage.cs:314 — src/Maui/Samples/HelloMaui/Pages/TransformsPage.cs:314-328 | src/OpenTk/Samples/HelloOpenTk/Pages/TransformsPage.cs:315-329 | src/Wpf/Samples/HelloWpf/Pages/TransformsPage.cs:315-329 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/TransformsPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/TransformsPage.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (15 lines × 3) src/Maui/Samples/HelloMaui/Pages/ReorderCell.cs:19 — src/Maui/Samples/HelloMaui/Pages/ReorderCell.cs:19-33 | src/OpenTk/Samples/HelloOpenTk/Pages/ReorderCell.cs:20-34 | src/Wpf/Samples/HelloWpf/Pages/ReorderCell.cs:20-34 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/ReorderCell.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/ReorderCell.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/HelloMaui/Pages/ReorderCell.cs:19` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 3) src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:264 — src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:264-278 | src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:266-280 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:266-280 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 295 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (15 lines × 3) src/Maui/Samples/HelloMaui/Pages/TransformsPage.cs:247 — src/Maui/Samples/HelloMaui/Pages/TransformsPage.cs:247-261 | src/OpenTk/Samples/HelloOpenTk/Pages/TransformsPage.cs:248-262 | src/Wpf/Samples/HelloWpf/Pages/TransformsPage.cs:248-262 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/TransformsPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/TransformsPage.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/HelloMaui/Pages/TransformsPage.cs:247` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 3) src/Maui/Samples/HelloMaui/Pages/TransformsPage.cs:270 — src/Maui/Samples/HelloMaui/Pages/TransformsPage.cs:270-284 | src/OpenTk/Samples/HelloOpenTk/Pages/TransformsPage.cs:271-285 | src/Wpf/Samples/HelloWpf/Pages/TransformsPage.cs:271-285 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/TransformsPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/TransformsPage.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/HelloMaui/Pages/TransformsPage.cs:270` 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.
D3 · God Classes · ClassTooLong · ×6
  • ClassTooLong: SkiaButton src/Shared/DrawnUi/Controls/Button/SkiaButton.cs — ClassTooLong — 726 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 326 over it, 1.82× 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: SkiaSvg src/Shared/DrawnUi/Draw/Svg/SkiaSvg.cs — ClassTooLong — 597 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 197 over it, 1.49× 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: SkiaRichLabel src/Shared/DrawnUi/Controls/Labels/SkiaMarkdownLabel.CommonMark.cs — ClassTooLong — 571 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods, declared across 2 files: Labels/SkiaMarkdownLabel.CommonMark.cs (13), Labels/SkiaRichLabel.cs (12). The bar is 400 significant lines; this is 171 over it, 1.43× 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: SKMeshSpecification src/Shared/DrawnUi/Features/Meshes/SKMeshSpecification.cs — ClassTooLong — 570 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 170 over it, 1.43× 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: SkiaPicker src/Shared/DrawnUi/Controls/Pickers/SkiaPicker.cs — ClassTooLong — 497 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods, declared across 2 files: Pickers/SkiaPicker.cs (24), Compat/SkiaPicker.Blazor.cs (1). The bar is 400 significant lines; this is 97 over it, 1.24× 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: SkiaVulkanTextureView src/Maui/DrawnUi/Platforms/Android/Vulkan/SkiaVulkanTextureView.cs — ClassTooLong — 469 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 69 over it, 1.17× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
D4 · Code Duplication · Edited copy of a member (5 corresponding lines) · ×6
  • Edited copy of a member (5 corresponding lines) src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:361 — src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:361-367 | src/Net/DrawnUi/Features/SkiaImageManager.Net.cs:324-328 — 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) src/OpenTk/DrawnUi/DesktopInputHandler.cs:14 — src/OpenTk/DrawnUi/DesktopInputHandler.cs:14-18 | src/OpenTk/DrawnUi/DrawnUiWindow.cs:419-424 — 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) src/OpenTk/Samples/OpenTkPong/Program.cs:134 — src/OpenTk/Samples/OpenTkPong/Program.cs:134-138 | tpls/OpenTK/EmptyCode/MainWindow.cs:147-151 — 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) src/Maui/Samples/HelloMaui/Pages/CellsPage.cs:111 — src/Maui/Samples/HelloMaui/Pages/CellsPage.cs:111-120 | src/Maui/Samples/HelloMaui/Pages/UnevenCellsPage.cs:173-177 — 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) src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs:687 — src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs:687-691 | src/Maui/Samples/FastRepro/Views/Sprites/SpriteSnappedBoardPage.cs:287-291 — 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) src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs:273 — src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs:273-277 | src/Maui/Samples/FastRepro/SkiaTest/MotionMarkScene.cs:276-280 — These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (26 lines × 2) · ×6
  • Duplicated block (26 lines × 2) src/Maui/DrawnUi/Features/Images/SkiaImageManager.cs:101 — src/Maui/DrawnUi/Features/Images/SkiaImageManager.cs:101-126 | src/Maui/DrawnUi/Features/Images/SkiaImageManager.cs:152-177 — 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 `src/Maui/DrawnUi/Features/Images/SkiaImageManager.cs:101` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (26 lines × 2) src/Maui/DrawnUi/Views/Canvas.cs:1178 — src/Maui/DrawnUi/Views/Canvas.cs:1178-1203 | src/Maui/DrawnUi/Views/Canvas.cs:1216-1241 — 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 `src/Maui/DrawnUi/Views/Canvas.cs:1178` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (26 lines × 2) src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs:954 — src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs:954-979 | src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs:987-1012 — 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 (26 lines × 2) src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/NewsViewModel.cs:123 — src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/NewsViewModel.cs:123-148 | src/Maui/Samples/Tutorials/Tutorials/NewsFeed/ViewModels/NewsViewModel.cs:143-168 — before extracting anything, compare `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/NewsViewModel.cs` and `src/Maui/Samples/Tutorials/Tutorials/NewsFeed/ViewModels/NewsViewModel.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (26 lines × 2) src/OpenTk/Samples/HelloOpenTk/Pages/RootPage.cs:216 — src/OpenTk/Samples/HelloOpenTk/Pages/RootPage.cs:216-241 | src/Wpf/Samples/HelloWpf/Pages/RootPage.cs:216-241 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/RootPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/RootPage.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (26 lines × 2) src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs:149 — src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs:149-174 | src/Maui/Samples/FastRepro/SkiaTest/MotionMarkScene.cs:152-177 — before extracting anything, compare `src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs` and `src/Maui/Samples/FastRepro/SkiaTest/MotionMarkScene.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 107 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 `src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs:149` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (10 lines × 2) · ×6
  • Duplicated block (10 lines × 2) src/SharedNet/Internals/Extensions/FluentExtensions.NonMaui.cs:101 — src/SharedNet/Internals/Extensions/FluentExtensions.NonMaui.cs:101-110 | src/SharedNet/Internals/Extensions/FluentExtensions.NonMaui.cs:129-138 — 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) src/Blazor/DrawnUi/Internals/Core/SkiaFontManager.cs:42 — src/Blazor/DrawnUi/Internals/Core/SkiaFontManager.cs:42-51 | src/Wasm/DrawnUi/SkiaFontManager.Web.cs:53-62 — before extracting anything, compare `src/Blazor/DrawnUi/Internals/Core/SkiaFontManager.cs` and `src/Wasm/DrawnUi/SkiaFontManager.Web.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/DrawnUi/Internals/Core/SkiaFontManager.cs:42` 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) src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:296 — src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:296-305 | src/Net/DrawnUi/Views/Canvas.Gestures.Net.cs:251-260 — before extracting anything, compare `src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs` and `src/Net/DrawnUi/Views/Canvas.Gestures.Net.cs` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 184 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (10 lines × 2) src/Net/DrawnUi/Super.Net.cs:92 — src/Net/DrawnUi/Super.Net.cs:92-101 | src/OpenTk/DrawnUi/Super.OpenTk.cs:127-136 — before extracting anything, compare `src/Net/DrawnUi/Super.Net.cs` and `src/OpenTk/DrawnUi/Super.OpenTk.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (10 lines × 2) src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs:225 — src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs:225-234 | src/Maui/Samples/FastRepro/SkiaTest/MotionMarkScene.cs:228-237 — before extracting anything, compare `src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs` and `src/Maui/Samples/FastRepro/SkiaTest/MotionMarkScene.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 107 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (10 lines × 2) src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs:580 — src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs:580-589 | src/Wpf/Samples/HelloWpf/Pages/LayoutsPage.cs:582-591 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/LayoutsPage.cs` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 118 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (13 lines × 3) · ×6
  • Duplicated block (13 lines × 3) src/Blazor/DrawnUi/Draw/SkiaShape.Blazor.cs:35 — src/Blazor/DrawnUi/Draw/SkiaShape.Blazor.cs:35-47 | src/Maui/DrawnUi/Draw/SkiaShape.Maui.cs:41-53 | src/Net/DrawnUi/Draw/SkiaShape.Net.cs:20-32 — before extracting anything, compare `src/Blazor/DrawnUi/Draw/SkiaShape.Blazor.cs` and `src/Maui/DrawnUi/Draw/SkiaShape.Maui.cs` as WHOLE FILES: 85% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `src/Maui/DrawnUi/Draw/SkiaShape.Maui.cs:55` calls `TypeConverter` and `src/Blazor/DrawnUi/Draw/SkiaShape.Blazor.cs:50` 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 (13 lines × 3) src/OpenTk/Samples/HelloOpenTk/Pages/RescalingLayout.cs:35 — src/OpenTk/Samples/HelloOpenTk/Pages/RescalingLayout.cs:35-47 | src/Shared/Samples/Add3dGallery.Shared/Pages/RescalingLayout.cs:31-43 | src/Wpf/Samples/HelloWpf/Pages/RescalingLayout.cs:35-47 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/RescalingLayout.cs` and `src/Shared/Samples/Add3dGallery.Shared/Pages/RescalingLayout.cs` as WHOLE FILES: 94% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (13 lines × 3) src/Maui/Samples/HelloMaui/Pages/ContactCell.cs:21 — src/Maui/Samples/HelloMaui/Pages/ContactCell.cs:21-33 | src/OpenTk/Samples/HelloOpenTk/Pages/ContactCell.cs:22-34 | src/Wpf/Samples/HelloWpf/Pages/ContactCell.cs:22-34 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/ContactCell.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/ContactCell.cs` as WHOLE FILES: 98% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (13 lines × 3) src/Maui/Samples/HelloMaui/Pages/AnimationsPage.cs:11 — src/Maui/Samples/HelloMaui/Pages/AnimationsPage.cs:11-23 | src/OpenTk/Samples/HelloOpenTk/Pages/AnimationsPage.cs:12-24 | src/Wpf/Samples/HelloWpf/Pages/AnimationsPage.cs:12-24 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/AnimationsPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/AnimationsPage.cs` as WHOLE FILES: 99% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/HelloMaui/Pages/AnimationsPage.cs:11` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 3) src/Maui/Samples/HelloMaui/Pages/ImagesPage.cs:246 — src/Maui/Samples/HelloMaui/Pages/ImagesPage.cs:246-258 | src/OpenTk/Samples/HelloOpenTk/Pages/ImagesPage.cs:247-259 | src/Wpf/Samples/HelloWpf/Pages/ImagesPage.cs:247-259 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/ImagesPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/ImagesPage.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (13 lines × 3) src/Maui/Samples/HelloMaui/Pages/SpritesPage.cs:183 — src/Maui/Samples/HelloMaui/Pages/SpritesPage.cs:183-195 | src/OpenTk/Samples/HelloOpenTk/Pages/SpritesPage.cs:184-196 | src/Wpf/Samples/HelloWpf/Pages/SpritesPage.cs:184-196 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/SpritesPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/SpritesPage.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
X20 · Mistyped argument guard · Argument guard throws the exception its own condition disproves · ×6
  • Argument guard throws the exception its own condition disproves src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:2990 — The guard on line 2989 rejects `result` and line 2990 reports that rejection as `ArgumentNullException` — but the condition's own test `result.Points.Length == 0` is true of a value that is NOT null: it reads a member of `result`, so it can only be evaluated on a non-null `result` (a null one would throw `NullReferenceException` before the guard decided anything). So a caller whose `result` is present but fails that test is told it was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition.
  • Argument guard throws the exception its own condition disproves src/SharedNet/Internals/Core/GridLength.cs:194 — The guard on line 193 rejects `eventName` and line 194 reports that rejection as `ArgumentNullException` — but the condition's own test `string.IsNullOrEmpty(eventName)` is true of a value that is NOT null: it is satisfied by an EMPTY `eventName`, and on that path `eventName` was already proven non-null by the very expression that decided it (`||` short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition.
  • Argument guard throws the exception its own condition disproves src/SharedNet/Internals/Core/GridLength.cs:212 — The guard on line 211 rejects `eventName` and line 212 reports that rejection as `ArgumentNullException` — but the condition's own test `string.IsNullOrEmpty(eventName)` is true of a value that is NOT null: it is satisfied by an EMPTY `eventName`, and on that path `eventName` was already proven non-null by the very expression that decided it (`||` short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition.
  • Argument guard throws the exception its own condition disproves src/SharedNet/Internals/Core/GridLength.cs:279 — The guard on line 278 rejects `eventName` and line 279 reports that rejection as `ArgumentNullException` — but the condition's own test `string.IsNullOrEmpty(eventName)` is true of a value that is NOT null: it is satisfied by an EMPTY `eventName`, and on that path `eventName` was already proven non-null by the very expression that decided it (`||` short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition.
  • Argument guard throws the exception its own condition disproves src/SharedNet/Internals/Core/GridLength.cs:297 — The guard on line 296 rejects `eventName` and line 297 reports that rejection as `ArgumentNullException` — but the condition's own test `string.IsNullOrEmpty(eventName)` is true of a value that is NOT null: it is satisfied by an EMPTY `eventName`, and on that path `eventName` was already proven non-null by the very expression that decided it (`||` short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition.
  • Argument guard throws the exception its own condition disproves src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:2220 — The guard on line 2219 rejects `route` and line 2220 reports that rejection as `ArgumentNullException` — but the condition's own test `string.IsNullOrWhiteSpace(route)` is true of a value that is NOT null: it is satisfied by an EMPTY `route`, and on that path `route` was already proven non-null by the very expression that decided it (`||` short-circuits, so the null test to its left had to be false to get here). So a caller who passes a valid empty argument is told a parameter was null. That is not a wording problem: the exception type is the contract. A caller catching `ArgumentNullException` to handle a real null swallows this case with it, and whoever reads the stack trace later is told a failure the source disproves. .NET separates the two on purpose — `ArgumentNullException.ThrowIfNull` and `ArgumentException.ThrowIfNullOrEmpty` are two helpers because they are two failures. Throw `ArgumentException` (or `ArgumentOutOfRangeException` for a bound) for what the condition actually tests, or split the guard and throw each on its own condition.
D4 · Code Duplication · Edited copy of a member (11 corresponding lines) · ×5
  • Edited copy of a member (11 corresponding lines) src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs:333 — src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs:333-343 | src/Net/DrawnUi/Draw/SkiaEditor.Net.cs:281-293 — 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) src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:452 — src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:452-468 | src/Net/DrawnUi/Features/SkiaImageManager.Net.cs:402-412 — 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) src/Wasm/DrawnUi/WebSkiaView.cs:360 — src/Wasm/DrawnUi/WebSkiaView.cs:360-370 | src/Wpf/Drawnui.Wpf/Views/SkiaViewAccelerated.Angle.cs:141-151 — 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) src/Maui/DrawnUi/Platforms/MacCatalyst/DrawnUiBasePageHandler.cs:80 — src/Maui/DrawnUi/Platforms/MacCatalyst/DrawnUiBasePageHandler.cs:80-90 | src/Maui/DrawnUi/Platforms/MacCatalyst/MacExtensions.cs:45-57 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (11 corresponding lines) src/Maui/Samples/Sandbox/Views/MainPageMauiGraphics.xaml.cs:89 — src/Maui/Samples/Sandbox/Views/MainPageMauiGraphics.xaml.cs:89-103 | src/Maui/Samples/Sandbox/Views/MainPageMauiGraphics.xaml.cs:106-116 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (9 corresponding lines) · ×5
  • Edited copy of a member (9 corresponding lines) src/Maui/DrawnUi/Internals/Extensions/ColorExtensions.cs:119 — src/Maui/DrawnUi/Internals/Extensions/ColorExtensions.cs:119-127 | src/Maui/DrawnUi/Internals/Extensions/ColorExtensions.cs:131-139 — 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) src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs:243 — src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs:243-251 | src/Maui/Samples/FastRepro/Views/Sprites/SpriteSnappedBoardPage.cs:253-261 — 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) src/Maui/Samples/FastRepro/ColorPicker/SliderColor.xaml.cs:117 — src/Maui/Samples/FastRepro/ColorPicker/SliderColor.xaml.cs:117-125 | src/Maui/Samples/Sandbox/Views/Controls/ColorPicker/SliderColor.xaml.cs:117-125 — 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) src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs:213 — src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs:213-221 | src/Maui/Samples/FastRepro/SkiaTest/MotionMarkScene.cs:216-224 — 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) src/Blazor/Samples/BlazorSandbox/Pages/SkMeshProjectionProbe.razor:71 — src/Blazor/Samples/BlazorSandbox/Pages/SkMeshProjectionProbe.razor:71-79 | src/Blazor/Samples/BlazorSandbox/Pages/SkMeshRocketProbe.razor:119-127 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (8 corresponding lines) · ×5
  • Edited copy of a member (8 corresponding lines) src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:324 — src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:324-334 | src/Net/DrawnUi/Features/SkiaImageManager.Net.cs:293-300 — 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) src/Blazor/DrawnUi/Views/ScrollView.razor:47 — src/Blazor/DrawnUi/Views/ScrollView.razor:47-54 | src/Blazor/DrawnUi/Views/StackLayout.razor:47-54 — 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) src/SharedAdd3d/Renderer3D.cs:454 — src/SharedAdd3d/Renderer3D.cs:454-463 | src/Maui/Addons/DrawnUi.Maui.Add3d/Apple/MetalRenderer3D.cs:370-377 — 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) src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/NewsCell.cs:455 — src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/NewsCell.cs:455-462 | src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Views/NewsCell.xaml.cs:196-203 — 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) src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs:50 — src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs:50-57 | src/Maui/Samples/FastRepro/SkiaTest/MotionMarkScene.cs:55-62 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (20 lines × 2) · ×5
  • Duplicated block (20 lines × 2) src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:348 — src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:348-367 | src/Net/DrawnUi/Views/DrawnView.Net.cs:289-308 — before extracting anything, compare `src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs` and `src/Net/DrawnUi/Views/DrawnView.Net.cs` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (20 lines × 2) src/Shared/DrawnUi/Features/Effects/AdjustRGBEffect.cs:5 — src/Shared/DrawnUi/Features/Effects/AdjustRGBEffect.cs:5-24 | src/Shared/DrawnUi/Features/Effects/AdjustRGBEffect.cs:74-93 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (20 lines × 2) src/Shared/DrawnUi/Internals/Models/SkiaGradient.cs:330 — src/Shared/DrawnUi/Internals/Models/SkiaGradient.cs:330-349 | src/Shared/DrawnUi/Internals/Models/SkiaShadow.cs:128-147 — 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 `src/Shared/DrawnUi/Internals/Models/SkiaShadow.cs:128` 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, `src/Shared/DrawnUi/Internals/Models/SkiaGradient.cs:328` calls `CompareColor` and `src/Shared/DrawnUi/Internals/Models/SkiaShadow.cs:126` 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 (20 lines × 2) src/OpenTk/Samples/HelloOpenTk/Pages/SpritesPage.cs:209 — src/OpenTk/Samples/HelloOpenTk/Pages/SpritesPage.cs:209-228 | src/Wpf/Samples/HelloWpf/Pages/SpritesPage.cs:209-228 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/SpritesPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/SpritesPage.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 208 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (20 lines × 2) src/Maui/Samples/Sandbox/Views/Controls/OnCell.xaml.cs:7 — src/Maui/Samples/Sandbox/Views/Controls/OnCell.xaml.cs:7-26 | src/Maui/Samples/Sandbox/Views/MainPageCarouselTabs.xaml.cs:8-30 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
D4 · Code Duplication · Duplicated block (14 lines × 3) · ×5
  • Duplicated block (14 lines × 3) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:4276 — src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:4276-4289 | src/Shared/DrawnUi/Internals/Models/SkiaGradient.cs:89-102 | src/Shared/DrawnUi/Views/DrawnView.cs:1689-1702 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:4276` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (14 lines × 3) src/Maui/DrawnUi/Platforms/Apple/Super.Apple.cs:60 — src/Maui/DrawnUi/Platforms/Apple/Super.Apple.cs:60-73 | src/Maui/DrawnUi/Platforms/MacCatalyst/Files.Mac.cs:14-27 | src/Maui/DrawnUi/Platforms/iOS/Files.iOS.cs:14-27 — before extracting anything, compare `src/Maui/DrawnUi/Platforms/MacCatalyst/Files.Mac.cs` and `src/Maui/DrawnUi/Platforms/iOS/Files.iOS.cs` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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 × 3) src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs:79 — src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs:79-92 | src/OpenTk/Samples/HelloOpenTk/Pages/ShadersPage.cs:80-93 | src/Wpf/Samples/HelloWpf/Pages/ShadersPage.cs:80-93 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/ShadersPage.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (14 lines × 3) src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Models/NewsItem.cs:3 — src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Models/NewsItem.cs:3-16 | src/Maui/Samples/FastRepro/Models/NewsModels.cs:12-25 | src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Models/NewsItem.cs:3-16 — before extracting anything, compare `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Models/NewsItem.cs` and `src/Maui/Samples/FastRepro/Models/NewsModels.cs` as WHOLE FILES: 92% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Models/NewsItem.cs:3` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 3) src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs:300 — src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs:300-313 | src/OpenTk/Samples/HelloOpenTk/Pages/ReorderPage.cs:301-314 | src/Wpf/Samples/HelloWpf/Pages/ReorderPage.cs:301-314 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/ReorderPage.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (17 lines × 3) · ×5
  • Duplicated block (17 lines × 3) src/Maui/Samples/HelloMaui/Pages/MultiRippleWithTouchEffect.cs:83 — src/Maui/Samples/HelloMaui/Pages/MultiRippleWithTouchEffect.cs:83-99 | src/OpenTk/Samples/HelloOpenTk/Pages/MultiRippleWithTouchEffect.cs:83-99 | src/Wpf/Samples/HelloWpf/Pages/MultiRippleWithTouchEffect.cs:83-99 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/MultiRippleWithTouchEffect.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/MultiRippleWithTouchEffect.cs` as WHOLE FILES: 98% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/HelloMaui/Pages/MultiRippleWithTouchEffect.cs:83` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 3) src/Maui/Samples/HelloMaui/Pages/SpritesPage.cs:211 — src/Maui/Samples/HelloMaui/Pages/SpritesPage.cs:211-227 | src/OpenTk/Samples/HelloOpenTk/Pages/SpritesPage.cs:212-228 | src/Wpf/Samples/HelloWpf/Pages/SpritesPage.cs:212-228 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/SpritesPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/SpritesPage.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/HelloMaui/Pages/SpritesPage.cs:211` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 3) src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:12 — src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:12-28 | src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:14-30 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:14-30 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 295 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:12` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 3) src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:186 — src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:186-202 | src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:188-204 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:188-204 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 295 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:186` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 3) src/Maui/Samples/HelloMaui/Pages/EditorPage.cs:129 — src/Maui/Samples/HelloMaui/Pages/EditorPage.cs:129-145 | src/OpenTk/Samples/HelloOpenTk/Pages/EditorPage.cs:130-146 | src/Wpf/Samples/HelloWpf/Pages/EditorPage.cs:130-146 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/EditorPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/EditorPage.cs` as WHOLE FILES: 94% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Edited copy of a member (18 corresponding lines) · ×4
  • Edited copy of a member (18 corresponding lines) src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:380 — src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:380-397 | src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:400-420 — 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) src/Maui/Samples/Sandbox/Views/Aloha/BaseChartDrawable.cs:745 — src/Maui/Samples/Sandbox/Views/Aloha/BaseChartDrawable.cs:745-762 | src/Maui/Samples/Sandbox/Views/Aloha/BaseChartDrawable.cs:773-790 — 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) src/Maui/Samples/FastRepro/ColorPicker/SkiaColorsPanel.cs:201 — src/Maui/Samples/FastRepro/ColorPicker/SkiaColorsPanel.cs:201-218 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorsPanel.cs:200-217 — 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) src/Maui/Samples/FastRepro/ColorPicker/SkiaColorsPanel.cs:135 — src/Maui/Samples/FastRepro/ColorPicker/SkiaColorsPanel.cs:135-152 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorsPanel.cs:134-151 — 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 (21 corresponding lines) · ×4
  • Edited copy of a member (21 corresponding lines) src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:699 — src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:699-728 | src/Net/DrawnUi/Features/SkiaImageManager.Net.cs:553-573 — 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) src/Shared/DrawnUi/Controls/Labels/SkiaMarkdownLabel.CommonMark.cs:278 — src/Shared/DrawnUi/Controls/Labels/SkiaMarkdownLabel.CommonMark.cs:278-298 | src/Shared/DrawnUi/Controls/Labels/SkiaMarkdownLabel.CommonMark.cs:302-322 — 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) src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs:44 — src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs:44-64 | src/Net/Samples/VirtualizationHarnessDemo/MoveReorderRepro.cs:18-38 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (21 corresponding lines) src/Blazor/Samples/BlazorSandbox/Pages/MultiRippleWithTouchEffect.cs:185 — src/Blazor/Samples/BlazorSandbox/Pages/MultiRippleWithTouchEffect.cs:185-205 | src/Maui/Samples/Sandbox/Views/Controls/Shaders/MultiRippleWithTouchEffect.cs:115-140 — 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 (14 corresponding lines) · ×4
  • Edited copy of a member (14 corresponding lines) src/Maui/DrawnUi/Controls/EditText/SkiaMauiEditor.cs:128 — src/Maui/DrawnUi/Controls/EditText/SkiaMauiEditor.cs:128-141 | src/Maui/DrawnUi/Controls/EditText/SkiaMauiEntry.cs:195-211 — 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) src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:498 — src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:498-514 | src/Net/DrawnUi/Features/SkiaImageManager.Net.cs:435-448 — 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) src/Blazor/DrawnUi/Internals/Core/SkiaView.cs:201 — src/Blazor/DrawnUi/Internals/Core/SkiaView.cs:201-214 | src/Blazor/DrawnUi/Internals/Core/SkiaViewAccelerated.cs:278-291 — 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) src/Blazor/DrawnUi.Server/HeadlessCanvasHost.cs:13 — src/Blazor/DrawnUi.Server/HeadlessCanvasHost.cs:13-26 | src/Net/Samples/SkiaEditorHarness/Program.cs:1012-1025 — 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 (16 corresponding lines) · ×4
  • Edited copy of a member (16 corresponding lines) src/Maui/DrawnUi/Internals/Interfaces/ThemeBindingExtension.cs:91 — src/Maui/DrawnUi/Internals/Interfaces/ThemeBindingExtension.cs:91-106 | src/Maui/DrawnUi/Internals/Interfaces/ThemeBindingExtension.cs:112-135 — 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) src/Shared/Samples/Add3dGallery.Shared/Pages/GalleryPage.cs:259 — src/Shared/Samples/Add3dGallery.Shared/Pages/GalleryPage.cs:259-274 | src/Shared/Samples/Add3dGallery.Shared/Pages/GalleryPage.Form.cs:26-94 — 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) src/OpenTk/Samples/HelloOpenTk/Pages/ReorderPage.cs:222 — src/OpenTk/Samples/HelloOpenTk/Pages/ReorderPage.cs:222-237 | src/Wpf/Samples/HelloWpf/Pages/ReorderPage.cs:222-237 — 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) src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:153 — src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:153-170 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs:150-165 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (22–24 lines × 2) · ×4
  • Duplicated block (22–24 lines × 2) src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:199 — src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:199-220 | src/Maui/DrawnUi/Views/Canvas.cs:710-733 — before extracting anything, compare `src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs` and `src/Maui/DrawnUi/Views/Canvas.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:199` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (22–24 lines × 2) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:2134 — src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:2134-2155 | src/Shared/DrawnUi/Draw/Scroll/SkiaScrollLooped.cs:278-301 — before extracting anything, compare `src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs` and `src/Shared/DrawnUi/Draw/Scroll/SkiaScrollLooped.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 193 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 `src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:2134` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (22–24 lines × 2) src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:66 — src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:66-89 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs:64-85 — before extracting anything, compare `src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs` and `src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 366 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:66` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. 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 (22–24 lines × 2) src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:172 — src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:172-193 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs:167-190 — before extracting anything, compare `src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs` and `src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 366 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (21 lines × 3) · ×4
  • Duplicated block (21 lines × 3) src/Maui/DrawnUi/Platforms/Android/AndroidExtensions.cs:146 — src/Maui/DrawnUi/Platforms/Android/AndroidExtensions.cs:146-166 | src/Maui/DrawnUi/Platforms/MacCatalyst/MacExtensions.cs:76-96 | src/Maui/DrawnUi/Platforms/iOS/iOSExtensions.cs:9-29 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (21 lines × 3) src/Maui/Samples/HelloMaui/Pages/ReorderCell.cs:47 — src/Maui/Samples/HelloMaui/Pages/ReorderCell.cs:47-67 | src/OpenTk/Samples/HelloOpenTk/Pages/ReorderCell.cs:48-68 | src/Wpf/Samples/HelloWpf/Pages/ReorderCell.cs:48-68 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/ReorderCell.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/ReorderCell.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/HelloMaui/Pages/ReorderCell.cs:47` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (21 lines × 3) src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:309 — src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:309-329 | src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:311-331 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:311-331 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 295 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:309` 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 (21 lines × 3) src/Maui/Samples/HelloMaui/Pages/TransformsPage.cs:11 — src/Maui/Samples/HelloMaui/Pages/TransformsPage.cs:11-31 | src/OpenTk/Samples/HelloOpenTk/Pages/TransformsPage.cs:12-32 | src/Wpf/Samples/HelloWpf/Pages/TransformsPage.cs:12-32 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/TransformsPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/TransformsPage.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/HelloMaui/Pages/TransformsPage.cs:11` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (21 lines × 2) · ×4
  • Duplicated block (21 lines × 2) src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:106 — src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:106-126 | src/Net/DrawnUi/Views/Canvas.Gestures.Net.cs:101-121 — before extracting anything, compare `src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs` and `src/Net/DrawnUi/Views/Canvas.Gestures.Net.cs` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 184 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (21 lines × 2) src/Maui/DrawnUi/Controls/EditText/SkiaMauiEditor.cs:431 — src/Maui/DrawnUi/Controls/EditText/SkiaMauiEditor.cs:431-451 | src/Maui/DrawnUi/Controls/EditText/SkiaMauiEntry.cs:426-446 — before extracting anything, compare `src/Maui/DrawnUi/Controls/EditText/SkiaMauiEditor.cs` and `src/Maui/DrawnUi/Controls/EditText/SkiaMauiEntry.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 98 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 `src/Maui/DrawnUi/Controls/EditText/SkiaMauiEditor.cs:431` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `src/Maui/DrawnUi/Controls/EditText/SkiaMauiEntry.cs:424` calls `WhenFocusChanged` and `src/Maui/DrawnUi/Controls/EditText/SkiaMauiEditor.cs:430` 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 (21 lines × 2) src/OpenTk/DrawnUi/GpuDrawable.cs:36 — src/OpenTk/DrawnUi/GpuDrawable.cs:36-56 | src/Wpf/Drawnui.Wpf/Views/WpfDrawable.cs:47-71 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. 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 (21 lines × 2) src/OpenTk/Samples/HelloOpenTk/HelloApp.cs:52 — src/OpenTk/Samples/HelloOpenTk/HelloApp.cs:52-72 | src/Wpf/Samples/HelloWpf/MainWindow.xaml.cs:64-84 — 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 `src/OpenTk/Samples/HelloOpenTk/HelloApp.cs:52` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (15–18 lines × 2) · ×4
  • Duplicated block (15–18 lines × 2) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:609 — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:609-626 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:1088-1102 — 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 `src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:609` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (15–18 lines × 2) src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:230 — src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:230-244 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs:227-244 — before extracting anything, compare `src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs` and `src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 366 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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 (15–18 lines × 2) src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:342 — src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:342-356 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs:340-357 — before extracting anything, compare `src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs` and `src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 366 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (15–18 lines × 2) src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:368 — src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:368-382 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs:369-386 — before extracting anything, compare `src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs` and `src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 366 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (16–17 lines × 2) · ×4
  • Duplicated block (16–17 lines × 2) src/Blazor/DrawnUi/Internals/Core/SkiaView.cs:139 — src/Blazor/DrawnUi/Internals/Core/SkiaView.cs:139-154 | src/Blazor/DrawnUi/Internals/Core/SkiaViewAccelerated.cs:198-214 — before extracting anything, compare `src/Blazor/DrawnUi/Internals/Core/SkiaView.cs` and `src/Blazor/DrawnUi/Internals/Core/SkiaViewAccelerated.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (16–17 lines × 2) src/Shared/DrawnUi/Draw/Layout/SkiaCachedStack.cs:867 — src/Shared/DrawnUi/Draw/Layout/SkiaCachedStack.cs:867-883 | src/Shared/DrawnUi/Draw/Layout/SkiaCachedStack.cs:1137-1152 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (16–17 lines × 2) src/Maui/DrawnUi/Platforms/MacCatalyst/Super.Mac.cs:113 — src/Maui/DrawnUi/Platforms/MacCatalyst/Super.Mac.cs:113-129 | src/Maui/DrawnUi/Platforms/iOS/Super.iOS.cs:19-34 — before extracting anything, compare `src/Maui/DrawnUi/Platforms/MacCatalyst/Super.Mac.cs` and `src/Maui/DrawnUi/Platforms/iOS/Super.iOS.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 117 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/DrawnUi/Platforms/MacCatalyst/Super.Mac.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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (16–17 lines × 2) src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:252 — src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:252-268 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs:251-266 — before extracting anything, compare `src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs` and `src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 366 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (8 lines × 3) · ×4
  • Duplicated block (8 lines × 3) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:789 — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:789-797 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:1503-1511 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Masonry.cs:79-86 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
  • Duplicated block (8 lines × 3) src/Maui/Addons/DrawnUi.Maui.Add3d/Apple/MetalRenderer3D.cs:523 — src/Maui/Addons/DrawnUi.Maui.Add3d/Apple/MetalRenderer3D.cs:523-530 | src/Maui/Addons/DrawnUi.Maui.Add3d/Platforms/Android/VulkanRenderer3D.cs:1000-1007 | src/SharedAdd3d/Renderer3D.cs:696-703 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Addons/DrawnUi.Maui.Add3d/Apple/MetalRenderer3D.cs:523` 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 × 3) src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs:223 — src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs:223-230 | src/OpenTk/Samples/HelloOpenTk/Pages/ShadersPage.cs:224-231 | src/Wpf/Samples/HelloWpf/Pages/ShadersPage.cs:224-231 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/ShadersPage.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (8 lines × 3) src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs:241 — src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs:241-248 | src/OpenTk/Samples/HelloOpenTk/Pages/ShadersPage.cs:242-249 | src/Wpf/Samples/HelloWpf/Pages/ShadersPage.cs:242-249 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/ShadersPage.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Edited copies of one member (3 members, 9+ corresponding lines) · ×4
  • Edited copies of one member (3 members, 9+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:483 — src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:483-491 | src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:485-493 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:485-493 — 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) src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:490 — src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:490-498 | src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs:491-499 | src/Wpf/Samples/HelloWpf/Pages/LayoutsPage.cs:493-501 — 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) src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs:222 — src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs:222-230 | src/OpenTk/Samples/HelloOpenTk/Pages/ShadersPage.cs:223-231 | src/Wpf/Samples/HelloWpf/Pages/ShadersPage.cs:223-231 — 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) src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs:240 — src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs:240-248 | src/OpenTk/Samples/HelloOpenTk/Pages/ShadersPage.cs:241-249 | src/Wpf/Samples/HelloWpf/Pages/ShadersPage.cs:241-249 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 6+ corresponding lines) · ×4
  • Edited copies of one member (3 members, 6+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/WarriorSprite.cs:28 — src/Maui/Samples/HelloMaui/Pages/WarriorSprite.cs:28-33 | src/OpenTk/Samples/HelloOpenTk/Pages/WarriorSprite.cs:28-33 | src/Wpf/Samples/HelloWpf/Pages/WarriorSprite.cs:28-33 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 6+ corresponding lines) src/Maui/Samples/HelloMaui/HelloShell.cs:124 — src/Maui/Samples/HelloMaui/HelloShell.cs:124-129 | src/OpenTk/Samples/HelloOpenTk/HelloApp.cs:110-115 | src/Wpf/Samples/HelloWpf/MainWindow.xaml.cs:129-134 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 6+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/ShellPage.cs:294 — src/Maui/Samples/HelloMaui/Pages/ShellPage.cs:294-300 | src/OpenTk/Samples/HelloOpenTk/Pages/ShellPage.cs:277-282 | src/Wpf/Samples/HelloWpf/Pages/ShellPage.cs:277-282 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 6+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/KeyboardPage.cs:113 — src/Maui/Samples/HelloMaui/Pages/KeyboardPage.cs:113-118 | src/OpenTk/Samples/HelloOpenTk/Pages/KeyboardPage.cs:114-119 | src/Wpf/Samples/HelloWpf/Pages/KeyboardPage.cs:114-119 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D5 · Coupling · Off the main sequence · ×4
  • Off the main sequence: DrawnUi.Maui(net9.0) src/Maui/DrawnUi/DrawnUi.Maui.csproj:1 — DrawnUi.Maui(net9.0): abstractness 0.14, instability 0.00, distance 0.86 — zone of pain — concrete and depended on by 6 project(s), so it's rigid to change.
  • Off the main sequence: DrawnUi.Wpf(net9.0-windows) src/Wpf/Drawnui.Wpf/DrawnUi.Wpf.csproj:1 — DrawnUi.Wpf(net9.0-windows): abstractness 0.15, instability 0.00, distance 0.85 — zone of pain — concrete and depended on by 2 project(s), so it's rigid to change.
  • Off the main sequence: DrawnUi.OpenTk(net9.0) src/OpenTk/DrawnUi/DrawnUi.OpenTk.csproj:1 — DrawnUi.OpenTk(net9.0): abstractness 0.16, instability 0.00, distance 0.84 — zone of pain — concrete and depended on by 2 project(s), so it's rigid to change.
  • Off the main sequence: DrawnUi.Wasm src/Wasm/DrawnUi/DrawnUi.Wasm.csproj:1 — DrawnUi.Wasm: abstractness 0.16, instability 0.00, distance 0.84 — zone of pain — concrete and depended on by 2 project(s), so it's rigid to change.
X2 · Cancellation propagation · Async delegate without CancellationToken · ×4
  • Async delegate without CancellationToken: OnTapped src/Shared/DrawnUi/Controls/Button/SkiaButton.cs:799 — Queues or hands on an async lambda whose work calls something that takes a CancellationToken, while neither this method nor the delegate supplies one — that work can't be stopped early once started. Take a CancellationToken here and let the lambda capture it, or use a delegate that is handed one (`Func<CancellationToken, Task>`).
  • Async delegate without CancellationToken: ProcessGestures src/Shared/DrawnUi/Controls/Touch/SkiaHotspot.cs:124 — Queues or hands on an async lambda whose work calls something that takes a CancellationToken, while neither this method nor the delegate supplies one — that work can't be stopped early once started. Take a CancellationToken here and let the lambda capture it, or use a delegate that is handed one (`Func<CancellationToken, Task>`).
  • Async delegate without CancellationToken: SetImageSource src/Shared/DrawnUi/Draw/Images/SkiaImage.cs:790 — Queues or hands on an async lambda whose work calls something that takes a CancellationToken, while neither this method nor the delegate supplies one — that work can't be stopped early once started. Take a CancellationToken here and let the lambda capture it, or use a delegate that is handed one (`Func<CancellationToken, Task>`).
  • Async delegate without CancellationToken: LoadSourceIfNeeded src/Shared/DrawnUi/Draw/Images/SkiaImage.cs:1414 — Queues or hands on an async lambda whose work calls something that takes a CancellationToken, while neither this method nor the delegate supplies one — that work can't be stopped early once started. Take a CancellationToken here and let the lambda capture it, or use a delegate that is handed one (`Func<CancellationToken, Task>`).
X8 · JS interop contract · Unresolved .NET interop callback · ×4
  • Unresolved .NET interop callback src/Blazor/DrawnUi/wwwroot/drawnui-canvas-resize.js:58 — `Invoke` is invoked from JavaScript here on a .NET object reference, and no [JSInvokable] method of this repository's C# declares that identifier (the attribute's argument when it has one, else the method's name). A method without the attribute, or invoked by its C# name when the attribute names another, is not reachable from JavaScript: the call rejects at runtime. Mark the method [JSInvokable], or invoke the identifier it declares.
  • Unresolved .NET interop callback src/Blazor/DrawnUi/wwwroot/drawnui-canvas-resize.js:96 — `Invoke` is invoked from JavaScript here on a .NET object reference, and no [JSInvokable] method of this repository's C# declares that identifier (the attribute's argument when it has one, else the method's name). A method without the attribute, or invoked by its C# name when the attribute names another, is not reachable from JavaScript: the call rejects at runtime. Mark the method [JSInvokable], or invoke the identifier it declares.
  • Unresolved .NET interop callback src/Blazor/DrawnUi/wwwroot/drawnui-canvas-resize.js:127 — `Invoke` is invoked from JavaScript here on a .NET object reference, and no [JSInvokable] method of this repository's C# declares that identifier (the attribute's argument when it has one, else the method's name). A method without the attribute, or invoked by its C# name when the attribute names another, is not reachable from JavaScript: the call rejects at runtime. Mark the method [JSInvokable], or invoke the identifier it declares.
  • Unresolved .NET interop callback src/Blazor/DrawnUi/wwwroot/drawnui-frameloop.js:17 — `OnBrowserFrame` is invoked from JavaScript here on a .NET object reference, and no [JSInvokable] method of this repository's C# declares that identifier (the attribute's argument when it has one, else the method's name). A method without the attribute, or invoked by its C# name when the attribute names another, is not reachable from JavaScript: the call rejects at runtime. Mark the method [JSInvokable], or invoke the identifier it declares.
AC3 · Page structure · Page without a main landmark · ×3
  • Page without a main landmark tpls/Blazor/EmptyCode/wwwroot/index.html:2 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
  • Page without a main landmark tpls/React/EmptyCode/index.html:2 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. This document's body is only the mount point <div id="root">, so there is no content here to wrap — render the <main> from the component mounted into it.
  • Page without a main landmark tpls/Wasm/EmptyCode/wwwroot/index.html:2 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
D1 · Cyclomatic Complexity · TooltipsMenusPage.OnKeyDown (cyclomatic 35) · ×3
  • TooltipsMenusPage.OnKeyDown (cyclomatic 35) src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:614 — TooltipsMenusPage.OnKeyDown has cyclomatic complexity 35 (threshold 15). Of this number, 32 points are the body's own statements and 3 belong to one function literal inside it that branches. 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.
  • TooltipsMenusPage.OnKeyDown (cyclomatic 35) src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:616 — TooltipsMenusPage.OnKeyDown has cyclomatic complexity 35 (threshold 15). Of this number, 32 points are the body's own statements and 3 belong to one function literal inside it that branches. 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.
  • TooltipsMenusPage.OnKeyDown (cyclomatic 35) src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:616 — TooltipsMenusPage.OnKeyDown has cyclomatic complexity 35 (threshold 15). Of this number, 32 points are the body's own statements and 3 belong to one function literal inside it that branches. 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.
D1 · Cyclomatic Complexity · ReorderCell.OnGrip (cyclomatic 17) · ×3
  • ReorderCell.OnGrip (cyclomatic 17) src/Maui/Samples/HelloMaui/Pages/ReorderCell.cs:125 — ReorderCell.OnGrip 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.
  • ReorderCell.OnGrip (cyclomatic 17) src/OpenTk/Samples/HelloOpenTk/Pages/ReorderCell.cs:126 — ReorderCell.OnGrip 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.
  • ReorderCell.OnGrip (cyclomatic 17) src/Wpf/Samples/HelloWpf/Pages/ReorderCell.cs:126 — ReorderCell.OnGrip 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.
D17 · Explicit Debt · BarePragmaDisable · ×3
  • BarePragmaDisable src/Maui/DrawnUi/Platforms/Apple/Handlers/SKMetalViewRetained.Apple.cs:22 — #pragma warning disable 67 — 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 src/Maui/DrawnUi/Views/Canvas.cs:1099 — #pragma warning disable NU1605, CS0108 — 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 src/Shared/DrawnUi/Views/DrawnView.cs:3083 — #pragma warning disable NU1605, CS0108 — 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.
D2 · Cognitive Complexity · TooltipsMenusPage.OnKeyDown (cognitive 26) · ×3
  • TooltipsMenusPage.OnKeyDown (cognitive 26) src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:614 — TooltipsMenusPage.OnKeyDown has cognitive complexity 26 (threshold 15). Of this number, 25 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.
  • TooltipsMenusPage.OnKeyDown (cognitive 26) src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:616 — TooltipsMenusPage.OnKeyDown has cognitive complexity 26 (threshold 15). Of this number, 25 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.
  • TooltipsMenusPage.OnKeyDown (cognitive 26) src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:616 — TooltipsMenusPage.OnKeyDown has cognitive complexity 26 (threshold 15). Of this number, 25 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.
D2 · Cognitive Complexity · ReorderCell.OnGrip (cognitive 18) · ×3
  • ReorderCell.OnGrip (cognitive 18) src/Maui/Samples/HelloMaui/Pages/ReorderCell.cs:125 — ReorderCell.OnGrip 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.
  • ReorderCell.OnGrip (cognitive 18) src/OpenTk/Samples/HelloOpenTk/Pages/ReorderCell.cs:126 — ReorderCell.OnGrip 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.
  • ReorderCell.OnGrip (cognitive 18) src/Wpf/Samples/HelloWpf/Pages/ReorderCell.cs:126 — ReorderCell.OnGrip 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.
D4 · Code Duplication · Edited copy of a member (22 corresponding lines) · ×3
  • Edited copy of a member (22 corresponding lines) src/Blazor/DrawnUi/Internals/Core/SkiaView.cs:157 — src/Blazor/DrawnUi/Internals/Core/SkiaView.cs:157-178 | src/Blazor/DrawnUi/Internals/Core/SkiaViewAccelerated.cs:223-245 — 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) src/Maui/DrawnUi/Platforms/iOS/Super.iOS.cs:328 — src/Maui/DrawnUi/Platforms/iOS/Super.iOS.cs:328-350 | src/Maui/DrawnUi/Platforms/iOS/Super.iOS.cs:353-374 — 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) src/Blazor/Samples/BlazorSandbox/Pages/Cards.razor:395 — src/Blazor/Samples/BlazorSandbox/Pages/Cards.razor:395-428 | src/Maui/Samples/Tutorials/Tutorials/InteractiveCards/TutorialCards.xaml.cs:59-80 — 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 (10 corresponding lines) · ×3
  • Edited copy of a member (10 corresponding lines) src/Maui/DrawnUi/Features/Images/SkiaImageManager.cs:818 — src/Maui/DrawnUi/Features/Images/SkiaImageManager.cs:818-831 | src/Net/DrawnUi/Features/SkiaImageManager.Net.cs:381-390 — 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) src/Maui/Samples/FastRepro/DrawnRadioButton.xaml.cs:14 — src/Maui/Samples/FastRepro/DrawnRadioButton.xaml.cs:14-23 | src/Maui/Samples/Sandbox/Views/Controls/DrawnRadioButton.xaml.cs:13-22 — 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) src/Blazor/Samples/BlazorSandbox/Pages/PickersSheet.razor:165 — src/Blazor/Samples/BlazorSandbox/Pages/PickersSheet.razor:165-175 | src/Maui/Samples/FastRepro/MainPagePicker.cs:178-187 — 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 (15 corresponding lines) · ×3
  • Edited copy of a member (15 corresponding lines) src/Maui/DrawnUi/Platforms/Apple/Super.Apple.cs:145 — src/Maui/DrawnUi/Platforms/Apple/Super.Apple.cs:145-159 | src/Maui/DrawnUi/Platforms/Apple/Super.Apple.cs:216-230 — 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) src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs:51 — src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs:51-65 | src/Net/DrawnUi/Draw/SkiaEditor.Net.cs:36-50 — 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) src/Blazor/DrawnUi/Internals/Core/SkiaView.cs:89 — src/Blazor/DrawnUi/Internals/Core/SkiaView.cs:89-103 | src/Blazor/DrawnUi/Internals/Core/SkiaViewAccelerated.cs:69-83 — 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 (13 corresponding lines) · ×3
  • Edited copy of a member (13 corresponding lines) src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:306 — src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:306-321 | src/Net/DrawnUi/Features/SkiaImageManager.Net.cs:278-290 — 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) src/Maui/Samples/Sandbox/Views/Aloha/ChartExtensions.cs:19 — src/Maui/Samples/Sandbox/Views/Aloha/ChartExtensions.cs:19-39 | src/Maui/Samples/Sandbox/Views/Aloha/ChartExtensions.cs:65-77 — 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) src/Maui/Samples/FastRepro/SkiaTest/SkiaPaint.cs:70 — src/Maui/Samples/FastRepro/SkiaTest/SkiaPaint.cs:70-82 | src/Maui/Samples/FastRepro/SkiaTest/SkiaPath.cs:51-63 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (4 corresponding lines) · ×3
  • Edited copy of a member (4 corresponding lines) src/Blazor/DrawnUi.Server/HeadlessCanvasHost.cs:31 — src/Blazor/DrawnUi.Server/HeadlessCanvasHost.cs:31-37 | src/Net/Samples/SkiaEditorHarness/Program.cs:1030-1033 — 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) src/Net/DrawnUi/Testing/VirtualizationScene.cs:152 — src/Net/DrawnUi/Testing/VirtualizationScene.cs:152-158 | src/Net/Samples/VirtualizationHarnessDemo/ChatLikeScene.cs:257-260 — 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) src/Maui/Samples/Sandbox/Dev/MainPageDev.xaml.cs:26 — src/Maui/Samples/Sandbox/Dev/MainPageDev.xaml.cs:26-29 | src/Maui/Samples/Sandbox/Views/Controls/SmallButton.xaml.cs:25-28 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (27 lines × 2) · ×3
  • Duplicated block (27 lines × 2) src/Maui/DrawnUi/Platforms/Windows/Views/Gles/GlesContext.cs:182 — src/Maui/DrawnUi/Platforms/Windows/Views/Gles/GlesContext.cs:182-208 | src/Wpf/Drawnui.Wpf/Views/Angle/AngleContext.cs:130-156 — 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 `src/Maui/DrawnUi/Platforms/Windows/Views/Gles/GlesContext.cs:182` 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 (27 lines × 2) src/Maui/Samples/FastRepro/ColorPicker/SkiaColorsPanel.cs:87 — src/Maui/Samples/FastRepro/ColorPicker/SkiaColorsPanel.cs:87-113 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorsPanel.cs:86-112 — before extracting anything, compare `src/Maui/Samples/FastRepro/ColorPicker/SkiaColorsPanel.cs` and `src/Maui/Samples/Sandbox/Views/Controls/SkiaColorsPanel.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (27 lines × 2) src/OpenTk/Samples/HelloOpenTk/Pages/LooksPage.cs:76 — src/OpenTk/Samples/HelloOpenTk/Pages/LooksPage.cs:76-102 | src/Wpf/Samples/HelloWpf/Pages/LooksPage.cs:76-102 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/LooksPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/LooksPage.cs` as WHOLE FILES: 99% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (18 lines × 4) · ×3
  • Duplicated block (18 lines × 4) src/Shared/DrawnUi/Controls/Button/SkiaButton.cs:403 — src/Shared/DrawnUi/Controls/Button/SkiaButton.cs:403-420 | src/Shared/DrawnUi/Controls/Button/SkiaButton.cs:424-441 | src/Shared/DrawnUi/Controls/Button/SkiaButton.cs:445-462 | src/Shared/DrawnUi/Controls/Button/SkiaButton.cs:466-483 — 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (18 lines × 4) src/Maui/DrawnUi/Platforms/Android/Files.Android.cs:37 — src/Maui/DrawnUi/Platforms/Android/Files.Android.cs:37-54 | src/Maui/DrawnUi/Platforms/MacCatalyst/Files.Mac.cs:36-53 | src/Maui/DrawnUi/Platforms/Windows/Files.Windows.cs:46-63 | src/Maui/DrawnUi/Platforms/iOS/Files.iOS.cs:36-53 — before extracting anything, compare `src/Maui/DrawnUi/Platforms/MacCatalyst/Files.Mac.cs` and `src/Maui/DrawnUi/Platforms/iOS/Files.iOS.cs` as WHOLE FILES: 100% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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 × 4) src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:398 — src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:398-415 | src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:431-448 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs:402-419 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs:435-452 — before extracting anything, compare `src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs` and `src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 366 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:398` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (7–8 lines × 2) · ×3
  • Duplicated block (7–8 lines × 2) src/Maui/Addons/DrawnUi.Maui.Add3d/Apple/MetalRenderer3D.cs:529 — src/Maui/Addons/DrawnUi.Maui.Add3d/Apple/MetalRenderer3D.cs:529-536 | src/Maui/Addons/DrawnUi.Maui.Add3d/Platforms/Android/VulkanRenderer3D.cs:1006-1012 — 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 `src/Maui/Addons/DrawnUi.Maui.Add3d/Apple/MetalRenderer3D.cs:529` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (7–8 lines × 2) src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs:334 — src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs:334-341 | src/Shared/DrawnUi/EditText/SkiaEditor.cs:1995-2001 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (7–8 lines × 2) src/Shared/DrawnUi/Features/Effects/ShaderDoubleTexturesEffect.cs:194 — src/Shared/DrawnUi/Features/Effects/ShaderDoubleTexturesEffect.cs:194-201 | src/Shared/DrawnUi/Features/Effects/ShaderDoubleTexturesEffect.cs:367-373 — 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 `src/Shared/DrawnUi/Features/Effects/ShaderDoubleTexturesEffect.cs:194` 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 copies of one member (3 members, 4+ corresponding lines) · ×3
  • Edited copies of one member (3 members, 4+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs:179 — src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs:179-182 | src/OpenTk/Samples/HelloOpenTk/Pages/ReorderPage.cs:180-183 | src/Wpf/Samples/HelloWpf/Pages/ReorderPage.cs:180-183 — 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) src/Maui/Samples/HelloMaui/Pages/TransformsPage.cs:387 — src/Maui/Samples/HelloMaui/Pages/TransformsPage.cs:387-390 | src/OpenTk/Samples/HelloOpenTk/Pages/TransformsPage.cs:388-391 | src/Wpf/Samples/HelloWpf/Pages/TransformsPage.cs:388-391 — 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) src/Maui/Samples/HelloMaui/Pages/TransformsPage.cs:393 — src/Maui/Samples/HelloMaui/Pages/TransformsPage.cs:393-396 | src/OpenTk/Samples/HelloOpenTk/Pages/TransformsPage.cs:394-397 | src/Wpf/Samples/HelloWpf/Pages/TransformsPage.cs:394-397 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 1+ corresponding lines) · ×3
  • Edited copies of one member (3 members, 1+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:473 — src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:473-473 | src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs:474-474 | src/Wpf/Samples/HelloWpf/Pages/LayoutsPage.cs:476-476 — 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.
  • Edited copies of one member (3 members, 1+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:439 — src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:439-439 | src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:441-441 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:441-441 — 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.
  • Edited copies of one member (3 members, 1+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/UnevenCellsPage.cs:135 — src/Maui/Samples/HelloMaui/Pages/UnevenCellsPage.cs:135-135 | src/OpenTk/Samples/HelloOpenTk/Pages/UnevenCellsPage.cs:137-137 | src/Wpf/Samples/HelloWpf/Pages/UnevenCellsPage.cs:137-137 — 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.
D4 · Code Duplication · Duplicated block (24 lines × 2) · ×3
  • Duplicated block (24 lines × 2) src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs:706 — src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs:706-729 | src/Maui/Samples/FastRepro/Views/Sprites/SpriteSnappedBoardPage.cs:349-372 — before extracting anything, compare `src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs` and `src/Maui/Samples/FastRepro/Views/Sprites/SpriteSnappedBoardPage.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 63 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 (24 lines × 2) src/OpenTk/Samples/HelloOpenTk/Pages/MultiRippleWithTouchEffect.cs:41 — src/OpenTk/Samples/HelloOpenTk/Pages/MultiRippleWithTouchEffect.cs:41-64 | src/Wpf/Samples/HelloWpf/Pages/MultiRippleWithTouchEffect.cs:41-64 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/MultiRippleWithTouchEffect.cs` and `src/Wpf/Samples/HelloWpf/Pages/MultiRippleWithTouchEffect.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (24 lines × 2) src/OpenTk/Samples/HelloOpenTk/Pages/UnevenCellsPage.cs:145 — src/OpenTk/Samples/HelloOpenTk/Pages/UnevenCellsPage.cs:145-168 | src/Wpf/Samples/HelloWpf/Pages/UnevenCellsPage.cs:145-168 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/UnevenCellsPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/UnevenCellsPage.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (20 lines × 3) · ×3
  • Duplicated block (20 lines × 3) src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs:346 — src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs:346-365 | src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs:446-465 | src/Net/Samples/VirtualizationHarnessDemo/LiftDragRepro.cs:460-479 — before extracting anything, compare `src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs` and `src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 174 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 `src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs:346` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `src/Net/Samples/VirtualizationHarnessDemo/LiftDragRepro.cs:458` calls `CarryGhost` and `src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs:344` 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 (20 lines × 3) src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs:266 — src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs:266-285 | src/OpenTk/Samples/HelloOpenTk/Pages/ReorderPage.cs:267-286 | src/Wpf/Samples/HelloWpf/Pages/ReorderPage.cs:267-286 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/ReorderPage.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (20 lines × 3) src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/BaseViewModel.cs:12 — src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/BaseViewModel.cs:12-31 | src/Maui/Samples/FastRepro/ViewModels/BaseViewModel.cs:12-31 | src/Maui/Samples/Tutorials/Tutorials/NewsFeed/ViewModels/BaseViewModel.cs:12-31 — before extracting anything, compare `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/BaseViewModel.cs` and `src/Maui/Samples/FastRepro/ViewModels/BaseViewModel.cs` as WHOLE FILES: 82% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/BaseViewModel.cs:12` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (11 lines × 3) · ×3
  • Duplicated block (11 lines × 3) src/Maui/Samples/HelloMaui/Pages/RootPage.cs:160 — src/Maui/Samples/HelloMaui/Pages/RootPage.cs:160-170 | src/OpenTk/Samples/HelloOpenTk/Pages/RootPage.cs:162-172 | src/Wpf/Samples/HelloWpf/Pages/RootPage.cs:162-172 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/RootPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/RootPage.cs` as WHOLE FILES: 98% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/HelloMaui/Pages/RootPage.cs:160` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 3) src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:469 — src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:469-479 | src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:471-481 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:471-481 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 295 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (11 lines × 3) src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs:296 — src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs:296-306 | src/OpenTk/Samples/HelloOpenTk/Pages/ShadersPage.cs:297-307 | src/Wpf/Samples/HelloWpf/Pages/ShadersPage.cs:297-307 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/ShadersPage.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
AC6 · Visual & motion safety · Focus outline removed in CSS without a · ×2
  • Focus outline removed in CSS without a :focus replacement src/Blazor/DrawnUi/Views/Canvas.razor:116 — `.xaml-a11y-element[role="text"]:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement src/Blazor/DrawnUi/Views/Entry.razor.css:19 — `.xaml-entry-input:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
D17 · Explicit Debt · Whole file has no live code · ×2
  • Whole file has no live code — 3 debt markers inside it src/Maui/DrawnUi/Controls/Labels/MarkdownPipelinePool.cs:3 — Every line in this file is a comment or blank — it declares no type, member, using or attribute, so nothing in it reaches the build. Its 3 debt markers (3 CommentedOutCode) all sit inside that dead text: one decision to leave the whole file switched off, not 3 independent debts. It records no note anywhere: the file is switched off with nothing in it saying why, so a reader cannot tell whether it is waiting on something or was simply abandoned — which is the harder of the two to bring back. Decide the FILE rather than its lines — restore it, or delete it and let version control hold the history. (Every occurrence still counts toward the score and metrics.)
  • Whole file has no live code — 12 debt markers inside it src/Maui/DrawnUi/Controls/Labels/SkiaMarkdownLabel.Markdig.cs:177 — Every line in this file is a comment or blank — it declares no type, member, using or attribute, so nothing in it reaches the build. Its 12 debt markers (10 CommentedOutCode, 2 TodoComment) all sit inside that dead text: one decision to leave the whole file switched off, not 12 independent debts. The first note recorded in it is "//todo what can it be?.." (line 177). Decide the FILE rather than its lines — restore it, or delete it and let version control hold the history. (Every occurrence still counts toward the score and metrics.)
D18 · Solution Shape · Solution references a project that does not exist · ×2
  • Solution references a project that does not exist src/DrawnUi.slnx — `src/DrawnUi.slnx` declares 1 project file(s) that are missing from the tree (`src/Maui/Templates/DrawnAppEmpty/DrawnAppEmpty.csproj`). A solution-level restore or build fails on a dangling reference, so anyone building the solution rather than an individual project is blocked. Delete the stale entry from the solution, or restore the missing project file.
  • Solution references a project that does not exist dev/Nugets.sln — `dev/Nugets.sln` declares 1 project file(s) that are missing from the tree (`src/Maui/Addons/DrawnUi.Maui.Camera/DrawnUi.Maui.Camera.csproj`). A solution-level restore or build fails on a dangling reference, so anyone building the solution rather than an individual project is blocked. Delete the stale entry from the solution, or restore the missing project file.
D2 · Cognitive Complexity · Canvas.ProcessGestures (cognitive 99) · ×2
  • Canvas.ProcessGestures (cognitive 99) src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:60 — Canvas.ProcessGestures has cognitive complexity 99 (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.
  • Canvas.ProcessGestures (cognitive 99) src/Maui/DrawnUi/Views/Canvas.cs:570 — Canvas.ProcessGestures has cognitive complexity 99 (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.
D2 · Cognitive Complexity · BaseChartDrawable.DrawLabels (cognitive 31) · ×2
  • BaseChartDrawable.DrawLabels (cognitive 31) src/Maui/Samples/Sandbox/Views/Aloha/BaseChartDrawable.cs:801 — BaseChartDrawable.DrawLabels 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. This shape REPEATS in the file: one other method here (BaseChartDrawable.DrawLabels) 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.
  • BaseChartDrawable.DrawLabels (cognitive 31) src/Maui/Samples/Sandbox/Views/Aloha/BaseChartDrawable.cs:908 — BaseChartDrawable.DrawLabels 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. This shape REPEATS in the file: one other method here (BaseChartDrawable.DrawLabels) 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.
D4 · Code Duplication · Edited copy of a member (35 corresponding lines) · ×2
  • Edited copy of a member (35 corresponding lines) src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsAutomationPeer.cs:173 — src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsAutomationPeer.cs:173-207 | src/Wpf/Drawnui.Wpf/Views/Accessibility/DrawnUiAutomationPeers.cs:145-180 — These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (35 corresponding lines) src/Maui/Samples/Sandbox/DrawnTabBar.cs:59 — src/Maui/Samples/Sandbox/DrawnTabBar.cs:59-93 | src/Maui/Samples/Sandbox/DrawnTabBar.cs:98-132 — These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (30 corresponding lines) · ×2
  • Edited copy of a member (30 corresponding lines) src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:652 — src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:652-696 | src/Net/DrawnUi/Features/SkiaImageManager.Net.cs:521-550 — These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (30 corresponding lines) src/Blazor/Samples/BlazorSandbox/Pages/MultiRippleWithTouchEffect.cs:118 — src/Blazor/Samples/BlazorSandbox/Pages/MultiRippleWithTouchEffect.cs:118-147 | src/Maui/Samples/Sandbox/Views/Controls/Shaders/MultiRippleWithTouchEffect.cs:42-75 — 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 (39 corresponding lines) · ×2
  • Edited copy of a member (39 corresponding lines) src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:308 — src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:308-360 | src/Net/DrawnUi/Views/Canvas.Gestures.Net.cs:263-301 — These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (39 corresponding lines) src/Maui/DrawnUi/Platforms/Windows/Views/Gles/GlesContext.cs:169 — src/Maui/DrawnUi/Platforms/Windows/Views/Gles/GlesContext.cs:169-208 | src/Wpf/Drawnui.Wpf/Views/Angle/AngleContext.cs:118-156 — These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (20 corresponding lines) · ×2
  • Edited copy of a member (20 corresponding lines) src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:236 — src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:236-262 | src/Net/DrawnUi/Features/SkiaImageManager.Net.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) src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:271 — src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:271-292 | src/Net/DrawnUi/Features/SkiaImageManager.Net.cs:248-267 — 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 (17 corresponding lines) · ×2
  • Edited copy of a member (17 corresponding lines) src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsUiaProvider.cs:88 — src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsUiaProvider.cs:88-104 | src/OpenTk/DrawnUi/Accessibility/WindowsUiaProvider.cs:83-100 — 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) src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs:224 — src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs:224-240 | src/Maui/Samples/FastRepro/SkiaTest/MotionMarkScene.cs:227-243 — 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 (26 corresponding lines) · ×2
  • Edited copy of a member (26 corresponding lines) src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:532 — src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:532-557 | src/Net/DrawnUi/Features/SkiaImageManager.Net.cs:66-103 — 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) src/Maui/DrawnUi/Platforms/Windows/SoftwareWindowsCanvas.cs:282 — src/Maui/DrawnUi/Platforms/Windows/SoftwareWindowsCanvas.cs:282-307 | src/Maui/DrawnUi/Platforms/Windows/WinCanvas.cs:209-234 — These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (23 corresponding lines) · ×2
  • Edited copy of a member (23 corresponding lines) src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:731 — src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:731-764 | src/Net/DrawnUi/Features/SkiaImageManager.Net.cs:576-598 — 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) src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:66 — src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:66-92 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs:64-86 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (53 lines × 2) · ×2
  • Duplicated block (53 lines × 2) src/Maui/DrawnUi/Platforms/Windows/Views/Gles/Egl.cs:15 — src/Maui/DrawnUi/Platforms/Windows/Views/Gles/Egl.cs:15-67 | src/Wpf/Drawnui.Wpf/Views/Angle/Egl.cs:13-65 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (53 lines × 2) src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs:271 — src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs:271-323 | src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs:378-430 — before extracting anything, compare `src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs` and `src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 174 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 `src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs:271` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (34 lines × 2) · ×2
  • Duplicated block (34 lines × 2) src/Shared/DrawnUi/Internals/Models/SkiaGradient.cs:62 — src/Shared/DrawnUi/Internals/Models/SkiaGradient.cs:62-95 | src/Shared/DrawnUi/Views/DrawnView.cs:1662-1695 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (34 lines × 2) src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:114 — src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:114-147 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs:110-143 — before extracting anything, compare `src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs` and `src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 366 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (29–32 lines × 2) · ×2
  • Duplicated block (29–32 lines × 2) src/Shared/DrawnUi/Features/Animations/FrameTimeInterpolator.cs:93 — src/Shared/DrawnUi/Features/Animations/FrameTimeInterpolator.cs:93-121 | src/Shared/DrawnUi/Features/Animations/FrameTimeInterpolator.cs:143-174 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/Shared/DrawnUi/Features/Animations/FrameTimeInterpolator.cs:93` 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 (29–32 lines × 2) src/Maui/DrawnUi/Views/Canvas.cs:648 — src/Maui/DrawnUi/Views/Canvas.cs:648-679 | src/Net/DrawnUi/Views/Canvas.Gestures.Net.cs:125-153 — before extracting anything, compare `src/Maui/DrawnUi/Views/Canvas.cs` and `src/Net/DrawnUi/Views/Canvas.Gestures.Net.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/DrawnUi/Views/Canvas.cs:648` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (29 lines × 2) · ×2
  • Duplicated block (29 lines × 2) src/Blazor/DrawnUi.Server/Views/Canvas.razor:85 — src/Blazor/DrawnUi.Server/Views/Canvas.razor:85-113 | src/Blazor/DrawnUi.Server/Views/ServerCanvas.razor:24-52 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (29 lines × 2) src/OpenTk/Samples/HelloOpenTk/Pages/ImagesPage.cs:159 — src/OpenTk/Samples/HelloOpenTk/Pages/ImagesPage.cs:159-187 | src/Wpf/Samples/HelloWpf/Pages/ImagesPage.cs:159-187 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/ImagesPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/ImagesPage.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (28 lines × 2) · ×2
  • Duplicated block (28 lines × 2) src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs:204 — src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs:204-231 | src/Net/DrawnUi/Draw/SkiaEditor.Net.cs:197-224 — before extracting anything, compare `src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs` and `src/Net/DrawnUi/Draw/SkiaEditor.Net.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 153 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (28 lines × 2) src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:76 — src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:76-103 | src/Net/DrawnUi/Features/SkiaImageManager.Net.cs:116-143 — before extracting anything, compare `src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs` and `src/Net/DrawnUi/Features/SkiaImageManager.Net.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (26 lines × 3) · ×2
  • Duplicated block (26 lines × 3) src/Blazor/DrawnUi/Draw/SkiaControl.Blazor.cs:33 — src/Blazor/DrawnUi/Draw/SkiaControl.Blazor.cs:33-58 | src/Maui/DrawnUi/Draw/Base/SkiaControl.Maui.cs:211-236 | src/Net/DrawnUi/Draw/SkiaControl.Net.cs:35-60 — before extracting anything, compare `src/Blazor/DrawnUi/Draw/SkiaControl.Blazor.cs` and `src/Net/DrawnUi/Draw/SkiaControl.Net.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (26 lines × 3) src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:94 — src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:94-119 | src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs:96-121 | src/Wpf/Samples/HelloWpf/Pages/LayoutsPage.cs:98-123 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (25 lines × 2) · ×2
  • Duplicated block (25 lines × 2) src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:134 — src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:134-158 | src/Net/DrawnUi/Views/DrawnView.Net.cs:104-128 — before extracting anything, compare `src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs` and `src/Net/DrawnUi/Views/DrawnView.Net.cs` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (25 lines × 2) src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs:447 — src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs:447-471 | src/Wpf/Samples/HelloWpf/Pages/LayoutsPage.cs:449-473 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/LayoutsPage.cs` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 118 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (21–23 lines × 2) · ×2
  • Duplicated block (21–23 lines × 2) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:539 — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:539-561 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:1314-1334 — 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 `src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:539` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (21–23 lines × 2) src/Shared/DrawnUi/Internals/Extensions/FluentExtensions.Shared.cs:1586 — src/Shared/DrawnUi/Internals/Extensions/FluentExtensions.Shared.cs:1586-1608 | src/Shared/DrawnUi/Internals/Extensions/FluentExtensions.Shared.cs:1674-1694 — 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 `s` to `object` in one and `object?` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (20–22 lines × 2) · ×2
  • Duplicated block (20–22 lines × 2) src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:294 — src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:294-313 | src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:823-844 — 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 `src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:294` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (20–22 lines × 2) src/Shared/DrawnUi/Draw/Layout/InfiniteLayout.cs:48 — src/Shared/DrawnUi/Draw/Layout/InfiniteLayout.cs:48-67 | src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:2658-2679 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (17–19 lines × 2) · ×2
  • Duplicated block (17–19 lines × 2) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Grid.Structure.cs:507 — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Grid.Structure.cs:507-525 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Grid.Structure.cs:954-970 — 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 `src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Grid.Structure.cs:507` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17–19 lines × 2) src/Blazor/Samples/BlazorSandbox/Pages/Cards.razor:376 — src/Blazor/Samples/BlazorSandbox/Pages/Cards.razor:376-392 | src/Maui/Samples/Tutorials/Tutorials/InteractiveCards/TutorialCards.xaml.cs:37-55 — 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 `src/Blazor/Samples/BlazorSandbox/Pages/Cards.razor:376` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (17–18 lines × 2) · ×2
  • Duplicated block (17–18 lines × 2) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Shared.cs:786 — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Shared.cs:786-803 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Shared.cs:831-847 — 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 (17–18 lines × 2) src/Shared/DrawnUi/Draw/SkiaShape.Bevel.cs:220 — src/Shared/DrawnUi/Draw/SkiaShape.Bevel.cs:220-236 | src/Shared/DrawnUi/Draw/SkiaShape.Bevel.cs:261-278 — 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 `src/Shared/DrawnUi/Draw/SkiaShape.Bevel.cs:220` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (16 lines × 3) · ×2
  • Duplicated block (16 lines × 3) src/OpenTk/Samples/HelloOpenTk/Pages/MultiRippleWithTouchEffect.cs:47 — src/OpenTk/Samples/HelloOpenTk/Pages/MultiRippleWithTouchEffect.cs:47-62 | src/Shared/DrawnUi/Features/Effects/SkiaTouchShockwaveEffect.cs:111-126 | src/Wpf/Samples/HelloWpf/Pages/MultiRippleWithTouchEffect.cs:47-62 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/MultiRippleWithTouchEffect.cs` and `src/Wpf/Samples/HelloWpf/Pages/MultiRippleWithTouchEffect.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
  • Duplicated block (16 lines × 3) src/Maui/Samples/HelloMaui/Pages/ImagesPage.cs:335 — src/Maui/Samples/HelloMaui/Pages/ImagesPage.cs:335-350 | src/OpenTk/Samples/HelloOpenTk/Pages/ImagesPage.cs:336-351 | src/Wpf/Samples/HelloWpf/Pages/ImagesPage.cs:336-351 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/ImagesPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/ImagesPage.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (14–15 lines × 2) · ×2
  • Duplicated block (14–15 lines × 2) src/Shared/DrawnUi/Draw/SkiaShape.Shared.cs:337 — src/Shared/DrawnUi/Draw/SkiaShape.Shared.cs:337-351 | src/Shared/DrawnUi/Draw/SkiaShape.cs:373-386 — 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 `src/Shared/DrawnUi/Draw/SkiaShape.Shared.cs:337` 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 (14–15 lines × 2) src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs:571 — src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs:571-585 | src/Maui/Samples/FastRepro/Views/Sprites/SpriteSnappedBoardPage.cs:271-284 — before extracting anything, compare `src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs` and `src/Maui/Samples/FastRepro/Views/Sprites/SpriteSnappedBoardPage.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (11–13 lines × 2) · ×2
  • Duplicated block (11–13 lines × 2) src/OpenTk/DrawnUi/DesktopInputHandler.cs:24 — src/OpenTk/DrawnUi/DesktopInputHandler.cs:24-34 | src/OpenTk/DrawnUi/DrawnUiWindow.cs:457-469 — 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 `src/OpenTk/DrawnUi/DesktopInputHandler.cs:24` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (11–13 lines × 2) src/Net/Samples/VirtualizationHarnessDemo/CachedScrollTrimRepro.cs:73 — src/Net/Samples/VirtualizationHarnessDemo/CachedScrollTrimRepro.cs:73-85 | src/Net/Samples/VirtualizationHarnessDemo/SubpixelGridRepro.cs:49-59 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `src/Net/Samples/VirtualizationHarnessDemo/CachedScrollTrimRepro.cs:73` calls `SetAutoDoubleBuffering` and `src/Net/Samples/VirtualizationHarnessDemo/SubpixelGridRepro.cs:49` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (11–12 lines × 2) · ×2
  • Duplicated block (11–12 lines × 2) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:789 — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:789-800 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Masonry.cs:79-89 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:789` 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 (11–12 lines × 2) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:786 — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:786-797 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:1501-1511 — 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 `src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:786` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (11 lines × 4) · ×2
  • Duplicated block (11 lines × 4) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.BuildWrapLayout.cs:319 — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.BuildWrapLayout.cs:319-330 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:615-626 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:1092-1102 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:1716-1726 — there are 4 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `src/Shared/DrawnUi/Draw/Layout/SkiaLayout.BuildWrapLayout.cs:319` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (11 lines × 4) src/Maui/Samples/Sandbox/Views/MainPageControls.xaml.cs:8 — src/Maui/Samples/Sandbox/Views/MainPageControls.xaml.cs:8-18 | src/Maui/Samples/Sandbox/Views/MainPageProgress.xaml.cs:8-18 | src/Maui/Samples/Sandbox/Views/MainPageScroll.xaml.cs:8-18 | src/Maui/Samples/Sandbox/Views/MainPageShaderRipples.xaml.cs:8-18 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 4 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `src/Maui/Samples/Sandbox/Views/MainPageProgress.xaml.cs:20` calls `SkiaButton_Tapped` and `src/Maui/Samples/Sandbox/Views/MainPageControls.xaml.cs:21` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (9–10 lines × 2) · ×2
  • Duplicated block (9–10 lines × 2) src/Shared/DrawnUi/EditText/SkiaEditor.cs:989 — src/Shared/DrawnUi/EditText/SkiaEditor.cs:989-998 | src/Shared/DrawnUi/EditText/SkiaEditor.cs:1005-1013 — 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 `src/Shared/DrawnUi/EditText/SkiaEditor.cs:989` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9–10 lines × 2) src/Maui/DrawnUi/Platforms/Windows/SkiaEditor.Windows.cs:246 — src/Maui/DrawnUi/Platforms/Windows/SkiaEditor.Windows.cs:246-255 | src/Maui/DrawnUi/Platforms/Windows/SkiaEditor.Windows.cs:413-421 — 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 `src/Maui/DrawnUi/Platforms/Windows/SkiaEditor.Windows.cs:413` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (20 lines × 6) · ×2
  • Duplicated block (20 lines × 6) src/Shared/DrawnUi/Features/Effects/ChainAdjustBrightnessEffect.cs:21 — src/Shared/DrawnUi/Features/Effects/ChainAdjustBrightnessEffect.cs:21-40 | src/Shared/DrawnUi/Features/Effects/ChainAdjustContrastEffect.cs:19-38 | src/Shared/DrawnUi/Features/Effects/ChainAdjustLightnessEffect.cs:19-38 | src/Shared/DrawnUi/Features/Effects/ChainColorPresetEffect.cs:23-60 | src/Shared/DrawnUi/Features/Effects/ChainSaturationEffect.cs:19-38 | src/Shared/DrawnUi/Features/Effects/ChainTintWithAlphaEffect.cs:46-65 — before extracting anything, compare `src/Shared/DrawnUi/Features/Effects/ChainAdjustBrightnessEffect.cs` and `src/Shared/DrawnUi/Features/Effects/ChainAdjustLightnessEffect.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 112 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 (20 lines × 6) src/Shared/DrawnUi/Features/Effects/ChainAdjustBrightnessEffect.cs:21 — src/Shared/DrawnUi/Features/Effects/ChainAdjustBrightnessEffect.cs:21-40 | src/Shared/DrawnUi/Features/Effects/ChainAdjustContrastEffect.cs:19-38 | src/Shared/DrawnUi/Features/Effects/ChainAdjustLightnessEffect.cs:19-38 | src/Shared/DrawnUi/Features/Effects/ChainColorPresetEffect.cs:23-60 | src/Shared/DrawnUi/Features/Effects/ChainSaturationEffect.cs:19-38 | src/Shared/DrawnUi/Features/Effects/ChainTintWithAlphaEffect.cs:46-65 — before extracting anything, compare `src/Shared/DrawnUi/Features/Effects/ChainAdjustBrightnessEffect.cs` and `src/Shared/DrawnUi/Features/Effects/ChainAdjustLightnessEffect.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 112 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Edited copy of a member (34 corresponding lines) · ×2
  • Edited copy of a member (34 corresponding lines) src/Maui/Samples/HelloMaui/Pages/ReorderCell.cs:180 — src/Maui/Samples/HelloMaui/Pages/ReorderCell.cs:180-213 | src/OpenTk/Samples/HelloOpenTk/Pages/ReorderCell.cs:181-214 — 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) src/Maui/Samples/HelloMaui/Pages/ReorderCell.cs:180 — src/Maui/Samples/HelloMaui/Pages/ReorderCell.cs:180-213 | src/Wpf/Samples/HelloWpf/Pages/ReorderCell.cs:181-214 — These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 18+ corresponding lines) · ×2
  • Edited copies of one member (3 members, 18+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/TransformsPage.cs:244 — src/Maui/Samples/HelloMaui/Pages/TransformsPage.cs:244-261 | src/OpenTk/Samples/HelloOpenTk/Pages/TransformsPage.cs:245-262 | src/Wpf/Samples/HelloWpf/Pages/TransformsPage.cs:245-262 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 18+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/UnevenCellsPage.cs:104 — src/Maui/Samples/HelloMaui/Pages/UnevenCellsPage.cs:104-121 | src/OpenTk/Samples/HelloOpenTk/Pages/UnevenCellsPage.cs:106-123 | src/Wpf/Samples/HelloWpf/Pages/UnevenCellsPage.cs:106-123 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 10+ corresponding lines) · ×2
  • Edited copies of one member (3 members, 10+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/KeyboardPage.cs:121 — src/Maui/Samples/HelloMaui/Pages/KeyboardPage.cs:121-130 | src/OpenTk/Samples/HelloOpenTk/Pages/KeyboardPage.cs:122-131 | src/Wpf/Samples/HelloWpf/Pages/KeyboardPage.cs:122-131 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 10+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/WarriorSprite.cs:40 — src/Maui/Samples/HelloMaui/Pages/WarriorSprite.cs:40-49 | src/OpenTk/Samples/HelloOpenTk/Pages/WarriorSprite.cs:40-49 | src/Wpf/Samples/HelloWpf/Pages/WarriorSprite.cs:40-49 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (3 corresponding lines) · ×2
  • Edited copy of a member (3 corresponding lines) src/OpenTk/Samples/HelloOpenTk/Pages/ShellPage.cs:266 — src/OpenTk/Samples/HelloOpenTk/Pages/ShellPage.cs:266-268 | src/Wpf/Samples/HelloWpf/Pages/ShellPage.cs:266-268 — 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) src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs:83 — src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs:83-85 | src/Net/Samples/VirtualizationHarnessDemo/PreparedViewsRepro.cs:88-90 — 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.
D4 · Code Duplication · Duplicated block (37 lines × 3) · ×2
  • Duplicated block (37 lines × 3) src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Services/NewsDataProvider.cs:79 — src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Services/NewsDataProvider.cs:79-115 | src/Maui/Samples/FastRepro/Services/NewsDataProvider.cs:79-115 | src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Services/NewsDataProvider.cs:79-115 — before extracting anything, compare `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Services/NewsDataProvider.cs` and `src/Maui/Samples/FastRepro/Services/NewsDataProvider.cs` as WHOLE FILES: 87% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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 (37 lines × 3) src/Maui/Samples/HelloMaui/Pages/ScrollPage.cs:211 — src/Maui/Samples/HelloMaui/Pages/ScrollPage.cs:211-247 | src/OpenTk/Samples/HelloOpenTk/Pages/ScrollPage.cs:212-248 | src/Wpf/Samples/HelloWpf/Pages/ScrollPage.cs:212-248 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/ScrollPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/ScrollPage.cs` as WHOLE FILES: 98% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (31 lines × 2) · ×2
  • Duplicated block (31 lines × 2) src/Net/Samples/SkiaEditorHarness/Program.cs:1208 — src/Net/Samples/SkiaEditorHarness/Program.cs:1208-1238 | src/Net/Samples/SkiaEditorHarness/Program.cs:1394-1424 — 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 `src/Net/Samples/SkiaEditorHarness/Program.cs:1208` 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 (31 lines × 2) src/Maui/Samples/Sandbox/Views/MainPageXaml2Pdf.xaml.cs:137 — src/Maui/Samples/Sandbox/Views/MainPageXaml2Pdf.xaml.cs:137-167 | src/Maui/Samples/Sandbox/Views/MainPageXaml2PdfPages.xaml.cs:185-215 — before extracting anything, compare `src/Maui/Samples/Sandbox/Views/MainPageXaml2Pdf.xaml.cs` and `src/Maui/Samples/Sandbox/Views/MainPageXaml2PdfPages.xaml.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 66 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 `src/Maui/Samples/Sandbox/Views/MainPageXaml2Pdf.xaml.cs:137` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (24 lines × 3) · ×2
  • Duplicated block (24 lines × 3) src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/NewsViewModel.cs:125 — src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/NewsViewModel.cs:125-148 | src/Maui/Samples/FastRepro/ViewModels/NewsViewModel.cs:104-127 | src/Maui/Samples/Tutorials/Tutorials/NewsFeed/ViewModels/NewsViewModel.cs:145-168 — before extracting anything, compare `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/NewsViewModel.cs` and `src/Maui/Samples/Tutorials/Tutorials/NewsFeed/ViewModels/NewsViewModel.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/NewsViewModel.cs:125` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (24 lines × 3) src/Maui/Samples/HelloMaui/Pages/RootPage.cs:12 — src/Maui/Samples/HelloMaui/Pages/RootPage.cs:12-35 | src/OpenTk/Samples/HelloOpenTk/Pages/RootPage.cs:14-37 | src/Wpf/Samples/HelloWpf/Pages/RootPage.cs:14-37 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/RootPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/RootPage.cs` as WHOLE FILES: 98% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/HelloMaui/Pages/RootPage.cs:12` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (21–22 lines × 2) · ×2
  • Duplicated block (21–22 lines × 2) src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs:71 — src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs:71-91 | src/Net/Samples/VirtualizationHarnessDemo/MeasureVisibleWindowRepro.cs:69-90 — before extracting anything, compare `src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs` and `src/Net/Samples/VirtualizationHarnessDemo/MeasureVisibleWindowRepro.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 122 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 `src/Net/Samples/VirtualizationHarnessDemo/MeasureVisibleWindowRepro.cs:69` 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, `src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs:71` calls `SetAutoDoubleBuffering` and `src/Net/Samples/VirtualizationHarnessDemo/MeasureVisibleWindowRepro.cs:69` 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 (21–22 lines × 2) src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs:111 — src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs:111-132 | src/Net/Samples/VirtualizationHarnessDemo/PreparedViewsRepro.cs:127-147 — before extracting anything, compare `src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs` and `src/Net/Samples/VirtualizationHarnessDemo/PreparedViewsRepro.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 103 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 `src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs:111` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (19 lines × 3) · ×2
  • Duplicated block (19 lines × 3) src/Maui/Samples/HelloMaui/Pages/ImagesPage.cs:12 — src/Maui/Samples/HelloMaui/Pages/ImagesPage.cs:12-30 | src/OpenTk/Samples/HelloOpenTk/Pages/ImagesPage.cs:13-31 | src/Wpf/Samples/HelloWpf/Pages/ImagesPage.cs:13-31 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/ImagesPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/ImagesPage.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/HelloMaui/Pages/ImagesPage.cs:12` 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 (19 lines × 3) src/Maui/Samples/HelloMaui/Pages/UnevenCellsPage.cs:12 — src/Maui/Samples/HelloMaui/Pages/UnevenCellsPage.cs:12-30 | src/OpenTk/Samples/HelloOpenTk/Pages/UnevenCellsPage.cs:14-32 | src/Wpf/Samples/HelloWpf/Pages/UnevenCellsPage.cs:14-32 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/UnevenCellsPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/UnevenCellsPage.cs` as WHOLE FILES: 99% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/HelloMaui/Pages/UnevenCellsPage.cs:12` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (18 lines × 3) · ×2
  • Duplicated block (18 lines × 3) src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/NewsViewModel.cs:68 — src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/NewsViewModel.cs:68-90 | src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/NewsFeedSupport.cs:251-268 | src/Maui/Samples/Tutorials/Tutorials/NewsFeed/ViewModels/NewsViewModel.cs:87-105 — before extracting anything, compare `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/NewsViewModel.cs` and `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/NewsFeedSupport.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/NewsViewModel.cs:68` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `src/Maui/Samples/Tutorials/Tutorials/NewsFeed/ViewModels/NewsViewModel.cs:86` calls `CancellationTokenSource`, `FromSeconds`, `PreloadImages` and `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/NewsViewModel.cs:68` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (18 lines × 3) src/Maui/Samples/HelloMaui/Pages/SpritesPage.cs:11 — src/Maui/Samples/HelloMaui/Pages/SpritesPage.cs:11-28 | src/OpenTk/Samples/HelloOpenTk/Pages/SpritesPage.cs:12-29 | src/Wpf/Samples/HelloWpf/Pages/SpritesPage.cs:12-29 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/SpritesPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/SpritesPage.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/HelloMaui/Pages/SpritesPage.cs:11` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (8–10 lines × 2) · ×2
  • Duplicated block (8–10 lines × 2) src/Maui/Samples/FastRepro/SkiaTest/MotionMarkScene.cs:68 — src/Maui/Samples/FastRepro/SkiaTest/MotionMarkScene.cs:68-77 | src/Maui/Samples/FastRepro/SkiaTest/MotionMarkSceneOptimized.cs:73-80 — before extracting anything, compare `src/Maui/Samples/FastRepro/SkiaTest/MotionMarkScene.cs` and `src/Maui/Samples/FastRepro/SkiaTest/MotionMarkSceneOptimized.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 60 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `src/Maui/Samples/FastRepro/SkiaTest/MotionMarkScene.cs:68` calls `DrawRect`, `SKRect` and `src/Maui/Samples/FastRepro/SkiaTest/MotionMarkSceneOptimized.cs:73` 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 (8–10 lines × 2) src/OpenTk/Samples/OpenTkOverlay/CubeWindow.cs:229 — src/OpenTk/Samples/OpenTkOverlay/CubeWindow.cs:229-238 | src/OpenTk/Samples/OpenTkOverlay/CubeWindow.cs:245-252 — 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 `src/OpenTk/Samples/OpenTkOverlay/CubeWindow.cs:229` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (5 lines × 4) · ×2
  • Duplicated block (5 lines × 4) src/Net/Samples/SkiaEditorHarness/Program.cs:686 — src/Net/Samples/SkiaEditorHarness/Program.cs:686-690 | src/Net/Samples/SkiaEditorHarness/Program.cs:694-698 | src/Net/Samples/SkiaEditorHarness/Program.cs:702-706 | src/Net/Samples/SkiaEditorHarness/Program.cs:710-714 — 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 `src/Net/Samples/SkiaEditorHarness/Program.cs:686` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 4) src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs:66 — src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs:66-70 | src/Net/Samples/VirtualizationHarnessDemo/PreparedViewsRepro.cs:44-48 | src/Net/Samples/VirtualizationHarnessDemo/PreparedViewsRepro.cs:52-56 | src/Net/Samples/VirtualizationHarnessDemo/ScrollToTopWallRepro.cs:34-39 — before extracting anything, compare `src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs` and `src/Net/Samples/VirtualizationHarnessDemo/PreparedViewsRepro.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 103 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 `src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs:66` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. 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.
IC1 · Incompleteness & stubs · Hollow method · ×2
  • Hollow method — returns a constant without doing the work src/Net/DrawnUi/Views/SkiaViewAccelerated.Net.cs:15 — `Update` 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 src/Shared/DrawnUi/Controls/Pickers/SkiaPicker.cs:203 — `ShowSelectionAsyncPlatform` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in.
IC1 · Incompleteness & stubs · Unfinished stub · ×2
  • Unfinished stub — throws NotImplementedException src/Shared/DrawnUi/Draw/Layout/RenderLabel.cs:9 — `Draw` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException src/Shared/DrawnUi/EditText/SkiaEditor.cs:2655 — `SetCursorPositionNative` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
AC1 · Text alternatives · <canvas> without a text alternative · ×1
  • <canvas> without a text alternative tpls/Wasm/EmptyCode/wwwroot/index.html:16 — A <canvas> with no aria-label/title and no inner fallback content can't be described by assistive tech. Add a name or fallback content.
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.
C2 · Access Controls · No authorization · ×1
  • No authorization — No [Authorize]/policies and no imperative guard methods (throw-on-violation) were found — endpoints may be unprotected.
D1 · Cyclomatic Complexity · SkiaScroll.ProcessGestures (cyclomatic 155) · ×1
  • SkiaScroll.ProcessGestures (cyclomatic 155) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.Gestures.cs:371 — SkiaScroll.ProcessGestures has cyclomatic complexity 155 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaLayout.MeasureStack (cyclomatic 134) · ×1
  • SkiaLayout.MeasureStack (cyclomatic 134) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:1171 — SkiaLayout.MeasureStack has cyclomatic complexity 134 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Bidi.GetCharType (cyclomatic 123) · ×1
  • Bidi.GetCharType (cyclomatic 123) src/Shared/DrawnUi/Draw/Text/SkiaLabel.Bidi.cs:59 — Bidi.GetCharType has cyclomatic complexity 123 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · SkiaLayout.DrawStackVisibleChildren (cyclomatic 117) · ×1
  • SkiaLayout.DrawStackVisibleChildren (cyclomatic 117) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:2851 — SkiaLayout.DrawStackVisibleChildren has cyclomatic complexity 117 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaControl.ProcessGestures (cyclomatic 84) · ×1
  • SkiaControl.ProcessGestures (cyclomatic 84) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:2624 — SkiaControl.ProcessGestures has cyclomatic complexity 84 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaLabel.DrawLines (cyclomatic 83) · ×1
  • SkiaLabel.DrawLines (cyclomatic 83) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:457 — SkiaLabel.DrawLines 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.
D1 · Cyclomatic Complexity · SkiaDrawer.ProcessGestures (cyclomatic 81) · ×1
  • SkiaDrawer.ProcessGestures (cyclomatic 81) src/Shared/DrawnUi/Controls/Drawer/SkiaDrawer.cs:679 — SkiaDrawer.ProcessGestures has cyclomatic complexity 81 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaLabel.DecomposeText (cyclomatic 73) · ×1
  • SkiaLabel.DecomposeText (cyclomatic 73) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:1885 — SkiaLabel.DecomposeText has cyclomatic complexity 73 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaControl.MeasureContentCore (cyclomatic 72) · ×1
  • SkiaControl.MeasureContentCore (cyclomatic 72) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:6035 — SkiaControl.MeasureContentCore has cyclomatic complexity 72 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Bidi.GetLevels (cyclomatic 72) · ×1
  • Bidi.GetLevels (cyclomatic 72) src/Shared/DrawnUi/Draw/Text/SkiaLabel.Bidi.cs:141 — Bidi.GetLevels has cyclomatic complexity 72 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TypingJumpRepro.RunCore (cyclomatic 72) · ×1
  • TypingJumpRepro.RunCore (cyclomatic 72) src/Net/Samples/VirtualizationHarnessDemo/TypingJumpRepro.cs:37 — TypingJumpRepro.RunCore has cyclomatic complexity 72 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaLayout.MeasureList (cyclomatic 70) · ×1
  • SkiaLayout.MeasureList (cyclomatic 70) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:1210 — SkiaLayout.MeasureList has cyclomatic complexity 70 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaLayout.MeasureStackLegacy (cyclomatic 63) · ×1
  • SkiaLayout.MeasureStackLegacy (cyclomatic 63) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:307 — SkiaLayout.MeasureStackLegacy has cyclomatic complexity 63 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaLabel.OnMeasuring (cyclomatic 62) · ×1
  • SkiaLabel.OnMeasuring (cyclomatic 62) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:1136 — SkiaLabel.OnMeasuring has cyclomatic complexity 62 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Canvas.ProcessGestures (cyclomatic 61) · ×1
  • Canvas.ProcessGestures (cyclomatic 61) src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:60 — Canvas.ProcessGestures has cyclomatic complexity 61 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GLThread.GuardedRun (cyclomatic 59) · ×1
  • GLThread.GuardedRun (cyclomatic 59) src/Maui/DrawnUi/Platforms/Android/Retained/SkiaGLTextureView.cs:712 — GLThread.GuardedRun has cyclomatic complexity 59 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaLabel.UnicodeNeedsShaping (cyclomatic 58) · ×1
  • SkiaLabel.UnicodeNeedsShaping (cyclomatic 58) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:3160 — SkiaLabel.UnicodeNeedsShaping has cyclomatic complexity 58 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · Canvas.ProcessGestures (cyclomatic 58) · ×1
  • Canvas.ProcessGestures (cyclomatic 58) src/Maui/DrawnUi/Views/Canvas.cs:570 — Canvas.ProcessGestures has cyclomatic complexity 58 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · BuildWrapLayout.Build (cyclomatic 57) · ×1
  • BuildWrapLayout.Build (cyclomatic 57) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.BuildWrapLayout.cs:18 — BuildWrapLayout.Build has cyclomatic complexity 57 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaScroll.Draw (cyclomatic 56) · ×1
  • SkiaScroll.Draw (cyclomatic 56) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:3297 — SkiaScroll.Draw has cyclomatic complexity 56 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaLayout.DrawStack (cyclomatic 54) · ×1
  • SkiaLayout.DrawStack (cyclomatic 54) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:2569 — SkiaLayout.DrawStack has cyclomatic complexity 54 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ParseSteps (cyclomatic 51) · ×1
  • ParseSteps (cyclomatic 51) src/Net/Samples/SkiaEditorHarness/Program.cs:620 — ParseSteps has cyclomatic complexity 51 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaSlider.ProcessGestures (cyclomatic 50) · ×1
  • SkiaSlider.ProcessGestures (cyclomatic 50) src/Shared/DrawnUi/Controls/Slider/SkiaSlider.cs:1129 — SkiaSlider.ProcessGestures has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaScroll.PositionViewport (cyclomatic 49) · ×1
  • SkiaScroll.PositionViewport (cyclomatic 49) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:2726 — SkiaScroll.PositionViewport has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaEditor.UpdateCursorVisibility (cyclomatic 49) · ×1
  • SkiaEditor.UpdateCursorVisibility (cyclomatic 49) src/Shared/DrawnUi/EditText/SkiaEditor.cs:1168 — SkiaEditor.UpdateCursorVisibility has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Canvas.ProcessNetGestures (cyclomatic 49) · ×1
  • Canvas.ProcessNetGestures (cyclomatic 49) src/Net/DrawnUi/Views/Canvas.Gestures.Net.cs:63 — Canvas.ProcessNetGestures has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DevSnapshot.ArmIfRequested (cyclomatic 49) · ×1
  • DevSnapshot.ArmIfRequested (cyclomatic 49) src/Wpf/Samples/HelloWpf/DevSnapshot.cs:43 — DevSnapshot.ArmIfRequested has cyclomatic complexity 49 (threshold 15). Most of this is not in the body itself: 3 of the 49 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 54, a function literal at line 76, Hist, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · FeedPresetRepro.Run (cyclomatic 49) · ×1
  • FeedPresetRepro.Run (cyclomatic 49) src/Net/Samples/VirtualizationHarnessDemo/FeedPresetRepro.cs:37 — FeedPresetRepro.Run has cyclomatic complexity 49 (threshold 15). Of this number, 47 points are the body's own statements and 2 belong 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.
D1 · Cyclomatic Complexity · DeleteGapRepro.Run (cyclomatic 47) · ×1
  • DeleteGapRepro.Run (cyclomatic 47) src/Net/Samples/VirtualizationHarnessDemo/DeleteGapRepro.cs:14 — DeleteGapRepro.Run has cyclomatic complexity 47 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TelegramLikeRepro.RunCore (cyclomatic 47) · ×1
  • TelegramLikeRepro.RunCore (cyclomatic 47) src/Net/Samples/VirtualizationHarnessDemo/TelegramLikeRepro.cs:43 — TelegramLikeRepro.RunCore has cyclomatic complexity 47 (threshold 15). Of this number, 39 points are the body's own statements and 8 belong to 6 function literals inside it that branch. 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.
D1 · Cyclomatic Complexity · SkiaModel3D.ProcessGestures (cyclomatic 46) · ×1
  • SkiaModel3D.ProcessGestures (cyclomatic 46) src/SharedAdd3d/SkiaModel3D.cs:1010 — SkiaModel3D.ProcessGestures has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaScroll.DrawViews (cyclomatic 45) · ×1
  • SkiaScroll.DrawViews (cyclomatic 45) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:3629 — SkiaScroll.DrawViews 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.
D1 · Cyclomatic Complexity · BuiltinWindowChatRepro.RunCore (cyclomatic 44) · ×1
  • BuiltinWindowChatRepro.RunCore (cyclomatic 44) src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs:56 — BuiltinWindowChatRepro.RunCore has cyclomatic complexity 44 (threshold 15). Of this number, 38 points are the body's own statements and 6 belong to 4 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaLabel.SplitLines (cyclomatic 43) · ×1
  • SkiaLabel.SplitLines (cyclomatic 43) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:2488 — SkiaLabel.SplitLines has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaScroll.GetContentOffsetBounds (cyclomatic 41) · ×1
  • SkiaScroll.GetContentOffsetBounds (cyclomatic 41) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.Scrolling.cs:675 — SkiaScroll.GetContentOffsetBounds has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaControl.CalculateLayout (cyclomatic 41) · ×1
  • SkiaControl.CalculateLayout (cyclomatic 41) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:4520 — SkiaControl.CalculateLayout has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaCachedStack.DrawDirectCore (cyclomatic 38) · ×1
  • SkiaCachedStack.DrawDirectCore (cyclomatic 38) src/Shared/DrawnUi/Draw/Layout/SkiaCachedStack.cs:380 — SkiaCachedStack.DrawDirectCore has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaLayout.MeasureStackTemplatedFast (cyclomatic 38) · ×1
  • SkiaLayout.MeasureStackTemplatedFast (cyclomatic 38) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:1004 — SkiaLayout.MeasureStackTemplatedFast has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaShape.Paint (cyclomatic 38) · ×1
  • SkiaShape.Paint (cyclomatic 38) src/Shared/DrawnUi/Draw/SkiaShape.cs:614 — SkiaShape.Paint has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CachedStackWindowRepro.Run (cyclomatic 38) · ×1
  • CachedStackWindowRepro.Run (cyclomatic 38) src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs:17 — CachedStackWindowRepro.Run has cyclomatic complexity 38 (threshold 15). Of this number, 36 points are the body's own statements and 2 belong 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.
D1 · Cyclomatic Complexity · SkiaLayout.OnItemsSourceCollectionChanged (cyclomatic 37) · ×1
  • SkiaLayout.OnItemsSourceCollectionChanged (cyclomatic 37) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Shared.cs:2098 — SkiaLayout.OnItemsSourceCollectionChanged has cyclomatic complexity 37 (threshold 15). Of this number, 25 points are the body's own statements and 12 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · SkiaLayout.BuildPlaneWindowStructure (cyclomatic 37) · ×1
  • SkiaLayout.BuildPlaneWindowStructure (cyclomatic 37) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:5193 — SkiaLayout.BuildPlaneWindowStructure 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.
D1 · Cyclomatic Complexity · SKMeshSpecification.Make (cyclomatic 37) · ×1
  • SKMeshSpecification.Make (cyclomatic 37) src/Shared/DrawnUi/Features/Meshes/SKMeshSpecification.cs:276 — SKMeshSpecification.Make 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.
D1 · Cyclomatic Complexity · PongGame.GameLoop (cyclomatic 37) · ×1
  • PongGame.GameLoop (cyclomatic 37) src/Shared/Samples/Pong.Shared/Game/PongGame.Loop.cs:13 — PongGame.GameLoop 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.
D1 · Cyclomatic Complexity · attachTouchTextInput (cyclomatic 37) · ×1
  • attachTouchTextInput (cyclomatic 37) src/Blazor/DrawnUi/wwwroot/drawnui-keyboard.js:227 — attachTouchTextInput has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 2 of the 37 points are its own statements and the rest belongs to 7 function items inside it that branch (touchEndHandler, a function literal at line 277, touchStartHandler, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · SkiaImage.SetImageSource (cyclomatic 36) · ×1
  • SkiaImage.SetImageSource (cyclomatic 36) src/Shared/DrawnUi/Draw/Images/SkiaImage.cs:562 — SkiaImage.SetImageSource has cyclomatic complexity 36 (threshold 15). Of this number, 22 points are the body's own statements and 14 belong 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.
D1 · Cyclomatic Complexity · CachedScrollTrimRepro.RunInner (cyclomatic 36) · ×1
  • CachedScrollTrimRepro.RunInner (cyclomatic 36) src/Net/Samples/VirtualizationHarnessDemo/CachedScrollTrimRepro.cs:186 — CachedScrollTrimRepro.RunInner 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.
D1 · Cyclomatic Complexity · MeasureFirstWindowRepro.Run (cyclomatic 36) · ×1
  • MeasureFirstWindowRepro.Run (cyclomatic 36) src/Net/Samples/VirtualizationHarnessDemo/MeasureFirstWindowRepro.cs:15 — MeasureFirstWindowRepro.Run has cyclomatic complexity 36 (threshold 15). Of this number, 35 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.
D1 · Cyclomatic Complexity · MeasureVisibleWindowRepro.Run (cyclomatic 36) · ×1
  • MeasureVisibleWindowRepro.Run (cyclomatic 36) src/Net/Samples/VirtualizationHarnessDemo/MeasureVisibleWindowRepro.cs:16 — MeasureVisibleWindowRepro.Run has cyclomatic complexity 36 (threshold 15). Of this number, 34 points are the body's own statements and 2 belong 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.
D1 · Cyclomatic Complexity · SkiaButton.ApplyProperties (cyclomatic 35) · ×1
  • SkiaButton.ApplyProperties (cyclomatic 35) src/Shared/DrawnUi/Controls/Button/SkiaButton.cs:570 — SkiaButton.ApplyProperties has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaLayout.DrawList (cyclomatic 35) · ×1
  • SkiaLayout.DrawList (cyclomatic 35) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:4393 — SkiaLayout.DrawList has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaCarousel.ProcessCarouselGestures (cyclomatic 34) · ×1
  • SkiaCarousel.ProcessCarouselGestures (cyclomatic 34) src/Shared/DrawnUi/Controls/Layouts/SkiaCarousel.cs:1966 — SkiaCarousel.ProcessCarouselGestures 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.
D1 · Cyclomatic Complexity · SkiaViewSwitcher.ApplySelectedIndex (cyclomatic 34) · ×1
  • SkiaViewSwitcher.ApplySelectedIndex (cyclomatic 34) src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs:1019 — SkiaViewSwitcher.ApplySelectedIndex 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.
D1 · Cyclomatic Complexity · Renderer3D.DrawItem (cyclomatic 33) · ×1
  • Renderer3D.DrawItem (cyclomatic 33) src/SharedAdd3d/Renderer3D.cs:682 — Renderer3D.DrawItem 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.
D1 · Cyclomatic Complexity · SkiaLayout.UpdateProgressiveContentSize (cyclomatic 33) · ×1
  • SkiaLayout.UpdateProgressiveContentSize (cyclomatic 33) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:3927 — SkiaLayout.UpdateProgressiveContentSize 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.
D1 · Cyclomatic Complexity · SkiaControl.DrawWithClipAndTransforms (cyclomatic 33) · ×1
  • SkiaControl.DrawWithClipAndTransforms (cyclomatic 33) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:7901 — SkiaControl.DrawWithClipAndTransforms 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.
D1 · Cyclomatic Complexity · SkiaLayout.LayoutCell (cyclomatic 33) · ×1
  • SkiaLayout.LayoutCell (cyclomatic 33) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.StackWrap.Shared.cs:139 — SkiaLayout.LayoutCell 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.
D1 · Cyclomatic Complexity · Super.HandleScreenMetricsChanged (cyclomatic 32) · ×1
  • Super.HandleScreenMetricsChanged (cyclomatic 32) src/Blazor/DrawnUi/Super.Blazor.cs:237 — Super.HandleScreenMetricsChanged 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.
D1 · Cyclomatic Complexity · SkiaShaderCarousel.ScrollToOffset (cyclomatic 32) · ×1
  • SkiaShaderCarousel.ScrollToOffset (cyclomatic 32) src/Shared/DrawnUi/Controls/Layouts/SkiaShaderCarousel.cs:379 — SkiaShaderCarousel.ScrollToOffset 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.
D1 · Cyclomatic Complexity · SkiaLayout.ApplyRemoveChange (cyclomatic 32) · ×1
  • SkiaLayout.ApplyRemoveChange (cyclomatic 32) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:3205 — SkiaLayout.ApplyRemoveChange has cyclomatic complexity 32 (threshold 15). Of this number, 30 points are the body's own statements and 2 belong 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.
D1 · Cyclomatic Complexity · SkiaControl.Arrange (cyclomatic 32) · ×1
  • SkiaControl.Arrange (cyclomatic 32) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:5748 — SkiaControl.Arrange has cyclomatic complexity 32 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · VulkanRenderer3D.DrawItem (cyclomatic 31) · ×1
  • VulkanRenderer3D.DrawItem (cyclomatic 31) src/Maui/Addons/DrawnUi.Maui.Add3d/Platforms/Android/VulkanRenderer3D.cs:983 — VulkanRenderer3D.DrawItem 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.
D1 · Cyclomatic Complexity · SkiaLayout.ProcessIncrementalChanges (cyclomatic 31) · ×1
  • SkiaLayout.ProcessIncrementalChanges (cyclomatic 31) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:2024 — SkiaLayout.ProcessIncrementalChanges 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.
D1 · Cyclomatic Complexity · SkiaEditorHarnessAdapter.TryExecute (cyclomatic 31) · ×1
  • SkiaEditorHarnessAdapter.TryExecute (cyclomatic 31) src/Net/Samples/SkiaEditorHarness/Program.cs:1384 — SkiaEditorHarnessAdapter.TryExecute 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.
D1 · Cyclomatic Complexity · ZoomContent.ProcessGestures (cyclomatic 30) · ×1
  • ZoomContent.ProcessGestures (cyclomatic 30) src/Shared/DrawnUi/Controls/Zoom/ZoomContent.cs:331 — ZoomContent.ProcessGestures 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.
D1 · Cyclomatic Complexity · SkiaLayout.ApplyWindowSlideInPlace (cyclomatic 30) · ×1
  • SkiaLayout.ApplyWindowSlideInPlace (cyclomatic 30) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Shared.cs:1674 — SkiaLayout.ApplyWindowSlideInPlace has cyclomatic complexity 30 (threshold 15). Of this number, 29 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.
D1 · Cyclomatic Complexity · SkiaVulkanTextureView.Run (cyclomatic 30) · ×1
  • SkiaVulkanTextureView.Run (cyclomatic 30) src/Maui/DrawnUi/Platforms/Android/Vulkan/SkiaVulkanTextureView.cs:243 — SkiaVulkanTextureView.Run 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.
D1 · Cyclomatic Complexity · MetalRenderer3D.DrawItem (cyclomatic 29) · ×1
  • MetalRenderer3D.DrawItem (cyclomatic 29) src/Maui/Addons/DrawnUi.Maui.Add3d/Apple/MetalRenderer3D.cs:510 — MetalRenderer3D.DrawItem has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaCarousel.CalculateChildPosition (cyclomatic 29) · ×1
  • SkiaCarousel.CalculateChildPosition (cyclomatic 29) src/Shared/DrawnUi/Controls/Layouts/SkiaCarousel.cs:753 — SkiaCarousel.CalculateChildPosition has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaLayout.MeasureAbsolute (cyclomatic 29) · ×1
  • SkiaLayout.MeasureAbsolute (cyclomatic 29) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Shared.cs:753 — SkiaLayout.MeasureAbsolute has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaLayout.TryApplyUniformAddMeasureFirst (cyclomatic 29) · ×1
  • SkiaLayout.TryApplyUniformAddMeasureFirst (cyclomatic 29) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:2461 — SkiaLayout.TryApplyUniformAddMeasureFirst has cyclomatic complexity 29 (threshold 15). Of this number, 28 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.
D1 · Cyclomatic Complexity · SkiaControl.UseRenderingObject (cyclomatic 28) · ×1
  • SkiaControl.UseRenderingObject (cyclomatic 28) src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs:1151 — SkiaControl.UseRenderingObject has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaShader.CreateUniforms (cyclomatic 28) · ×1
  • SkiaShader.CreateUniforms (cyclomatic 28) src/Shared/DrawnUi/Features/Shaders/SkiaShader.cs:314 — SkiaShader.CreateUniforms has cyclomatic complexity 28 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · SkiaAccessibilityManager.MoveInGroup (cyclomatic 28) · ×1
  • SkiaAccessibilityManager.MoveInGroup (cyclomatic 28) src/Shared/DrawnUi/Views/SkiaAccessibilityManager.cs:896 — SkiaAccessibilityManager.MoveInGroup 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.
D1 · Cyclomatic Complexity · SkiaAccessibilityManager.RebuildLocked (cyclomatic 28) · ×1
  • SkiaAccessibilityManager.RebuildLocked (cyclomatic 28) src/Shared/DrawnUi/Views/SkiaAccessibilityManager.cs:1372 — SkiaAccessibilityManager.RebuildLocked has cyclomatic complexity 28 (threshold 15). Of this number, 27 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.
D1 · Cyclomatic Complexity · SpriteBoardPage.UpdateEnemyAI (cyclomatic 28) · ×1
  • SpriteBoardPage.UpdateEnemyAI (cyclomatic 28) src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs:313 — SpriteBoardPage.UpdateEnemyAI has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SubpixelGridRepro.RunInner (cyclomatic 28) · ×1
  • SubpixelGridRepro.RunInner (cyclomatic 28) src/Net/Samples/VirtualizationHarnessDemo/SubpixelGridRepro.cs:45 — SubpixelGridRepro.RunInner has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · drawnui-web.pageScrollAxes (cyclomatic 28) · ×1
  • drawnui-web.pageScrollAxes (cyclomatic 28) src/Wasm/DrawnUi/wwwroot/drawnui-web.js:419 — drawnui-web.pageScrollAxes has cyclomatic complexity 28 (threshold 15). Of this number, 25 points are the body's own statements and 3 belong to 2 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · SkiaLayout.MeasureStackNonTemplatedFast (cyclomatic 27) · ×1
  • SkiaLayout.MeasureStackNonTemplatedFast (cyclomatic 27) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:865 — SkiaLayout.MeasureStackNonTemplatedFast 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.
D1 · Cyclomatic Complexity · SkiaControl.CreateRenderingObject (cyclomatic 27) · ×1
  • SkiaControl.CreateRenderingObject (cyclomatic 27) src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs:862 — SkiaControl.CreateRenderingObject 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.
D1 · Cyclomatic Complexity · LinuxAtSpiProvider.HandleComponent (cyclomatic 27) · ×1
  • LinuxAtSpiProvider.HandleComponent (cyclomatic 27) src/OpenTk/DrawnUi/Accessibility/LinuxAtSpiProvider.cs:688 — LinuxAtSpiProvider.HandleComponent has cyclomatic complexity 27 (threshold 15). Of this number, 25 points are the body's own statements and 2 belong to 2 function literals inside it that branch. 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: LinuxAtSpiProvider.Role (cyclomatic 36) 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.
D1 · Cyclomatic Complexity · DrawnUiWindow.OnKeyDown (cyclomatic 27) · ×1
  • DrawnUiWindow.OnKeyDown (cyclomatic 27) src/OpenTk/DrawnUi/DrawnUiWindow.cs:426 — DrawnUiWindow.OnKeyDown 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.
D1 · Cyclomatic Complexity · DiceThrow.Advance (cyclomatic 27) · ×1
  • DiceThrow.Advance (cyclomatic 27) src/Shared/Samples/Add3dGallery.Shared/Pages/DiceThrow.cs:121 — DiceThrow.Advance 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.
D1 · Cyclomatic Complexity · EngageOnLoadMoreRepro.RunCore (cyclomatic 27) · ×1
  • EngageOnLoadMoreRepro.RunCore (cyclomatic 27) src/Net/Samples/VirtualizationHarnessDemo/EngageOnLoadMoreRepro.cs:52 — EngageOnLoadMoreRepro.RunCore has cyclomatic complexity 27 (threshold 15). Of this number, 25 points are the body's own statements and 2 belong 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.
D1 · Cyclomatic Complexity · showPickerPrompt (cyclomatic 27) · ×1
  • showPickerPrompt (cyclomatic 27) src/Blazor/DrawnUi/wwwroot/drawnui-picker.js:151 — showPickerPrompt has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 7 of the 27 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 162, a function literal at line 228, (anonymous)::onKeyDown, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · SkiaBackdrop.Paint (cyclomatic 26) · ×1
  • SkiaBackdrop.Paint (cyclomatic 26) src/Shared/DrawnUi/Draw/SkiaBackdrop.cs:132 — SkiaBackdrop.Paint has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaImage.OnMeasuring (cyclomatic 26) · ×1
  • SkiaImage.OnMeasuring (cyclomatic 26) src/Shared/DrawnUi/Draw/Images/SkiaImage.cs:1947 — SkiaImage.OnMeasuring has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaLabel.ProcessTextSelection (cyclomatic 26) · ×1
  • SkiaLabel.ProcessTextSelection (cyclomatic 26) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:5195 — SkiaLabel.ProcessTextSelection has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaEditor.ProcessGestures (cyclomatic 26) · ×1
  • SkiaEditor.ProcessGestures (cyclomatic 26) src/Shared/DrawnUi/EditText/SkiaEditor.cs:848 — SkiaEditor.ProcessGestures has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaAccessibilityManager.UpdateActiveModal (cyclomatic 26) · ×1
  • SkiaAccessibilityManager.UpdateActiveModal (cyclomatic 26) src/Shared/DrawnUi/Views/SkiaAccessibilityManager.cs:387 — SkiaAccessibilityManager.UpdateActiveModal has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · DrawnUiElement.OnPreviewKeyDown (cyclomatic 26) · ×1
  • DrawnUiElement.OnPreviewKeyDown (cyclomatic 26) src/Wpf/Drawnui.Wpf/Views/DrawnUiElement.cs:975 — DrawnUiElement.OnPreviewKeyDown has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · patchSkiaSizeWatcher (cyclomatic 26) · ×1
  • patchSkiaSizeWatcher (cyclomatic 26) src/Blazor/DrawnUi/wwwroot/drawnui-canvas-resize.js:77 — patchSkiaSizeWatcher has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 2 of the 26 points are its own statements and the rest belongs to 9 function items inside it that branch ((anonymous)::invoke, a function literal at line 82, (anonymous)::update, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · Scene3D.Ray (cyclomatic 25) · ×1
  • Scene3D.Ray (cyclomatic 25) src/SharedAdd3d/Scene3D.cs:426 — Scene3D.Ray 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.
D1 · Cyclomatic Complexity · SkiaImage.Paint (cyclomatic 25) · ×1
  • SkiaImage.Paint (cyclomatic 25) src/Shared/DrawnUi/Draw/Images/SkiaImage.cs:1277 — SkiaImage.Paint 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.
D1 · Cyclomatic Complexity · SkiaLayout.TryMeasureMasonryChanges (cyclomatic 25) · ×1
  • SkiaLayout.TryMeasureMasonryChanges (cyclomatic 25) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Masonry.cs:96 — SkiaLayout.TryMeasureMasonryChanges 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.
D1 · Cyclomatic Complexity · SkiaScroll.CalculateScrollOffsetForIndex (cyclomatic 25) · ×1
  • SkiaScroll.CalculateScrollOffsetForIndex (cyclomatic 25) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:1933 — SkiaScroll.CalculateScrollOffsetForIndex 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.
D1 · Cyclomatic Complexity · SkiaScrollLooped.GetItemIndex (cyclomatic 25) · ×1
  • SkiaScrollLooped.GetItemIndex (cyclomatic 25) src/Shared/DrawnUi/Draw/Scroll/SkiaScrollLooped.cs:49 — SkiaScrollLooped.GetItemIndex 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.
D1 · Cyclomatic Complexity · SkiaControl.SetupRenderingWithComposition (cyclomatic 25) · ×1
  • SkiaControl.SetupRenderingWithComposition (cyclomatic 25) src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs:219 — SkiaControl.SetupRenderingWithComposition 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.
D1 · Cyclomatic Complexity · SkiaControl.RescaleAspect (cyclomatic 25) · ×1
  • SkiaControl.RescaleAspect (cyclomatic 25) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:10385 — SkiaControl.RescaleAspect 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. Note what this body is, though: it carries an aggressive-inlining request, so its author has asked in the source for this body to be inlined into every caller. Each part pulled out of it becomes a call the runtime has to decide to inline again, against a size budget — so the split can quietly turn one inlined body into several real calls, on the path the marker exists to protect. The measurement stands — a hot path is not a licence to be unreadable — but the move that pays here is to lift the COLD parts out first (argument validation, fallback and error paths, one-off setup) and leave the kernel whole. Where the kernel itself has to be divided, ask for the extracted parts to be inlined as well, and measure the result rather than assuming the division is free.
D1 · Cyclomatic Complexity · SkiaShell.GoToAsync (cyclomatic 25) · ×1
  • SkiaShell.GoToAsync (cyclomatic 25) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:2504 — SkiaShell.GoToAsync 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.
D1 · Cyclomatic Complexity · SkiaShaderCarousel.OnScrollProgressChanged (cyclomatic 24) · ×1
  • SkiaShaderCarousel.OnScrollProgressChanged (cyclomatic 24) src/Shared/DrawnUi/Controls/Layouts/SkiaShaderCarousel.cs:232 — SkiaShaderCarousel.OnScrollProgressChanged has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaLayout.PrepareCellOffthread (cyclomatic 24) · ×1
  • SkiaLayout.PrepareCellOffthread (cyclomatic 24) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:862 — SkiaLayout.PrepareCellOffthread 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.
D1 · Cyclomatic Complexity · SkiaLayout.ApplyStructureChanges (cyclomatic 24) · ×1
  • SkiaLayout.ApplyStructureChanges (cyclomatic 24) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:1834 — SkiaLayout.ApplyStructureChanges has cyclomatic complexity 24 (threshold 15). Of this number, 22 points are the body's own statements and 2 belong 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.
D1 · Cyclomatic Complexity · SkiaScroll.GetItemIndex (cyclomatic 24) · ×1
  • SkiaScroll.GetItemIndex (cyclomatic 24) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:1758 — SkiaScroll.GetItemIndex has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaControl.CreateTransformationMatrix (cyclomatic 24) · ×1
  • SkiaControl.CreateTransformationMatrix (cyclomatic 24) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:4964 — SkiaControl.CreateTransformationMatrix has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · SkiaControl.ApplyTransforms (cyclomatic 24) · ×1
  • SkiaControl.ApplyTransforms (cyclomatic 24) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:5062 — SkiaControl.ApplyTransforms has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · DrawnView.Draw (cyclomatic 24) · ×1
  • DrawnView.Draw (cyclomatic 24) src/Shared/DrawnUi/Views/DrawnView.cs:2572 — DrawnView.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.
D1 · Cyclomatic Complexity · WpfStartup.ApplyToWindow (cyclomatic 24) · ×1
  • WpfStartup.ApplyToWindow (cyclomatic 24) src/Wpf/Drawnui.Wpf/Features/StartupSettings.Wpf.cs:68 — WpfStartup.ApplyToWindow has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 6 of the 24 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 110, 98, 91). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · SkiaMapsUi.ProcessGestures (cyclomatic 23) · ×1
  • SkiaMapsUi.ProcessGestures (cyclomatic 23) src/Maui/Addons/DrawnUi.Maui.MapsUi/SkiaMapsUi.cs:465 — SkiaMapsUi.ProcessGestures 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.
D1 · Cyclomatic Complexity · SkiaCarousel.SelectNextAnchorInternal (cyclomatic 23) · ×1
  • SkiaCarousel.SelectNextAnchorInternal (cyclomatic 23) src/Shared/DrawnUi/Controls/Layouts/SkiaCarousel.cs:137 — SkiaCarousel.SelectNextAnchorInternal 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.
D1 · Cyclomatic Complexity · ChildrenCollectionSync.Apply (cyclomatic 23) · ×1
  • ChildrenCollectionSync.Apply (cyclomatic 23) src/Shared/DrawnUi/Draw/Base/ChildrenCollectionSync.cs:16 — ChildrenCollectionSync.Apply 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.
D1 · Cyclomatic Complexity · SkiaImage.DrawSource (cyclomatic 23) · ×1
  • SkiaImage.DrawSource (cyclomatic 23) src/Shared/DrawnUi/Draw/Images/SkiaImage.cs:1590 — SkiaImage.DrawSource 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.
D1 · Cyclomatic Complexity · SkiaLayout.TryEngageItemsWindowOnGrow (cyclomatic 23) · ×1
  • SkiaLayout.TryEngageItemsWindowOnGrow (cyclomatic 23) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Shared.cs:1527 — SkiaLayout.TryEngageItemsWindowOnGrow 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.
D1 · Cyclomatic Complexity · SkiaLabel.MeasureLineGlyphs (cyclomatic 23) · ×1
  • SkiaLabel.MeasureLineGlyphs (cyclomatic 23) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:1758 — SkiaLabel.MeasureLineGlyphs 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.
D1 · Cyclomatic Complexity · SkiaVulkanTextureView.CreateSwapchain (cyclomatic 23) · ×1
  • SkiaVulkanTextureView.CreateSwapchain (cyclomatic 23) src/Maui/DrawnUi/Platforms/Android/Vulkan/SkiaVulkanTextureView.cs:405 — SkiaVulkanTextureView.CreateSwapchain 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.
D1 · Cyclomatic Complexity · CachedJumpRepro.RunOnce (cyclomatic 23) · ×1
  • CachedJumpRepro.RunOnce (cyclomatic 23) src/Net/Samples/VirtualizationHarnessDemo/CachedJumpRepro.cs:36 — CachedJumpRepro.RunOnce 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.
D1 · Cyclomatic Complexity · Canvas.OnTouchAction (cyclomatic 22) · ×1
  • Canvas.OnTouchAction (cyclomatic 22) src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:362 — Canvas.OnTouchAction has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaCarousel.RenderViewsList (cyclomatic 22) · ×1
  • SkiaCarousel.RenderViewsList (cyclomatic 22) src/Shared/DrawnUi/Controls/Layouts/SkiaCarousel.cs:428 — SkiaCarousel.RenderViewsList has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ItemsSourceWindow.OnSourceCollectionChanged (cyclomatic 22) · ×1
  • ItemsSourceWindow.OnSourceCollectionChanged (cyclomatic 22) src/Shared/DrawnUi/Draw/Layout/Windowing/ItemsSourceWindow.cs:384 — ItemsSourceWindow.OnSourceCollectionChanged has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaLayout.MeasureLayout (cyclomatic 22) · ×1
  • SkiaLayout.MeasureLayout (cyclomatic 22) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Shared.cs:883 — SkiaLayout.MeasureLayout has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaGridStructure.MeasureChild (cyclomatic 22) · ×1
  • SkiaGridStructure.MeasureChild (cyclomatic 22) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Grid.Structure.cs:554 — SkiaGridStructure.MeasureChild has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaLayout.ShouldTriggerLoadMore (cyclomatic 22) · ×1
  • SkiaLayout.ShouldTriggerLoadMore (cyclomatic 22) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:198 — SkiaLayout.ShouldTriggerLoadMore 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.
D1 · Cyclomatic Complexity · SkiaLayout.MeasureAdditionalItems (cyclomatic 22) · ×1
  • SkiaLayout.MeasureAdditionalItems (cyclomatic 22) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:4906 — SkiaLayout.MeasureAdditionalItems has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaScroll.ExecuteScrollToIndexOrder (cyclomatic 22) · ×1
  • SkiaScroll.ExecuteScrollToIndexOrder (cyclomatic 22) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.Scrolling.cs:1190 — SkiaScroll.ExecuteScrollToIndexOrder has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaControl.CheckCachedObjectValid (cyclomatic 22) · ×1
  • SkiaControl.CheckCachedObjectValid (cyclomatic 22) src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs:716 — SkiaControl.CheckCachedObjectValid has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaLabel.BuildFallbackRuns (cyclomatic 22) · ×1
  • SkiaLabel.BuildFallbackRuns (cyclomatic 22) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:3583 — SkiaLabel.BuildFallbackRuns has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaFontManager.DetectUnicodeBlock (cyclomatic 22) · ×1
  • SkiaFontManager.DetectUnicodeBlock (cyclomatic 22) src/Maui/DrawnUi/Features/Fonts/SkiaFontManager.cs:135 — SkiaFontManager.DetectUnicodeBlock 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.
D1 · Cyclomatic Complexity · StalePlaneContentRepro.RunCore (cyclomatic 22) · ×1
  • StalePlaneContentRepro.RunCore (cyclomatic 22) src/Net/Samples/VirtualizationHarnessDemo/StalePlaneContentRepro.cs:65 — StalePlaneContentRepro.RunCore has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaCachedStack.ClampCoverageToRecordable (cyclomatic 21) · ×1
  • SkiaCachedStack.ClampCoverageToRecordable (cyclomatic 21) src/Shared/DrawnUi/Draw/Layout/SkiaCachedStack.cs:708 — SkiaCachedStack.ClampCoverageToRecordable 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.
D1 · Cyclomatic Complexity · ViewsAdapter.GetViewForIndex (cyclomatic 21) · ×1
  • ViewsAdapter.GetViewForIndex (cyclomatic 21) src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:1260 — ViewsAdapter.GetViewForIndex 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.
D1 · Cyclomatic Complexity · ViewsAdapter.AttachView (cyclomatic 21) · ×1
  • ViewsAdapter.AttachView (cyclomatic 21) src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:1547 — ViewsAdapter.AttachView 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.
D1 · Cyclomatic Complexity · SkiaRichLabel.RenderBlock (cyclomatic 21) · ×1
  • SkiaRichLabel.RenderBlock (cyclomatic 21) src/Shared/DrawnUi/Controls/Labels/SkiaMarkdownLabel.CommonMark.cs:155 — SkiaRichLabel.RenderBlock 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.
D1 · Cyclomatic Complexity · SkiaSpinner.ProcessGestures (cyclomatic 21) · ×1
  • SkiaSpinner.ProcessGestures (cyclomatic 21) src/Shared/DrawnUi/Controls/Pickers/Spinner/SkiaSpinner.cs:775 — SkiaSpinner.ProcessGestures 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.
D1 · Cyclomatic Complexity · SkiaLayout.ProcessSecondPass (cyclomatic 21) · ×1
  • SkiaLayout.ProcessSecondPass (cyclomatic 21) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:1862 — SkiaLayout.ProcessSecondPass 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.
D1 · Cyclomatic Complexity · SkiaLayout.CommitPendingHeadInsert (cyclomatic 21) · ×1
  • SkiaLayout.CommitPendingHeadInsert (cyclomatic 21) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:2829 — SkiaLayout.CommitPendingHeadInsert 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.
D1 · Cyclomatic Complexity · SkiaControl.UsingCacheType.get (cyclomatic 21) · ×1
  • SkiaControl.UsingCacheType.get (cyclomatic 21) src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs:799 — SkiaControl.UsingCacheType.get 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.
D1 · Cyclomatic Complexity · SkiaLabel.DrawTextSelection (cyclomatic 21) · ×1
  • SkiaLabel.DrawTextSelection (cyclomatic 21) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:5293 — SkiaLabel.DrawTextSelection 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.
D1 · Cyclomatic Complexity · SkiaEditorSelection.Paint (cyclomatic 21) · ×1
  • SkiaEditorSelection.Paint (cyclomatic 21) src/Shared/DrawnUi/EditText/SkiaEditorSelection.cs:29 — SkiaEditorSelection.Paint 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.
D1 · Cyclomatic Complexity · SKMesh.GetShader (cyclomatic 21) · ×1
  • SKMesh.GetShader (cyclomatic 21) src/Shared/DrawnUi/Features/Meshes/SKMesh.cs:542 — SKMesh.GetShader 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.
D1 · Cyclomatic Complexity · VelocitySkiaAnimator.UpdateValue (cyclomatic 21) · ×1
  • VelocitySkiaAnimator.UpdateValue (cyclomatic 21) src/Shared/DrawnUi/Features/Animators/VelocitySkiaAnimator.cs:93 — VelocitySkiaAnimator.UpdateValue 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.
D1 · Cyclomatic Complexity · SkiaAccessibilityManager.ProcessPendingFocus (cyclomatic 21) · ×1
  • SkiaAccessibilityManager.ProcessPendingFocus (cyclomatic 21) src/Shared/DrawnUi/Views/SkiaAccessibilityManager.cs:623 — SkiaAccessibilityManager.ProcessPendingFocus 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.
D1 · Cyclomatic Complexity · SkiaImageManager.ExecuteLoadTask (cyclomatic 21) · ×1
  • SkiaImageManager.ExecuteLoadTask (cyclomatic 21) src/Maui/DrawnUi/Features/Images/SkiaImageManager.cs:520 — SkiaImageManager.ExecuteLoadTask 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.
D1 · Cyclomatic Complexity · DrawnUiAccessibilityHelper.OnPopulateNodeForVirtualView (cyclomatic 21) · ×1
  • DrawnUiAccessibilityHelper.OnPopulateNodeForVirtualView (cyclomatic 21) src/Maui/DrawnUi/Platforms/Android/DrawnView.Accessibility.Android.cs:251 — DrawnUiAccessibilityHelper.OnPopulateNodeForVirtualView 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.
D1 · Cyclomatic Complexity · PongAI.Update (cyclomatic 21) · ×1
  • PongAI.Update (cyclomatic 21) src/Shared/Samples/Pong.Shared/Game/Ai/PongAI.cs:77 — PongAI.Update 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.
D1 · Cyclomatic Complexity · CachedScrollTrimRepro.GrowCellRepro (cyclomatic 21) · ×1
  • CachedScrollTrimRepro.GrowCellRepro (cyclomatic 21) src/Net/Samples/VirtualizationHarnessDemo/CachedScrollTrimRepro.cs:67 — CachedScrollTrimRepro.GrowCellRepro 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.
D1 · Cyclomatic Complexity · RealChatJumpRepro.Run (cyclomatic 21) · ×1
  • RealChatJumpRepro.Run (cyclomatic 21) src/Net/Samples/VirtualizationHarnessDemo/RealChatJumpRepro.cs:18 — RealChatJumpRepro.Run 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.
D1 · Cyclomatic Complexity · VulkanRenderer3D.EnsureTarget (cyclomatic 20) · ×1
  • VulkanRenderer3D.EnsureTarget (cyclomatic 20) src/Maui/Addons/DrawnUi.Maui.Add3d/Platforms/Android/VulkanRenderer3D.cs:703 — VulkanRenderer3D.EnsureTarget has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SkiaCachedStack.SnapshotFillsViewport (cyclomatic 20) · ×1
  • SkiaCachedStack.SnapshotFillsViewport (cyclomatic 20) src/Shared/DrawnUi/Draw/Layout/SkiaCachedStack.cs:577 — SkiaCachedStack.SnapshotFillsViewport 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.
D1 · Cyclomatic Complexity · SkiaGridStructure.MeasureAtFinalCells (cyclomatic 20) · ×1
  • SkiaGridStructure.MeasureAtFinalCells (cyclomatic 20) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Grid.Structure.cs:480 — SkiaGridStructure.MeasureAtFinalCells 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.
D1 · Cyclomatic Complexity · SkiaLayout.MeasureBatchInBackground (cyclomatic 20) · ×1
  • SkiaLayout.MeasureBatchInBackground (cyclomatic 20) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:1590 — SkiaLayout.MeasureBatchInBackground 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.
D1 · Cyclomatic Complexity · SkiaScroll.Snap (cyclomatic 20) · ×1
  • SkiaScroll.Snap (cyclomatic 20) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:2076 — SkiaScroll.Snap 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.
D1 · Cyclomatic Complexity · SkiaScroll.InnerScrollKeepsDrag (cyclomatic 20) · ×1
  • SkiaScroll.InnerScrollKeepsDrag (cyclomatic 20) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.Gestures.cs:271 — SkiaScroll.InnerScrollKeepsDrag has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SkiaScrollLooped.Snap (cyclomatic 20) · ×1
  • SkiaScrollLooped.Snap (cyclomatic 20) src/Shared/DrawnUi/Draw/Scroll/SkiaScrollLooped.cs:228 — SkiaScrollLooped.Snap 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.
D1 · Cyclomatic Complexity · SkiaControl.TryAddDeepAreas (cyclomatic 20) · ×1
  • SkiaControl.TryAddDeepAreas (cyclomatic 20) src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs:144 — SkiaControl.TryAddDeepAreas 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.
D1 · Cyclomatic Complexity · SkiaControl.DefineAvailableSize (cyclomatic 20) · ×1
  • SkiaControl.DefineAvailableSize (cyclomatic 20) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:4385 — SkiaControl.DefineAvailableSize 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.
D1 · Cyclomatic Complexity · SkiaEditor.GetAutoVisibleHeightPixels (cyclomatic 20) · ×1
  • SkiaEditor.GetAutoVisibleHeightPixels (cyclomatic 20) src/Shared/DrawnUi/EditText/SkiaEditor.cs:589 — SkiaEditor.GetAutoVisibleHeightPixels 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.
D1 · Cyclomatic Complexity · SkiaEditor.GetLayoutPosition (cyclomatic 20) · ×1
  • SkiaEditor.GetLayoutPosition (cyclomatic 20) src/Shared/DrawnUi/EditText/SkiaEditor.cs:769 — SkiaEditor.GetLayoutPosition 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.
D1 · Cyclomatic Complexity · SkiaEditor.LayoutArrowTarget (cyclomatic 20) · ×1
  • SkiaEditor.LayoutArrowTarget (cyclomatic 20) src/Shared/DrawnUi/EditText/SkiaEditor.cs:1643 — SkiaEditor.LayoutArrowTarget 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.
D1 · Cyclomatic Complexity · SkiaEditor.HandleVerticalArrow (cyclomatic 20) · ×1
  • SkiaEditor.HandleVerticalArrow (cyclomatic 20) src/Shared/DrawnUi/EditText/SkiaEditor.cs:1737 — SkiaEditor.HandleVerticalArrow has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · FluentExtensions.BuildDomFromRenderTree (cyclomatic 20) · ×1
  • FluentExtensions.BuildDomFromRenderTree (cyclomatic 20) src/Shared/DrawnUi/Internals/Extensions/RenderTreeDomExtensions.cs:89 — FluentExtensions.BuildDomFromRenderTree 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.
D1 · Cyclomatic Complexity · SkiaEditor.ApplyKeyboardType (cyclomatic 20) · ×1
  • SkiaEditor.ApplyKeyboardType (cyclomatic 20) src/Maui/DrawnUi/Platforms/Apple/SkiaEditor.Apple.cs:274 — SkiaEditor.ApplyKeyboardType 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.
D1 · Cyclomatic Complexity · FrontierSpinnerStuckRepro.Run (cyclomatic 20) · ×1
  • FrontierSpinnerStuckRepro.Run (cyclomatic 20) src/Net/Samples/VirtualizationHarnessDemo/FrontierSpinnerStuckRepro.cs:17 — FrontierSpinnerStuckRepro.Run 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.
D1 · Cyclomatic Complexity · PlaceholderFlashRepro.Run (cyclomatic 20) · ×1
  • PlaceholderFlashRepro.Run (cyclomatic 20) src/Net/Samples/VirtualizationHarnessDemo/PlaceholderFlashRepro.cs:17 — PlaceholderFlashRepro.Run 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.
D1 · Cyclomatic Complexity · PlaneDriftRepro.RunCore (cyclomatic 20) · ×1
  • PlaneDriftRepro.RunCore (cyclomatic 20) src/Net/Samples/VirtualizationHarnessDemo/PlaneDriftRepro.cs:37 — PlaneDriftRepro.RunCore has cyclomatic complexity 20 (threshold 15). Of this number, 19 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.
D1 · Cyclomatic Complexity · ViewsAdapter.GetViewForPreparation (cyclomatic 19) · ×1
  • ViewsAdapter.GetViewForPreparation (cyclomatic 19) src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:703 — ViewsAdapter.GetViewForPreparation 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.
D1 · Cyclomatic Complexity · SkiaControl.CreateMeasureRequest (cyclomatic 19) · ×1
  • SkiaControl.CreateMeasureRequest (cyclomatic 19) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:6684 — SkiaControl.CreateMeasureRequest 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.
D1 · Cyclomatic Complexity · SkiaAccessibilityManager.IsTabStop (cyclomatic 19) · ×1
  • SkiaAccessibilityManager.IsTabStop (cyclomatic 19) src/Shared/DrawnUi/Views/SkiaAccessibilityManager.cs:751 — SkiaAccessibilityManager.IsTabStop 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.
D1 · Cyclomatic Complexity · Canvas.razor › BuildLayoutAlignmentCss (cyclomatic 19) · ×1
  • Canvas.razor › BuildLayoutAlignmentCss (cyclomatic 19) src/Blazor/DrawnUi/Views/Canvas.razor:664 — Canvas.razor › BuildLayoutAlignmentCss has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · NativeLibraryLoader.TryLoadNativeLibrary (cyclomatic 19) · ×1
  • NativeLibraryLoader.TryLoadNativeLibrary (cyclomatic 19) src/Maui/DrawnUi/Platforms/Windows/Views/OpenGles.cs:595 — NativeLibraryLoader.TryLoadNativeLibrary 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.
D1 · Cyclomatic Complexity · LinuxAtSpiProvider.Handle (cyclomatic 19) · ×1
  • LinuxAtSpiProvider.Handle (cyclomatic 19) src/OpenTk/DrawnUi/Accessibility/LinuxAtSpiProvider.cs:567 — LinuxAtSpiProvider.Handle 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: LinuxAtSpiProvider.Role (cyclomatic 36) 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.
D1 · Cyclomatic Complexity · GameTemplatePage.GameLoop (cyclomatic 19) · ×1
  • GameTemplatePage.GameLoop (cyclomatic 19) src/Maui/Samples/GameTemplate/Views/GameTemplatePage.xaml.cs:69 — GameTemplatePage.GameLoop 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.
D1 · Cyclomatic Complexity · GripDragRepro.RunCore (cyclomatic 19) · ×1
  • GripDragRepro.RunCore (cyclomatic 19) src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs:66 — GripDragRepro.RunCore has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · drawnui-web.a11yApply (cyclomatic 19) · ×1
  • drawnui-web.a11yApply (cyclomatic 19) src/Wasm/DrawnUi/wwwroot/drawnui-web.js:616 — drawnui-web.a11yApply has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · Mesh3D.Contours (cyclomatic 18) · ×1
  • Mesh3D.Contours (cyclomatic 18) src/SharedAdd3d/Shapes3D.cs:313 — Mesh3D.Contours 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.
D1 · Cyclomatic Complexity · Mesh3D.EarClip (cyclomatic 18) · ×1
  • Mesh3D.EarClip (cyclomatic 18) src/SharedAdd3d/Shapes3D.cs:395 — Mesh3D.EarClip has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body's own statements and 2 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DrawnView.FixDensity (cyclomatic 18) · ×1
  • DrawnView.FixDensity (cyclomatic 18) src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:47 — DrawnView.FixDensity 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.
D1 · Cyclomatic Complexity · TemplatedViewsPool.GetLocked (cyclomatic 18) · ×1
  • TemplatedViewsPool.GetLocked (cyclomatic 18) src/Shared/DrawnUi/Draw/Layout/TemplatedViewsPool.cs:443 — TemplatedViewsPool.GetLocked 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.
D1 · Cyclomatic Complexity · ViewsAdapter._HandleSmartCollectionChange (cyclomatic 18) · ×1
  • ViewsAdapter._HandleSmartCollectionChange (cyclomatic 18) src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:802 — ViewsAdapter._HandleSmartCollectionChange 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.
D1 · Cyclomatic Complexity · SkiaLayout.PinGridWindowSlide (cyclomatic 18) · ×1
  • SkiaLayout.PinGridWindowSlide (cyclomatic 18) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Shared.cs:1624 — SkiaLayout.PinGridWindowSlide 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.
D1 · Cyclomatic Complexity · SkiaGridStructure.MeasureKnownCells (cyclomatic 18) · ×1
  • SkiaGridStructure.MeasureKnownCells (cyclomatic 18) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Grid.Structure.cs:917 — SkiaGridStructure.MeasureKnownCells 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.
D1 · Cyclomatic Complexity · SkiaScroll.UpdateScrollBarIndicator (cyclomatic 18) · ×1
  • SkiaScroll.UpdateScrollBarIndicator (cyclomatic 18) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:540 — SkiaScroll.UpdateScrollBarIndicator 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.
D1 · Cyclomatic Complexity · SkiaScroll.IsOppositeLoadMoreBlocked (cyclomatic 18) · ×1
  • SkiaScroll.IsOppositeLoadMoreBlocked (cyclomatic 18) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:2302 — SkiaScroll.IsOppositeLoadMoreBlocked has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SkiaScroll.ApplyWheelScroll (cyclomatic 18) · ×1
  • SkiaScroll.ApplyWheelScroll (cyclomatic 18) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.Gestures.cs:178 — SkiaScroll.ApplyWheelScroll has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SkiaLabel.SetPieceCarets (cyclomatic 18) · ×1
  • SkiaLabel.SetPieceCarets (cyclomatic 18) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:1669 — SkiaLabel.SetPieceCarets has cyclomatic complexity 18 (threshold 15). Of this number, 17 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. This is NOT this file's highest cyclomatic complexity: SkiaLabel.IsCjkAt (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.
D1 · Cyclomatic Complexity · DrawnView.CalculateLayout (cyclomatic 18) · ×1
  • DrawnView.CalculateLayout (cyclomatic 18) src/Shared/DrawnUi/Views/DrawnView.cs:1787 — DrawnView.CalculateLayout 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.
D1 · Cyclomatic Complexity · SkiaAccessibilityManager.ProcessGroupFocus (cyclomatic 18) · ×1
  • SkiaAccessibilityManager.ProcessGroupFocus (cyclomatic 18) src/Shared/DrawnUi/Views/SkiaAccessibilityManager.cs:1149 — SkiaAccessibilityManager.ProcessGroupFocus has cyclomatic complexity 18 (threshold 15). Of this number, 17 points are the body's own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SKMetalViewRetained.Draw (cyclomatic 18) · ×1
  • SKMetalViewRetained.Draw (cyclomatic 18) src/Maui/DrawnUi/Platforms/Apple/Handlers/SKMetalViewRetained.Apple.cs:241 — SKMetalViewRetained.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.
D1 · Cyclomatic Complexity · GalleryPage.GameLoop (cyclomatic 18) · ×1
  • GalleryPage.GameLoop (cyclomatic 18) src/Shared/Samples/Add3dGallery.Shared/Pages/GalleryPage.Loop.cs:81 — GalleryPage.GameLoop 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.
D1 · Cyclomatic Complexity · drawnui-web.a11yCreate (cyclomatic 18) · ×1
  • drawnui-web.a11yCreate (cyclomatic 18) src/Wasm/DrawnUi/wwwroot/drawnui-web.js:569 — drawnui-web.a11yCreate has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 5 function literals inside it that branch (lines 574, 596, 595, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · setupInputHandlers (cyclomatic 18) · ×1
  • setupInputHandlers (cyclomatic 18) src/Wasm/DrawnUi/wwwroot/drawnui-web.js:359 — setupInputHandlers has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to 12 function items inside it that branch (a function literal at line 368, a function literal at line 391, a function literal at line 393, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · VisualElement.CssLayoutAlignment.get (cyclomatic 17) · ×1
  • VisualElement.CssLayoutAlignment.get (cyclomatic 17) src/Blazor/DrawnUi/Views/VisualElement.cs:91 — VisualElement.CssLayoutAlignment.get has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SkiaCachedStack.DrawDirectInternal (cyclomatic 17) · ×1
  • SkiaCachedStack.DrawDirectInternal (cyclomatic 17) src/Shared/DrawnUi/Draw/Layout/SkiaCachedStack.cs:304 — SkiaCachedStack.DrawDirectInternal 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.
D1 · Cyclomatic Complexity · ViewsAdapter.InitializeTemplates (cyclomatic 17) · ×1
  • ViewsAdapter.InitializeTemplates (cyclomatic 17) src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:239 — ViewsAdapter.InitializeTemplates 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.
D1 · Cyclomatic Complexity · SkiaRichLabel.MeasureLineGlyphsProbe (cyclomatic 17) · ×1
  • SkiaRichLabel.MeasureLineGlyphsProbe (cyclomatic 17) src/Shared/DrawnUi/Controls/Labels/SkiaRichLabel.cs:61 — SkiaRichLabel.MeasureLineGlyphsProbe 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.
D1 · Cyclomatic Complexity · SkiaRichLabel.BuildSpanData (cyclomatic 17) · ×1
  • SkiaRichLabel.BuildSpanData (cyclomatic 17) src/Shared/DrawnUi/Controls/Labels/SkiaRichLabel.cs:211 — SkiaRichLabel.BuildSpanData 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.
D1 · Cyclomatic Complexity · SkiaLayout.BuildStackStructure (cyclomatic 17) · ×1
  • SkiaLayout.BuildStackStructure (cyclomatic 17) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:2238 — SkiaLayout.BuildStackStructure 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.
D1 · Cyclomatic Complexity · SkiaLayout.Paint (cyclomatic 17) · ×1
  • SkiaLayout.Paint (cyclomatic 17) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Shared.cs:1166 — SkiaLayout.Paint has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SkiaLayout.ComputeVisibleRangeFromStructure (cyclomatic 17) · ×1
  • SkiaLayout.ComputeVisibleRangeFromStructure (cyclomatic 17) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:54 — SkiaLayout.ComputeVisibleRangeFromStructure 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.
D1 · Cyclomatic Complexity · SkiaLayout.PostCellPreparationWants (cyclomatic 17) · ×1
  • SkiaLayout.PostCellPreparationWants (cyclomatic 17) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:940 — SkiaLayout.PostCellPreparationWants 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.
D1 · Cyclomatic Complexity · SkiaControl.CreateRenderingObjectAndPaint (cyclomatic 17) · ×1
  • SkiaControl.CreateRenderingObjectAndPaint (cyclomatic 17) src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs:1943 — SkiaControl.CreateRenderingObjectAndPaint has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SkiaControl.PostArrange (cyclomatic 17) · ×1
  • SkiaControl.PostArrange (cyclomatic 17) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:5848 — SkiaControl.PostArrange 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.
D1 · Cyclomatic Complexity · SkiaControl.MeasureContentFast (cyclomatic 17) · ×1
  • SkiaControl.MeasureContentFast (cyclomatic 17) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:5967 — SkiaControl.MeasureContentFast 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.
D1 · Cyclomatic Complexity · SkiaLayout.ApplyStackMeasureResult (cyclomatic 17) · ×1
  • SkiaLayout.ApplyStackMeasureResult (cyclomatic 17) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.StackWrap.Shared.cs:41 — SkiaLayout.ApplyStackMeasureResult 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.
D1 · Cyclomatic Complexity · DrawnView.CommitTooltipLocked (cyclomatic 17) · ×1
  • DrawnView.CommitTooltipLocked (cyclomatic 17) src/Shared/DrawnUi/Views/DrawnView.Tooltip.cs:59 — DrawnView.CommitTooltipLocked has cyclomatic complexity 17 (threshold 15). Of this number, 14 points are the body's own statements and 3 belong 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.
D1 · Cyclomatic Complexity · SkiaAccessibilityManager.BuildSaidOnce (cyclomatic 17) · ×1
  • SkiaAccessibilityManager.BuildSaidOnce (cyclomatic 17) src/Shared/DrawnUi/Views/SkiaAccessibilityManager.cs:1487 — SkiaAccessibilityManager.BuildSaidOnce 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.
D1 · Cyclomatic Complexity · DrawnView.IsElementVisibleInParentChain (cyclomatic 17) · ×1
  • DrawnView.IsElementVisibleInParentChain (cyclomatic 17) src/Maui/DrawnUi/Platforms/Apple/DrawnView.Apple.cs:54 — DrawnView.IsElementVisibleInParentChain 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.
D1 · Cyclomatic Complexity · LiftDragRepro.RunCore (cyclomatic 17) · ×1
  • LiftDragRepro.RunCore (cyclomatic 17) src/Net/Samples/VirtualizationHarnessDemo/LiftDragRepro.cs:69 — LiftDragRepro.RunCore has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · GltfReader.ReadAnimation (cyclomatic 16) · ×1
  • GltfReader.ReadAnimation (cyclomatic 16) src/SharedAdd3d/GltfReader.cs:247 — GltfReader.ReadAnimation has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaModel3D.Paint (cyclomatic 16) · ×1
  • SkiaModel3D.Paint (cyclomatic 16) src/SharedAdd3d/SkiaModel3D.cs:1149 — SkiaModel3D.Paint 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.
D1 · Cyclomatic Complexity · ViewsAdapter.AnyUnpreparedInRange (cyclomatic 16) · ×1
  • ViewsAdapter.AnyUnpreparedInRange (cyclomatic 16) src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:624 — ViewsAdapter.AnyUnpreparedInRange has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaCarousel.AnimateLoopStep (cyclomatic 16) · ×1
  • SkiaCarousel.AnimateLoopStep (cyclomatic 16) src/Shared/DrawnUi/Controls/Layouts/SkiaCarousel.cs:987 — SkiaCarousel.AnimateLoopStep has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body's own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SkiaCarousel.InitializeChildren (cyclomatic 16) · ×1
  • SkiaCarousel.InitializeChildren (cyclomatic 16) src/Shared/DrawnUi/Controls/Layouts/SkiaCarousel.cs:1308 — SkiaCarousel.InitializeChildren has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaDecoratedColumn.CreateLines (cyclomatic 16) · ×1
  • SkiaDecoratedColumn.CreateLines (cyclomatic 16) src/Shared/DrawnUi/Controls/Layouts/SkiaDecoratedColumn.cs:104 — SkiaDecoratedColumn.CreateLines has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaPicker.ApplyVisualState (cyclomatic 16) · ×1
  • SkiaPicker.ApplyVisualState (cyclomatic 16) src/Shared/DrawnUi/Controls/Pickers/SkiaPicker.cs:251 — SkiaPicker.ApplyVisualState 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.
D1 · Cyclomatic Complexity · SkiaLayout.OnMeasuring (cyclomatic 16) · ×1
  • SkiaLayout.OnMeasuring (cyclomatic 16) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Shared.cs:1003 — SkiaLayout.OnMeasuring has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaLayout.ApplyBackgroundMeasurementChange (cyclomatic 16) · ×1
  • SkiaLayout.ApplyBackgroundMeasurementChange (cyclomatic 16) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:1958 — SkiaLayout.ApplyBackgroundMeasurementChange has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaLayout.ApplyAddChange (cyclomatic 16) · ×1
  • SkiaLayout.ApplyAddChange (cyclomatic 16) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:2321 — SkiaLayout.ApplyAddChange has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaLayout.DirectShiftMeasurements (cyclomatic 16) · ×1
  • SkiaLayout.DirectShiftMeasurements (cyclomatic 16) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:3756 — SkiaLayout.DirectShiftMeasurements has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SKMeshSpecification.Validate (cyclomatic 16) · ×1
  • SKMeshSpecification.Validate (cyclomatic 16) src/Shared/DrawnUi/Features/Meshes/SKMeshSpecification.cs:563 — SKMeshSpecification.Validate has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DrawnView.ExecuteAnimators (cyclomatic 16) · ×1
  • DrawnView.ExecuteAnimators (cyclomatic 16) src/Shared/DrawnUi/Views/DrawnView.cs:1077 — DrawnView.ExecuteAnimators has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SkiaAccessibilityManager.ProcessReveal (cyclomatic 16) · ×1
  • SkiaAccessibilityManager.ProcessReveal (cyclomatic 16) src/Shared/DrawnUi/Views/SkiaAccessibilityManager.cs:272 — SkiaAccessibilityManager.ProcessReveal 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: SkiaAccessibilityManager.Same (cyclomatic 17) 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.
D1 · Cyclomatic Complexity · GestureListener.ProcessGestures (cyclomatic 16) · ×1
  • GestureListener.ProcessGestures (cyclomatic 16) src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:66 — GestureListener.ProcessGestures has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DrawnView.NavigateWithCanvasKey (cyclomatic 16) · ×1
  • DrawnView.NavigateWithCanvasKey (cyclomatic 16) src/Maui/DrawnUi/Platforms/Windows/DrawnView.Windows.cs:445 — DrawnView.NavigateWithCanvasKey has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Super.Init (cyclomatic 16) · ×1
  • Super.Init (cyclomatic 16) src/Maui/DrawnUi/Platforms/Windows/Super.Windows.cs:153 — Super.Init has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 184, 200, 178). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · Scenery.Paint (cyclomatic 16) · ×1
  • Scenery.Paint (cyclomatic 16) src/Shared/Samples/Add3dGallery.Shared/Pages/Scenery.cs:180 — Scenery.Paint 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.
D1 · Cyclomatic Complexity · PlayerTestPage.CreateContent (cyclomatic 16) · ×1
  • PlayerTestPage.CreateContent (cyclomatic 16) src/Maui/Samples/Player/Views/PlayerTestPage.cs:100 — PlayerTestPage.CreateContent has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 9 function literals inside it that branch (lines 133, 241, 333, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · EditorShapedDragRepro.MakeDraggable (cyclomatic 16) · ×1
  • EditorShapedDragRepro.MakeDraggable (cyclomatic 16) src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs:268 — EditorShapedDragRepro.MakeDraggable has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 274, 292). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · GripDragRepro.MakeDraggable (cyclomatic 16) · ×1
  • GripDragRepro.MakeDraggable (cyclomatic 16) src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs:375 — GripDragRepro.MakeDraggable has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 381, 399). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · PreparedViewsRepro.Run (cyclomatic 16) · ×1
  • PreparedViewsRepro.Run (cyclomatic 16) src/Net/Samples/VirtualizationHarnessDemo/PreparedViewsRepro.cs:18 — PreparedViewsRepro.Run 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.
D1 · Cyclomatic Complexity · drawnui-keyboard.ensureTextInput (cyclomatic 16) · ×1
  • drawnui-keyboard.ensureTextInput (cyclomatic 16) src/Blazor/DrawnUi/wwwroot/drawnui-keyboard.js:144 — drawnui-keyboard.ensureTextInput has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 155, 182, 188, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D10 · Test Quality · No assertions · ×1
  • No assertions: EmptyLink_DoesNothing src/Net/Tests/DrawnUi.Net.Tests/OpenLinkTests.cs:9 — 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.
D10 · Test Quality · Fixed-sleep synchronisation · ×1
  • Fixed-sleep synchronisation: CancelAll_CancelsWaitingLoads_RunningOneFinishes src/Net/Tests/DrawnUi.Net.Tests/ImageLoadQueueTests.cs:54 — This test starts a background task and then orders itself against it with `Task.Delay(5)` — a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer's box and random in CI. Wait for the event itself instead: the process's own exit or output, a completion handle, or a condition polled to a timeout.
D15 · Churn × Complexity Hotspots · Repeated repair · ×1
  • Repeated repair: src/Shared/DrawnUi/Internals/Models/CachedObject.cs src/Shared/DrawnUi/Internals/Models/CachedObject.cs:266 — src/Shared/DrawnUi/Internals/Models/CachedObject.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 CachedObject.GetPictureImage at line 266), 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: a shader effect on a picture-cached control works on the control's own content”; “fix: TranslationZ is a real depth (closer = bigger, turned or not); cached images inside a distorted picture or under a distorted ancestor use smooth sampling (no jagged edges in 3D)”; “BREAKING fix shader effect sampling the wrong texel when the texture is not the box”. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 21:54:48 +01:00' --until='2026-11-16 21:54:48 +01:00' --full-history --no-merges -- src/Shared/DrawnUi/Internals/Models/CachedObject.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.
D17 · Explicit Debt · TodoComment repeated across 10 files · ×1
  • TodoComment repeated across 10 files src/Blazor/DrawnUi/Super.Blazor.cs:160 — The identical TodoComment appears in 10 files (13 occurrences) — almost certainly one boilerplate line from a single migration or decision, not 13 independent debts. Fix the systemic cause once rather than file-by-file. Text: "//todo". Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)
D17 · Explicit Debt · ObsoleteWithCallers · ×1
  • ObsoleteWithCallers src/Shared/DrawnUi/Controls/Button/SkiaButton.cs:1138 — [Obsolete] IsDisabled
D18 · Solution Shape · Solution references 8 projects that do not exist · ×1
  • Solution references 8 projects that do not exist dev/DrawnUi.Dev.slnx — `dev/DrawnUi.Dev.slnx` declares 8 project file(s) that are missing from the tree (`AppoMobi.Maui.DrawnUi.Demo.csproj`, `DrawnCells.csproj`, `DrawnChatList.Blazor.csproj`, `DrawnChatList.Maui.csproj`, `DrawnUi.Fiddle.csproj`, `FiddleApp.csproj`, +2 more). A solution-level restore or build fails on a dangling reference, so anyone building the solution rather than an individual project is blocked. Delete the stale entry from the solution, or restore the missing project file.
D18 · Solution Shape · Solution references 5 projects that do not exist · ×1
  • Solution references 5 projects that do not exist dev/DrawnUI-Previews.sln — `dev/DrawnUI-Previews.sln` declares 5 project file(s) that are missing from the tree (`src/Maui/Addons/DrawnUi.Maui.Camera/DrawnUi.Maui.Camera.csproj`, `HotPreview.AppBuildTasks.csproj`, `HotPreview.SharedModel.csproj`, `HotPreview.csproj`, `HotPreview.App.Maui.csproj`). A solution-level restore or build fails on a dangling reference, so anyone building the solution rather than an individual project is blocked. Delete the stale entry from the solution, or restore the missing project file.
D18 · Solution Shape · Solution references 13 projects that do not exist · ×1
  • Solution references 13 projects that do not exist dev/Dev.sln — `dev/Dev.sln` declares 13 project file(s) that are missing from the tree (`AudioTest.csproj`, `AppoMobi.Maui.DrawnUi.Demo.csproj`, `SpaceShooter.csproj`, `GesturesTester.csproj`, `AppoMobi.Maui.Navigation.csproj`, `Breakout.csproj`, +7 more). A solution-level restore or build fails on a dangling reference, so anyone building the solution rather than an individual project is blocked. Delete the stale entry from the solution, or restore the missing project file.
D18 · Solution Shape · Solution references 4 projects that do not exist · ×1
  • Solution references 4 projects that do not exist dev/DevCross.sln — `dev/DevCross.sln` declares 4 project file(s) that are missing from the tree (`AppoMobi.Blazor.Gestures.csproj`, `AppoMobi.Gestures.csproj`, `AppoMobi.Maui.Gestures.csproj`, `src/Blazor/Addons/DrawnUi.Gaming.Blazor/DrawnUi.Gaming.Blazor.csproj`). A solution-level restore or build fails on a dangling reference, so anyone building the solution rather than an individual project is blocked. Delete the stale entry from the solution, or restore the missing project file.
D18 · Solution Shape · Solution references 19 projects that do not exist · ×1
  • Solution references 19 projects that do not exist dev/Dev.SkiaSharp.sln — `dev/Dev.SkiaSharp.sln` declares 19 project file(s) that are missing from the tree (`AppoMobi.Maui.DrawnUi.Demo.csproj`, `SkiaSharp.NativeAssets.Win32.csproj`, `SkiaSharp.NativeAssets.WinUI.csproj`, `SkiaSharp.Resources.csproj`, `SkiaSharp.SceneGraph.csproj`, `SkiaSharp.Skottie.csproj`, +13 more). A solution-level restore or build fails on a dangling reference, so anyone building the solution rather than an individual project is blocked. Delete the stale entry from the solution, or restore the missing project file.
D2 · Cognitive Complexity · SkiaScroll.ProcessGestures (cognitive 361) · ×1
  • SkiaScroll.ProcessGestures (cognitive 361) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.Gestures.cs:371 — SkiaScroll.ProcessGestures has cognitive complexity 361 (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.
D2 · Cognitive Complexity · SkiaLayout.DrawStackVisibleChildren (cognitive 265) · ×1
  • SkiaLayout.DrawStackVisibleChildren (cognitive 265) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:2851 — SkiaLayout.DrawStackVisibleChildren has cognitive complexity 265 (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.
D2 · Cognitive Complexity · SkiaLabel.DecomposeText (cognitive 257) · ×1
  • SkiaLabel.DecomposeText (cognitive 257) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:1885 — SkiaLabel.DecomposeText has cognitive complexity 257 (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.
D2 · Cognitive Complexity · SkiaLayout.MeasureStack (cognitive 227) · ×1
  • SkiaLayout.MeasureStack (cognitive 227) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:1171 — SkiaLayout.MeasureStack has cognitive complexity 227 (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.
D2 · Cognitive Complexity · SkiaControl.ProcessGestures (cognitive 215) · ×1
  • SkiaControl.ProcessGestures (cognitive 215) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:2624 — SkiaControl.ProcessGestures has cognitive complexity 215 (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.
D2 · Cognitive Complexity · SkiaLayout.MeasureList (cognitive 186) · ×1
  • SkiaLayout.MeasureList (cognitive 186) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:1210 — SkiaLayout.MeasureList has cognitive complexity 186 (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.
D2 · Cognitive Complexity · SkiaLabel.DrawLines (cognitive 165) · ×1
  • SkiaLabel.DrawLines (cognitive 165) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:457 — SkiaLabel.DrawLines has cognitive complexity 165 (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.
D2 · Cognitive Complexity · SkiaDrawer.ProcessGestures (cognitive 160) · ×1
  • SkiaDrawer.ProcessGestures (cognitive 160) src/Shared/DrawnUi/Controls/Drawer/SkiaDrawer.cs:679 — SkiaDrawer.ProcessGestures has cognitive complexity 160 (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.
D2 · Cognitive Complexity · SkiaLayout.MeasureStackLegacy (cognitive 152) · ×1
  • SkiaLayout.MeasureStackLegacy (cognitive 152) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:307 — SkiaLayout.MeasureStackLegacy has cognitive complexity 152 (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.
D2 · Cognitive Complexity · SkiaControl.MeasureContentCore (cognitive 151) · ×1
  • SkiaControl.MeasureContentCore (cognitive 151) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:6035 — SkiaControl.MeasureContentCore has cognitive complexity 151 (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.
D2 · Cognitive Complexity · GLThread.GuardedRun (cognitive 148) · ×1
  • GLThread.GuardedRun (cognitive 148) src/Maui/DrawnUi/Platforms/Android/Retained/SkiaGLTextureView.cs:712 — GLThread.GuardedRun has cognitive complexity 148 (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.
D2 · Cognitive Complexity · SkiaLabel.OnMeasuring (cognitive 124) · ×1
  • SkiaLabel.OnMeasuring (cognitive 124) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:1136 — SkiaLabel.OnMeasuring has cognitive complexity 124 (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.
D2 · Cognitive Complexity · TypingJumpRepro.RunCore (cognitive 121) · ×1
  • TypingJumpRepro.RunCore (cognitive 121) src/Net/Samples/VirtualizationHarnessDemo/TypingJumpRepro.cs:37 — TypingJumpRepro.RunCore has cognitive complexity 121 (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.
D2 · Cognitive Complexity · SkiaScroll.DrawViews (cognitive 105) · ×1
  • SkiaScroll.DrawViews (cognitive 105) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:3629 — SkiaScroll.DrawViews has cognitive complexity 105 (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.
D2 · Cognitive Complexity · SkiaButton.ApplyProperties (cognitive 104) · ×1
  • SkiaButton.ApplyProperties (cognitive 104) src/Shared/DrawnUi/Controls/Button/SkiaButton.cs:570 — SkiaButton.ApplyProperties has cognitive complexity 104 (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.
D2 · Cognitive Complexity · SkiaEditor.UpdateCursorVisibility (cognitive 102) · ×1
  • SkiaEditor.UpdateCursorVisibility (cognitive 102) src/Shared/DrawnUi/EditText/SkiaEditor.cs:1168 — SkiaEditor.UpdateCursorVisibility has cognitive complexity 102 (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.
D2 · Cognitive Complexity · SkiaImage.SetImageSource (cognitive 101) · ×1
  • SkiaImage.SetImageSource (cognitive 101) src/Shared/DrawnUi/Draw/Images/SkiaImage.cs:562 — SkiaImage.SetImageSource has cognitive complexity 101 (threshold 15). Of this number, 61 points are the body's own statements and 40 belong to one function literal inside it that branches. 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.
D2 · Cognitive Complexity · Bidi.GetLevels (cognitive 99) · ×1
  • Bidi.GetLevels (cognitive 99) src/Shared/DrawnUi/Draw/Text/SkiaLabel.Bidi.cs:141 — Bidi.GetLevels has cognitive complexity 99 (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.
D2 · Cognitive Complexity · SkiaLayout.DrawStack (cognitive 98) · ×1
  • SkiaLayout.DrawStack (cognitive 98) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:2569 — SkiaLayout.DrawStack has cognitive complexity 98 (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.
D2 · Cognitive Complexity · SkiaShell.GoToAsync (cognitive 95) · ×1
  • SkiaShell.GoToAsync (cognitive 95) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:2504 — SkiaShell.GoToAsync has cognitive complexity 95 (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.
D2 · Cognitive Complexity · BuildWrapLayout.Build (cognitive 94) · ×1
  • BuildWrapLayout.Build (cognitive 94) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.BuildWrapLayout.cs:18 — BuildWrapLayout.Build has cognitive complexity 94 (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.
D2 · Cognitive Complexity · SkiaScroll.PositionViewport (cognitive 93) · ×1
  • SkiaScroll.PositionViewport (cognitive 93) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:2726 — SkiaScroll.PositionViewport has cognitive complexity 93 (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.
D2 · Cognitive Complexity · SkiaLayout.MeasureAbsolute (cognitive 91) · ×1
  • SkiaLayout.MeasureAbsolute (cognitive 91) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Shared.cs:753 — SkiaLayout.MeasureAbsolute has cognitive complexity 91 (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.
D2 · Cognitive Complexity · SkiaLayout.DrawList (cognitive 89) · ×1
  • SkiaLayout.DrawList (cognitive 89) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:4393 — SkiaLayout.DrawList has cognitive complexity 89 (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.
D2 · Cognitive Complexity · PongGame.GameLoop (cognitive 87) · ×1
  • PongGame.GameLoop (cognitive 87) src/Shared/Samples/Pong.Shared/Game/PongGame.Loop.cs:13 — PongGame.GameLoop has cognitive complexity 87 (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.
D2 · Cognitive Complexity · DevSnapshot.ArmIfRequested (cognitive 86) · ×1
  • DevSnapshot.ArmIfRequested (cognitive 86) src/Wpf/Samples/HelloWpf/DevSnapshot.cs:43 — DevSnapshot.ArmIfRequested has cognitive complexity 86 (threshold 15). Most of this is not in the body itself: 2 of the 86 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 54, a function literal at line 76, Hist, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · FeedPresetRepro.Run (cognitive 86) · ×1
  • FeedPresetRepro.Run (cognitive 86) src/Net/Samples/VirtualizationHarnessDemo/FeedPresetRepro.cs:37 — FeedPresetRepro.Run has cognitive complexity 86 (threshold 15). Of this number, 84 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.
D2 · Cognitive Complexity · SkiaControl.SetupRenderingWithComposition (cognitive 81) · ×1
  • SkiaControl.SetupRenderingWithComposition (cognitive 81) src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs:219 — SkiaControl.SetupRenderingWithComposition has cognitive complexity 81 (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.
D2 · Cognitive Complexity · CachedScrollTrimRepro.RunInner (cognitive 80) · ×1
  • CachedScrollTrimRepro.RunInner (cognitive 80) src/Net/Samples/VirtualizationHarnessDemo/CachedScrollTrimRepro.cs:186 — CachedScrollTrimRepro.RunInner has cognitive complexity 80 (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.
D2 · Cognitive Complexity · SkiaViewSwitcher.ApplySelectedIndex (cognitive 77) · ×1
  • SkiaViewSwitcher.ApplySelectedIndex (cognitive 77) src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs:1019 — SkiaViewSwitcher.ApplySelectedIndex has cognitive complexity 77 (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.
D2 · Cognitive Complexity · Canvas.ProcessNetGestures (cognitive 77) · ×1
  • Canvas.ProcessNetGestures (cognitive 77) src/Net/DrawnUi/Views/Canvas.Gestures.Net.cs:63 — Canvas.ProcessNetGestures has cognitive complexity 77 (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.
D2 · Cognitive Complexity · SkiaSlider.ProcessGestures (cognitive 76) · ×1
  • SkiaSlider.ProcessGestures (cognitive 76) src/Shared/DrawnUi/Controls/Slider/SkiaSlider.cs:1129 — SkiaSlider.ProcessGestures has cognitive complexity 76 (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.
D2 · Cognitive Complexity · Renderer3D.DrawItem (cognitive 75) · ×1
  • Renderer3D.DrawItem (cognitive 75) src/SharedAdd3d/Renderer3D.cs:682 — Renderer3D.DrawItem has cognitive complexity 75 (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.
D2 · Cognitive Complexity · SubpixelGridRepro.RunInner (cognitive 75) · ×1
  • SubpixelGridRepro.RunInner (cognitive 75) src/Net/Samples/VirtualizationHarnessDemo/SubpixelGridRepro.cs:45 — SubpixelGridRepro.RunInner has cognitive complexity 75 (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.
D2 · Cognitive Complexity · SkiaScroll.Draw (cognitive 74) · ×1
  • SkiaScroll.Draw (cognitive 74) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:3297 — SkiaScroll.Draw has cognitive complexity 74 (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.
D2 · Cognitive Complexity · DeleteGapRepro.Run (cognitive 69) · ×1
  • DeleteGapRepro.Run (cognitive 69) src/Net/Samples/VirtualizationHarnessDemo/DeleteGapRepro.cs:14 — DeleteGapRepro.Run has cognitive complexity 69 (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.
D2 · Cognitive Complexity · VulkanRenderer3D.DrawItem (cognitive 67) · ×1
  • VulkanRenderer3D.DrawItem (cognitive 67) src/Maui/Addons/DrawnUi.Maui.Add3d/Platforms/Android/VulkanRenderer3D.cs:983 — VulkanRenderer3D.DrawItem has cognitive complexity 67 (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.
D2 · Cognitive Complexity · SkiaLayout.MeasureStackTemplatedFast (cognitive 67) · ×1
  • SkiaLayout.MeasureStackTemplatedFast (cognitive 67) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:1004 — SkiaLayout.MeasureStackTemplatedFast has cognitive complexity 67 (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.
D2 · Cognitive Complexity · SkiaImageManager.ExecuteLoadTask (cognitive 67) · ×1
  • SkiaImageManager.ExecuteLoadTask (cognitive 67) src/Maui/DrawnUi/Features/Images/SkiaImageManager.cs:520 — SkiaImageManager.ExecuteLoadTask 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.
D2 · Cognitive Complexity · ZoomContent.ProcessGestures (cognitive 66) · ×1
  • ZoomContent.ProcessGestures (cognitive 66) src/Shared/DrawnUi/Controls/Zoom/ZoomContent.cs:331 — ZoomContent.ProcessGestures 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.
D2 · Cognitive Complexity · BuiltinWindowChatRepro.RunCore (cognitive 65) · ×1
  • BuiltinWindowChatRepro.RunCore (cognitive 65) src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs:56 — BuiltinWindowChatRepro.RunCore has cognitive complexity 65 (threshold 15). Of this number, 59 points are the body's own statements and 6 belong to 4 function literals inside it that branch. 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.
D2 · Cognitive Complexity · SkiaModel3D.ProcessGestures (cognitive 64) · ×1
  • SkiaModel3D.ProcessGestures (cognitive 64) src/SharedAdd3d/SkiaModel3D.cs:1010 — SkiaModel3D.ProcessGestures has cognitive complexity 64 (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.
D2 · Cognitive Complexity · MetalRenderer3D.DrawItem (cognitive 63) · ×1
  • MetalRenderer3D.DrawItem (cognitive 63) src/Maui/Addons/DrawnUi.Maui.Add3d/Apple/MetalRenderer3D.cs:510 — MetalRenderer3D.DrawItem has cognitive complexity 63 (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.
D2 · Cognitive Complexity · SpriteBoardPage.UpdateEnemyAI (cognitive 63) · ×1
  • SpriteBoardPage.UpdateEnemyAI (cognitive 63) src/Maui/Samples/FastRepro/Views/Sprites/SpriteBoardPage.cs:313 — SpriteBoardPage.UpdateEnemyAI has cognitive complexity 63 (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.
D2 · Cognitive Complexity · SkiaLayout.ApplyWindowSlideInPlace (cognitive 61) · ×1
  • SkiaLayout.ApplyWindowSlideInPlace (cognitive 61) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Shared.cs:1674 — SkiaLayout.ApplyWindowSlideInPlace has cognitive complexity 61 (threshold 15). Of this number, 60 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.
D2 · Cognitive Complexity · SkiaScroll.CalculateScrollOffsetForIndex (cognitive 59) · ×1
  • SkiaScroll.CalculateScrollOffsetForIndex (cognitive 59) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:1933 — SkiaScroll.CalculateScrollOffsetForIndex 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.
D2 · Cognitive Complexity · SkiaLabel.SplitLines (cognitive 59) · ×1
  • SkiaLabel.SplitLines (cognitive 59) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:2488 — SkiaLabel.SplitLines 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.
D2 · Cognitive Complexity · SkiaShape.Paint (cognitive 58) · ×1
  • SkiaShape.Paint (cognitive 58) src/Shared/DrawnUi/Draw/SkiaShape.cs:614 — SkiaShape.Paint 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.
D2 · Cognitive Complexity · SkiaLabel.UnicodeNeedsShaping (cognitive 57) · ×1
  • SkiaLabel.UnicodeNeedsShaping (cognitive 57) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:3160 — SkiaLabel.UnicodeNeedsShaping has cognitive complexity 57 (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.
D2 · Cognitive Complexity · SkiaBackdrop.Paint (cognitive 56) · ×1
  • SkiaBackdrop.Paint (cognitive 56) src/Shared/DrawnUi/Draw/SkiaBackdrop.cs:132 — SkiaBackdrop.Paint has cognitive complexity 56 (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.
D2 · Cognitive Complexity · SkiaLayout.BuildPlaneWindowStructure (cognitive 56) · ×1
  • SkiaLayout.BuildPlaneWindowStructure (cognitive 56) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:5193 — SkiaLayout.BuildPlaneWindowStructure has cognitive complexity 56 (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.
D2 · Cognitive Complexity · SkiaLayout.MeasureStackNonTemplatedFast (cognitive 55) · ×1
  • SkiaLayout.MeasureStackNonTemplatedFast (cognitive 55) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:865 — SkiaLayout.MeasureStackNonTemplatedFast has cognitive complexity 55 (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.
D2 · Cognitive Complexity · Bidi.GetCharType (cognitive 54) · ×1
  • Bidi.GetCharType (cognitive 54) src/Shared/DrawnUi/Draw/Text/SkiaLabel.Bidi.cs:59 — Bidi.GetCharType has cognitive complexity 54 (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.
D2 · Cognitive Complexity · SkiaLayout.LayoutCell (cognitive 53) · ×1
  • SkiaLayout.LayoutCell (cognitive 53) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.StackWrap.Shared.cs:139 — SkiaLayout.LayoutCell has cognitive complexity 53 (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.
D2 · Cognitive Complexity · SkiaScroll.ExecuteScrollToIndexOrder (cognitive 52) · ×1
  • SkiaScroll.ExecuteScrollToIndexOrder (cognitive 52) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.Scrolling.cs:1190 — SkiaScroll.ExecuteScrollToIndexOrder has cognitive complexity 52 (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.
D2 · Cognitive Complexity · Super.Init (cognitive 52) · ×1
  • Super.Init (cognitive 52) src/Maui/DrawnUi/Platforms/Windows/Super.Windows.cs:153 — Super.Init has cognitive complexity 52 (threshold 15). Most of this is not in the body itself: 6 of the 52 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 184, 200, 178). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · TelegramLikeRepro.RunCore (cognitive 52) · ×1
  • TelegramLikeRepro.RunCore (cognitive 52) src/Net/Samples/VirtualizationHarnessDemo/TelegramLikeRepro.cs:43 — TelegramLikeRepro.RunCore has cognitive complexity 52 (threshold 15). Of this number, 46 points are the body's own statements and 6 belong to 6 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SkiaMapsUi.ProcessGestures (cognitive 51) · ×1
  • SkiaMapsUi.ProcessGestures (cognitive 51) src/Maui/Addons/DrawnUi.Maui.MapsUi/SkiaMapsUi.cs:465 — SkiaMapsUi.ProcessGestures 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.
D2 · Cognitive Complexity · SkiaCarousel.CalculateChildPosition (cognitive 51) · ×1
  • SkiaCarousel.CalculateChildPosition (cognitive 51) src/Shared/DrawnUi/Controls/Layouts/SkiaCarousel.cs:753 — SkiaCarousel.CalculateChildPosition 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.
D2 · Cognitive Complexity · SkiaLayout.ProcessIncrementalChanges (cognitive 51) · ×1
  • SkiaLayout.ProcessIncrementalChanges (cognitive 51) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:2024 — SkiaLayout.ProcessIncrementalChanges has cognitive complexity 51 (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.
D2 · Cognitive Complexity · MeasureFirstWindowRepro.Run (cognitive 51) · ×1
  • MeasureFirstWindowRepro.Run (cognitive 51) src/Net/Samples/VirtualizationHarnessDemo/MeasureFirstWindowRepro.cs:15 — MeasureFirstWindowRepro.Run has cognitive complexity 51 (threshold 15). Of this number, 50 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.
D2 · Cognitive Complexity · Scene3D.Ray (cognitive 50) · ×1
  • Scene3D.Ray (cognitive 50) src/SharedAdd3d/Scene3D.cs:426 — Scene3D.Ray 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.
D2 · Cognitive Complexity · SkiaCarousel.RenderViewsList (cognitive 50) · ×1
  • SkiaCarousel.RenderViewsList (cognitive 50) src/Shared/DrawnUi/Controls/Layouts/SkiaCarousel.cs:428 — SkiaCarousel.RenderViewsList 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.
D2 · Cognitive Complexity · SkiaControl.DrawWithClipAndTransforms (cognitive 50) · ×1
  • SkiaControl.DrawWithClipAndTransforms (cognitive 50) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:7901 — SkiaControl.DrawWithClipAndTransforms 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.
D2 · Cognitive Complexity · SkiaScrollLooped.GetItemIndex (cognitive 49) · ×1
  • SkiaScrollLooped.GetItemIndex (cognitive 49) src/Shared/DrawnUi/Draw/Scroll/SkiaScrollLooped.cs:49 — SkiaScrollLooped.GetItemIndex 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.
D2 · Cognitive Complexity · SkiaEditor.ProcessGestures (cognitive 49) · ×1
  • SkiaEditor.ProcessGestures (cognitive 49) src/Shared/DrawnUi/EditText/SkiaEditor.cs:848 — SkiaEditor.ProcessGestures has cognitive complexity 49 (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.
D2 · Cognitive Complexity · DiceThrow.Advance (cognitive 49) · ×1
  • DiceThrow.Advance (cognitive 49) src/Shared/Samples/Add3dGallery.Shared/Pages/DiceThrow.cs:121 — DiceThrow.Advance 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.
D2 · Cognitive Complexity · EngageOnLoadMoreRepro.RunCore (cognitive 49) · ×1
  • EngageOnLoadMoreRepro.RunCore (cognitive 49) src/Net/Samples/VirtualizationHarnessDemo/EngageOnLoadMoreRepro.cs:52 — EngageOnLoadMoreRepro.RunCore has cognitive complexity 49 (threshold 15). Of this number, 47 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.
D2 · Cognitive Complexity · SKMeshSpecification.Make (cognitive 48) · ×1
  • SKMeshSpecification.Make (cognitive 48) src/Shared/DrawnUi/Features/Meshes/SKMeshSpecification.cs:276 — SKMeshSpecification.Make has cognitive complexity 48 (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.
D2 · Cognitive Complexity · ParseSteps (cognitive 48) · ×1
  • ParseSteps (cognitive 48) src/Net/Samples/SkiaEditorHarness/Program.cs:620 — ParseSteps has cognitive complexity 48 (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.
D2 · Cognitive Complexity · SkiaScroll.GetContentOffsetBounds (cognitive 47) · ×1
  • SkiaScroll.GetContentOffsetBounds (cognitive 47) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.Scrolling.cs:675 — SkiaScroll.GetContentOffsetBounds has cognitive complexity 47 (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.
D2 · Cognitive Complexity · ViewsAdapter.GetViewForIndex (cognitive 46) · ×1
  • ViewsAdapter.GetViewForIndex (cognitive 46) src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:1260 — ViewsAdapter.GetViewForIndex has cognitive complexity 46 (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.
D2 · Cognitive Complexity · SkiaLayout.UpdateProgressiveContentSize (cognitive 46) · ×1
  • SkiaLayout.UpdateProgressiveContentSize (cognitive 46) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:3927 — SkiaLayout.UpdateProgressiveContentSize 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.
D2 · Cognitive Complexity · SkiaScroll.GetItemIndex (cognitive 46) · ×1
  • SkiaScroll.GetItemIndex (cognitive 46) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:1758 — SkiaScroll.GetItemIndex 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.
D2 · Cognitive Complexity · CachedStackWindowRepro.Run (cognitive 46) · ×1
  • CachedStackWindowRepro.Run (cognitive 46) src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs:17 — CachedStackWindowRepro.Run has cognitive complexity 46 (threshold 15). Of this number, 44 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.
D2 · Cognitive Complexity · SkiaControl.CalculateLayout (cognitive 44) · ×1
  • SkiaControl.CalculateLayout (cognitive 44) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:4520 — SkiaControl.CalculateLayout 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.
D2 · Cognitive Complexity · SkiaEditorSelection.Paint (cognitive 44) · ×1
  • SkiaEditorSelection.Paint (cognitive 44) src/Shared/DrawnUi/EditText/SkiaEditorSelection.cs:29 — SkiaEditorSelection.Paint 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.
D2 · Cognitive Complexity · SkiaLayout.ApplyRemoveChange (cognitive 43) · ×1
  • SkiaLayout.ApplyRemoveChange (cognitive 43) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:3205 — SkiaLayout.ApplyRemoveChange has cognitive complexity 43 (threshold 15). Of this number, 42 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.
D2 · Cognitive Complexity · ViewsAdapter.AttachView (cognitive 42) · ×1
  • ViewsAdapter.AttachView (cognitive 42) src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:1547 — ViewsAdapter.AttachView has cognitive complexity 42 (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.
D2 · Cognitive Complexity · SkiaScroll.Snap (cognitive 42) · ×1
  • SkiaScroll.Snap (cognitive 42) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:2076 — SkiaScroll.Snap has cognitive complexity 42 (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.
D2 · Cognitive Complexity · SkiaScrollLooped.Snap (cognitive 42) · ×1
  • SkiaScrollLooped.Snap (cognitive 42) src/Shared/DrawnUi/Draw/Scroll/SkiaScrollLooped.cs:228 — SkiaScrollLooped.Snap has cognitive complexity 42 (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.
D2 · Cognitive Complexity · DrawnView.Draw (cognitive 42) · ×1
  • DrawnView.Draw (cognitive 42) src/Shared/DrawnUi/Views/DrawnView.cs:2572 — DrawnView.Draw 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.
D2 · Cognitive Complexity · SkiaCarousel.ProcessCarouselGestures (cognitive 41) · ×1
  • SkiaCarousel.ProcessCarouselGestures (cognitive 41) src/Shared/DrawnUi/Controls/Layouts/SkiaCarousel.cs:1966 — SkiaCarousel.ProcessCarouselGestures 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.
D2 · Cognitive Complexity · SkiaShaderCarousel.OnScrollProgressChanged (cognitive 41) · ×1
  • SkiaShaderCarousel.OnScrollProgressChanged (cognitive 41) src/Shared/DrawnUi/Controls/Layouts/SkiaShaderCarousel.cs:232 — SkiaShaderCarousel.OnScrollProgressChanged has cognitive complexity 41 (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.
D2 · Cognitive Complexity · SkiaLayout.GetOrderedSubviews (cognitive 41) · ×1
  • SkiaLayout.GetOrderedSubviews (cognitive 41) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Grid.cs:14 — SkiaLayout.GetOrderedSubviews has cognitive complexity 41 (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.
D2 · Cognitive Complexity · ChildrenCollectionSync.Apply (cognitive 39) · ×1
  • ChildrenCollectionSync.Apply (cognitive 39) src/Shared/DrawnUi/Draw/Base/ChildrenCollectionSync.cs:16 — ChildrenCollectionSync.Apply has cognitive complexity 39 (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.
D2 · Cognitive Complexity · SkiaEditor.GetLayoutPosition (cognitive 39) · ×1
  • SkiaEditor.GetLayoutPosition (cognitive 39) src/Shared/DrawnUi/EditText/SkiaEditor.cs:769 — SkiaEditor.GetLayoutPosition has cognitive complexity 39 (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.
D2 · Cognitive Complexity · MeasureVisibleWindowRepro.Run (cognitive 39) · ×1
  • MeasureVisibleWindowRepro.Run (cognitive 39) src/Net/Samples/VirtualizationHarnessDemo/MeasureVisibleWindowRepro.cs:16 — MeasureVisibleWindowRepro.Run has cognitive complexity 39 (threshold 15). Of this number, 37 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.
D2 · Cognitive Complexity · SkiaCachedStack.DrawDirectCore (cognitive 38) · ×1
  • SkiaCachedStack.DrawDirectCore (cognitive 38) src/Shared/DrawnUi/Draw/Layout/SkiaCachedStack.cs:380 — SkiaCachedStack.DrawDirectCore 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.
D2 · Cognitive Complexity · SkiaRichLabel.RenderBlock (cognitive 38) · ×1
  • SkiaRichLabel.RenderBlock (cognitive 38) src/Shared/DrawnUi/Controls/Labels/SkiaMarkdownLabel.CommonMark.cs:155 — SkiaRichLabel.RenderBlock 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.
D2 · Cognitive Complexity · SkiaCarousel.SelectNextAnchorInternal (cognitive 38) · ×1
  • SkiaCarousel.SelectNextAnchorInternal (cognitive 38) src/Shared/DrawnUi/Controls/Layouts/SkiaCarousel.cs:137 — SkiaCarousel.SelectNextAnchorInternal 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.
D2 · Cognitive Complexity · SkiaAccessibilityManager.ProcessPendingFocus (cognitive 38) · ×1
  • SkiaAccessibilityManager.ProcessPendingFocus (cognitive 38) src/Shared/DrawnUi/Views/SkiaAccessibilityManager.cs:623 — SkiaAccessibilityManager.ProcessPendingFocus 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.
D2 · Cognitive Complexity · NativeLibraryLoader.TryLoadNativeLibrary (cognitive 38) · ×1
  • NativeLibraryLoader.TryLoadNativeLibrary (cognitive 38) src/Maui/DrawnUi/Platforms/Windows/Views/OpenGles.cs:595 — NativeLibraryLoader.TryLoadNativeLibrary 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.
D2 · Cognitive Complexity · SkiaRichLabel.BuildSpanData (cognitive 37) · ×1
  • SkiaRichLabel.BuildSpanData (cognitive 37) src/Shared/DrawnUi/Controls/Labels/SkiaRichLabel.cs:211 — SkiaRichLabel.BuildSpanData 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.
D2 · Cognitive Complexity · SkiaVulkanTextureView.Run (cognitive 37) · ×1
  • SkiaVulkanTextureView.Run (cognitive 37) src/Maui/DrawnUi/Platforms/Android/Vulkan/SkiaVulkanTextureView.cs:243 — SkiaVulkanTextureView.Run 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.
D2 · Cognitive Complexity · PongAI.Update (cognitive 37) · ×1
  • PongAI.Update (cognitive 37) src/Shared/Samples/Pong.Shared/Game/Ai/PongAI.cs:77 — PongAI.Update has cognitive complexity 37 (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.
D2 · Cognitive Complexity · CachedScrollTrimRepro.GrowCellRepro (cognitive 37) · ×1
  • CachedScrollTrimRepro.GrowCellRepro (cognitive 37) src/Net/Samples/VirtualizationHarnessDemo/CachedScrollTrimRepro.cs:67 — CachedScrollTrimRepro.GrowCellRepro 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.
D2 · Cognitive Complexity · SkiaSvg.Paint (cognitive 36) · ×1
  • SkiaSvg.Paint (cognitive 36) src/Shared/DrawnUi/Draw/Svg/SkiaSvg.cs:938 — SkiaSvg.Paint has cognitive complexity 36 (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.
D2 · Cognitive Complexity · SkiaLayout.TryApplyUniformAddMeasureFirst (cognitive 36) · ×1
  • SkiaLayout.TryApplyUniformAddMeasureFirst (cognitive 36) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:2461 — SkiaLayout.TryApplyUniformAddMeasureFirst has cognitive complexity 36 (threshold 15). Of this number, 35 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.
D2 · Cognitive Complexity · SkiaLayout.DirectShiftMeasurements (cognitive 36) · ×1
  • SkiaLayout.DirectShiftMeasurements (cognitive 36) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:3756 — SkiaLayout.DirectShiftMeasurements 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.
D2 · Cognitive Complexity · SkiaLayout.MeasureAdditionalItems (cognitive 36) · ×1
  • SkiaLayout.MeasureAdditionalItems (cognitive 36) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:4906 — SkiaLayout.MeasureAdditionalItems 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.
D2 · Cognitive Complexity · SkiaLabel.ProcessTextSelection (cognitive 36) · ×1
  • SkiaLabel.ProcessTextSelection (cognitive 36) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:5195 — SkiaLabel.ProcessTextSelection has cognitive complexity 36 (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.
D2 · Cognitive Complexity · SkiaShaderCarousel.ScrollToOffset (cognitive 35) · ×1
  • SkiaShaderCarousel.ScrollToOffset (cognitive 35) src/Shared/DrawnUi/Controls/Layouts/SkiaShaderCarousel.cs:379 — SkiaShaderCarousel.ScrollToOffset has cognitive complexity 35 (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.
D2 · Cognitive Complexity · SkiaLayout.TryMeasureMasonryChanges (cognitive 35) · ×1
  • SkiaLayout.TryMeasureMasonryChanges (cognitive 35) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Masonry.cs:96 — SkiaLayout.TryMeasureMasonryChanges 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.
D2 · Cognitive Complexity · SkiaScrollLooped.OnDrawn (cognitive 35) · ×1
  • SkiaScrollLooped.OnDrawn (cognitive 35) src/Shared/DrawnUi/Draw/Scroll/SkiaScrollLooped.cs:330 — SkiaScrollLooped.OnDrawn has cognitive complexity 35 (threshold 15). Of this number, 30 points are the body's own statements and 5 belong to one function literal inside it that branches. 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.
D2 · Cognitive Complexity · Super.Init (cognitive 35) · ×1
  • Super.Init (cognitive 35) src/Maui/DrawnUi/Platforms/iOS/Super.iOS.cs:18 — Super.Init has cognitive complexity 35 (threshold 15). Most of this is not in the body itself: 7 of the 35 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 71, 84, 67). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · Mesh3D.EarClip (cognitive 34) · ×1
  • Mesh3D.EarClip (cognitive 34) src/SharedAdd3d/Shapes3D.cs:395 — Mesh3D.EarClip has cognitive complexity 34 (threshold 15). Of this number, 33 points are the body's own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SkiaCachedStack.ClampCoverageToRecordable (cognitive 34) · ×1
  • SkiaCachedStack.ClampCoverageToRecordable (cognitive 34) src/Shared/DrawnUi/Draw/Layout/SkiaCachedStack.cs:708 — SkiaCachedStack.ClampCoverageToRecordable 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.
D2 · Cognitive Complexity · SkiaImage.OnMeasuring (cognitive 34) · ×1
  • SkiaImage.OnMeasuring (cognitive 34) src/Shared/DrawnUi/Draw/Images/SkiaImage.cs:1947 — SkiaImage.OnMeasuring 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.
D2 · Cognitive Complexity · SkiaLayout.ApplyStructureChanges (cognitive 34) · ×1
  • SkiaLayout.ApplyStructureChanges (cognitive 34) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:1834 — SkiaLayout.ApplyStructureChanges has cognitive complexity 34 (threshold 15). Of this number, 29 points are the body's own statements and 5 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.
D2 · Cognitive Complexity · SkiaControl.CreateRenderingObject (cognitive 34) · ×1
  • SkiaControl.CreateRenderingObject (cognitive 34) src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs:862 — SkiaControl.CreateRenderingObject 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.
D2 · Cognitive Complexity · SkiaControl.UseRenderingObject (cognitive 34) · ×1
  • SkiaControl.UseRenderingObject (cognitive 34) src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs:1151 — SkiaControl.UseRenderingObject 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.
D2 · Cognitive Complexity · SkiaLabel.DrawTextSelection (cognitive 34) · ×1
  • SkiaLabel.DrawTextSelection (cognitive 34) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:5293 — SkiaLabel.DrawTextSelection 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.
D2 · Cognitive Complexity · FluentExtensions.BuildDomFromRenderTree (cognitive 34) · ×1
  • FluentExtensions.BuildDomFromRenderTree (cognitive 34) src/Shared/DrawnUi/Internals/Extensions/RenderTreeDomExtensions.cs:89 — FluentExtensions.BuildDomFromRenderTree 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.
D2 · Cognitive Complexity · DrawnView.ExecuteAnimators (cognitive 34) · ×1
  • DrawnView.ExecuteAnimators (cognitive 34) src/Shared/DrawnUi/Views/DrawnView.cs:1077 — DrawnView.ExecuteAnimators 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.
D2 · Cognitive Complexity · Super.SetNavigationBarColor (cognitive 34) · ×1
  • Super.SetNavigationBarColor (cognitive 34) src/Maui/DrawnUi/Platforms/Android/Super.Android.cs:448 — Super.SetNavigationBarColor has cognitive complexity 34 (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.
D2 · Cognitive Complexity · SkiaDecoratedColumn.CreateLines (cognitive 33) · ×1
  • SkiaDecoratedColumn.CreateLines (cognitive 33) src/Shared/DrawnUi/Controls/Layouts/SkiaDecoratedColumn.cs:104 — SkiaDecoratedColumn.CreateLines 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.
D2 · Cognitive Complexity · ItemsSourceWindow.OnSourceCollectionChanged (cognitive 33) · ×1
  • ItemsSourceWindow.OnSourceCollectionChanged (cognitive 33) src/Shared/DrawnUi/Draw/Layout/Windowing/ItemsSourceWindow.cs:384 — ItemsSourceWindow.OnSourceCollectionChanged 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.
D2 · Cognitive Complexity · SkiaControl.MeasureContentFast (cognitive 33) · ×1
  • SkiaControl.MeasureContentFast (cognitive 33) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:5967 — SkiaControl.MeasureContentFast 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.
D2 · Cognitive Complexity · StalePlaneContentRepro.RunCore (cognitive 33) · ×1
  • StalePlaneContentRepro.RunCore (cognitive 33) src/Net/Samples/VirtualizationHarnessDemo/StalePlaneContentRepro.cs:65 — StalePlaneContentRepro.RunCore 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.
D2 · Cognitive Complexity · SkiaLayout.ProcessSecondPass (cognitive 32) · ×1
  • SkiaLayout.ProcessSecondPass (cognitive 32) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:1862 — SkiaLayout.ProcessSecondPass 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.
D2 · Cognitive Complexity · SkiaLayout.MeasureLayout (cognitive 32) · ×1
  • SkiaLayout.MeasureLayout (cognitive 32) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Shared.cs:883 — SkiaLayout.MeasureLayout 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.
D2 · Cognitive Complexity · SkiaLayout.ApplyBackgroundMeasurementChange (cognitive 32) · ×1
  • SkiaLayout.ApplyBackgroundMeasurementChange (cognitive 32) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:1958 — SkiaLayout.ApplyBackgroundMeasurementChange 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.
D2 · Cognitive Complexity · SkiaLabel.BuildFallbackRuns (cognitive 32) · ×1
  • SkiaLabel.BuildFallbackRuns (cognitive 32) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:3583 — SkiaLabel.BuildFallbackRuns 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.
D2 · Cognitive Complexity · SkiaLayout.MeasureStackBase (cognitive 32) · ×1
  • SkiaLayout.MeasureStackBase (cognitive 32) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.StackWrap.Shared.cs:302 — SkiaLayout.MeasureStackBase 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.
D2 · Cognitive Complexity · SkiaAccessibilityManager.RebuildLocked (cognitive 32) · ×1
  • SkiaAccessibilityManager.RebuildLocked (cognitive 32) src/Shared/DrawnUi/Views/SkiaAccessibilityManager.cs:1372 — SkiaAccessibilityManager.RebuildLocked has cognitive complexity 32 (threshold 15). Of this number, 31 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.
D2 · Cognitive Complexity · SkiaVulkanTextureView.CreateSwapchain (cognitive 32) · ×1
  • SkiaVulkanTextureView.CreateSwapchain (cognitive 32) src/Maui/DrawnUi/Platforms/Android/Vulkan/SkiaVulkanTextureView.cs:405 — SkiaVulkanTextureView.CreateSwapchain 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.
D2 · Cognitive Complexity · Super.Init (cognitive 32) · ×1
  • Super.Init (cognitive 32) src/Maui/DrawnUi/Platforms/MacCatalyst/Super.Mac.cs:112 — Super.Init has cognitive complexity 32 (threshold 15). Most of this is not in the body itself: 4 of the 32 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 142, 155, 138). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · SkiaButton.OnButtonPropertyChanged (cognitive 31) · ×1
  • SkiaButton.OnButtonPropertyChanged (cognitive 31) src/Shared/DrawnUi/Controls/Button/SkiaButton.cs:379 — SkiaButton.OnButtonPropertyChanged 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.
D2 · Cognitive Complexity · Canvas.FindViewCoordinatesRecursive (cognitive 31) · ×1
  • Canvas.FindViewCoordinatesRecursive (cognitive 31) src/Maui/DrawnUi/Views/Canvas.cs:1302 — Canvas.FindViewCoordinatesRecursive 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.
D2 · Cognitive Complexity · patchSkiaSizeWatcher (cognitive 31) · ×1
  • patchSkiaSizeWatcher (cognitive 31) src/Blazor/DrawnUi/wwwroot/drawnui-canvas-resize.js:77 — patchSkiaSizeWatcher has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 6, loops 2 (3 pts), ternaries 2 (3 pts), error handling 2, other 1 (nesting depth added 5). Most of this is not in the body itself: 1 of the 31 points is its own statement and the rest belongs to 9 function items inside it that branch ((anonymous)::invoke, a function literal at line 82, (anonymous)::update, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · SkiaImage.DrawSource (cognitive 30) · ×1
  • SkiaImage.DrawSource (cognitive 30) src/Shared/DrawnUi/Draw/Images/SkiaImage.cs:1590 — SkiaImage.DrawSource has cognitive complexity 30 (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.
D2 · Cognitive Complexity · SkiaGridStructure.MeasureKnownCells (cognitive 30) · ×1
  • SkiaGridStructure.MeasureKnownCells (cognitive 30) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Grid.Structure.cs:917 — SkiaGridStructure.MeasureKnownCells 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.
D2 · Cognitive Complexity · SkiaLabel.MeasureLineGlyphs (cognitive 30) · ×1
  • SkiaLabel.MeasureLineGlyphs (cognitive 30) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:1758 — SkiaLabel.MeasureLineGlyphs 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.
D2 · Cognitive Complexity · Canvas.Measure (cognitive 30) · ×1
  • Canvas.Measure (cognitive 30) src/Maui/DrawnUi/Views/Canvas.cs:242 — Canvas.Measure has cognitive complexity 30 (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.
D2 · Cognitive Complexity · PlaceholderFlashRepro.Run (cognitive 30) · ×1
  • PlaceholderFlashRepro.Run (cognitive 30) src/Net/Samples/VirtualizationHarnessDemo/PlaceholderFlashRepro.cs:17 — PlaceholderFlashRepro.Run 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.
D2 · Cognitive Complexity · SkiaLayout.TryEngageItemsWindowOnGrow (cognitive 29) · ×1
  • SkiaLayout.TryEngageItemsWindowOnGrow (cognitive 29) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Shared.cs:1527 — SkiaLayout.TryEngageItemsWindowOnGrow 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.
D2 · Cognitive Complexity · SkiaLayout.PinGridWindowSlide (cognitive 29) · ×1
  • SkiaLayout.PinGridWindowSlide (cognitive 29) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Shared.cs:1624 — SkiaLayout.PinGridWindowSlide 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.
D2 · Cognitive Complexity · SkiaLayout.OnItemsSourceCollectionChanged (cognitive 29) · ×1
  • SkiaLayout.OnItemsSourceCollectionChanged (cognitive 29) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Shared.cs:2098 — SkiaLayout.OnItemsSourceCollectionChanged has cognitive complexity 29 (threshold 15). Of this number, 20 points are the body's own statements and 9 belong to one function literal inside it that branches. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · SkiaLayout.MeasureBatchInBackground (cognitive 29) · ×1
  • SkiaLayout.MeasureBatchInBackground (cognitive 29) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:1590 — SkiaLayout.MeasureBatchInBackground 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.
D2 · Cognitive Complexity · SkiaControl.RescaleAspect (cognitive 29) · ×1
  • SkiaControl.RescaleAspect (cognitive 29) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:10385 — SkiaControl.RescaleAspect has cognitive complexity 29 (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. Note what this body is, though: it carries an aggressive-inlining request, so its author has asked in the source for this body to be inlined into every caller. Each part pulled out of it becomes a call the runtime has to decide to inline again, against a size budget — so the split can quietly turn one inlined body into several real calls, on the path the marker exists to protect. The measurement stands — a hot path is not a licence to be unreadable — but the move that pays here is to lift the COLD parts out first (argument validation, fallback and error paths, one-off setup) and leave the kernel whole. Where the kernel itself has to be divided, ask for the extracted parts to be inlined as well, and measure the result rather than assuming the division is free.
D2 · Cognitive Complexity · Canvas.Draw (cognitive 29) · ×1
  • Canvas.Draw (cognitive 29) src/Maui/DrawnUi/Views/Canvas.cs:1152 — Canvas.Draw has cognitive complexity 29 (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.
D2 · Cognitive Complexity · attachTouchTextInput (cognitive 29) · ×1
  • attachTouchTextInput (cognitive 29) src/Blazor/DrawnUi/wwwroot/drawnui-keyboard.js:227 — attachTouchTextInput has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 10, error handling 1 (3 pts), ternaries 2 (nesting depth added 5). Most of this is not in the body itself: 1 of the 29 points is its own statement and the rest belongs to 7 function items inside it that branch (touchEndHandler, touchStartHandler, a function literal at line 277, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · GltfReader.ReadAnimation (cognitive 28) · ×1
  • GltfReader.ReadAnimation (cognitive 28) src/SharedAdd3d/GltfReader.cs:247 — GltfReader.ReadAnimation 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.
D2 · Cognitive Complexity · Super.HandleScreenMetricsChanged (cognitive 28) · ×1
  • Super.HandleScreenMetricsChanged (cognitive 28) src/Blazor/DrawnUi/Super.Blazor.cs:237 — Super.HandleScreenMetricsChanged has cognitive complexity 28 (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.
D2 · Cognitive Complexity · SkiaCachedStack.SnapshotFillsViewport (cognitive 28) · ×1
  • SkiaCachedStack.SnapshotFillsViewport (cognitive 28) src/Shared/DrawnUi/Draw/Layout/SkiaCachedStack.cs:577 — SkiaCachedStack.SnapshotFillsViewport 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.
D2 · Cognitive Complexity · SkiaGridStructure.MeasureAtFinalCells (cognitive 28) · ×1
  • SkiaGridStructure.MeasureAtFinalCells (cognitive 28) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Grid.Structure.cs:480 — SkiaGridStructure.MeasureAtFinalCells 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.
D2 · Cognitive Complexity · SkiaLayout.ApplyAddChange (cognitive 28) · ×1
  • SkiaLayout.ApplyAddChange (cognitive 28) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:2321 — SkiaLayout.ApplyAddChange 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.
D2 · Cognitive Complexity · SkiaScroll.GetVisibleIndexes (cognitive 28) · ×1
  • SkiaScroll.GetVisibleIndexes (cognitive 28) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:1686 — SkiaScroll.GetVisibleIndexes 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.
D2 · Cognitive Complexity · SkiaControl.GetGesturePositionInsideChild (cognitive 28) · ×1
  • SkiaControl.GetGesturePositionInsideChild (cognitive 28) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:2366 — SkiaControl.GetGesturePositionInsideChild 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.
D2 · Cognitive Complexity · VelocitySkiaAnimator.UpdateValue (cognitive 28) · ×1
  • VelocitySkiaAnimator.UpdateValue (cognitive 28) src/Shared/DrawnUi/Features/Animators/VelocitySkiaAnimator.cs:93 — VelocitySkiaAnimator.UpdateValue 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.
D2 · Cognitive Complexity · SkiaShell.UnfreezeRootLayout (cognitive 28) · ×1
  • SkiaShell.UnfreezeRootLayout (cognitive 28) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:1301 — SkiaShell.UnfreezeRootLayout 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.
D2 · Cognitive Complexity · DrawnUiAccessibilityHelper.OnPopulateNodeForVirtualView (cognitive 28) · ×1
  • DrawnUiAccessibilityHelper.OnPopulateNodeForVirtualView (cognitive 28) src/Maui/DrawnUi/Platforms/Android/DrawnView.Accessibility.Android.cs:251 — DrawnUiAccessibilityHelper.OnPopulateNodeForVirtualView 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.
D2 · Cognitive Complexity · GalleryPage.GameLoop (cognitive 28) · ×1
  • GalleryPage.GameLoop (cognitive 28) src/Shared/Samples/Add3dGallery.Shared/Pages/GalleryPage.Loop.cs:81 — GalleryPage.GameLoop 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.
D2 · Cognitive Complexity · SkiaCarousel.ScrollToOffset (cognitive 27) · ×1
  • SkiaCarousel.ScrollToOffset (cognitive 27) src/Shared/DrawnUi/Controls/Layouts/SkiaCarousel.cs:883 — SkiaCarousel.ScrollToOffset 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.
D2 · Cognitive Complexity · SkiaCarousel.InitializeChildren (cognitive 27) · ×1
  • SkiaCarousel.InitializeChildren (cognitive 27) src/Shared/DrawnUi/Controls/Layouts/SkiaCarousel.cs:1308 — SkiaCarousel.InitializeChildren 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.
D2 · Cognitive Complexity · SkiaSpinner.ProcessGestures (cognitive 27) · ×1
  • SkiaSpinner.ProcessGestures (cognitive 27) src/Shared/DrawnUi/Controls/Pickers/Spinner/SkiaSpinner.cs:775 — SkiaSpinner.ProcessGestures 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.
D2 · Cognitive Complexity · SnappingLayout.ScrollToOffset (cognitive 27) · ×1
  • SnappingLayout.ScrollToOffset (cognitive 27) src/Shared/DrawnUi/Draw/Layout/SnappingLayout.cs:222 — SnappingLayout.ScrollToOffset 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.
D2 · Cognitive Complexity · SkiaControl.CheckCachedObjectValid (cognitive 27) · ×1
  • SkiaControl.CheckCachedObjectValid (cognitive 27) src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs:716 — SkiaControl.CheckCachedObjectValid 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.
D2 · Cognitive Complexity · SkiaControl.DefineAvailableSize (cognitive 27) · ×1
  • SkiaControl.DefineAvailableSize (cognitive 27) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:4385 — SkiaControl.DefineAvailableSize 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.
D2 · Cognitive Complexity · SkiaShell.RemoveModal (cognitive 27) · ×1
  • SkiaShell.RemoveModal (cognitive 27) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:1089 — SkiaShell.RemoveModal 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.
D2 · Cognitive Complexity · BasePageReloadable.Dispose (cognitive 27) · ×1
  • BasePageReloadable.Dispose (cognitive 27) src/Maui/DrawnUi/Views/BasePageReloadable.cs:101 — BasePageReloadable.Dispose 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.
D2 · Cognitive Complexity · WpfStartup.ApplyToWindow (cognitive 27) · ×1
  • WpfStartup.ApplyToWindow (cognitive 27) src/Wpf/Drawnui.Wpf/Features/StartupSettings.Wpf.cs:68 — WpfStartup.ApplyToWindow has cognitive complexity 27 (threshold 15). Most of this is not in the body itself: 6 of the 27 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 110, 91, 98). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · FrontierSpinnerStuckRepro.Run (cognitive 27) · ×1
  • FrontierSpinnerStuckRepro.Run (cognitive 27) src/Net/Samples/VirtualizationHarnessDemo/FrontierSpinnerStuckRepro.cs:17 — FrontierSpinnerStuckRepro.Run 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.
D2 · Cognitive Complexity · showPickerPrompt (cognitive 27) · ×1
  • showPickerPrompt (cognitive 27) src/Blazor/DrawnUi/wwwroot/drawnui-picker.js:151 — showPickerPrompt has cognitive complexity 27 (threshold 15). Drivers by points: other 9, ternaries 7, if/else 6, boolean chains 5. Most of this is not in the body itself: 6 of the 27 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 162, a function literal at line 228, (anonymous)::onKeyDown, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · Mesh3D.Contours (cognitive 26) · ×1
  • Mesh3D.Contours (cognitive 26) src/SharedAdd3d/Shapes3D.cs:313 — Mesh3D.Contours 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.
D2 · Cognitive Complexity · SkiaViewSwitcher.ExecuteTransitionAnimation (cognitive 26) · ×1
  • SkiaViewSwitcher.ExecuteTransitionAnimation (cognitive 26) src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs:897 — SkiaViewSwitcher.ExecuteTransitionAnimation has cognitive complexity 26 (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.
D2 · Cognitive Complexity · SkiaGridStructure.MeasureChild (cognitive 26) · ×1
  • SkiaGridStructure.MeasureChild (cognitive 26) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Grid.Structure.cs:554 — SkiaGridStructure.MeasureChild 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.
D2 · Cognitive Complexity · SkiaLayout.ApplySingleItemUpdateChange (cognitive 26) · ×1
  • SkiaLayout.ApplySingleItemUpdateChange (cognitive 26) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:3612 — SkiaLayout.ApplySingleItemUpdateChange has cognitive complexity 26 (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.
D2 · Cognitive Complexity · SkiaControl.TryAddDeepAreas (cognitive 26) · ×1
  • SkiaControl.TryAddDeepAreas (cognitive 26) src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs:144 — SkiaControl.TryAddDeepAreas 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.
D2 · Cognitive Complexity · SkiaLabel.GetLineGlyphs (cognitive 26) · ×1
  • SkiaLabel.GetLineGlyphs (cognitive 26) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:5389 — SkiaLabel.GetLineGlyphs 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.
D2 · Cognitive Complexity · SkiaLayout.ApplyStackMeasureResult (cognitive 26) · ×1
  • SkiaLayout.ApplyStackMeasureResult (cognitive 26) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.StackWrap.Shared.cs:41 — SkiaLayout.ApplyStackMeasureResult 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.
D2 · Cognitive Complexity · DrawnView.CalculateLayout (cognitive 26) · ×1
  • DrawnView.CalculateLayout (cognitive 26) src/Shared/DrawnUi/Views/DrawnView.cs:1787 — DrawnView.CalculateLayout 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.
D2 · Cognitive Complexity · WebAccessibility.Push (cognitive 26) · ×1
  • WebAccessibility.Push (cognitive 26) src/Wasm/DrawnUi/WebAccessibility.cs:79 — WebAccessibility.Push 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.
D2 · Cognitive Complexity · TemplatedViewsPool.GetLocked (cognitive 25) · ×1
  • TemplatedViewsPool.GetLocked (cognitive 25) src/Shared/DrawnUi/Draw/Layout/TemplatedViewsPool.cs:443 — TemplatedViewsPool.GetLocked 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.
D2 · Cognitive Complexity · SkiaCarousel.ScrollToNearestAnchor (cognitive 25) · ×1
  • SkiaCarousel.ScrollToNearestAnchor (cognitive 25) src/Shared/DrawnUi/Controls/Layouts/SkiaCarousel.cs:54 — SkiaCarousel.ScrollToNearestAnchor 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.
D2 · Cognitive Complexity · SkiaLayout.BuildStackStructure (cognitive 25) · ×1
  • SkiaLayout.BuildStackStructure (cognitive 25) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:2238 — SkiaLayout.BuildStackStructure 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.
D2 · Cognitive Complexity · SkiaGridStructure.ApplyMinimumDimensionsFromFillChildren (cognitive 25) · ×1
  • SkiaGridStructure.ApplyMinimumDimensionsFromFillChildren (cognitive 25) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Grid.Structure.cs:702 — SkiaGridStructure.ApplyMinimumDimensionsFromFillChildren 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.
D2 · Cognitive Complexity · DrawnView.IsElementVisibleInParentChain (cognitive 25) · ×1
  • DrawnView.IsElementVisibleInParentChain (cognitive 25) src/Maui/DrawnUi/Platforms/Windows/DrawnView.Windows.cs:778 — DrawnView.IsElementVisibleInParentChain 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.
D2 · Cognitive Complexity · SkiaMauiElement.LayoutNativeView (cognitive 25) · ×1
  • SkiaMauiElement.LayoutNativeView (cognitive 25) src/Maui/DrawnUi/Platforms/Windows/SkiaMauiElement.Windows.cs:90 — SkiaMauiElement.LayoutNativeView 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.
D2 · Cognitive Complexity · RealChatJumpRepro.Run (cognitive 25) · ×1
  • RealChatJumpRepro.Run (cognitive 25) src/Net/Samples/VirtualizationHarnessDemo/RealChatJumpRepro.cs:18 — RealChatJumpRepro.Run 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.
D2 · Cognitive Complexity · GltfReader.ReadMesh (cognitive 24) · ×1
  • GltfReader.ReadMesh (cognitive 24) src/SharedAdd3d/GltfReader.cs:162 — GltfReader.ReadMesh 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.
D2 · Cognitive Complexity · SkiaRichLabel.SetTextInternal (cognitive 24) · ×1
  • SkiaRichLabel.SetTextInternal (cognitive 24) src/Shared/DrawnUi/Controls/Labels/SkiaMarkdownLabel.CommonMark.cs:13 — SkiaRichLabel.SetTextInternal 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.
D2 · Cognitive Complexity · SkiaImage.SwapSources (cognitive 24) · ×1
  • SkiaImage.SwapSources (cognitive 24) src/Shared/DrawnUi/Draw/Images/SkiaImage.cs:1430 — SkiaImage.SwapSources has cognitive complexity 24 (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.
D2 · Cognitive Complexity · SkiaLayout.CalculateFillSpace (cognitive 24) · ×1
  • SkiaLayout.CalculateFillSpace (cognitive 24) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:1578 — SkiaLayout.CalculateFillSpace 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.
D2 · Cognitive Complexity · SkiaControl.CreateMeasureRequest (cognitive 24) · ×1
  • SkiaControl.CreateMeasureRequest (cognitive 24) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:6684 — SkiaControl.CreateMeasureRequest 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.
D2 · Cognitive Complexity · SkiaControl.CreateGradient (cognitive 24) · ×1
  • SkiaControl.CreateGradient (cognitive 24) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:9724 — SkiaControl.CreateGradient 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.
D2 · Cognitive Complexity · SkiaEditorDocument.NormalizeRuns (cognitive 24) · ×1
  • SkiaEditorDocument.NormalizeRuns (cognitive 24) src/Shared/DrawnUi/EditText/SkiaEditorDocument.cs:275 — SkiaEditorDocument.NormalizeRuns 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.
D2 · Cognitive Complexity · SKMeshSpecification.BuildVaryingsPass (cognitive 24) · ×1
  • SKMeshSpecification.BuildVaryingsPass (cognitive 24) src/Shared/DrawnUi/Features/Meshes/SKMeshSpecification.cs:868 — SKMeshSpecification.BuildVaryingsPass has cognitive complexity 24 (threshold 15). Of this number, 22 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.
D2 · Cognitive Complexity · GestureListener.ProcessGestures (cognitive 24) · ×1
  • GestureListener.ProcessGestures (cognitive 24) src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:66 — GestureListener.ProcessGestures 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.
D2 · Cognitive Complexity · PlaneDriftRepro.RunCore (cognitive 24) · ×1
  • PlaneDriftRepro.RunCore (cognitive 24) src/Net/Samples/VirtualizationHarnessDemo/PlaneDriftRepro.cs:37 — PlaneDriftRepro.RunCore has cognitive complexity 24 (threshold 15). Of this number, 23 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.
D2 · Cognitive Complexity · drawnui-web.pageScrollAxes (cognitive 24) · ×1
  • drawnui-web.pageScrollAxes (cognitive 24) src/Wasm/DrawnUi/wwwroot/drawnui-web.js:419 — drawnui-web.pageScrollAxes has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 10, if/else 5 (7 pts), ternaries 3 (6 pts), loops 1 (nesting depth added 5). Of this number, 22 points are the body's own statements and 2 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VulkanRenderer3D.MsaaSamples (cognitive 23) · ×1
  • VulkanRenderer3D.MsaaSamples (cognitive 23) src/Maui/Addons/DrawnUi.Maui.Add3d/Platforms/Android/VulkanRenderer3D.cs:323 — VulkanRenderer3D.MsaaSamples has cognitive complexity 23 (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.
D2 · Cognitive Complexity · SkiaLayout.PrepareCellOffthread (cognitive 23) · ×1
  • SkiaLayout.PrepareCellOffthread (cognitive 23) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:862 — SkiaLayout.PrepareCellOffthread has cognitive complexity 23 (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.
D2 · Cognitive Complexity · SkiaLabel.ReorderLine (cognitive 23) · ×1
  • SkiaLabel.ReorderLine (cognitive 23) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:1574 — SkiaLabel.ReorderLine 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.
D2 · Cognitive Complexity · TextSpan.SetupPaint (cognitive 23) · ×1
  • TextSpan.SetupPaint (cognitive 23) src/Shared/DrawnUi/Draw/Text/TextSpan.Maui.cs:118 — TextSpan.SetupPaint 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.
D2 · Cognitive Complexity · SkiaEditor.MoveCursorTo (cognitive 23) · ×1
  • SkiaEditor.MoveCursorTo (cognitive 23) src/Shared/DrawnUi/EditText/SkiaEditor.cs:1423 — SkiaEditor.MoveCursorTo has cognitive complexity 23 (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.
D2 · Cognitive Complexity · MeshGeometry.MakeVertices (cognitive 23) · ×1
  • MeshGeometry.MakeVertices (cognitive 23) src/Shared/DrawnUi/Features/Meshes/SKMesh.cs:901 — MeshGeometry.MakeVertices 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.
D2 · Cognitive Complexity · SkiaAccessibilityManager.ProcessGroupFocus (cognitive 23) · ×1
  • SkiaAccessibilityManager.ProcessGroupFocus (cognitive 23) src/Shared/DrawnUi/Views/SkiaAccessibilityManager.cs:1149 — SkiaAccessibilityManager.ProcessGroupFocus has cognitive complexity 23 (threshold 15). Of this number, 22 points are the body's own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SkiaImageManager.LoadImageManagedAsync (cognitive 23) · ×1
  • SkiaImageManager.LoadImageManagedAsync (cognitive 23) src/Maui/DrawnUi/Features/Images/SkiaImageManager.cs:402 — SkiaImageManager.LoadImageManagedAsync has cognitive complexity 23 (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.
D2 · Cognitive Complexity · SkiaEditor.SetFocusNative (cognitive 23) · ×1
  • SkiaEditor.SetFocusNative (cognitive 23) src/Maui/DrawnUi/Platforms/Windows/SkiaEditor.Windows.cs:187 — SkiaEditor.SetFocusNative has cognitive complexity 23 (threshold 15). Of this number, 18 points are the body's own statements and 5 belong to one function literal inside it that branches. 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.
D2 · Cognitive Complexity · NativeLibraryLoader.GetPlatformLibraryFileName (cognitive 23) · ×1
  • NativeLibraryLoader.GetPlatformLibraryFileName (cognitive 23) src/Maui/DrawnUi/Platforms/Windows/Views/OpenGles.cs:711 — NativeLibraryLoader.GetPlatformLibraryFileName 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.
D2 · Cognitive Complexity · GestureRobot.Pinch (cognitive 23) · ×1
  • GestureRobot.Pinch (cognitive 23) src/Net/DrawnUi/Testing/GestureRobot.cs:304 — GestureRobot.Pinch 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.
D2 · Cognitive Complexity · CachedJumpRepro.RunOnce (cognitive 23) · ×1
  • CachedJumpRepro.RunOnce (cognitive 23) src/Net/Samples/VirtualizationHarnessDemo/CachedJumpRepro.cs:36 — CachedJumpRepro.RunOnce has cognitive complexity 23 (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.
D2 · Cognitive Complexity · Mesh3D.Extrude (cognitive 22) · ×1
  • Mesh3D.Extrude (cognitive 22) src/SharedAdd3d/Shapes3D.cs:230 — Mesh3D.Extrude has cognitive complexity 22 (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.
D2 · Cognitive Complexity · MetalRenderer3D.Render (cognitive 22) · ×1
  • MetalRenderer3D.Render (cognitive 22) src/Maui/Addons/DrawnUi.Maui.Add3d/Apple/MetalRenderer3D.cs:448 — MetalRenderer3D.Render 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.
D2 · Cognitive Complexity · SkiaSprite.ScanFrameContentBounds (cognitive 22) · ×1
  • SkiaSprite.ScanFrameContentBounds (cognitive 22) src/Shared/DrawnUi/Controls/PlayFrames/SkiaSprite.cs:672 — SkiaSprite.ScanFrameContentBounds 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.
D2 · Cognitive Complexity · SkiaHotspot.ProcessGestures (cognitive 22) · ×1
  • SkiaHotspot.ProcessGestures (cognitive 22) src/Shared/DrawnUi/Controls/Touch/SkiaHotspot.cs:61 — SkiaHotspot.ProcessGestures 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.
D2 · Cognitive Complexity · SkiaControl.PaintWithVisualEffects (cognitive 22) · ×1
  • SkiaControl.PaintWithVisualEffects (cognitive 22) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:8283 — SkiaControl.PaintWithVisualEffects 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.
D2 · Cognitive Complexity · SkiaLabel.SetPieceCarets (cognitive 22) · ×1
  • SkiaLabel.SetPieceCarets (cognitive 22) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:1669 — SkiaLabel.SetPieceCarets has cognitive complexity 22 (threshold 15). Of this number, 21 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.
D2 · Cognitive Complexity · DrawnView.InvalidateCanvas (cognitive 22) · ×1
  • DrawnView.InvalidateCanvas (cognitive 22) src/Shared/DrawnUi/Views/DrawnView.cs:3424 — DrawnView.InvalidateCanvas has cognitive complexity 22 (threshold 15). Most of this is not in the body itself: 10 of the 22 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 3445, 3469). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · SkiaAccessibilityManager.BuildSaidOnce (cognitive 22) · ×1
  • SkiaAccessibilityManager.BuildSaidOnce (cognitive 22) src/Shared/DrawnUi/Views/SkiaAccessibilityManager.cs:1487 — SkiaAccessibilityManager.BuildSaidOnce 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.
D2 · Cognitive Complexity · LinuxAtSpiProvider.HandleComponent (cognitive 22) · ×1
  • LinuxAtSpiProvider.HandleComponent (cognitive 22) src/OpenTk/DrawnUi/Accessibility/LinuxAtSpiProvider.cs:688 — LinuxAtSpiProvider.HandleComponent has cognitive complexity 22 (threshold 15). Of this number, 18 points are the body's own statements and 4 belong to 2 function literals inside it that branch. The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · PlanesTest.Build (cognitive 22) · ×1
  • PlanesTest.Build (cognitive 22) src/Maui/Samples/FastRepro/PlanesTest.cs:80 — PlanesTest.Build has cognitive complexity 22 (threshold 15). None of this is in the body itself: all 22 points belong to 6 function literals inside it that branch (lines 230, 175, 192, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · SkiaEditorHarnessAdapter.TryExecute (cognitive 22) · ×1
  • SkiaEditorHarnessAdapter.TryExecute (cognitive 22) src/Net/Samples/SkiaEditorHarness/Program.cs:1384 — SkiaEditorHarnessAdapter.TryExecute 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.
D2 · Cognitive Complexity · colrv0_emoji.build (cognitive 22) · ×1
  • colrv0_emoji.build (cognitive 22) dev/fonts/colrv0_emoji.py:58 — colrv0_emoji.build has cognitive complexity 22 (threshold 15). Drivers by points: if/else 3 (9 pts), ternaries 3 (8 pts), loops 4 (5 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · drawnui-web.a11yApply (cognitive 22) · ×1
  • drawnui-web.a11yApply (cognitive 22) src/Wasm/DrawnUi/wwwroot/drawnui-web.js:616 — drawnui-web.a11yApply has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 14 (18 pts), boolean chains 2, if/else 1, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · SkiaMapsUi.InvalidateTimerCallback (cognitive 21) · ×1
  • SkiaMapsUi.InvalidateTimerCallback (cognitive 21) src/Maui/Addons/DrawnUi.Maui.MapsUi/SkiaMapsUi.cs:826 — SkiaMapsUi.InvalidateTimerCallback 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.
D2 · Cognitive Complexity · Canvas.OnTouchAction (cognitive 21) · ×1
  • Canvas.OnTouchAction (cognitive 21) src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:362 — Canvas.OnTouchAction 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.
D2 · Cognitive Complexity · ViewsAdapter.AnyUnpreparedInRange (cognitive 21) · ×1
  • ViewsAdapter.AnyUnpreparedInRange (cognitive 21) src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:624 — ViewsAdapter.AnyUnpreparedInRange 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.
D2 · Cognitive Complexity · SkiaDrawer.GetOffsetToHide (cognitive 21) · ×1
  • SkiaDrawer.GetOffsetToHide (cognitive 21) src/Shared/DrawnUi/Controls/Drawer/SkiaDrawer.cs:363 — SkiaDrawer.GetOffsetToHide has cognitive complexity 21 (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.
D2 · Cognitive Complexity · SkiaLayout.CommitPendingHeadInsert (cognitive 21) · ×1
  • SkiaLayout.CommitPendingHeadInsert (cognitive 21) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:2829 — SkiaLayout.CommitPendingHeadInsert 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.
D2 · Cognitive Complexity · SkiaLayout.ProcessVisibilityChangesInSequentialGroups (cognitive 21) · ×1
  • SkiaLayout.ProcessVisibilityChangesInSequentialGroups (cognitive 21) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:3504 — SkiaLayout.ProcessVisibilityChangesInSequentialGroups 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.
D2 · Cognitive Complexity · SkiaScroll.IsOppositeLoadMoreBlocked (cognitive 21) · ×1
  • SkiaScroll.IsOppositeLoadMoreBlocked (cognitive 21) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:2302 — SkiaScroll.IsOppositeLoadMoreBlocked 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.
D2 · Cognitive Complexity · SkiaShape.CreateClip (cognitive 21) · ×1
  • SkiaShape.CreateClip (cognitive 21) src/Shared/DrawnUi/Draw/SkiaShape.cs:369 — SkiaShape.CreateClip 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.
D2 · Cognitive Complexity · SkiaControl.RenderObject.set (cognitive 21) · ×1
  • SkiaControl.RenderObject.set (cognitive 21) src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs:537 — SkiaControl.RenderObject.set 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.
D2 · Cognitive Complexity · SkiaControl.UsingCacheType.get (cognitive 21) · ×1
  • SkiaControl.UsingCacheType.get (cognitive 21) src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs:799 — SkiaControl.UsingCacheType.get 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.
D2 · Cognitive Complexity · SkiaControl.Arrange (cognitive 21) · ×1
  • SkiaControl.Arrange (cognitive 21) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:5748 — SkiaControl.Arrange 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.
D2 · Cognitive Complexity · SkiaLabel.BuildGlyphsFromShaping (cognitive 21) · ×1
  • SkiaLabel.BuildGlyphsFromShaping (cognitive 21) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:2906 — SkiaLabel.BuildGlyphsFromShaping 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.
D2 · Cognitive Complexity · SKMesh.GetShader (cognitive 21) · ×1
  • SKMesh.GetShader (cognitive 21) src/Shared/DrawnUi/Features/Meshes/SKMesh.cs:542 — SKMesh.GetShader 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.
D2 · Cognitive Complexity · MeshGeometry.RunVertexProgram (cognitive 21) · ×1
  • MeshGeometry.RunVertexProgram (cognitive 21) src/Shared/DrawnUi/Features/Meshes/SKMesh.cs:1049 — MeshGeometry.RunVertexProgram 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.
D2 · Cognitive Complexity · SKMeshSpecification.Validate (cognitive 21) · ×1
  • SKMeshSpecification.Validate (cognitive 21) src/Shared/DrawnUi/Features/Meshes/SKMeshSpecification.cs:563 — SKMeshSpecification.Validate 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.
D2 · Cognitive Complexity · SkiaAccessibilityManager.ProcessReveal (cognitive 21) · ×1
  • SkiaAccessibilityManager.ProcessReveal (cognitive 21) src/Shared/DrawnUi/Views/SkiaAccessibilityManager.cs:272 — SkiaAccessibilityManager.ProcessReveal 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.
D2 · Cognitive Complexity · SkiaAccessibilityManager.OrderLocked (cognitive 21) · ×1
  • SkiaAccessibilityManager.OrderLocked (cognitive 21) src/Shared/DrawnUi/Views/SkiaAccessibilityManager.cs:1598 — SkiaAccessibilityManager.OrderLocked 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.
D2 · Cognitive Complexity · SkiaFontManager.DetectUnicodeBlock (cognitive 21) · ×1
  • SkiaFontManager.DetectUnicodeBlock (cognitive 21) src/Maui/DrawnUi/Features/Fonts/SkiaFontManager.cs:135 — SkiaFontManager.DetectUnicodeBlock has cognitive complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · Super.Init (cognitive 21) · ×1
  • Super.Init (cognitive 21) src/Maui/DrawnUi/Platforms/Android/Super.Android.cs:65 — Super.Init has cognitive complexity 21 (threshold 15). Most of this is not in the body itself: 3 of the 21 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 113, 111, 159). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · DrawnView.NavigateWithCanvasKey (cognitive 21) · ×1
  • DrawnView.NavigateWithCanvasKey (cognitive 21) src/Maui/DrawnUi/Platforms/Windows/DrawnView.Windows.cs:445 — DrawnView.NavigateWithCanvasKey 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.
D2 · Cognitive Complexity · LinuxAtSpiProvider.NodeState (cognitive 21) · ×1
  • LinuxAtSpiProvider.NodeState (cognitive 21) src/OpenTk/DrawnUi/Accessibility/LinuxAtSpiProvider.cs:474 — LinuxAtSpiProvider.NodeState 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.
D2 · Cognitive Complexity · textInputFocus (cognitive 21) · ×1
  • textInputFocus (cognitive 21) src/Blazor/DrawnUi/wwwroot/drawnui-keyboard.js:339 — textInputFocus has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (9 pts), error handling 2 (5 pts), boolean chains 4, ternaries 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Mesh3D.RoundedCuboid (cognitive 20) · ×1
  • Mesh3D.RoundedCuboid (cognitive 20) src/SharedAdd3d/Shapes3D.cs:164 — Mesh3D.RoundedCuboid has cognitive complexity 20 (threshold 15). Of this number, 19 points are the body's own statements and 1 belongs to one function item inside it that branches. 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.
D2 · Cognitive Complexity · VisualElement.CssLayoutAlignment.get (cognitive 20) · ×1
  • VisualElement.CssLayoutAlignment.get (cognitive 20) src/Blazor/DrawnUi/Views/VisualElement.cs:91 — VisualElement.CssLayoutAlignment.get 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · SkiaCarousel.ApplyDynamicSize (cognitive 20) · ×1
  • SkiaCarousel.ApplyDynamicSize (cognitive 20) src/Shared/DrawnUi/Controls/Layouts/SkiaCarousel.cs:1638 — SkiaCarousel.ApplyDynamicSize 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.
D2 · Cognitive Complexity · SkiaSlider.OnPropertyChanged (cognitive 20) · ×1
  • SkiaSlider.OnPropertyChanged (cognitive 20) src/Shared/DrawnUi/Controls/Slider/SkiaSlider.cs:1581 — SkiaSlider.OnPropertyChanged 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.
D2 · Cognitive Complexity · SkiaLayout.OnMeasuring (cognitive 20) · ×1
  • SkiaLayout.OnMeasuring (cognitive 20) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Shared.cs:1003 — SkiaLayout.OnMeasuring 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.
D2 · Cognitive Complexity · SkiaLayout.Paint (cognitive 20) · ×1
  • SkiaLayout.Paint (cognitive 20) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Shared.cs:1166 — SkiaLayout.Paint 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · SkiaLayout.ShouldTriggerLoadMore (cognitive 20) · ×1
  • SkiaLayout.ShouldTriggerLoadMore (cognitive 20) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:198 — SkiaLayout.ShouldTriggerLoadMore 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.
D2 · Cognitive Complexity · SkiaLayout.PostCellPreparationWants (cognitive 20) · ×1
  • SkiaLayout.PostCellPreparationWants (cognitive 20) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:940 — SkiaLayout.PostCellPreparationWants 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.
D2 · Cognitive Complexity · SkiaLayout.BackgroundMeasureItems (cognitive 20) · ×1
  • SkiaLayout.BackgroundMeasureItems (cognitive 20) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:4106 — SkiaLayout.BackgroundMeasureItems 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.
D2 · Cognitive Complexity · SkiaShape.ShadowsPropertyChanged (cognitive 20) · ×1
  • SkiaShape.ShadowsPropertyChanged (cognitive 20) src/Shared/DrawnUi/Draw/SkiaShape.cs:939 — SkiaShape.ShadowsPropertyChanged 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.
D2 · Cognitive Complexity · SkiaEditor.GetAutoVisibleHeightPixels (cognitive 20) · ×1
  • SkiaEditor.GetAutoVisibleHeightPixels (cognitive 20) src/Shared/DrawnUi/EditText/SkiaEditor.cs:589 — SkiaEditor.GetAutoVisibleHeightPixels 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.
D2 · Cognitive Complexity · SkiaShaderEffect.CreateUniforms (cognitive 20) · ×1
  • SkiaShaderEffect.CreateUniforms (cognitive 20) src/Shared/DrawnUi/Features/Effects/SkiaShaderEffect.cs:672 — SkiaShaderEffect.CreateUniforms 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.
D2 · Cognitive Complexity · TextSpan.CheckGlyphsCanBeRendered (cognitive 20) · ×1
  • TextSpan.CheckGlyphsCanBeRendered (cognitive 20) src/Shared/DrawnUi/Draw/Text/TextSpan.Shared.cs:50 — TextSpan.CheckGlyphsCanBeRendered 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.
D2 · Cognitive Complexity · SkiaAccessibilityManager.UpdateActiveModal (cognitive 20) · ×1
  • SkiaAccessibilityManager.UpdateActiveModal (cognitive 20) src/Shared/DrawnUi/Views/SkiaAccessibilityManager.cs:387 — SkiaAccessibilityManager.UpdateActiveModal 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.
D2 · Cognitive Complexity · SkiaAccessibilityManager.MoveInGroup (cognitive 20) · ×1
  • SkiaAccessibilityManager.MoveInGroup (cognitive 20) src/Shared/DrawnUi/Views/SkiaAccessibilityManager.cs:896 — SkiaAccessibilityManager.MoveInGroup 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · SkiaShell.PresentAsync (cognitive 20) · ×1
  • SkiaShell.PresentAsync (cognitive 20) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:379 — SkiaShell.PresentAsync 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.
D2 · Cognitive Complexity · SkiaImageManager.LoadImageOnPlatformAsync (cognitive 20) · ×1
  • SkiaImageManager.LoadImageOnPlatformAsync (cognitive 20) src/Maui/DrawnUi/Platforms/Android/SkiaImageManager.Android.cs:19 — SkiaImageManager.LoadImageOnPlatformAsync 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.
D2 · Cognitive Complexity · DrawnView.IsElementVisibleInParentChain (cognitive 20) · ×1
  • DrawnView.IsElementVisibleInParentChain (cognitive 20) src/Maui/DrawnUi/Platforms/Apple/DrawnView.Apple.cs:54 — DrawnView.IsElementVisibleInParentChain 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.
D2 · Cognitive Complexity · BaseChartDrawable.DrawHorizontalStepLines (cognitive 20) · ×1
  • BaseChartDrawable.DrawHorizontalStepLines (cognitive 20) src/Maui/Samples/Sandbox/Views/Aloha/BaseChartDrawable.cs:498 — BaseChartDrawable.DrawHorizontalStepLines 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.
D2 · Cognitive Complexity · DeleteJumpCycleRepro.CheckTree (cognitive 20) · ×1
  • DeleteJumpCycleRepro.CheckTree (cognitive 20) src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs:110 — DeleteJumpCycleRepro.CheckTree 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.
D2 · Cognitive Complexity · RayTree.Hit (cognitive 19) · ×1
  • RayTree.Hit (cognitive 19) src/SharedAdd3d/RayTree.cs:97 — RayTree.Hit 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.
D2 · Cognitive Complexity · VulkanRenderer3D.MakePipelines (cognitive 19) · ×1
  • VulkanRenderer3D.MakePipelines (cognitive 19) src/Maui/Addons/DrawnUi.Maui.Add3d/Platforms/Android/VulkanRenderer3D.cs:458 — VulkanRenderer3D.MakePipelines 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.
D2 · Cognitive Complexity · SkiaButton.ProcessGestures (cognitive 19) · ×1
  • SkiaButton.ProcessGestures (cognitive 19) src/Shared/DrawnUi/Controls/Button/SkiaButton.cs:817 — SkiaButton.ProcessGestures 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.
D2 · Cognitive Complexity · SpriteFrameImage.OnMeasuring (cognitive 19) · ×1
  • SpriteFrameImage.OnMeasuring (cognitive 19) src/Shared/DrawnUi/Controls/PlayFrames/SkiaSprite.SpriteFrameImage.cs:213 — SpriteFrameImage.OnMeasuring 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.
D2 · Cognitive Complexity · SkiaWheelScroll.DrawVirtual (cognitive 19) · ×1
  • SkiaWheelScroll.DrawVirtual (cognitive 19) src/Shared/DrawnUi/Controls/Pickers/Wheels/SkiaWheelScroll.cs:318 — SkiaWheelScroll.DrawVirtual 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.
D2 · Cognitive Complexity · SkiaControl.PrepareNode (cognitive 19) · ×1
  • SkiaControl.PrepareNode (cognitive 19) src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs:1857 — SkiaControl.PrepareNode 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.
D2 · Cognitive Complexity · SkiaControl.CheckChildGestureHit (cognitive 19) · ×1
  • SkiaControl.CheckChildGestureHit (cognitive 19) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:2512 — SkiaControl.CheckChildGestureHit 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.
D2 · Cognitive Complexity · SkiaControl.SetupBackgroundPaint (cognitive 19) · ×1
  • SkiaControl.SetupBackgroundPaint (cognitive 19) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:9104 — SkiaControl.SetupBackgroundPaint 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.
D2 · Cognitive Complexity · Bidi.VisualOrder (cognitive 19) · ×1
  • Bidi.VisualOrder (cognitive 19) src/Shared/DrawnUi/Draw/Text/SkiaLabel.Bidi.cs:288 — Bidi.VisualOrder 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.
D2 · Cognitive Complexity · DrawnView.DrawTooltip (cognitive 19) · ×1
  • DrawnView.DrawTooltip (cognitive 19) src/Shared/DrawnUi/Views/DrawnView.Tooltip.cs:201 — DrawnView.DrawTooltip 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.
D2 · Cognitive Complexity · PopupLayer.Paint (cognitive 19) · ×1
  • PopupLayer.Paint (cognitive 19) src/Shared/DrawnUi/Views/DrawnView.Popups.cs:423 — PopupLayer.Paint 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.
D2 · Cognitive Complexity · SkiaShell.PushModalAsync (cognitive 19) · ×1
  • SkiaShell.PushModalAsync (cognitive 19) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:738 — SkiaShell.PushModalAsync has cognitive complexity 19 (threshold 15). Most of this is not in the body itself: 7 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 786). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · SkiaEditor.AddObservers (cognitive 19) · ×1
  • SkiaEditor.AddObservers (cognitive 19) src/Maui/DrawnUi/Platforms/Android/SkiaEditor.Android.cs:95 — SkiaEditor.AddObservers has cognitive complexity 19 (threshold 15). Most of this is not in the body itself: 7 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 103). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · SkiaFontManager.MatchCharacterWithPlatformFallback (cognitive 19) · ×1
  • SkiaFontManager.MatchCharacterWithPlatformFallback (cognitive 19) src/Maui/DrawnUi/Platforms/Apple/SkiaFontManager.Apple.cs:91 — SkiaFontManager.MatchCharacterWithPlatformFallback 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.
D2 · Cognitive Complexity · HeadlessCanvasHost.MaxInteriorEmptyBand (cognitive 19) · ×1
  • HeadlessCanvasHost.MaxInteriorEmptyBand (cognitive 19) src/Net/DrawnUi/Testing/HeadlessCanvasHost.cs:199 — HeadlessCanvasHost.MaxInteriorEmptyBand 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.
D2 · Cognitive Complexity · Canvas.DesktopMoveVelocity (cognitive 19) · ×1
  • Canvas.DesktopMoveVelocity (cognitive 19) src/Net/DrawnUi/Views/Canvas.OpenTk.cs:183 — Canvas.DesktopMoveVelocity 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.
D2 · Cognitive Complexity · DrawnUiElement.OnPreviewKeyDown (cognitive 19) · ×1
  • DrawnUiElement.OnPreviewKeyDown (cognitive 19) src/Wpf/Drawnui.Wpf/Views/DrawnUiElement.cs:975 — DrawnUiElement.OnPreviewKeyDown 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.
D2 · Cognitive Complexity · GripDragRepro.RunCore (cognitive 19) · ×1
  • GripDragRepro.RunCore (cognitive 19) src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs:66 — GripDragRepro.RunCore 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.
D2 · Cognitive Complexity · SplitGridRepro.AssertSlots (cognitive 19) · ×1
  • SplitGridRepro.AssertSlots (cognitive 19) src/Net/Samples/VirtualizationHarnessDemo/SplitGridRepro.cs:110 — SplitGridRepro.AssertSlots 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.
D2 · Cognitive Complexity · Scene3D.Extent (cognitive 18) · ×1
  • Scene3D.Extent (cognitive 18) src/SharedAdd3d/Scene3D.cs:508 — Scene3D.Extent 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.
D2 · Cognitive Complexity · DrawnView.FixDensity (cognitive 18) · ×1
  • DrawnView.FixDensity (cognitive 18) src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:47 — DrawnView.FixDensity 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.
D2 · Cognitive Complexity · ViewsAdapter.GetOrCreateViewForIndexInternal (cognitive 18) · ×1
  • ViewsAdapter.GetOrCreateViewForIndexInternal (cognitive 18) src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:1361 — ViewsAdapter.GetOrCreateViewForIndexInternal 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.
D2 · Cognitive Complexity · SkiaHotspotZoom.ProcessGestures (cognitive 18) · ×1
  • SkiaHotspotZoom.ProcessGestures (cognitive 18) src/Shared/DrawnUi/Controls/Touch/SkiaHotspotZoom.cs:54 — SkiaHotspotZoom.ProcessGestures 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.
D2 · Cognitive Complexity · ZoomContent.SetZoom (cognitive 18) · ×1
  • ZoomContent.SetZoom (cognitive 18) src/Shared/DrawnUi/Controls/Zoom/ZoomContent.cs:511 — ZoomContent.SetZoom has cognitive complexity 18 (threshold 15). Of this number, 14 points are the body's own statements and 4 belong to one function literal inside it that branches. 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.
D2 · Cognitive Complexity · SkiaGridStructure.RemeasureChildrenAtFinalCells (cognitive 18) · ×1
  • SkiaGridStructure.RemeasureChildrenAtFinalCells (cognitive 18) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Grid.Structure.cs:433 — SkiaGridStructure.RemeasureChildrenAtFinalCells 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.
D2 · Cognitive Complexity · SkiaLayout.ApplyOffsetCompensationForBackgroundMeasurement (cognitive 18) · ×1
  • SkiaLayout.ApplyOffsetCompensationForBackgroundMeasurement (cognitive 18) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:2061 — SkiaLayout.ApplyOffsetCompensationForBackgroundMeasurement 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.
D2 · Cognitive Complexity · StackLayoutStructure.EnumerateViewsForMeasurement (cognitive 18) · ×1
  • StackLayoutStructure.EnumerateViewsForMeasurement (cognitive 18) src/Shared/DrawnUi/Draw/Layout/StackLayoutStructure.cs:18 — StackLayoutStructure.EnumerateViewsForMeasurement 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.
D2 · Cognitive Complexity · SkiaScroll.ApplyWheelScroll (cognitive 18) · ×1
  • SkiaScroll.ApplyWheelScroll (cognitive 18) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.Gestures.cs:178 — SkiaScroll.ApplyWheelScroll has cognitive complexity 18 (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.
D2 · Cognitive Complexity · SkiaScroll.EnsureVisible (cognitive 18) · ×1
  • SkiaScroll.EnsureVisible (cognitive 18) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.Scrolling.cs:1382 — SkiaScroll.EnsureVisible 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.
D2 · Cognitive Complexity · SkiaControl.ComputeEffectsMargin (cognitive 18) · ×1
  • SkiaControl.ComputeEffectsMargin (cognitive 18) src/Shared/DrawnUi/Draw/Base/SkiaControl.Effects.cs:188 — SkiaControl.ComputeEffectsMargin 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.
D2 · Cognitive Complexity · SkiaControl.InvalidateParent (cognitive 18) · ×1
  • SkiaControl.InvalidateParent (cognitive 18) src/Shared/DrawnUi/Draw/Base/SkiaControl.Invalidation.cs:78 — SkiaControl.InvalidateParent 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.
D2 · Cognitive Complexity · SkiaControl.DisposeObject (cognitive 18) · ×1
  • SkiaControl.DisposeObject (cognitive 18) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:4304 — SkiaControl.DisposeObject has cognitive complexity 18 (threshold 15). Of this number, 12 points are the body's own statements and 6 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.
D2 · Cognitive Complexity · SkiaControl.CompareRects (cognitive 18) · ×1
  • SkiaControl.CompareRects (cognitive 18) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:10547 — SkiaControl.CompareRects 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. Note what this body is, though: it carries an aggressive-inlining request, so its author has asked in the source for this body to be inlined into every caller. Each part pulled out of it becomes a call the runtime has to decide to inline again, against a size budget — so the split can quietly turn one inlined body into several real calls, on the path the marker exists to protect. The measurement stands — a hot path is not a licence to be unreadable — but the move that pays here is to lift the COLD parts out first (argument validation, fallback and error paths, one-off setup) and leave the kernel whole. Where the kernel itself has to be divided, ask for the extracted parts to be inlined as well, and measure the result rather than assuming the division is free.
D2 · Cognitive Complexity · SkiaLabel.OnCollectionChanged (cognitive 18) · ×1
  • SkiaLabel.OnCollectionChanged (cognitive 18) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:266 — SkiaLabel.OnCollectionChanged 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.
D2 · Cognitive Complexity · SkiaLabel.ProcessGestures (cognitive 18) · ×1
  • SkiaLabel.ProcessGestures (cognitive 18) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:4798 — SkiaLabel.ProcessGestures 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.
D2 · Cognitive Complexity · SkiaEditor.LayoutArrowTarget (cognitive 18) · ×1
  • SkiaEditor.LayoutArrowTarget (cognitive 18) src/Shared/DrawnUi/EditText/SkiaEditor.cs:1643 — SkiaEditor.LayoutArrowTarget 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.
D2 · Cognitive Complexity · SkiaShaderEffect.CreateShader (cognitive 18) · ×1
  • SkiaShaderEffect.CreateShader (cognitive 18) src/Shared/DrawnUi/Features/Effects/SkiaShaderEffect.cs:508 — SkiaShaderEffect.CreateShader 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.
D2 · Cognitive Complexity · DrawnView.CommitTooltipLocked (cognitive 18) · ×1
  • DrawnView.CommitTooltipLocked (cognitive 18) src/Shared/DrawnUi/Views/DrawnView.Tooltip.cs:59 — DrawnView.CommitTooltipLocked has cognitive complexity 18 (threshold 15). Of this number, 16 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.
D2 · Cognitive Complexity · Canvas.razor › OnAfterRenderAsync (cognitive 18) · ×1
  • Canvas.razor › OnAfterRenderAsync (cognitive 18) src/Blazor/DrawnUi/Views/Canvas.razor:316 — Canvas.razor › OnAfterRenderAsync 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.
D2 · Cognitive Complexity · Canvas.razor › BuildLayoutAlignmentCss (cognitive 18) · ×1
  • Canvas.razor › BuildLayoutAlignmentCss (cognitive 18) src/Blazor/DrawnUi/Views/Canvas.razor:664 — Canvas.razor › BuildLayoutAlignmentCss has cognitive complexity 18 (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.
D2 · Cognitive Complexity · SkiaImageManager.ReleasePendingLoads (cognitive 18) · ×1
  • SkiaImageManager.ReleasePendingLoads (cognitive 18) src/Maui/DrawnUi/Features/Images/SkiaImageManager.cs:673 — SkiaImageManager.ReleasePendingLoads 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.
D2 · Cognitive Complexity · InternalExtensions.ConvertPathGeometry (cognitive 18) · ×1
  • InternalExtensions.ConvertPathGeometry (cognitive 18) src/Maui/DrawnUi/Internals/Extensions/InternalExtensions.Maui.cs:133 — InternalExtensions.ConvertPathGeometry has cognitive complexity 18 (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.
D2 · Cognitive Complexity · RetainedSkiaGLTextureRenderer.OnDrawFrame (cognitive 18) · ×1
  • RetainedSkiaGLTextureRenderer.OnDrawFrame (cognitive 18) src/Maui/DrawnUi/Platforms/Android/Retained/RetainedSkiaGLTextureRenderer.cs:65 — RetainedSkiaGLTextureRenderer.OnDrawFrame 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.
D2 · Cognitive Complexity · SkiaEditor.ApplyKeyboardType (cognitive 18) · ×1
  • SkiaEditor.ApplyKeyboardType (cognitive 18) src/Maui/DrawnUi/Platforms/Apple/SkiaEditor.Apple.cs:274 — SkiaEditor.ApplyKeyboardType 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.
D2 · Cognitive Complexity · LinuxAtSpiProvider.AnnounceChanges (cognitive 18) · ×1
  • LinuxAtSpiProvider.AnnounceChanges (cognitive 18) src/OpenTk/DrawnUi/Accessibility/LinuxAtSpiProvider.cs:282 — LinuxAtSpiProvider.AnnounceChanges 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.
D2 · Cognitive Complexity · WpfPropertyMirror.Build (cognitive 18) · ×1
  • WpfPropertyMirror.Build (cognitive 18) src/Wpf/Drawnui.Wpf/Draw/WpfPropertyMirror.cs:141 — WpfPropertyMirror.Build 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.
D2 · Cognitive Complexity · CachedScrollTrimRepro.StaticDirty (cognitive 18) · ×1
  • CachedScrollTrimRepro.StaticDirty (cognitive 18) src/Net/Samples/VirtualizationHarnessDemo/CachedScrollTrimRepro.cs:138 — CachedScrollTrimRepro.StaticDirty 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.
D2 · Cognitive Complexity · EditorShapedDragRepro.MakeDraggable (cognitive 18) · ×1
  • EditorShapedDragRepro.MakeDraggable (cognitive 18) src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs:268 — EditorShapedDragRepro.MakeDraggable has cognitive complexity 18 (threshold 15). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 274, 292). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · GripDragRepro.MakeDraggable (cognitive 18) · ×1
  • GripDragRepro.MakeDraggable (cognitive 18) src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs:375 — GripDragRepro.MakeDraggable has cognitive complexity 18 (threshold 15). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 381, 399). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · ScrollBarOverflowRepro.Run (cognitive 18) · ×1
  • ScrollBarOverflowRepro.Run (cognitive 18) src/Net/Samples/VirtualizationHarnessDemo/ScrollBarOverflowRepro.cs:15 — ScrollBarOverflowRepro.Run 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.
D2 · Cognitive Complexity · ScrollShrinkRepro.RunCore (cognitive 18) · ×1
  • ScrollShrinkRepro.RunCore (cognitive 18) src/Net/Samples/VirtualizationHarnessDemo/ScrollShrinkRepro.cs:47 — ScrollShrinkRepro.RunCore has cognitive complexity 18 (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.
D2 · Cognitive Complexity · drawnui-canvas-resize.setCanvasFullscreen (cognitive 18) · ×1
  • drawnui-canvas-resize.setCanvasFullscreen (cognitive 18) src/Blazor/DrawnUi/wwwroot/drawnui-canvas-resize.js:335 — drawnui-canvas-resize.setCanvasFullscreen has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 1, error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · drawnui-web.a11yUpdate (cognitive 18) · ×1
  • drawnui-web.a11yUpdate (cognitive 18) src/Wasm/DrawnUi/wwwroot/drawnui-web.js:652 — drawnui-web.a11yUpdate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, loops 2, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · setupInputHandlers (cognitive 18) · ×1
  • setupInputHandlers (cognitive 18) src/Wasm/DrawnUi/wwwroot/drawnui-web.js:359 — setupInputHandlers has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 4, other 4 (nesting depth added 1). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 12 function items inside it that branch (a function literal at line 368, a function literal at line 391, a function literal at line 393, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · VulkanRenderer3D.Render (cognitive 17) · ×1
  • VulkanRenderer3D.Render (cognitive 17) src/Maui/Addons/DrawnUi.Maui.Add3d/Platforms/Android/VulkanRenderer3D.cs:922 — VulkanRenderer3D.Render 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.
D2 · Cognitive Complexity · SkiaMapsUi.PinsPropertyChanged (cognitive 17) · ×1
  • SkiaMapsUi.PinsPropertyChanged (cognitive 17) src/Maui/Addons/DrawnUi.Maui.MapsUi/SkiaMapsUi.cs:219 — SkiaMapsUi.PinsPropertyChanged 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.
D2 · Cognitive Complexity · ViewsAdapter._HandleSmartCollectionChange (cognitive 17) · ×1
  • ViewsAdapter._HandleSmartCollectionChange (cognitive 17) src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:802 — ViewsAdapter._HandleSmartCollectionChange 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.
D2 · Cognitive Complexity · ViewsAdapter.HandleMove (cognitive 17) · ×1
  • ViewsAdapter.HandleMove (cognitive 17) src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:1003 — ViewsAdapter.HandleMove 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.
D2 · Cognitive Complexity · SkiaCarousel.AnimateLoopStep (cognitive 17) · ×1
  • SkiaCarousel.AnimateLoopStep (cognitive 17) src/Shared/DrawnUi/Controls/Layouts/SkiaCarousel.cs:987 — SkiaCarousel.AnimateLoopStep has cognitive complexity 17 (threshold 15). Of this number, 14 points are the body's own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · SkiaImage.DrawSourceRegion (cognitive 17) · ×1
  • SkiaImage.DrawSourceRegion (cognitive 17) src/Shared/DrawnUi/Draw/Images/SkiaImage.cs:1732 — SkiaImage.DrawSourceRegion 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.
D2 · Cognitive Complexity · SkiaSvg.CreateSvgMatrix (cognitive 17) · ×1
  • SkiaSvg.CreateSvgMatrix (cognitive 17) src/Shared/DrawnUi/Draw/Svg/SkiaSvg.cs:800 — SkiaSvg.CreateSvgMatrix 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.
D2 · Cognitive Complexity · SkiaControl.EffectsPropertyChanged (cognitive 17) · ×1
  • SkiaControl.EffectsPropertyChanged (cognitive 17) src/Shared/DrawnUi/Draw/Base/SkiaControl.Effects.cs:10 — SkiaControl.EffectsPropertyChanged 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.
D2 · Cognitive Complexity · SkiaControl.OnVisibilityChanged (cognitive 17) · ×1
  • SkiaControl.OnVisibilityChanged (cognitive 17) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:3194 — SkiaControl.OnVisibilityChanged 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · SkiaLabel.ApplyBidiToLines (cognitive 17) · ×1
  • SkiaLabel.ApplyBidiToLines (cognitive 17) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:1542 — SkiaLabel.ApplyBidiToLines has cognitive complexity 17 (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.
D2 · Cognitive Complexity · SkiaLabel.EnsureSelectionMap (cognitive 17) · ×1
  • SkiaLabel.EnsureSelectionMap (cognitive 17) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:5031 — SkiaLabel.EnsureSelectionMap 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.
D2 · Cognitive Complexity · SkiaEditor.HandleVerticalArrow (cognitive 17) · ×1
  • SkiaEditor.HandleVerticalArrow (cognitive 17) src/Shared/DrawnUi/EditText/SkiaEditor.cs:1737 — SkiaEditor.HandleVerticalArrow 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.
D2 · Cognitive Complexity · InternalExtensions.DisposeControlAndChildren (cognitive 17) · ×1
  • InternalExtensions.DisposeControlAndChildren (cognitive 17) src/Shared/DrawnUi/Internals/Extensions/InternalExtensions.cs:66 — InternalExtensions.DisposeControlAndChildren has cognitive complexity 17 (threshold 15). Of this number, 12 points are the body's own statements and 5 belong to one function literal inside it that branches. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · SkiaLayout.MeasureWrapBase (cognitive 17) · ×1
  • SkiaLayout.MeasureWrapBase (cognitive 17) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.StackWrap.Shared.cs:395 — SkiaLayout.MeasureWrapBase 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.
D2 · Cognitive Complexity · Canvas.razor › Draw (cognitive 17) · ×1
  • Canvas.razor › Draw (cognitive 17) src/Blazor/DrawnUi/Views/Canvas.razor:768 — Canvas.razor › Draw 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.
D2 · Cognitive Complexity · SkiaImageManager.ProcessQueue (cognitive 17) · ×1
  • SkiaImageManager.ProcessQueue (cognitive 17) src/Maui/DrawnUi/Features/Images/SkiaImageManager.cs:755 — SkiaImageManager.ProcessQueue 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.
D2 · Cognitive Complexity · MauiEntryHandler.SetInputType (cognitive 17) · ×1
  • MauiEntryHandler.SetInputType (cognitive 17) src/Maui/DrawnUi/Platforms/Android/MauiEntryHandler.Android.cs:87 — MauiEntryHandler.SetInputType 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · VulkanGpu.Probe (cognitive 17) · ×1
  • VulkanGpu.Probe (cognitive 17) src/Maui/DrawnUi/Platforms/Android/Vulkan/VulkanGpu.cs:104 — VulkanGpu.Probe 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.
D2 · Cognitive Complexity · SkiaEditor.HiddenTextBox_PreviewKeyDown (cognitive 17) · ×1
  • SkiaEditor.HiddenTextBox_PreviewKeyDown (cognitive 17) src/Maui/DrawnUi/Platforms/Windows/SkiaEditor.Windows.cs:322 — SkiaEditor.HiddenTextBox_PreviewKeyDown 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.
D2 · Cognitive Complexity · Canvas.OnGestureEvent (cognitive 17) · ×1
  • Canvas.OnGestureEvent (cognitive 17) src/Maui/DrawnUi/Views/Canvas.cs:851 — Canvas.OnGestureEvent has cognitive complexity 17 (threshold 15). Of this number, 16 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.
D2 · Cognitive Complexity · LinuxAtSpiProvider.Publish (cognitive 17) · ×1
  • LinuxAtSpiProvider.Publish (cognitive 17) src/OpenTk/DrawnUi/Accessibility/LinuxAtSpiProvider.cs:231 — LinuxAtSpiProvider.Publish 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.
D2 · Cognitive Complexity · WidgetChatMessage.UpdateContainer (cognitive 17) · ×1
  • WidgetChatMessage.UpdateContainer (cognitive 17) src/Maui/Samples/Sandbox/Chat/WidgetChatMessage.cs:330 — WidgetChatMessage.UpdateContainer 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · MultiBarChartDrawable.DrawGroupBars (cognitive 17) · ×1
  • MultiBarChartDrawable.DrawGroupBars (cognitive 17) src/Maui/Samples/Sandbox/Views/Aloha/MultiBarChartDrawable.cs:194 — MultiBarChartDrawable.DrawGroupBars 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.
D2 · Cognitive Complexity · GameTemplatePage.GameLoop (cognitive 17) · ×1
  • GameTemplatePage.GameLoop (cognitive 17) src/Maui/Samples/GameTemplate/Views/GameTemplatePage.xaml.cs:69 — GameTemplatePage.GameLoop 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.
D2 · Cognitive Complexity · LiftDragRepro.RunCore (cognitive 17) · ×1
  • LiftDragRepro.RunCore (cognitive 17) src/Net/Samples/VirtualizationHarnessDemo/LiftDragRepro.cs:69 — LiftDragRepro.RunCore 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.
D2 · Cognitive Complexity · MoveReorderRepro.AssertOrder (cognitive 17) · ×1
  • MoveReorderRepro.AssertOrder (cognitive 17) src/Net/Samples/VirtualizationHarnessDemo/MoveReorderRepro.cs:173 — MoveReorderRepro.AssertOrder 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.
D2 · Cognitive Complexity · PreparedViewsRepro.CheckTree (cognitive 17) · ×1
  • PreparedViewsRepro.CheckTree (cognitive 17) src/Net/Samples/VirtualizationHarnessDemo/PreparedViewsRepro.cs:126 — PreparedViewsRepro.CheckTree 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.
D2 · Cognitive Complexity · TapStaleTreeRepro.RunOne (cognitive 17) · ×1
  • TapStaleTreeRepro.RunOne (cognitive 17) src/Net/Samples/VirtualizationHarnessDemo/TapStaleTreeRepro.cs:41 — TapStaleTreeRepro.RunOne 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.
D2 · Cognitive Complexity · Scene3D.SplitGlb (cognitive 16) · ×1
  • Scene3D.SplitGlb (cognitive 16) src/SharedAdd3d/GltfReader.cs:20 — Scene3D.SplitGlb 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.
D2 · Cognitive Complexity · Renderer3D.DrawOn (cognitive 16) · ×1
  • Renderer3D.DrawOn (cognitive 16) src/SharedAdd3d/Renderer3D.cs:600 — Renderer3D.DrawOn 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.
D2 · Cognitive Complexity · Prefetch3D.Estimate (cognitive 16) · ×1
  • Prefetch3D.Estimate (cognitive 16) src/SharedAdd3d/Prefetch3D.cs:93 — Prefetch3D.Estimate 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.
D2 · Cognitive Complexity · SkiaDrawer.ApplyOptions (cognitive 16) · ×1
  • SkiaDrawer.ApplyOptions (cognitive 16) src/Shared/DrawnUi/Controls/Drawer/SkiaDrawer.cs:483 — SkiaDrawer.ApplyOptions 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · SkiaRichLabel.MeasureLineGlyphsProbe (cognitive 16) · ×1
  • SkiaRichLabel.MeasureLineGlyphsProbe (cognitive 16) src/Shared/DrawnUi/Controls/Labels/SkiaRichLabel.cs:61 — SkiaRichLabel.MeasureLineGlyphsProbe 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.
D2 · Cognitive Complexity · SkiaRichLabel.ProcessSpanDataStatic (cognitive 16) · ×1
  • SkiaRichLabel.ProcessSpanDataStatic (cognitive 16) src/Shared/DrawnUi/Controls/Labels/SkiaRichLabel.cs:326 — SkiaRichLabel.ProcessSpanDataStatic 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.
D2 · Cognitive Complexity · SkiaCarousel.FixIndex (cognitive 16) · ×1
  • SkiaCarousel.FixIndex (cognitive 16) src/Shared/DrawnUi/Controls/Layouts/SkiaCarousel.cs:295 — SkiaCarousel.FixIndex 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.
D2 · Cognitive Complexity · SkiaScroll.UpdateScrollBarIndicator (cognitive 16) · ×1
  • SkiaScroll.UpdateScrollBarIndicator (cognitive 16) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:540 — SkiaScroll.UpdateScrollBarIndicator 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.
D2 · Cognitive Complexity · SkiaScroll.ProcessScrollBarGestures (cognitive 16) · ×1
  • SkiaScroll.ProcessScrollBarGestures (cognitive 16) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:602 — SkiaScroll.ProcessScrollBarGestures 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.
D2 · Cognitive Complexity · SkiaScroll.InitializeScroller (cognitive 16) · ×1
  • SkiaScroll.InitializeScroller (cognitive 16) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.Scrolling.cs:257 — SkiaScroll.InitializeScroller has cognitive complexity 16 (threshold 15). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 264, 282, 306, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · SkiaControl.AggregatedEffectsMarginPixels.get (cognitive 16) · ×1
  • SkiaControl.AggregatedEffectsMarginPixels.get (cognitive 16) src/Shared/DrawnUi/Draw/Base/SkiaControl.Effects.cs:126 — SkiaControl.AggregatedEffectsMarginPixels.get 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.
D2 · Cognitive Complexity · SkiaControl.SetParent (cognitive 16) · ×1
  • SkiaControl.SetParent (cognitive 16) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:10153 — SkiaControl.SetParent 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.
D2 · Cognitive Complexity · SkiaLabel.SetupBackgroundPaint (cognitive 16) · ×1
  • SkiaLabel.SetupBackgroundPaint (cognitive 16) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:1086 — SkiaLabel.SetupBackgroundPaint 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.
D2 · Cognitive Complexity · SkiaLabel.MeasureLineGlyphsProbe (cognitive 16) · ×1
  • SkiaLabel.MeasureLineGlyphsProbe (cognitive 16) src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:1481 — SkiaLabel.MeasureLineGlyphsProbe 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.
D2 · Cognitive Complexity · SkiaShader.CreateUniforms (cognitive 16) · ×1
  • SkiaShader.CreateUniforms (cognitive 16) src/Shared/DrawnUi/Features/Shaders/SkiaShader.cs:314 — SkiaShader.CreateUniforms 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.
D2 · Cognitive Complexity · DrawnView.GetIsVisibleWithParent (cognitive 16) · ×1
  • DrawnView.GetIsVisibleWithParent (cognitive 16) src/Shared/DrawnUi/Views/DrawnView.cs:3529 — DrawnView.GetIsVisibleWithParent 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.
D2 · Cognitive Complexity · DrawnView.UpdateTextDrag (cognitive 16) · ×1
  • DrawnView.UpdateTextDrag (cognitive 16) src/Shared/DrawnUi/Views/DrawnView.TextSelection.cs:164 — DrawnView.UpdateTextDrag 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.
D2 · Cognitive Complexity · SkiaAccessibilityManager.TabThroughList (cognitive 16) · ×1
  • SkiaAccessibilityManager.TabThroughList (cognitive 16) src/Shared/DrawnUi/Views/SkiaAccessibilityManager.cs:814 — SkiaAccessibilityManager.TabThroughList 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.
D2 · Cognitive Complexity · SkiaShell.PopModalAsync (cognitive 16) · ×1
  • SkiaShell.PopModalAsync (cognitive 16) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:1053 — SkiaShell.PopModalAsync 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.
D2 · Cognitive Complexity · SkiaShell.SetupModalsVisibility (cognitive 16) · ×1
  • SkiaShell.SetupModalsVisibility (cognitive 16) src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:1458 — SkiaShell.SetupModalsVisibility 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.
D2 · Cognitive Complexity · StaticResourcesExtensions.Get (cognitive 16) · ×1
  • StaticResourcesExtensions.Get (cognitive 16) src/Maui/DrawnUi/Internals/Extensions/StaticResourcesExtensions.cs:15 — StaticResourcesExtensions.Get 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.
D2 · Cognitive Complexity · SkiaEditor.SetFocusNative (cognitive 16) · ×1
  • SkiaEditor.SetFocusNative (cognitive 16) src/Maui/DrawnUi/Platforms/Android/SkiaEditor.Android.cs:262 — SkiaEditor.SetFocusNative 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.
D2 · Cognitive Complexity · SKMetalViewRetained.Draw (cognitive 16) · ×1
  • SKMetalViewRetained.Draw (cognitive 16) src/Maui/DrawnUi/Platforms/Apple/Handlers/SKMetalViewRetained.Apple.cs:241 — SKMetalViewRetained.Draw 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.
D2 · Cognitive Complexity · DeleteJumpCycleRepro.Run (cognitive 16) · ×1
  • DeleteJumpCycleRepro.Run (cognitive 16) src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs:15 — DeleteJumpCycleRepro.Run 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.
D2 · Cognitive Complexity · PreparedViewsRepro.Run (cognitive 16) · ×1
  • PreparedViewsRepro.Run (cognitive 16) src/Net/Samples/VirtualizationHarnessDemo/PreparedViewsRepro.cs:18 — PreparedViewsRepro.Run 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.
D2 · Cognitive Complexity · ScrollToTopWallRepro.Run (cognitive 16) · ×1
  • ScrollToTopWallRepro.Run (cognitive 16) src/Net/Samples/VirtualizationHarnessDemo/ScrollToTopWallRepro.cs:16 — ScrollToTopWallRepro.Run 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.
D2 · Cognitive Complexity · drawnui-web.a11yCreate (cognitive 16) · ×1
  • drawnui-web.a11yCreate (cognitive 16) src/Wasm/DrawnUi/wwwroot/drawnui-web.js:569 — drawnui-web.a11yCreate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 6 (nesting depth added 1). None of this is in the body itself: all 16 points belong to 5 function literals inside it that branch (lines 574, 596, 587, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D3 · God Classes · FunctionTooLong · ×1
  • FunctionTooLong: drawnui-picker.getPickerTheme src/Blazor/DrawnUi/wwwroot/drawnui-picker.js:3 — FunctionTooLong — getPickerTheme runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
D35 · Change Coupling · Change-coupling hub · ×1
  • Change-coupling hub: SkiaButton.cs → SkiaSwitch.cs, SkiaToggle.cs, SkiaHotspot.cs src/Shared/DrawnUi/Controls/Button/SkiaButton.cs — `src/Shared/DrawnUi/Controls/Button/SkiaButton.cs` changes together with 3 other files — `src/Shared/DrawnUi/Controls/Switches/SkiaSwitch.cs`, `src/Shared/DrawnUi/Controls/Switches/SkiaToggle.cs`, `src/Shared/DrawnUi/Controls/Touch/SkiaHotspot.cs` — none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3.
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D4 · Code Duplication · Near-duplicate member family (3 members, 53 shared lines) · ×1
  • Near-duplicate member family (3 members, 53 shared lines) src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:61 — src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:61-292 | src/Maui/DrawnUi/Views/Canvas.cs:571-804 | src/Net/DrawnUi/Views/Canvas.Gestures.Net.cs:64-247 — These 3 members are variants of one another: a block of 53 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times.
D4 · Code Duplication · Edited copy of a member (56 corresponding lines) · ×1
  • Edited copy of a member (56 corresponding lines) src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:549 — src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:549-611 | src/Net/DrawnUi/Views/DrawnView.Net.cs:445-505 — 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 · Members sharing a duplicated core (5 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (5 members, 50+ identical tokens) src/Shared/DrawnUi/Controls/Progress/SkiaProgress.cs:52 — src/Shared/DrawnUi/Controls/Progress/SkiaProgress.cs:52-105 | src/Shared/DrawnUi/Controls/Progress/SkiaProgress.cs:153-204 | src/Shared/DrawnUi/Controls/Progress/SkiaProgress.cs:207-258 | src/Shared/DrawnUi/Controls/Progress/SkiaProgress.cs:265-328 | src/Shared/DrawnUi/Controls/Progress/SkiaProgress.cs:331-382 — 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 (138 corresponding lines) · ×1
  • Edited copy of a member (138 corresponding lines) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:1760 — src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:1760-1897 | src/Shared/DrawnUi/Draw/Scroll/SkiaScrollLooped.cs:50-197 — These two members are one piece of code written twice and then edited apart: 138 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (99 corresponding lines) · ×1
  • Edited copy of a member (99 corresponding lines) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:2077 — src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:2077-2183 | src/Shared/DrawnUi/Draw/Scroll/SkiaScrollLooped.cs:229-327 — These two members are one piece of code written twice and then edited apart: 99 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (66 corresponding lines) · ×1
  • Edited copy of a member (66 corresponding lines) src/Blazor/DrawnUi/Views/VisualElement.cs:92 — src/Blazor/DrawnUi/Views/VisualElement.cs:92-163 | src/Blazor/DrawnUi/Views/Canvas.razor:665-730 — These two members are one piece of code written twice and then edited apart: 66 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (68 corresponding lines) · ×1
  • Edited copy of a member (68 corresponding lines) src/Blazor/DrawnUi/Draw/SkiaControl.Blazor.cs:28 — src/Blazor/DrawnUi/Draw/SkiaControl.Blazor.cs:28-95 | src/Net/DrawnUi/Draw/SkiaControl.Net.cs:23-105 — These two members are one piece of code written twice and then edited apart: 68 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (57 corresponding lines) · ×1
  • Edited copy of a member (57 corresponding lines) src/Blazor/DrawnUi/Internals/Core/SkiaFontManager.cs:86 — src/Blazor/DrawnUi/Internals/Core/SkiaFontManager.cs:86-142 | src/Wasm/DrawnUi/SkiaFontManager.Web.cs:93-155 — These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (59 corresponding lines) · ×1
  • Edited copy of a member (59 corresponding lines) src/Blazor/DrawnUi/Internals/Core/SkiaFontManager.cs:15 — src/Blazor/DrawnUi/Internals/Core/SkiaFontManager.cs:15-76 | src/Wasm/DrawnUi/SkiaFontManager.Web.cs:24-82 — These two members are one piece of code written twice and then edited apart: 59 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (52 corresponding lines) · ×1
  • Edited copy of a member (52 corresponding lines) src/Maui/DrawnUi/Platforms/Apple/SkiaFontManager.Apple.cs:158 — src/Maui/DrawnUi/Platforms/Apple/SkiaFontManager.Apple.cs:158-209 | src/Maui/DrawnUi/Platforms/Windows/SkiaFontManager.Windows.cs:14-79 — These two members are one piece of code written twice and then edited apart: 52 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (28 corresponding lines) · ×1
  • Edited copy of a member (28 corresponding lines) src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs:68 — src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs:68-119 | src/Net/DrawnUi/Draw/SkiaEditor.Net.cs:53-80 — 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 (47 corresponding lines) · ×1
  • Edited copy of a member (47 corresponding lines) src/Maui/DrawnUi/Features/Images/SkiaImageManager.cs:80 — src/Maui/DrawnUi/Features/Images/SkiaImageManager.cs:80-126 | src/Maui/DrawnUi/Features/Images/SkiaImageManager.cs:130-177 — 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 (24 corresponding lines) · ×1
  • Edited copy of a member (24 corresponding lines) src/Maui/DrawnUi/Platforms/Android/Super.Android.cs:536 — src/Maui/DrawnUi/Platforms/Android/Super.Android.cs:536-564 | src/Maui/DrawnUi/Platforms/Android/Super.Android.cs:570-593 — 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 (41 corresponding lines) · ×1
  • Edited copy of a member (41 corresponding lines) src/Maui/DrawnUi/Internals/Extensions/DrawnExtensions.cs:493 — src/Maui/DrawnUi/Internals/Extensions/DrawnExtensions.cs:493-533 | src/Maui/DrawnUi/Internals/Extensions/DrawnExtensions.cs:537-577 — 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 (37 corresponding lines) · ×1
  • Edited copy of a member (37 corresponding lines) src/Maui/DrawnUi/Platforms/Windows/SoftwareWindowsCanvas.cs:203 — src/Maui/DrawnUi/Platforms/Windows/SoftwareWindowsCanvas.cs:203-239 | src/Maui/DrawnUi/Platforms/Windows/WinCanvas.cs:150-186 — 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 copies of one member (3 members, 33+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 33+ corresponding lines) src/Maui/DrawnUi/Platforms/Android/Retained/SkiaGLTextureView.cs:1121 — src/Maui/DrawnUi/Platforms/Android/Retained/SkiaGLTextureView.cs:1121-1156 | src/Maui/DrawnUi/Platforms/Android/Retained/SkiaGLTextureView.cs:1159-1191 | src/Maui/DrawnUi/Platforms/Android/Retained/SkiaGLTextureView.cs:1230-1266 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 33 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (33 corresponding lines) · ×1
  • Edited copy of a member (33 corresponding lines) src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:233 — src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:233-266 | src/Net/DrawnUi/Views/DrawnView.Net.cs:187-219 — 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 (12 corresponding lines) · ×1
  • Edited copy of a member (12 corresponding lines) src/Net/DrawnUi/Views/Canvas.OpenTk.cs:276 — src/Net/DrawnUi/Views/Canvas.OpenTk.cs:276-287 | src/Wpf/Drawnui.Wpf/Views/Canvas.Touch.Wpf.cs:134-145 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (19 corresponding lines) · ×1
  • Edited copy of a member (19 corresponding lines) src/Maui/DrawnUi/Platforms/Apple/DrawnView.Apple.cs:152 — src/Maui/DrawnUi/Platforms/Apple/DrawnView.Apple.cs:152-172 | src/Maui/DrawnUi/Platforms/Windows/DrawnView.Windows.cs:907-925 — 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 · Duplicated block (115–120 lines × 2) · ×1
  • Duplicated block (115–120 lines × 2) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:1760 — src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:1760-1874 | src/Shared/DrawnUi/Draw/Scroll/SkiaScrollLooped.cs:50-169 — before extracting anything, compare `src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs` and `src/Shared/DrawnUi/Draw/Scroll/SkiaScrollLooped.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 193 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 `src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:1760` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `src/Shared/DrawnUi/Draw/Scroll/SkiaScrollLooped.cs:172` calls `WriteLine` and `src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:1876` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (95–96 lines × 2) · ×1
  • Duplicated block (95–96 lines × 2) src/Shared/DrawnUi/Controls/Pickers/Spinner/SkiaWheelShape.cs:62 — src/Shared/DrawnUi/Controls/Pickers/Spinner/SkiaWheelShape.cs:62-156 | src/Shared/DrawnUi/Controls/Pickers/Spinner/SkiaWheelShape.cs:165-260 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (72 lines × 2) · ×1
  • Duplicated block (72 lines × 2) src/Shared/DrawnUi/Controls/Labels/SkiaMarkdownLabel.CommonMark.cs:327 — src/Shared/DrawnUi/Controls/Labels/SkiaMarkdownLabel.CommonMark.cs:327-398 | src/Shared/DrawnUi/Controls/Labels/SkiaMarkdownLabel.CommonMark.cs:402-473 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (53–62 lines × 2) · ×1
  • Duplicated block (53–62 lines × 2) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:3936 — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:3936-3997 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:4017-4069 — 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 `src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:3936` 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, `src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:4071` calls `WriteLine` and `src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:4000` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (40–54 lines × 2) · ×1
  • Duplicated block (40–54 lines × 2) src/Shared/DrawnUi/Controls/Button/SkiaButton.cs:205 — src/Shared/DrawnUi/Controls/Button/SkiaButton.cs:205-258 | src/Shared/DrawnUi/Controls/Button/SkiaButton.cs:265-304 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (45–53 lines × 2) · ×1
  • Duplicated block (45–53 lines × 2) src/Maui/DrawnUi/Views/SkiaView.cs:177 — src/Maui/DrawnUi/Views/SkiaView.cs:177-221 | src/Maui/DrawnUi/Views/SkiaViewAccelerated.cs:173-225 — before extracting anything, compare `src/Maui/DrawnUi/Views/SkiaView.cs` and `src/Maui/DrawnUi/Views/SkiaViewAccelerated.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (70–73 lines × 2) · ×1
  • Duplicated block (70–73 lines × 2) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:701 — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:701-773 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:1432-1501 — 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 `src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:701` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (48–49 lines × 2) · ×1
  • Duplicated block (48–49 lines × 2) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:2077 — src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:2077-2124 | src/Shared/DrawnUi/Draw/Scroll/SkiaScrollLooped.cs:229-277 — before extracting anything, compare `src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs` and `src/Shared/DrawnUi/Draw/Scroll/SkiaScrollLooped.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 193 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 `src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:2077` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (47–48 lines × 4) · ×1
  • Duplicated block (47–48 lines × 4) src/Shared/DrawnUi/Controls/Switches/SkiaCheckbox.cs:106 — src/Shared/DrawnUi/Controls/Switches/SkiaCheckbox.cs:106-153 | src/Shared/DrawnUi/Controls/Switches/SkiaCheckbox.cs:156-203 | src/Shared/DrawnUi/Controls/Switches/SkiaCheckbox.cs:210-256 | src/Shared/DrawnUi/Controls/Switches/SkiaCheckbox.cs:259-306 — 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.
D4 · Code Duplication · Duplicated block (42–43 lines × 2) · ×1
  • Duplicated block (42–43 lines × 2) src/Maui/DrawnUi/Draw/Base/SkiaControl.Maui.cs:239 — src/Maui/DrawnUi/Draw/Base/SkiaControl.Maui.cs:239-280 | src/Net/DrawnUi/Draw/SkiaControl.Net.cs:59-101 — before extracting anything, compare `src/Maui/DrawnUi/Draw/Base/SkiaControl.Maui.cs` and `src/Net/DrawnUi/Draw/SkiaControl.Net.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/DrawnUi/Draw/Base/SkiaControl.Maui.cs:239` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (42 lines × 2) · ×1
  • Duplicated block (42 lines × 2) src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsUiaProvider.cs:234 — src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsUiaProvider.cs:234-275 | src/OpenTk/DrawnUi/Accessibility/WindowsUiaProvider.cs:297-338 — before extracting anything, compare `src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsUiaProvider.cs` and `src/OpenTk/DrawnUi/Accessibility/WindowsUiaProvider.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (32–38 lines × 2) · ×1
  • Duplicated block (32–38 lines × 2) src/Maui/DrawnUi/Platforms/MacCatalyst/Super.Mac.cs:133 — src/Maui/DrawnUi/Platforms/MacCatalyst/Super.Mac.cs:133-164 | src/Maui/DrawnUi/Platforms/iOS/Super.iOS.cs:63-100 — before extracting anything, compare `src/Maui/DrawnUi/Platforms/MacCatalyst/Super.Mac.cs` and `src/Maui/DrawnUi/Platforms/iOS/Super.iOS.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 117 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/DrawnUi/Platforms/MacCatalyst/Super.Mac.cs:133` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (33–37 lines × 2) · ×1
  • Duplicated block (33–37 lines × 2) src/Shared/DrawnUi/Draw/Images/SkiaImage.cs:2090 — src/Shared/DrawnUi/Draw/Images/SkiaImage.cs:2090-2126 | src/Shared/DrawnUi/Draw/Svg/SkiaSvg.cs:666-698 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (15–36 lines × 2) · ×1
  • Duplicated block (15–36 lines × 2) src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs:74 — src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs:74-109 | src/Net/DrawnUi/Draw/SkiaEditor.Net.cs:59-73 — before extracting anything, compare `src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs` and `src/Net/DrawnUi/Draw/SkiaEditor.Net.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 153 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs:74` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (35–36 lines × 2) · ×1
  • Duplicated block (35–36 lines × 2) src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:567 — src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:567-602 | src/Net/DrawnUi/Views/DrawnView.Net.cs:463-497 — before extracting anything, compare `src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs` and `src/Net/DrawnUi/Views/DrawnView.Net.cs` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:567` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (33 lines × 2) · ×1
  • Duplicated block (33 lines × 2) src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:232 — src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:232-264 | src/Net/DrawnUi/Views/Canvas.Gestures.Net.cs:206-238 — before extracting anything, compare `src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs` and `src/Net/DrawnUi/Views/Canvas.Gestures.Net.cs` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 184 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:232` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (30–35 lines × 2) · ×1
  • Duplicated block (30–35 lines × 2) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:9105 — src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:9105-9134 | src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:1087-1121 — 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 `src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:9105` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (31–34 lines × 2) · ×1
  • Duplicated block (31–34 lines × 2) src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:132 — src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:132-162 | src/Maui/DrawnUi/Views/Canvas.cs:650-683 — before extracting anything, compare `src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs` and `src/Maui/DrawnUi/Views/Canvas.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:132` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (29–33 lines × 2) · ×1
  • Duplicated block (29–33 lines × 2) src/Maui/DrawnUi/Platforms/Windows/Views/Gles/Egl.cs:75 — src/Maui/DrawnUi/Platforms/Windows/Views/Gles/Egl.cs:75-103 | src/Wpf/Drawnui.Wpf/Views/Angle/Egl.cs:81-113 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (29–31 lines × 2) · ×1
  • Duplicated block (29–31 lines × 2) src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:224 — src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:224-252 | src/Maui/DrawnUi/Views/Canvas.cs:738-768 — before extracting anything, compare `src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs` and `src/Maui/DrawnUi/Views/Canvas.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:224` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (23–31 lines × 2) · ×1
  • Duplicated block (23–31 lines × 2) src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:199 — src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:199-229 | src/Net/DrawnUi/Views/DrawnView.Net.cs:162-184 — before extracting anything, compare `src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs` and `src/Net/DrawnUi/Views/DrawnView.Net.cs` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (28–29 lines × 3) · ×1
  • Duplicated block (28–29 lines × 3) src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:229 — src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:229-256 | src/Maui/DrawnUi/Views/Canvas.cs:744-772 | src/Net/DrawnUi/Views/Canvas.Gestures.Net.cs:203-230 — before extracting anything, compare `src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs` and `src/Maui/DrawnUi/Views/Canvas.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:229` 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, `src/Maui/DrawnUi/Views/Canvas.cs:773` calls `WriteLine` and `src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:257` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (21–27 lines × 2) · ×1
  • Duplicated block (21–27 lines × 2) src/Maui/DrawnUi/Platforms/Android/Retained/RetainedSkiaGLTextureRenderer.cs:66 — src/Maui/DrawnUi/Platforms/Android/Retained/RetainedSkiaGLTextureRenderer.cs:66-86 | src/Maui/DrawnUi/Platforms/Android/Retained/SkiaGLTextureRenderer.cs:26-52 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/DrawnUi/Platforms/Android/Retained/RetainedSkiaGLTextureRenderer.cs:66` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (24–25 lines × 2) · ×1
  • Duplicated block (24–25 lines × 2) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:4552 — src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:4552-4576 | src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:4623-4646 — 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 `src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:4552` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (21–24 lines × 2) · ×1
  • Duplicated block (21–24 lines × 2) src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:83 — src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:83-106 | src/Net/DrawnUi/Views/DrawnView.Net.cs:62-82 — before extracting anything, compare `src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs` and `src/Net/DrawnUi/Views/DrawnView.Net.cs` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 257 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/DrawnUi/Views/DrawnView.Blazor.cs:83` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (23 lines × 3) · ×1
  • Duplicated block (23 lines × 3) src/Shared/DrawnUi/Controls/RadioButtons/SkiaRadioButton.cs:31 — src/Shared/DrawnUi/Controls/RadioButtons/SkiaRadioButton.cs:31-53 | src/Shared/DrawnUi/Controls/Switches/SkiaCheckbox.cs:27-49 | src/Shared/DrawnUi/Controls/Switches/SkiaSwitch.cs:19-41 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `src/Shared/DrawnUi/Controls/RadioButtons/SkiaRadioButton.cs:31` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (20 lines × 4) · ×1
  • Duplicated block (20 lines × 4) src/Shared/DrawnUi/Controls/Progress/SkiaProgress.cs:26 — src/Shared/DrawnUi/Controls/Progress/SkiaProgress.cs:26-45 | src/Shared/DrawnUi/Controls/RadioButtons/SkiaRadioButton.cs:30-49 | src/Shared/DrawnUi/Controls/Switches/SkiaCheckbox.cs:26-45 | src/Shared/DrawnUi/Controls/Switches/SkiaSwitch.cs:18-37 — 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 `src/Shared/DrawnUi/Controls/Progress/SkiaProgress.cs:26` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (18–20 lines × 3) · ×1
  • Duplicated block (18–20 lines × 3) src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:129 — src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:129-146 | src/Maui/DrawnUi/Views/Canvas.cs:647-666 | src/Net/DrawnUi/Views/Canvas.Gestures.Net.cs:124-141 — before extracting anything, compare `src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs` and `src/Maui/DrawnUi/Views/Canvas.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:129` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (19–20 lines × 2) · ×1
  • Duplicated block (19–20 lines × 2) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:5990 — src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:5990-6008 | src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:6055-6074 — 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 after the matched lines, `src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:6076` calls `Round` and `src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:6008` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (18–19 lines × 3) · ×1
  • Duplicated block (18–19 lines × 3) src/Blazor/DrawnUi/Draw/SkiaControl.Blazor.cs:66 — src/Blazor/DrawnUi/Draw/SkiaControl.Blazor.cs:66-83 | src/Maui/DrawnUi/Draw/Base/SkiaControl.Maui.cs:251-269 | src/Net/DrawnUi/Draw/SkiaControl.Net.cs:73-90 — before extracting anything, compare `src/Blazor/DrawnUi/Draw/SkiaControl.Blazor.cs` and `src/Net/DrawnUi/Draw/SkiaControl.Net.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/DrawnUi/Draw/SkiaControl.Blazor.cs:66` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `src/Maui/DrawnUi/Draw/Base/SkiaControl.Maui.cs:270` calls `SyncUniqueAction` and `src/Blazor/DrawnUi/Draw/SkiaControl.Blazor.cs:84` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (18–19 lines × 2) · ×1
  • Duplicated block (18–19 lines × 2) src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:342 — src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:342-360 | src/Net/DrawnUi/Views/Canvas.Gestures.Net.cs:284-301 — before extracting anything, compare `src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs` and `src/Net/DrawnUi/Views/Canvas.Gestures.Net.cs` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 184 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:342` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (14–19 lines × 2) · ×1
  • Duplicated block (14–19 lines × 2) src/Shared/DrawnUi/Internals/Helpers/Pendulum.cs:26 — src/Shared/DrawnUi/Internals/Helpers/Pendulum.cs:26-39 | src/Shared/DrawnUi/Internals/Helpers/Pendulum.cs:112-130 — 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 `src/Shared/DrawnUi/Internals/Helpers/Pendulum.cs:26` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (35 lines × 2) · ×1
  • Duplicated block (35 lines × 2) src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:167 — src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:167-201 | src/Net/DrawnUi/Views/Canvas.Gestures.Net.cs:162-196 — before extracting anything, compare `src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs` and `src/Net/DrawnUi/Views/Canvas.Gestures.Net.cs` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 184 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:167` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (8–16 lines × 3) · ×1
  • Duplicated block (8–16 lines × 3) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:2220 — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:2220-2235 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:2089-2099 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Masonry.cs:174-181 — 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 `src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:2220` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (10–15 lines × 2) · ×1
  • Duplicated block (10–15 lines × 2) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:2118 — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:2118-2132 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:2149-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 `src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:2118` 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.
D4 · Code Duplication · Duplicated block (13–15 lines × 2) · ×1
  • Duplicated block (13–15 lines × 2) src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:3931 — src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:3931-3945 | src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:3986-3998 — 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 `src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:3931` 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, `src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:3949` calls `ApplyAutoCache` and `src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:3999` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (12–15 lines × 2) · ×1
  • Duplicated block (12–15 lines × 2) src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:2472 — src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:2472-2483 | src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:2486-2500 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (11–14 lines × 2) · ×1
  • Duplicated block (11–14 lines × 2) src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs:894 — src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs:894-907 | src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:7934-7944 — 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 `src/Shared/DrawnUi/Draw/Base/SkiaControl.Cache.cs:894` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (13 lines × 5) · ×1
  • Duplicated block (13 lines × 5) src/Shared/DrawnUi/Controls/Progress/SkiaProgress.cs:52 — src/Shared/DrawnUi/Controls/Progress/SkiaProgress.cs:52-64 | src/Shared/DrawnUi/Controls/Progress/SkiaProgress.cs:153-166 | src/Shared/DrawnUi/Controls/Progress/SkiaProgress.cs:207-220 | src/Shared/DrawnUi/Controls/Progress/SkiaProgress.cs:265-277 | src/Shared/DrawnUi/Controls/Progress/SkiaProgress.cs:331-344 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/Shared/DrawnUi/Controls/Progress/SkiaProgress.cs:52` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (12–13 lines × 2) · ×1
  • Duplicated block (12–13 lines × 2) src/Shared/DrawnUi/Controls/Drawer/SkiaDrawer.cs:959 — src/Shared/DrawnUi/Controls/Drawer/SkiaDrawer.cs:959-970 | src/Shared/DrawnUi/Controls/Layouts/SkiaCarousel.cs:2080-2092 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
D4 · Code Duplication · Duplicated block (11–12 lines × 3) · ×1
  • Duplicated block (11–12 lines × 3) src/Shared/DrawnUi/Draw/Layout/SkiaLayout.BuildWrapLayout.cs:321 — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.BuildWrapLayout.cs:321-332 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:1094-1104 | src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:1718-1728 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `src/Shared/DrawnUi/Draw/Layout/SkiaLayout.BuildWrapLayout.cs:321` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (10–12 lines × 2) · ×1
  • Duplicated block (10–12 lines × 2) src/Shared/DrawnUi/Internals/Extensions/FluentExtensions.Shared.cs:1408 — src/Shared/DrawnUi/Internals/Extensions/FluentExtensions.Shared.cs:1408-1417 | src/Shared/DrawnUi/Internals/Extensions/FluentExtensions.Shared.cs:1423-1434 — 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 `src/Shared/DrawnUi/Internals/Extensions/FluentExtensions.Shared.cs:1423` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (4–10 lines × 3) · ×1
  • Duplicated block (4–10 lines × 3) src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:94 — src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:94-103 | src/Maui/DrawnUi/Views/Canvas.cs:614-617 | src/Net/DrawnUi/Views/Canvas.Gestures.Net.cs:89-98 — before extracting anything, compare `src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs` and `src/Maui/DrawnUi/Views/Canvas.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:94` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (4–8 lines × 3) · ×1
  • Duplicated block (4–8 lines × 3) src/Shared/DrawnUi/Controls/PlayFrames/SkiaLottie.cs:878 — src/Shared/DrawnUi/Controls/PlayFrames/SkiaLottie.cs:878-881 | src/Shared/DrawnUi/Controls/PlayFrames/SkiaLottie.cs:885-892 | src/SharedNet/Internals/Core/Colors.cs:327-333 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (3–7 lines × 3) · ×1
  • Duplicated block (3–7 lines × 3) src/SharedNet/Internals/Core/Colors.cs:376 — src/SharedNet/Internals/Core/Colors.cs:376-382 | src/SharedNet/Internals/Core/Colors.cs:384-390 | src/SharedNet/Internals/Core/Colors.cs:391-393 — 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 `src/SharedNet/Internals/Core/Colors.cs:376` 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (38 lines × 2) · ×1
  • Duplicated block (38 lines × 2) src/Blazor/DrawnUi/Views/ScrollView.razor:57 — src/Blazor/DrawnUi/Views/ScrollView.razor:57-94 | src/Blazor/DrawnUi/Views/StackLayout.razor:57-94 — before extracting anything, compare `src/Blazor/DrawnUi/Views/ScrollView.razor` and `src/Blazor/DrawnUi/Views/StackLayout.razor` as WHOLE FILES: 84% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/DrawnUi/Views/ScrollView.razor:57` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (12 lines × 3) · ×1
  • Duplicated block (12 lines × 3) src/Blazor/DrawnUi.Server/HeadlessDrawable.cs:51 — src/Blazor/DrawnUi.Server/HeadlessDrawable.cs:51-62 | src/Net/DrawnUi/Testing/HeadlessCanvasHost.cs:284-295 | src/Net/Samples/SkiaEditorHarness/Program.cs:1080-1091 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (9 lines × 8) · ×1
  • Duplicated block (9 lines × 8) src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:278 — src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:278-286 | src/Maui/Samples/FastRepro/ColorPicker/SkiaColorsPanel.cs:124-132 | src/Maui/Samples/FastRepro/ColorPicker/SkiaColorsPanel.cs:190-198 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs:276-284 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorsPanel.cs:123-131 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorsPanel.cs:189-197 | src/Shared/DrawnUi/Controls/PlayFrames/SkiaLottie.cs:271-279 | src/Shared/DrawnUi/Internals/Models/SkiaGradient.cs:490-498 — before extracting anything, compare `src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs` and `src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 366 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Near-duplicate member pair (80 shared lines) · ×1
  • Near-duplicate member pair (80 shared lines) src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs:18 — src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs:18-209 | src/Net/Samples/VirtualizationHarnessDemo/MeasureVisibleWindowRepro.cs:17-198 — These two members are variants of one another: 80 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (66 shared lines) · ×1
  • Near-duplicate member pair (66 shared lines) src/Maui/Samples/Sandbox/Views/MainPageXaml2Pdf.xaml.cs:58 — src/Maui/Samples/Sandbox/Views/MainPageXaml2Pdf.xaml.cs:58-167 | src/Maui/Samples/Sandbox/Views/MainPageXaml2PdfPages.xaml.cs:58-215 — These two members are variants of one another: 66 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (52 shared lines) · ×1
  • Near-duplicate member pair (52 shared lines) src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs:57 — src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs:57-236 | src/Net/Samples/VirtualizationHarnessDemo/TelegramLikeRepro.cs:44-215 — These two members are variants of one another: 52 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Edited copies of one member (3 members, 107+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 107+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:615 — src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:615-721 | src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:617-723 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:617-723 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 107 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 (69 corresponding lines) · ×1
  • Edited copy of a member (69 corresponding lines) src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs:60 — src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs:60-131 | src/Maui/Samples/FastRepro/SkiaTest/MotionMarkScene.cs:65-133 — These two members are one piece of code written twice and then edited apart: 69 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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) src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs:111 — src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs:111-156 | src/Net/Samples/VirtualizationHarnessDemo/PreparedViewsRepro.cs:127-169 — These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 58+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 58+ corresponding lines) src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs:270 — src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs:270-329 | src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs:377-436 | src/Net/Samples/VirtualizationHarnessDemo/LiftDragRepro.cs:296-353 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 58 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 (45 corresponding lines) · ×1
  • Edited copy of a member (45 corresponding lines) src/Blazor/Samples/BlazorSandbox/Pages/SkMeshProbe.razor:106 — src/Blazor/Samples/BlazorSandbox/Pages/SkMeshProbe.razor:106-150 | src/Blazor/Samples/BlazorSandbox/Pages/SkMeshProbe.razor:172-244 — 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 (29 corresponding lines) · ×1
  • Edited copy of a member (29 corresponding lines) src/OpenTk/Samples/OpenTkOverlay/Program.cs:18 — src/OpenTk/Samples/OpenTkOverlay/Program.cs:18-46 | src/OpenTk/Samples/OpenTkPong/Program.cs:43-71 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (31 corresponding lines) · ×1
  • Edited copy of a member (31 corresponding lines) src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs:144 — src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs:144-174 | src/Maui/Samples/FastRepro/SkiaTest/MotionMarkScene.cs:147-177 — These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 22+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 22+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/MultiRippleWithTouchEffect.cs:78 — src/Maui/Samples/HelloMaui/Pages/MultiRippleWithTouchEffect.cs:78-99 | src/OpenTk/Samples/HelloOpenTk/Pages/MultiRippleWithTouchEffect.cs:78-99 | src/Wpf/Samples/HelloWpf/Pages/MultiRippleWithTouchEffect.cs:78-99 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 171+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 171+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:32 — src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:32-202 | src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:34-204 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:34-204 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 171 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, 47+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 47+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:283 — src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:283-329 | src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:285-331 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:285-331 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 47 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, 102+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 102+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs:78 — src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs:78-179 | src/OpenTk/Samples/HelloOpenTk/Pages/ShadersPage.cs:79-180 | src/Wpf/Samples/HelloWpf/Pages/ShadersPage.cs:79-180 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 102 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 (38 corresponding lines) · ×1
  • Edited copy of a member (38 corresponding lines) src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/NewsViewModel.cs:53 — src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/NewsViewModel.cs:53-90 | src/Maui/Samples/Tutorials/Tutorials/NewsFeed/ViewModels/NewsViewModel.cs:68-105 — 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 (3 members, 69+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 69+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/RootPage.cs:102 — src/Maui/Samples/HelloMaui/Pages/RootPage.cs:102-170 | src/OpenTk/Samples/HelloOpenTk/Pages/RootPage.cs:104-172 | src/Wpf/Samples/HelloWpf/Pages/RootPage.cs:104-172 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 69 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 26+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 26+ corresponding lines) src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs:340 — src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs:340-365 | src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs:440-465 | src/Net/Samples/VirtualizationHarnessDemo/LiftDragRepro.cs:453-479 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 62+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 62+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/ContactCell.cs:20 — src/Maui/Samples/HelloMaui/Pages/ContactCell.cs:20-81 | src/OpenTk/Samples/HelloOpenTk/Pages/ContactCell.cs:21-82 | src/Wpf/Samples/HelloWpf/Pages/ContactCell.cs:21-82 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 62 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) src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/NewsViewModel.cs:95 — src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/NewsViewModel.cs:95-119 | src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/NewsFeedSupport.cs:271-295 | src/Maui/Samples/Tutorials/Tutorials/NewsFeed/ViewModels/NewsViewModel.cs:110-139 — 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 (3 members, 298+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 298+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:128 — src/Maui/Samples/HelloMaui/Pages/LayoutsPage.cs:128-426 | src/OpenTk/Samples/HelloOpenTk/Pages/LayoutsPage.cs:130-427 | src/Wpf/Samples/HelloWpf/Pages/LayoutsPage.cs:132-429 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 298 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 (165 corresponding lines) · ×1
  • Edited copy of a member (165 corresponding lines) src/OpenTk/Samples/HelloOpenTk/Pages/AccessibilityPage.cs:30 — src/OpenTk/Samples/HelloOpenTk/Pages/AccessibilityPage.cs:30-194 | src/Wpf/Samples/HelloWpf/Pages/AccessibilityPage.cs:31-195 — These two members are one piece of code written twice and then edited apart: 165 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (36 corresponding lines) · ×1
  • Edited copy of a member (36 corresponding lines) src/Maui/Samples/HelloMaui/Pages/PongPage.cs:18 — src/Maui/Samples/HelloMaui/Pages/PongPage.cs:18-56 | src/Wpf/Samples/HelloWpf/Pages/PongPage.cs:23-58 — These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 19+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 19+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/SnappingPage.cs:368 — src/Maui/Samples/HelloMaui/Pages/SnappingPage.cs:368-386 | src/OpenTk/Samples/HelloOpenTk/Pages/SnappingPage.cs:369-387 | src/Wpf/Samples/HelloWpf/Pages/SnappingPage.cs:369-387 — 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 copy of a member (32 corresponding lines) · ×1
  • Edited copy of a member (32 corresponding lines) src/Blazor/Samples/BlazorSandbox/Pages/SkMeshParallaxProbe.razor:589 — src/Blazor/Samples/BlazorSandbox/Pages/SkMeshParallaxProbe.razor:589-620 | src/Blazor/Samples/BlazorSandbox/Pages/SkMeshRocketProbe.razor:401-464 — 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 (72 corresponding lines) · ×1
  • Edited copy of a member (72 corresponding lines) src/Blazor/Samples/BlazorSandbox/Pages/PickersSheet.razor:89 — src/Blazor/Samples/BlazorSandbox/Pages/PickersSheet.razor:89-162 | src/Maui/Samples/FastRepro/MainPagePicker.cs:104-175 — These two members are one piece of code written twice and then edited apart: 72 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (53 corresponding lines) · ×1
  • Edited copy of a member (53 corresponding lines) src/Blazor/Samples/BlazorSandbox/Pages/Scrolls.razor:37 — src/Blazor/Samples/BlazorSandbox/Pages/Scrolls.razor:37-148 | src/Blazor/Samples/BlazorSandbox/Pages/ScrollsDrawer.razor:155-207 — These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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, 2+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 2+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/UnevenCellsPage.cs:169 — src/Maui/Samples/HelloMaui/Pages/UnevenCellsPage.cs:169-170 | src/OpenTk/Samples/HelloOpenTk/Pages/UnevenCellsPage.cs:171-172 | src/Wpf/Samples/HelloWpf/Pages/UnevenCellsPage.cs:171-172 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 2 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, 17+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 17+ corresponding lines) src/Maui/Samples/HelloMaui/Pages/ReorderCell.cs:71 — src/Maui/Samples/HelloMaui/Pages/ReorderCell.cs:71-87 | src/OpenTk/Samples/HelloOpenTk/Pages/ReorderCell.cs:72-88 | src/Wpf/Samples/HelloWpf/Pages/ReorderCell.cs:72-88 — 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 · Duplicated block (89 lines × 2) · ×1
  • Duplicated block (89 lines × 2) src/Maui/Samples/Sandbox/Views/Aloha/BaseChartDrawable.cs:809 — src/Maui/Samples/Sandbox/Views/Aloha/BaseChartDrawable.cs:809-897 | src/Maui/Samples/Sandbox/Views/Aloha/BaseChartDrawable.cs:915-1003 — 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 `src/Maui/Samples/Sandbox/Views/Aloha/BaseChartDrawable.cs:809` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (64 lines × 3) · ×1
  • Duplicated block (64 lines × 3) src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs:11 — src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs:11-74 | src/OpenTk/Samples/HelloOpenTk/Pages/ShadersPage.cs:12-75 | src/Wpf/Samples/HelloWpf/Pages/ShadersPage.cs:12-75 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/ShadersPage.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/HelloMaui/Pages/ShadersPage.cs:11` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (23–60 lines × 2) · ×1
  • Duplicated block (23–60 lines × 2) src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:481 — src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:481-503 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs:484-543 — before extracting anything, compare `src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs` and `src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 366 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (51 lines × 2) · ×1
  • Duplicated block (51 lines × 2) src/Maui/Samples/FastRepro/ColorPicker/SkiaColorsPanel.cs:15 — src/Maui/Samples/FastRepro/ColorPicker/SkiaColorsPanel.cs:15-65 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorsPanel.cs:14-64 — before extracting anything, compare `src/Maui/Samples/FastRepro/ColorPicker/SkiaColorsPanel.cs` and `src/Maui/Samples/Sandbox/Views/Controls/SkiaColorsPanel.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 135 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (49 lines × 3) · ×1
  • Duplicated block (49 lines × 3) src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs:20 — src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs:20-68 | src/OpenTk/Samples/HelloOpenTk/Pages/ReorderPage.cs:21-69 | src/Wpf/Samples/HelloWpf/Pages/ReorderPage.cs:21-69 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/ReorderPage.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs:20` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (48 lines × 2) · ×1
  • Duplicated block (48 lines × 2) src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:618 — src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:618-665 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:618-665 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs` as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 395 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:618` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (45 lines × 3) · ×1
  • Duplicated block (45 lines × 3) src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Services/NewsDataProvider.cs:5 — src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Services/NewsDataProvider.cs:5-49 | src/Maui/Samples/FastRepro/Services/NewsDataProvider.cs:5-49 | src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Services/NewsDataProvider.cs:5-49 — before extracting anything, compare `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Services/NewsDataProvider.cs` and `src/Maui/Samples/FastRepro/Services/NewsDataProvider.cs` as WHOLE FILES: 87% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Services/NewsDataProvider.cs:5` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (60 lines × 3) · ×1
  • Duplicated block (60 lines × 3) src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:641 — src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:641-700 | src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:643-702 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:643-702 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 295 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:641` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (43 lines × 2) · ×1
  • Duplicated block (43 lines × 2) src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/DrawnListCell.cs:53 — src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/DrawnListCell.cs:53-95 | src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Views/DrawnListCell.cs:51-93 — before extracting anything, compare `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/DrawnListCell.cs` and `src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Views/DrawnListCell.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (50 lines × 3) · ×1
  • Duplicated block (50 lines × 3) src/Maui/Samples/HelloMaui/Pages/ReorderCell.cs:127 — src/Maui/Samples/HelloMaui/Pages/ReorderCell.cs:127-176 | src/OpenTk/Samples/HelloOpenTk/Pages/ReorderCell.cs:128-177 | src/Wpf/Samples/HelloWpf/Pages/ReorderCell.cs:128-177 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/ReorderCell.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/ReorderCell.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (37 lines × 2) · ×1
  • Duplicated block (37 lines × 2) src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:20 — src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:20-56 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs:18-54 — before extracting anything, compare `src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs` and `src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 366 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (36 lines × 3) · ×1
  • Duplicated block (36 lines × 3) src/Maui/Samples/HelloMaui/Pages/SnappingPage.cs:58 — src/Maui/Samples/HelloMaui/Pages/SnappingPage.cs:58-93 | src/OpenTk/Samples/HelloOpenTk/Pages/SnappingPage.cs:59-94 | src/Wpf/Samples/HelloWpf/Pages/SnappingPage.cs:59-94 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/SnappingPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/SnappingPage.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 305 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (20–36 lines × 2) · ×1
  • Duplicated block (20–36 lines × 2) src/Blazor/Samples/BlazorSandbox/Pages/SkMeshProbe.razor:173 — src/Blazor/Samples/BlazorSandbox/Pages/SkMeshProbe.razor:173-208 | src/Blazor/Samples/BlazorSandbox/Pages/SkMeshProbe.razor:291-310 — 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 `src/Blazor/Samples/BlazorSandbox/Pages/SkMeshProbe.razor:173` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `src/Blazor/Samples/BlazorSandbox/Pages/SkMeshProbe.razor:291` calls `EnsureAnimator` and `src/Blazor/Samples/BlazorSandbox/Pages/SkMeshProbe.razor:173` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (34–35 lines × 3) · ×1
  • Duplicated block (34–35 lines × 3) src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs:177 — src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs:177-210 | src/Maui/Samples/FastRepro/SkiaTest/MotionMarkScene.cs:180-213 | src/Maui/Samples/FastRepro/SkiaTest/MotionMarkSceneOptimized.cs:225-259 — before extracting anything, compare `src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs` and `src/Maui/Samples/FastRepro/SkiaTest/MotionMarkScene.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 107 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (35 lines × 3) · ×1
  • Duplicated block (35 lines × 3) src/Maui/Samples/HelloMaui/Pages/TextPage.cs:10 — src/Maui/Samples/HelloMaui/Pages/TextPage.cs:10-44 | src/OpenTk/Samples/HelloOpenTk/Pages/TextPage.cs:11-45 | src/Wpf/Samples/HelloWpf/Pages/TextPage.cs:11-45 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/TextPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/TextPage.cs` as WHOLE FILES: 97% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/HelloMaui/Pages/TextPage.cs:10` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (4–34 lines × 3) · ×1
  • Duplicated block (4–34 lines × 3) src/Maui/Samples/HelloMaui/Pages/ReorderCell.cs:189 — src/Maui/Samples/HelloMaui/Pages/ReorderCell.cs:189-192 | src/OpenTk/Samples/HelloOpenTk/Pages/ReorderCell.cs:181-214 | src/Wpf/Samples/HelloWpf/Pages/ReorderCell.cs:181-214 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/ReorderCell.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/ReorderCell.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (33 lines × 3) · ×1
  • Duplicated block (33 lines × 3) src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:399 — src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:399-431 | src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:401-433 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:401-433 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 295 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:399` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (32 lines × 2) · ×1
  • Duplicated block (32 lines × 2) src/Maui/Samples/FastRepro/ColorPicker/SliderColor.xaml.cs:19 — src/Maui/Samples/FastRepro/ColorPicker/SliderColor.xaml.cs:19-50 | src/Maui/Samples/Sandbox/Views/Controls/ColorPicker/SliderColor.xaml.cs:19-50 — before extracting anything, compare `src/Maui/Samples/FastRepro/ColorPicker/SliderColor.xaml.cs` and `src/Maui/Samples/Sandbox/Views/Controls/ColorPicker/SliderColor.xaml.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (26–32 lines × 3) · ×1
  • Duplicated block (26–32 lines × 3) src/OpenTk/Samples/HelloOpenTk/HelloApp.cs:122 — src/OpenTk/Samples/HelloOpenTk/HelloApp.cs:122-153 | src/OpenTk/Samples/OpenTkOverlay/Program.cs:21-46 | src/OpenTk/Samples/OpenTkPong/Program.cs:46-71 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `src/OpenTk/Samples/HelloOpenTk/HelloApp.cs:122` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (30 lines × 2) · ×1
  • Duplicated block (30 lines × 2) src/Maui/Samples/Sandbox/ViewModels/MockChat2ViewModel.cs:49 — src/Maui/Samples/Sandbox/ViewModels/MockChat2ViewModel.cs:49-78 | src/Maui/Samples/Sandbox/ViewModels/MockChatViewModel.cs:49-78 — before extracting anything, compare `src/Maui/Samples/Sandbox/ViewModels/MockChat2ViewModel.cs` and `src/Maui/Samples/Sandbox/ViewModels/MockChatViewModel.cs` as WHOLE FILES: 89% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (23–28 lines × 2) · ×1
  • Duplicated block (23–28 lines × 2) src/Maui/Samples/FastRepro/Views/NewsCell.xaml.cs:38 — src/Maui/Samples/FastRepro/Views/NewsCell.xaml.cs:38-60 | src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Views/NewsCell.xaml.cs:96-123 — before extracting anything, compare `src/Maui/Samples/FastRepro/Views/NewsCell.xaml.cs` and `src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Views/NewsCell.xaml.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/FastRepro/Views/NewsCell.xaml.cs:38` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (27–28 lines × 2) · ×1
  • Duplicated block (27–28 lines × 2) src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs:182 — src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs:182-208 | src/Net/Samples/VirtualizationHarnessDemo/MeasureVisibleWindowRepro.cs:170-197 — before extracting anything, compare `src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs` and `src/Net/Samples/VirtualizationHarnessDemo/MeasureVisibleWindowRepro.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (21–26 lines × 3) · ×1
  • Duplicated block (21–26 lines × 3) src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/NewsCell.cs:370 — src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/NewsCell.cs:370-390 | src/Maui/Samples/FastRepro/Views/NewsCell.xaml.cs:43-68 | src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Views/NewsCell.xaml.cs:106-131 — before extracting anything, compare `src/Maui/Samples/FastRepro/Views/NewsCell.xaml.cs` and `src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Views/NewsCell.xaml.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/NewsCell.cs:370` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (23–26 lines × 2) · ×1
  • Duplicated block (23–26 lines × 2) src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs:103 — src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs:103-125 | src/Net/Samples/VirtualizationHarnessDemo/MeasureVisibleWindowRepro.cs:99-124 — before extracting anything, compare `src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs` and `src/Net/Samples/VirtualizationHarnessDemo/MeasureVisibleWindowRepro.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 122 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 `src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs:103` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. 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, `src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs:102` calls `NonBackgroundFraction` and `src/Net/Samples/VirtualizationHarnessDemo/MeasureVisibleWindowRepro.cs:99` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (19–25 lines × 2) · ×1
  • Duplicated block (19–25 lines × 2) src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/NewsViewModel.cs:65 — src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/NewsViewModel.cs:65-89 | src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/NewsFeedSupport.cs:249-267 — before extracting anything, compare `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/NewsViewModel.cs` and `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/NewsFeedSupport.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/NewsViewModel.cs:65` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (22 lines × 3) · ×1
  • Duplicated block (22 lines × 3) src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs:369 — src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs:369-390 | src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs:469-490 | src/Net/Samples/VirtualizationHarnessDemo/LiftDragRepro.cs:483-504 — before extracting anything, compare `src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs` and `src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 174 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.
D4 · Code Duplication · Duplicated block (36–38 lines × 3) · ×1
  • Duplicated block (36–38 lines × 3) src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs:286 — src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs:286-321 | src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs:393-428 | src/Net/Samples/VirtualizationHarnessDemo/LiftDragRepro.cs:306-343 — before extracting anything, compare `src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs` and `src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (48 lines × 3) · ×1
  • Duplicated block (48 lines × 3) src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:346 — src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs:346-393 | src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs:348-395 | src/Wpf/Samples/HelloWpf/Pages/TooltipsMenusPage.cs:348-395 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/TooltipsMenusPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/TooltipsMenusPage.cs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 295 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (15–16 lines × 2) · ×1
  • Duplicated block (15–16 lines × 2) src/Blazor/Samples/BlazorSandbox/Pages/Cards.razor:398 — src/Blazor/Samples/BlazorSandbox/Pages/Cards.razor:398-413 | src/Maui/Samples/Tutorials/Tutorials/InteractiveCards/TutorialCards.xaml.cs:60-74 — 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 `src/Blazor/Samples/BlazorSandbox/Pages/Cards.razor:398` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `src/Blazor/Samples/BlazorSandbox/Pages/Cards.razor:396` calls `GetTapAnimationTarget` and `src/Maui/Samples/Tutorials/Tutorials/InteractiveCards/TutorialCards.xaml.cs:59` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (12–15 lines × 4) · ×1
  • Duplicated block (12–15 lines × 4) src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:344 — src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:344-355 | src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:370-381 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs:342-356 | src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs:371-385 — before extracting anything, compare `src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs` and `src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 366 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:344` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (12–15 lines × 3) · ×1
  • Duplicated block (12–15 lines × 3) src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs:144 — src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs:144-158 | src/Maui/Samples/FastRepro/SkiaTest/MotionMarkScene.cs:147-161 | src/Maui/Samples/FastRepro/SkiaTest/MotionMarkSceneOptimized.cs:193-204 — before extracting anything, compare `src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs` and `src/Maui/Samples/FastRepro/SkiaTest/MotionMarkScene.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 107 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 `src/Maui/Samples/FastRepro/SkiaTest/MotionMarkNativeScene.cs:144` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (6–15 lines × 3) · ×1
  • Duplicated block (6–15 lines × 3) src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs:64 — src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs:64-69 | src/Net/Samples/VirtualizationHarnessDemo/FrontierSpinnerStuckRepro.cs:33-47 | src/Net/Samples/VirtualizationHarnessDemo/PreparedViewsRepro.cs:40-47 — before extracting anything, compare `src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs` and `src/Net/Samples/VirtualizationHarnessDemo/FrontierSpinnerStuckRepro.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 `src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs:64` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (12–14 lines × 2) · ×1
  • Duplicated block (12–14 lines × 2) src/Net/Samples/VirtualizationHarnessDemo/DeleteGapRepro.cs:25 — src/Net/Samples/VirtualizationHarnessDemo/DeleteGapRepro.cs:25-36 | src/Net/Samples/VirtualizationHarnessDemo/DeleteGapRepro.cs:126-139 — 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 `src/Net/Samples/VirtualizationHarnessDemo/DeleteGapRepro.cs:126` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (12–13 lines × 3) · ×1
  • Duplicated block (12–13 lines × 3) src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/NewsViewModel.cs:17 — src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/NewsViewModel.cs:17-29 | src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/NewsFeedSupport.cs:205-216 | src/Maui/Samples/Tutorials/Tutorials/NewsFeed/ViewModels/NewsViewModel.cs:15-27 — before extracting anything, compare `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/ViewModels/NewsViewModel.cs` and `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/NewsFeedSupport.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (8–12 lines × 9) · ×1
  • Duplicated block (8–12 lines × 9) src/Net/Samples/VirtualizationHarnessDemo/DeleteGapRepro.cs:17 — src/Net/Samples/VirtualizationHarnessDemo/DeleteGapRepro.cs:17-24 | src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs:18-25 | src/Net/Samples/VirtualizationHarnessDemo/FrontierSpinnerStuckRepro.cs:20-28 | src/Net/Samples/VirtualizationHarnessDemo/PlaceholderFlashRepro.cs:20-27 | src/Net/Samples/VirtualizationHarnessDemo/PreparedViewsRepro.cs:21-28 | src/Net/Samples/VirtualizationHarnessDemo/RealChatJumpRepro.cs:23-31 | src/Net/Samples/VirtualizationHarnessDemo/ScrollBarOverflowRepro.cs:20-31 | src/Net/Samples/VirtualizationHarnessDemo/ScrollToTopWallRepro.cs:19-26 | src/Net/Samples/VirtualizationHarnessDemo/StoConsecutiveJumpRepro.cs:25-32 — 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 9 call sites, so a change lands once. 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, `src/Net/Samples/VirtualizationHarnessDemo/StoConsecutiveJumpRepro.cs:22` calls `ConsoleTraceListener`, `Add` and `src/Net/Samples/VirtualizationHarnessDemo/DeleteGapRepro.cs:17` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (7–12 lines × 2) · ×1
  • Duplicated block (7–12 lines × 2) src/Net/Samples/VirtualizationHarnessDemo/DeleteGapRepro.cs:136 — src/Net/Samples/VirtualizationHarnessDemo/DeleteGapRepro.cs:136-142 | src/Net/Samples/VirtualizationHarnessDemo/MeasureFirstWindowRepro.cs:111-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 `src/Net/Samples/VirtualizationHarnessDemo/DeleteGapRepro.cs:136` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (9–11 lines × 2) · ×1
  • Duplicated block (9–11 lines × 2) src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs:156 — src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs:156-164 | src/Net/Samples/VirtualizationHarnessDemo/MeasureVisibleWindowRepro.cs:154-164 — before extracting anything, compare `src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs` and `src/Net/Samples/VirtualizationHarnessDemo/MeasureVisibleWindowRepro.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 122 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 `src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs:156` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs:156` calls `GetEnvironmentVariable` and `src/Net/Samples/VirtualizationHarnessDemo/MeasureVisibleWindowRepro.cs:154` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (10 lines × 4) · ×1
  • Duplicated block (10 lines × 4) src/Maui/Samples/HelloMaui/Pages/RescalingLayout.cs:33 — src/Maui/Samples/HelloMaui/Pages/RescalingLayout.cs:33-42 | src/OpenTk/Samples/HelloOpenTk/Pages/RescalingLayout.cs:37-46 | src/Shared/Samples/Add3dGallery.Shared/Pages/RescalingLayout.cs:33-42 | src/Wpf/Samples/HelloWpf/Pages/RescalingLayout.cs:37-46 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/RescalingLayout.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/RescalingLayout.cs` as WHOLE FILES: 97% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/HelloMaui/Pages/RescalingLayout.cs:33` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (6 lines × 4) · ×1
  • Duplicated block (6 lines × 4) src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs:133 — src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs:133-138 | src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs:160-165 | src/Net/Samples/VirtualizationHarnessDemo/MeasureVisibleWindowRepro.cs:136-141 | src/Net/Samples/VirtualizationHarnessDemo/MeasureVisibleWindowRepro.cs:160-165 — before extracting anything, compare `src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs` and `src/Net/Samples/VirtualizationHarnessDemo/MeasureVisibleWindowRepro.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 122 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 `src/Net/Samples/VirtualizationHarnessDemo/CachedStackWindowRepro.cs:133` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (66 lines × 3) · ×1
  • Duplicated block (66 lines × 3) src/Maui/Samples/HelloMaui/Pages/UnevenCellsPage.cs:35 — src/Maui/Samples/HelloMaui/Pages/UnevenCellsPage.cs:35-100 | src/OpenTk/Samples/HelloOpenTk/Pages/UnevenCellsPage.cs:37-102 | src/Wpf/Samples/HelloWpf/Pages/UnevenCellsPage.cs:37-102 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/UnevenCellsPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/UnevenCellsPage.cs` as WHOLE FILES: 99% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (7 lines × 4) · ×1
  • Duplicated block (7 lines × 4) src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs:64 — src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs:64-70 | src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs:71-77 | src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs:205-211 | src/Net/Samples/VirtualizationHarnessDemo/LiftDragRepro.cs:75-81 — before extracting anything, compare `src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs` and `src/Net/Samples/VirtualizationHarnessDemo/GripDragRepro.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 174 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, `src/Net/Samples/VirtualizationHarnessDemo/LiftDragRepro.cs:82` calls `Holder` and `src/Net/Samples/VirtualizationHarnessDemo/EditorShapedDragRepro.cs:72` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (6 lines × 10) · ×1
  • Duplicated block (6 lines × 10) src/Net/Samples/VirtualizationHarnessDemo/CachedScrollTrimRepro.cs:140 — src/Net/Samples/VirtualizationHarnessDemo/CachedScrollTrimRepro.cs:140-145 | src/Net/Samples/VirtualizationHarnessDemo/DeleteGapRepro.cs:17-24 | src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs:18-25 | src/Net/Samples/VirtualizationHarnessDemo/FrontierSpinnerStuckRepro.cs:20-28 | src/Net/Samples/VirtualizationHarnessDemo/PlaceholderFlashRepro.cs:20-27 | src/Net/Samples/VirtualizationHarnessDemo/PreparedViewsRepro.cs:21-28 | src/Net/Samples/VirtualizationHarnessDemo/RealChatJumpRepro.cs:23-31 | src/Net/Samples/VirtualizationHarnessDemo/ScrollBarOverflowRepro.cs:20-27 | src/Net/Samples/VirtualizationHarnessDemo/ScrollToTopWallRepro.cs:19-26 | src/Net/Samples/VirtualizationHarnessDemo/StoConsecutiveJumpRepro.cs:25-32 — 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 10 call sites, so a change lands once. 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, `src/Net/Samples/VirtualizationHarnessDemo/StoConsecutiveJumpRepro.cs:22` calls `ConsoleTraceListener`, `Add` and `src/Net/Samples/VirtualizationHarnessDemo/DeleteGapRepro.cs:17` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (5 lines × 11) · ×1
  • Duplicated block (5 lines × 11) src/Net/Samples/VirtualizationHarnessDemo/CachedScrollTrimRepro.cs:141 — src/Net/Samples/VirtualizationHarnessDemo/CachedScrollTrimRepro.cs:141-145 | src/Net/Samples/VirtualizationHarnessDemo/DeleteGapRepro.cs:19-24 | src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs:20-25 | src/Net/Samples/VirtualizationHarnessDemo/FrontierSpinnerStuckRepro.cs:22-28 | src/Net/Samples/VirtualizationHarnessDemo/PlaceholderFlashRepro.cs:22-27 | src/Net/Samples/VirtualizationHarnessDemo/PreparedViewsRepro.cs:23-28 | src/Net/Samples/VirtualizationHarnessDemo/RealChatJumpRepro.cs:25-31 | src/Net/Samples/VirtualizationHarnessDemo/ScrollBarOverflowRepro.cs:22-27 | src/Net/Samples/VirtualizationHarnessDemo/ScrollToTopWallRepro.cs:21-26 | src/Net/Samples/VirtualizationHarnessDemo/StoConsecutiveJumpRepro.cs:27-32 | src/Net/Samples/VirtualizationHarnessDemo/SubpixelGridRepro.cs:47-52 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 11 call sites, so a change lands once. 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, `src/Net/Samples/VirtualizationHarnessDemo/StoConsecutiveJumpRepro.cs:22` calls `ConsoleTraceListener`, `Add` and `src/Net/Samples/VirtualizationHarnessDemo/DeleteGapRepro.cs:17` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (19 lines × 4) · ×1
  • Duplicated block (19 lines × 4) src/Maui/Samples/FastRepro/Platforms/Android/MainActivity.cs:21 — src/Maui/Samples/FastRepro/Platforms/Android/MainActivity.cs:21-39 | src/Maui/Samples/Player/Platforms/Android/MainActivity.cs:21-39 | src/Maui/Samples/Sandbox/Platforms/Android/MainActivity.cs:20-38 | src/Maui/Samples/Tutorials/Platforms/Android/MainActivity.cs:18-36 — before extracting anything, compare `src/Maui/Samples/FastRepro/Platforms/Android/MainActivity.cs` and `src/Maui/Samples/Player/Platforms/Android/MainActivity.cs` as WHOLE FILES: 95% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (54 lines × 2) · ×1
  • Duplicated block (54 lines × 2) src/Maui/Samples/Player/MauiProgram.cs:19 — src/Maui/Samples/Player/MauiProgram.cs:19-74 | src/Maui/Samples/Sandbox/MauiProgram.cs:17-70 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/Player/MauiProgram.cs:19` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (32 lines × 9) · ×1
  • Duplicated block (32 lines × 9) src/Maui/Samples/Sandbox/Dev/MainPageCodeBehindEmpty.cs:11 — src/Maui/Samples/Sandbox/Dev/MainPageCodeBehindEmpty.cs:11-42 | src/Maui/Samples/Sandbox/Dev/MainPageCodeDev.cs:11-153 | src/Maui/Samples/Sandbox/Dev/MainPageCodeForVideo.cs:12-128 | src/Maui/Samples/Sandbox/Dev/MainPageCodeLottie.cs:10-107 | src/Maui/Samples/Sandbox/Dev/MainPageCodeNodes.cs:11-91 | src/Maui/Samples/Sandbox/Dev/MainPageCodeStack.cs:13-107 | src/Maui/Samples/Sandbox/Dev/MainPageDevShape.cs:13-71 | src/Maui/Samples/Sandbox/Dev/MainPageTestImage.cs:11-79 | src/Maui/Samples/Tutorials/Tutorials/FirstApp/FirstAppPageCode.cs:13-130 — before extracting anything, compare `src/Maui/Samples/Sandbox/Dev/MainPageCodeBehindEmpty.cs` and `src/Maui/Samples/Sandbox/Dev/MainPageCodeStack.cs` as WHOLE FILES: 90% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Maui/Samples/Sandbox/Dev/MainPageCodeLottie.cs:10` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (477 lines × 2) · ×1
  • Duplicated block (477 lines × 2) src/OpenTk/Samples/HelloOpenTk/Pages/ShapesPage.cs:28 — src/OpenTk/Samples/HelloOpenTk/Pages/ShapesPage.cs:28-504 | src/Wpf/Samples/HelloWpf/Pages/ShapesPage.cs:28-504 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/ShapesPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/ShapesPage.cs` as WHOLE FILES: 99% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (66 lines × 2) · ×1
  • Duplicated block (66 lines × 2) src/OpenTk/Samples/HelloOpenTk/Pages/TextPage.cs:272 — src/OpenTk/Samples/HelloOpenTk/Pages/TextPage.cs:272-337 | src/Wpf/Samples/HelloWpf/Pages/TextPage.cs:272-337 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/TextPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/TextPage.cs` as WHOLE FILES: 99% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (50 lines × 2) · ×1
  • Duplicated block (50 lines × 2) src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/SkiaActivityIndicator.cs:15 — src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/SkiaActivityIndicator.cs:15-64 | src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Views/SkiaActivityIndicator.cs:12-61 — before extracting anything, compare `src/Blazor/Samples/BlazorSandbox/Pages/NewsFeed/Views/SkiaActivityIndicator.cs` and `src/Maui/Samples/Tutorials/Tutorials/NewsFeed/Views/SkiaActivityIndicator.cs` as WHOLE FILES: 94% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (63 lines × 3) · ×1
  • Duplicated block (63 lines × 3) src/Maui/Samples/HelloMaui/Pages/CellsPage.cs:26 — src/Maui/Samples/HelloMaui/Pages/CellsPage.cs:26-88 | src/OpenTk/Samples/HelloOpenTk/Pages/CellsPage.cs:27-89 | src/Wpf/Samples/HelloWpf/Pages/CellsPage.cs:27-89 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/CellsPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/CellsPage.cs` as WHOLE FILES: 96% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (44 lines × 3) · ×1
  • Duplicated block (44 lines × 3) src/Maui/Samples/HelloMaui/Pages/FeedCell.cs:24 — src/Maui/Samples/HelloMaui/Pages/FeedCell.cs:24-67 | src/OpenTk/Samples/HelloOpenTk/Pages/FeedCell.cs:25-68 | src/Wpf/Samples/HelloWpf/Pages/FeedCell.cs:25-68 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/FeedCell.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/FeedCell.cs` as WHOLE FILES: 98% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (72 lines × 3) · ×1
  • Duplicated block (72 lines × 3) src/Maui/Samples/HelloMaui/Pages/KeyboardPage.cs:26 — src/Maui/Samples/HelloMaui/Pages/KeyboardPage.cs:26-97 | src/OpenTk/Samples/HelloOpenTk/Pages/KeyboardPage.cs:27-98 | src/Wpf/Samples/HelloWpf/Pages/KeyboardPage.cs:27-98 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/KeyboardPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/KeyboardPage.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (82 lines × 3) · ×1
  • Duplicated block (82 lines × 3) src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs:73 — src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs:73-154 | src/OpenTk/Samples/HelloOpenTk/Pages/ReorderPage.cs:74-155 | src/Wpf/Samples/HelloWpf/Pages/ReorderPage.cs:74-155 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/ReorderPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/ReorderPage.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (248 lines × 3) · ×1
  • Duplicated block (248 lines × 3) src/Maui/Samples/HelloMaui/Pages/SnappingPage.cs:98 — src/Maui/Samples/HelloMaui/Pages/SnappingPage.cs:98-345 | src/OpenTk/Samples/HelloOpenTk/Pages/SnappingPage.cs:99-346 | src/Wpf/Samples/HelloWpf/Pages/SnappingPage.cs:99-346 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/SnappingPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/SnappingPage.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 305 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (118 lines × 3) · ×1
  • Duplicated block (118 lines × 3) src/Maui/Samples/HelloMaui/Pages/SpritesPage.cs:33 — src/Maui/Samples/HelloMaui/Pages/SpritesPage.cs:33-150 | src/OpenTk/Samples/HelloOpenTk/Pages/SpritesPage.cs:34-151 | src/Wpf/Samples/HelloWpf/Pages/SpritesPage.cs:34-151 — before extracting anything, compare `src/Maui/Samples/HelloMaui/Pages/SpritesPage.cs` and `src/OpenTk/Samples/HelloOpenTk/Pages/SpritesPage.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 182 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (213 lines × 2) · ×1
  • Duplicated block (213 lines × 2) src/OpenTk/Samples/HelloOpenTk/Pages/ShellPage.cs:30 — src/OpenTk/Samples/HelloOpenTk/Pages/ShellPage.cs:30-242 | src/Wpf/Samples/HelloWpf/Pages/ShellPage.cs:30-242 — before extracting anything, compare `src/OpenTk/Samples/HelloOpenTk/Pages/ShellPage.cs` and `src/Wpf/Samples/HelloWpf/Pages/ShellPage.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 236 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D8 · Code Coverage · Coverage not measured · ×1
  • Coverage not measured — test suite did not build — Coverage NOT MEASURED: this repository did not build in our analyzer environment (a C#/MSBuild compiler error), so no coverage could be collected. It is excluded from the score rather than counted as a near-zero defect. We did not read WHERE the failing diagnostic is, so this does not claim the fault is in your test code — a repository written for an older SDK band can compile for you and not for us. Run `dotnet build` on this commit; if it succeeds, the gap is ours. Committing the Cobertura/OpenCover/lcov report your CI already produces also lets us measure real coverage without building anything.
IC1 · Incompleteness & stubs · Both branches are identical · ×1
  • Both branches are identical — the condition decides nothing src/Maui/DrawnUi/Platforms/Android/GlideExtensions.cs:192 — The `if` and its `else` contain the same 1 statement, so no input can make the condition matter. Implement the distinction that was intended, or drop the branch and keep the body.
IC1 · Incompleteness & stubs · Unfinished branch · ×1
  • Unfinished branch — throws NotImplementedException src/Shared/DrawnUi/Controls/PlayFrames/RefreshIndicator.cs:120 — The branch `if (orientation == ScrollOrientation.Both)` throws `NotImplementedException` 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.
X1 · Async correctness · Sync-over-async (deadlock risk) through `.Wait(…)` · ×1
  • Sync-over-async (deadlock risk) through `.Wait(…)` src/Shared/DrawnUi/Super.cs:554 — `.Wait(…)` blocks this thread until the task completes or the bound expires — sync-over-async: it can deadlock under a synchronization context and it parks a thread while it waits. `await` the task (with `.WaitAsync(timeout, token)` where the bound matters).
X17 · Uncapped recursion over a caller-supplied document · Recursive walk over a caller-supplied document has no depth cap · ×1
  • Recursive walk over a caller-supplied document has no depth cap src/Shared/DrawnUi/Controls/PlayFrames/SkiaLottie.cs:862 — `FindColorProperties` is public and takes the `JToken` from its caller, and it calls itself at line 862 with a child of the node it was given (and at line 870) — and nowhere in `FindColorProperties` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the tree it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. A document nested past the stack that remains raises `StackOverflowException`, which .NET neither lets you catch nor unwinds: the process is torn down where it stands, taking every other request in flight with it, and no `try`/`catch` around `FindColorProperties` can intervene. Thread a depth argument through `FindColorProperties` and reject the document past a fixed maximum, or rewrite the descent with an explicit stack.
X18 · Disposal-pattern correctness · Owned disposable field overwritten without releasing the previous instance · ×1
  • Owned disposable field overwritten without releasing the previous instance src/Shared/Samples/Add3dGallery.Shared/Pages/GalleryPage.Dice.cs:205 — `_diceRoll` is a `CancellationTokenSource` this type creates itself, and here (line 205) a new instance is written over it — but `RollDice` itself reads through `_diceRoll` before replacing it, so it expects an instance to be there, and nothing earlier in `RollDice` disposes, closes, saves or hands on the instance being replaced. The assignment makes it unreachable while it still holds what it holds (a timer that keeps firing, a callback registered on a longer-lived token, a socket, a handle), and no later `Dispose` can reach it: the type's own disposal releases only the CURRENT instance. The cost accumulates once per overwrite. Release the previous instance first (`_diceRoll?.Dispose();` before the assignment), or swap it out with `Interlocked.Exchange` and dispose what comes back.
X22 · Contradicted release guard · Return leaves holding the primitive · ×1
  • Return leaves holding the primitive src/Shared/DrawnUi/Controls/Layouts/SkiaViewSwitcher.cs:745 — `SemaphoreNavigationStack.WaitAsync()` has already taken `SemaphoreNavigationStack` when this `return` leaves, and the `finally` that calls `SemaphoreNavigationStack.Release()` belongs to the `try` below it, so it never runs: `SemaphoreNavigationStack` stays held and every later waiter blocks. Move the `return` inside the `try`, or take `SemaphoreNavigationStack` after it.
X26 · Unsynchronised callback handoff · Collection crosses a callback boundary unsynchronised · ×1
  • Collection crosses a callback boundary unsynchronised src/Maui/DrawnUi/Platforms/Android/AndroidExtensions.cs:91 — `AndroidExtensions.Timers` is a `Dictionary<…>` that a `CancellationToken.Register(…)` callback writes (`[…] =` on line 91) and `StartTimerOnMainThreadAsync` reads (line 45). The runtime runs that callback on a thread the rest of the type does not own — a pool or I/O thread for a watcher, timer or process event, the completing thread for a continuation, the cancelling thread for a token registration, the pool for a `Progress<T>` made without a UI context — while `StartTimerOnMainThreadAsync` runs on whichever thread calls it. `Dictionary<…>` allows many readers or one writer, never both: a read that meets the write sees a torn resize, an enumeration throws `InvalidOperationException`, and two writes lose or duplicate entries. Take one `lock` over the write and every read of `Timers`, use a `System.Collections.Concurrent` collection, or marshal the callback onto the reader's synchronisation context.
Minor — 255 finding(s)
D24 · Comment Value · redundant comment · ×60
  • redundant comment Tests/PreviewTests/DrawnTabBar.cs:37 — "Draw tab bar" repeats the code it sits on: 3 of its 3 words (draw, tab, bar) are already in `DrawTabBar(ctx.Context.Canvas, _tabCount, _selectedIndex, DrawingRect);`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment Tests/PreviewTests/Views/MapsUiPage.xaml.cs:151 — "adds the +/- zoom widget" repeats the code it sits on: 3 of its 3 words (adds, zoom, widget) are already in `map.Widgets.Add(new ZoomInOutWidget`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/Maui/Addons/DrawnUi.Maui.MapsUi/SkiaMapsUi.cs:871 — "Check if widgets need refresh" repeats the code it sits on: 4 of its 4 words (check, widgets, need, refresh) are already in `if (!_refresh && (Map?.Widgets?.Any(w => w.NeedsRedraw) ?? false))`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/Maui/DrawnUi/Controls/Navigation/SkiaShell.cs:2599 — "just add to current route" repeats the code it sits on: 3 of its 3 words (add, current, route) are already in `children.AddRange(CurrentRoute.Nodes);`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/Maui/DrawnUi/Features/Fonts/SkiaFontManager.cs:324 — "Check if any weights have been registered for this alias" repeats the code it sits on: 4 of its 4 words (check, weights, registered, alias) are already in `if (RegisteredWeights.TryGetValue(alias, out var registeredWeights))`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/Maui/DrawnUi/Features/Fonts/SkiaFontManager.cs:330 — "Get the enum equivalent of the closest registered weight" repeats the code it sits on: 5 of its 6 words (get, enum, closest, registered, weight) are already in `var closestWeight = GetWeightEnum(closestRegisteredWeight);`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/Maui/DrawnUi/Internals/Interfaces/ThemeBindingExtension.cs:334 — "Set initial value" repeats the code it sits on: 3 of its 3 words (set, initial, value) are already in `var initialValue = extension.GetCurrentThemeValue();`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/Maui/DrawnUi/Platforms/Android/AndroidExtensions.cs:146 — "Image source handler to return" repeats the code it sits on: 4 of its 4 words (image, source, handler, return) are already in `IImageSourceHandler returnValue = null;`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/Maui/DrawnUi/Platforms/Android/Controls/SkiaShell.Android.cs:34 — "Get the color from resources" repeats the code it sits on: 3 of its 3 words (get, color, resources) are already in `int colorResId = Platform.CurrentActivity.Resources.GetIdentifier("maui_splash_color", "color", PackageName);`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/Maui/DrawnUi/Platforms/Android/Controls/SkiaShell.Android.cs:55 — "Set the drawable as the background of the root view" repeats the code it sits on: 5 of its 5 words (set, drawable, background, root, view) are already in `rootView.SetBackground(layerDrawable);`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/Maui/DrawnUi/Platforms/Android/Retained/SkiaGLTextureView.cs:1555 — "Get to the default display." repeats the code it sits on: 3 of its 3 words (get, default, display) are already in `eglDisplay = EGL14.EglGetDisplay(EGL14.EglDefaultDisplay);`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/Maui/DrawnUi/Platforms/Android/SkiaFontManager.Android.cs:97 — "Get prioritized font list for this Unicode block" repeats the code it sits on: 5 of its 6 words (get, prioritized, font, unicode, block) are already in `if (!AndroidFontsByBlock.TryGetValue(unicodeBlock, out var prioritizedFonts))`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/Maui/DrawnUi/Platforms/Apple/Handlers/SKMetalViewRetained.Apple.cs:289 — "Check for pending texture swap" repeats the code it sits on: 4 of its 4 words (check, pending, texture, swap) are already in `if (_swapPending && _pendingTexture != null)`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/Maui/DrawnUi/Platforms/Apple/Handlers/SKMetalViewRetained.Apple.cs:357 — "NORMAL RENDERING PATH Create surface from the render target" repeats the code it sits on: 6 of its 7 words (normal, rendering, create, surface, render, target) are already in `using var surfaceNormal = SKSurface.Create(context, renderTarget, GRSurfaceOrigin.TopLeft, SKColorType.Bgra8888);`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/Maui/DrawnUi/Platforms/Apple/SkiaFontManager.Apple.cs:99 — "Get prioritized font list for this Unicode block" repeats the code it sits on: 5 of its 6 words (get, prioritized, font, unicode, block) are already in `if (!iOSFontsByBlock.TryGetValue(unicodeBlock, out var prioritizedFonts))`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/Maui/DrawnUi/Platforms/MacCatalyst/MacExtensions.cs:76 — "Image source handler to return" repeats the code it sits on: 4 of its 4 words (image, source, handler, return) are already in `IImageSourceHandler returnValue = null;`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/Maui/DrawnUi/Platforms/Windows/DrawnView.Windows.cs:799 — "Check parent visibility" repeats the code it sits on: 3 of its 3 words (check, parent, visibility) are already in `if (parentElement.Visibility == Visibility.Collapsed ||`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/Maui/DrawnUi/Platforms/Windows/WindowsExtensions.cs:48 — "Image source handler to return" repeats the code it sits on: 4 of its 4 words (image, source, handler, return) are already in `IImageSourceHandler returnValue = null;`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/Maui/DrawnUi/Platforms/iOS/iOSExtensions.cs:9 — "Image source handler to return" repeats the code it sits on: 4 of its 4 words (image, source, handler, return) are already in `IImageSourceHandler returnValue = null;`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/Net/Tests/DrawnUi.Net.Tests/EditorLineHeightTests.cs:88 — "the label's measured size is in whole pixels" repeats the code it sits on: 4 of its 5 words (label, measured, size, pixels) are already in `Assert.Equal(editor.Label.MeasuredSize.Pixels.Height / scale, editor.ViewportHeight, 0.5);`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/Shared/DrawnUi/Controls/Drawer/SkiaDrawer.cs:557 — "return AreVectorsEqual(CurrentPosition, SnapPoints[1], 1); }" repeats the code it sits on: 7 of its 7 words (return, vectors, equal, current, position, snap, points) are already in `public bool CheckNeedToSnap()`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/Shared/DrawnUi/Controls/Pickers/Wheels/SkiaWheelScroll.cs:718 — "Get the current position index" repeats the code it sits on: 4 of its 4 words (get, current, position, index) are already in `int currentIndex = GetIndexAtScrollOffset(WheelScrollingOffset, true, true);`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/Shared/DrawnUi/Controls/PlayFrames/SkiaLottie.cs:886 — "Format the color as a hex string with alpha" repeats the code it sits on: 4 of its 5 words (color, hex, string, alpha) are already in `var a = (int)(color.Alpha * 255);`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/Shared/DrawnUi/Controls/PlayFrames/SkiaLottie.cs:938 — "Split the string into individual color components" repeats the code it sits on: 4 of its 5 words (split, string, color, components) are already in `var components = colorString.Split(',');`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs:2811 — "check attached listeners then" repeats the code it sits on: 3 of its 3 words (check, attached, listeners) are already in `if (AddGestures.AttachedListeners.TryGetValue(child.Control, out var effect))`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • + 35 more in this group — see findings.md.
X10 · Duplicated predicate · Duplicated predicate · ×40
  • Duplicated predicate src/Maui/DrawnUi/Controls/EditText/SkiaMauiEditor.cs:439 — `!Control.IsFocused && value || Control.IsFocused && !value` appears character-identically in 2 files — src/Maui/DrawnUi/Controls/EditText/SkiaMauiEditor.cs, src/Maui/DrawnUi/Controls/EditText/SkiaMauiEntry.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 src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs:5013 — `!KeyboardManager.IsControlPressed && !KeyboardManager.IsMetaPressed` appears character-identically in 2 files — src/Shared/DrawnUi/Draw/Text/SkiaLabel.cs, src/Shared/DrawnUi/Views/DrawnView.TextSelection.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 src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:453 — `!UseCache || string.IsNullOrWhiteSpace(uri) || bitmap == null` appears character-identically in 2 files — src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs, src/Net/DrawnUi/Features/SkiaImageManager.Net.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 src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:499 — `!UseCache || string.IsNullOrWhiteSpace(url)` appears character-identically in 2 files — src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs, src/Net/DrawnUi/Features/SkiaImageManager.Net.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 src/Maui/DrawnUi/Platforms/Windows/SoftwareWindowsCanvas.cs:257 — `!double.IsNaN(value) && !double.IsInfinity(value) && value > 0` appears character-identically in 3 files — src/Maui/DrawnUi/Platforms/Windows/SoftwareWindowsCanvas.cs, src/Maui/DrawnUi/Platforms/Windows/WinCanvas.cs, src/Wasm/DrawnUi/WebSkiaView.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 src/OpenTk/Samples/Add3dGalleryOpenTk/Program.cs:81 — `!e.IsRepeat && OpenTkKeyMapper.Map(e.Key) is { } key` appears character-identically in 2 files — src/OpenTk/Samples/Add3dGalleryOpenTk/Program.cs, src/OpenTk/Samples/HelloOpenTk/HelloApp.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 src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs:147 — `!float.IsNaN(prevBottom) && prevBottom - c.top > 2f` appears character-identically in 2 files — src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs, src/Net/Samples/VirtualizationHarnessDemo/PreparedViewsRepro.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 src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:108 — `!hadInput.CanDraw || hadInput.InputTransparent || hadInput.GestureListenerRegistrationTime == null` appears character-identically in 3 files — src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs, src/Maui/DrawnUi/Views/Canvas.cs, src/Net/DrawnUi/Views/Canvas.Gestures.Net.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 src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs:100 — `!page.MainScroll.OrderedScrollToIndexIsSet && Math.Abs(off - last) < 0.5f` appears character-identically in 2 files — src/Net/Samples/VirtualizationHarnessDemo/DeleteJumpCycleRepro.cs, src/Net/Samples/VirtualizationHarnessDemo/PreparedViewsRepro.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 src/Net/Samples/VirtualizationHarnessDemo/CachedJumpRepro.cs:84 — `!scene.Scroll.OrderedScrollToIndexIsSet && probe.LastVisible >= 0` appears character-identically in 2 files — src/Net/Samples/VirtualizationHarnessDemo/CachedJumpRepro.cs, src/Net/Samples/VirtualizationHarnessDemo/JumpReleaseRepro.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 src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs:199 — `!scroll.OrderedScrollToIndexIsSet && f > 30` appears character-identically in 2 files — src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs, src/Net/Samples/VirtualizationHarnessDemo/TelegramLikeRepro.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 src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs:140 — `!splitLine && !shift && ShouldSubmitOnEnter` appears character-identically in 3 files — src/Blazor/DrawnUi/Draw/EditText/SkiaEditor.Blazor.cs, src/Net/DrawnUi/Draw/SkiaEditor.Net.cs, src/Shared/DrawnUi/EditText/SkiaRichEditor.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 src/OpenTk/Samples/HelloOpenTk/HelloApp.cs:76 — `!string.IsNullOrEmpty(rootRoute) && shell.Routes.TryGetValue(rootRoute, out var build)` appears character-identically in 2 files — src/OpenTk/Samples/HelloOpenTk/HelloApp.cs, src/Wpf/Samples/HelloWpf/MainWindow.xaml.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 src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:170 — `((SkiaControl)listener).HitIsInside(hitPoint.X, hitPoint.Y) || listener == FocusedChild` appears character-identically in 2 files — src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs, src/Net/DrawnUi/Views/Canvas.Gestures.Net.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 src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs:349 — `((double)value > -1) && ((double)value <= 1)` appears character-identically in 2 files — src/Maui/Samples/FastRepro/ColorPicker/SkiaColorPicker.cs, src/Maui/Samples/Sandbox/Views/Controls/SkiaColorPicker.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 src/Shared/DrawnUi/Views/DrawnView.cs:2989 — `BackgroundColor != null && BackgroundColor != Colors.Transparent` appears character-identically in 3 files — src/Maui/DrawnUi/Views/Canvas.cs, src/Net/DrawnUi/Views/Canvas.Net.cs, src/Shared/DrawnUi/Views/DrawnView.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 src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.cs:3495 — `Content is SkiaLayout mvl && mvl.IsTemplated && mvl.MeasureItemsStrategy == MeasuringStrategy.MeasureVisible && mvl.LastMeasuredIndexLocal <…` appears character-identically in 2 files — src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.Scrolling.cs, src/Shared/DrawnUi/Draw/Scroll/SkiaScroll.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 src/Maui/DrawnUi/Platforms/iOS/Views/DrawnUiBasePageHandler.cs:38 — `DrawnExtensions.StartupSettings != null && DrawnExtensions.StartupSettings.UseDesktopKeyboard` appears character-identically in 2 files — src/Maui/DrawnUi/Platforms/MacCatalyst/DrawnUiBasePageHandler.cs, src/Maui/DrawnUi/Platforms/iOS/Views/DrawnUiBasePageHandler.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 src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Shared.cs:413 — `EffectiveItemsSource == null || EffectiveItemsSource.Count == 0` appears character-identically in 2 files — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs, src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Shared.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 src/Maui/DrawnUi/Platforms/Windows/Views/Gles/GlesContext.cs:219 — `Egl.eglChooseConfig(eglDisplay, attrib_list, array, array.Length, out var num_config) == 0 || num_config == 0` appears character-identically in 2 files — src/Maui/DrawnUi/Platforms/Windows/Views/Gles/GlesContext.cs, src/Wpf/Drawnui.Wpf/Views/Angle/AngleContext.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 src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:153 — `HadInput.ContainsKey(listener.Uid) && IsSavedGesture(args.Type)` appears character-identically in 3 files — src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs, src/Maui/DrawnUi/Views/Canvas.cs, src/Net/DrawnUi/Views/Canvas.Gestures.Net.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 src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:101 — `HadInput.Count > 0 && IsSavedGesture(args.Type)` appears character-identically in 3 files — src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs, src/Maui/DrawnUi/Views/Canvas.cs, src/Net/DrawnUi/Views/Canvas.Gestures.Net.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 src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:2437 — `HeadInsertInFlight || HeadRemoveInFlight` appears character-identically in 2 files — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs, src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.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 src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:789 — `HorizontalOptions.Alignment == LayoutAlignment.Fill && WidthRequest < 0` appears character-identically in 4 files — src/Shared/DrawnUi/Draw/Base/SkiaControl.Shared.cs, src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs, src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs, src/Shared/DrawnUi/Draw/Layout/SkiaLayout.Masonry.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 src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs:704 — `HorizontalOptions.Alignment == LayoutAlignment.Fill || SizeRequest.Width >= 0` appears character-identically in 2 files — src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ColumnRow.cs, src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.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.
  • + 15 more in this group — see findings.md.
X4 · Structured logging · Interpolated log message defeats structured logging · ×40
  • Interpolated log message defeats structured logging src/SharedAdd3d/Renderer3D.cs:273 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging src/SharedAdd3d/SkiaModel3D.cs:107 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging src/SharedAdd3d/SkiaModel3D.cs:202 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging src/SharedAdd3d/SkiaScene3D.cs:184 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging src/Blazor/DrawnUi/Draw/SkiaImageManager.Blazor.cs:206 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging src/Blazor/DrawnUi/Internals/Core/SkiaFontManager.cs:66 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging src/Blazor/DrawnUi/Internals/Core/SkiaFontManager.cs:128 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:209 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:213 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:220 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging src/Blazor/DrawnUi/Views/Canvas.Gestures.Blazor.cs:224 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:53 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:100 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:273 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:318 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:581 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:792 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:818 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:855 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:862 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:870 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:929 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:938 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:970 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • Interpolated log message defeats structured logging src/Shared/DrawnUi/Draw/Layout/ViewsAdapter.cs:997 — Logging an interpolated string (`$"..."`) collapses the event to plain text — you lose the named, queryable properties structured logging exists for. Use a message template with placeholders: `LogInformation("User {UserId} did {Action}", id, action)`. If these calls go through a logging wrapper that only accepts a pre-formatted string, give the wrapper a template+args overload that forwards to the underlying logger, then migrate call sites to it.
  • + 15 more in this group — see findings.md.
P10 · Library API & versioning · Public type used only inside its own library · ×34
  • Public type used only inside its own library src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5 — `DrawnUi.Controls.MauiEditorHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0)`, `DrawnUi.Maui.Add3d(net9.0)`, `DrawnUi.Maui.Game(net9.0)`, `DrawnUi.Maui.MapsUi(net9.0)`, `DrawnUi.Maui.Rive(net9.0)`, `DrawnUi.MauiGraphics(net9.0)`, `SomeBenchmarks`, `Tutorials(net9.0)`, `UnitTests`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such.
  • Public type used only inside its own library src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5 — `DrawnUi.Controls.MauiEditorHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0-android)`, `DrawnUi.Maui.Add3d(net9.0-android)`, `DrawnUi.Maui.Game(net9.0-android)`, `DrawnUi.Maui.MapsUi(net9.0-android)`, `DrawnUi.Maui.Rive(net9.0-android)`, `DrawnUi.MauiGraphics(net9.0-android)`, `GameTemplate(net9.0-android)`, `Tutorials(net9.0-android)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such.
  • Public type used only inside its own library src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5 — `DrawnUi.Controls.MauiEditorHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0-ios)`, `DrawnUi.Maui.Add3d(net9.0-ios)`, `DrawnUi.Maui.Game(net9.0-ios)`, `DrawnUi.Maui.MapsUi(net9.0-ios)`, `DrawnUi.Maui.Rive(net9.0-ios)`, `DrawnUi.MauiGraphics(net9.0-ios)`, `GameTemplate(net9.0-ios)`, `Tutorials(net9.0-ios)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such.
  • Public type used only inside its own library src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5 — `DrawnUi.Controls.MauiEditorHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0-maccatalyst)`, `DrawnUi.Maui.Add3d(net9.0-maccatalyst)`, `DrawnUi.Maui.Game(net9.0-maccatalyst)`, `DrawnUi.Maui.MapsUi(net9.0-maccatalyst)`, `DrawnUi.Maui.Rive(net9.0-maccatalyst)`, `DrawnUi.MauiGraphics(net9.0-maccatalyst)`, `GameTemplate(net9.0-maccatalyst)`, `Tutorials(net9.0-maccatalyst)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such.
  • Public type used only inside its own library src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5 — `DrawnUi.Controls.MauiEditorHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net10.0)`, `DrawnUi.Maui.Add3d(net10.0)`, `DrawnUi.Maui.Game(net10.0)`, `DrawnUi.Maui.MapsUi(net10.0)`, `DrawnUi.Maui.Rive(net10.0)`, `DrawnUi.MauiGraphics(net10.0)`, `Tutorials(net10.0)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such.
  • Public type used only inside its own library src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5 — `DrawnUi.Controls.MauiEditorHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net10.0-android)`, `DrawnUi.Maui.Add3d(net10.0-android)`, `DrawnUi.Maui.Game(net10.0-android)`, `DrawnUi.Maui.MapsUi(net10.0-android)`, `DrawnUi.Maui.Rive(net10.0-android)`, `DrawnUi.MauiGraphics(net10.0-android)`, `FastRepro(net10.0-android)`, `HelloMaui(net10.0-android)`, `Tutorials(net10.0-android)`, `Tutorials(net10.0-android)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such.
  • Public type used only inside its own library src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5 — `DrawnUi.Controls.MauiEditorHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net10.0-ios)`, `DrawnUi.Maui.Add3d(net10.0-ios)`, `DrawnUi.Maui.Game(net10.0-ios)`, `DrawnUi.Maui.MapsUi(net10.0-ios)`, `DrawnUi.Maui.Rive(net10.0-ios)`, `DrawnUi.MauiGraphics(net10.0-ios)`, `FastRepro(net10.0-ios)`, `HelloMaui(net10.0-ios)`, `Tutorials(net10.0-ios)`, `Tutorials(net10.0-ios)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such.
  • Public type used only inside its own library src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5 — `DrawnUi.Controls.MauiEditorHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEditorHandler.cs:5) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net10.0-maccatalyst)`, `DrawnUi.Maui.Add3d(net10.0-maccatalyst)`, `DrawnUi.Maui.Game(net10.0-maccatalyst)`, `DrawnUi.Maui.MapsUi(net10.0-maccatalyst)`, `DrawnUi.Maui.Rive(net10.0-maccatalyst)`, `DrawnUi.MauiGraphics(net10.0-maccatalyst)`, `FastRepro(net10.0-maccatalyst)`, `HelloMaui(net10.0-maccatalyst)`, `Tutorials(net10.0-maccatalyst)`, `Tutorials(net10.0-maccatalyst)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such.
  • Public type used only inside its own library src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6 — `DrawnUi.Controls.MauiEntryHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0)`, `DrawnUi.Maui.Add3d(net9.0)`, `DrawnUi.Maui.Game(net9.0)`, `DrawnUi.Maui.MapsUi(net9.0)`, `DrawnUi.Maui.Rive(net9.0)`, `DrawnUi.MauiGraphics(net9.0)`, `SomeBenchmarks`, `Tutorials(net9.0)`, `UnitTests`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such.
  • Public type used only inside its own library src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6 — `DrawnUi.Controls.MauiEntryHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0-android)`, `DrawnUi.Maui.Add3d(net9.0-android)`, `DrawnUi.Maui.Game(net9.0-android)`, `DrawnUi.Maui.MapsUi(net9.0-android)`, `DrawnUi.Maui.Rive(net9.0-android)`, `DrawnUi.MauiGraphics(net9.0-android)`, `GameTemplate(net9.0-android)`, `Tutorials(net9.0-android)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such.
  • Public type used only inside its own library src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6 — `DrawnUi.Controls.MauiEntryHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0-ios)`, `DrawnUi.Maui.Add3d(net9.0-ios)`, `DrawnUi.Maui.Game(net9.0-ios)`, `DrawnUi.Maui.MapsUi(net9.0-ios)`, `DrawnUi.Maui.Rive(net9.0-ios)`, `DrawnUi.MauiGraphics(net9.0-ios)`, `GameTemplate(net9.0-ios)`, `Tutorials(net9.0-ios)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such.
  • Public type used only inside its own library src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6 — `DrawnUi.Controls.MauiEntryHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0-maccatalyst)`, `DrawnUi.Maui.Add3d(net9.0-maccatalyst)`, `DrawnUi.Maui.Game(net9.0-maccatalyst)`, `DrawnUi.Maui.MapsUi(net9.0-maccatalyst)`, `DrawnUi.Maui.Rive(net9.0-maccatalyst)`, `DrawnUi.MauiGraphics(net9.0-maccatalyst)`, `GameTemplate(net9.0-maccatalyst)`, `Tutorials(net9.0-maccatalyst)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such.
  • Public type used only inside its own library src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6 — `DrawnUi.Controls.MauiEntryHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net10.0)`, `DrawnUi.Maui.Add3d(net10.0)`, `DrawnUi.Maui.Game(net10.0)`, `DrawnUi.Maui.MapsUi(net10.0)`, `DrawnUi.Maui.Rive(net10.0)`, `DrawnUi.MauiGraphics(net10.0)`, `Tutorials(net10.0)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such.
  • Public type used only inside its own library src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6 — `DrawnUi.Controls.MauiEntryHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net10.0-android)`, `DrawnUi.Maui.Add3d(net10.0-android)`, `DrawnUi.Maui.Game(net10.0-android)`, `DrawnUi.Maui.MapsUi(net10.0-android)`, `DrawnUi.Maui.Rive(net10.0-android)`, `DrawnUi.MauiGraphics(net10.0-android)`, `FastRepro(net10.0-android)`, `HelloMaui(net10.0-android)`, `Tutorials(net10.0-android)`, `Tutorials(net10.0-android)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such.
  • Public type used only inside its own library src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6 — `DrawnUi.Controls.MauiEntryHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net10.0-ios)`, `DrawnUi.Maui.Add3d(net10.0-ios)`, `DrawnUi.Maui.Game(net10.0-ios)`, `DrawnUi.Maui.MapsUi(net10.0-ios)`, `DrawnUi.Maui.Rive(net10.0-ios)`, `DrawnUi.MauiGraphics(net10.0-ios)`, `FastRepro(net10.0-ios)`, `HelloMaui(net10.0-ios)`, `Tutorials(net10.0-ios)`, `Tutorials(net10.0-ios)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such.
  • Public type used only inside its own library src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6 — `DrawnUi.Controls.MauiEntryHandler` (src/Maui/DrawnUi/Controls/EditText/MauiEntryHandler.cs:6) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net10.0-maccatalyst)`, `DrawnUi.Maui.Add3d(net10.0-maccatalyst)`, `DrawnUi.Maui.Game(net10.0-maccatalyst)`, `DrawnUi.Maui.MapsUi(net10.0-maccatalyst)`, `DrawnUi.Maui.Rive(net10.0-maccatalyst)`, `DrawnUi.MauiGraphics(net10.0-maccatalyst)`, `FastRepro(net10.0-maccatalyst)`, `HelloMaui(net10.0-maccatalyst)`, `Tutorials(net10.0-maccatalyst)`, `Tutorials(net10.0-maccatalyst)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such.
  • Public type used only inside its own library src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:9 — `DrawnUi.Draw.AddGestures` (src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:9) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0-android)`, `DrawnUi.Maui.Add3d(net9.0-android)`, `DrawnUi.Maui.Game(net9.0-android)`, `DrawnUi.Maui.MapsUi(net9.0-android)`, `DrawnUi.Maui.Rive(net9.0-android)`, `DrawnUi.MauiGraphics(net9.0-android)`, `GameTemplate(net9.0-android)`, `Tutorials(net9.0-android)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such.
  • Public type used only inside its own library src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:9 — `DrawnUi.Draw.AddGestures` (src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:9) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0-ios)`, `DrawnUi.Maui.Add3d(net9.0-ios)`, `DrawnUi.Maui.Game(net9.0-ios)`, `DrawnUi.Maui.MapsUi(net9.0-ios)`, `DrawnUi.Maui.Rive(net9.0-ios)`, `DrawnUi.MauiGraphics(net9.0-ios)`, `GameTemplate(net9.0-ios)`, `Tutorials(net9.0-ios)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such.
  • Public type used only inside its own library src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:9 — `DrawnUi.Draw.AddGestures` (src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:9) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0-maccatalyst)`, `DrawnUi.Maui.Add3d(net9.0-maccatalyst)`, `DrawnUi.Maui.Game(net9.0-maccatalyst)`, `DrawnUi.Maui.MapsUi(net9.0-maccatalyst)`, `DrawnUi.Maui.Rive(net9.0-maccatalyst)`, `DrawnUi.MauiGraphics(net9.0-maccatalyst)`, `GameTemplate(net9.0-maccatalyst)`, `Tutorials(net9.0-maccatalyst)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such.
  • Public type used only inside its own library src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:9 — `DrawnUi.Draw.AddGestures` (src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:9) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net10.0)`, `DrawnUi.Maui.Add3d(net10.0)`, `DrawnUi.Maui.Game(net10.0)`, `DrawnUi.Maui.MapsUi(net10.0)`, `DrawnUi.Maui.Rive(net10.0)`, `DrawnUi.MauiGraphics(net10.0)`, `Tutorials(net10.0)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such.
  • Public type used only inside its own library src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:9 — `DrawnUi.Draw.AddGestures` (src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:9) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net10.0-android)`, `DrawnUi.Maui.Add3d(net10.0-android)`, `DrawnUi.Maui.Game(net10.0-android)`, `DrawnUi.Maui.MapsUi(net10.0-android)`, `DrawnUi.Maui.Rive(net10.0-android)`, `DrawnUi.MauiGraphics(net10.0-android)`, `FastRepro(net10.0-android)`, `HelloMaui(net10.0-android)`, `Tutorials(net10.0-android)`, `Tutorials(net10.0-android)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such.
  • Public type used only inside its own library src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:9 — `DrawnUi.Draw.AddGestures` (src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:9) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net10.0-ios)`, `DrawnUi.Maui.Add3d(net10.0-ios)`, `DrawnUi.Maui.Game(net10.0-ios)`, `DrawnUi.Maui.MapsUi(net10.0-ios)`, `DrawnUi.Maui.Rive(net10.0-ios)`, `DrawnUi.MauiGraphics(net10.0-ios)`, `FastRepro(net10.0-ios)`, `HelloMaui(net10.0-ios)`, `Tutorials(net10.0-ios)`, `Tutorials(net10.0-ios)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such.
  • Public type used only inside its own library src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:9 — `DrawnUi.Draw.AddGestures` (src/Maui/DrawnUi/Features/Gestures/AddGestures.cs:9) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net10.0-maccatalyst)`, `DrawnUi.Maui.Add3d(net10.0-maccatalyst)`, `DrawnUi.Maui.Game(net10.0-maccatalyst)`, `DrawnUi.Maui.MapsUi(net10.0-maccatalyst)`, `DrawnUi.Maui.Rive(net10.0-maccatalyst)`, `DrawnUi.MauiGraphics(net10.0-maccatalyst)`, `FastRepro(net10.0-maccatalyst)`, `HelloMaui(net10.0-maccatalyst)`, `Tutorials(net10.0-maccatalyst)`, `Tutorials(net10.0-maccatalyst)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such.
  • Public type used only inside its own library src/Maui/DrawnUi/HotReload.cs:5 — `DrawnUi.HotReloadService` (src/Maui/DrawnUi/HotReload.cs:5) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0)`, `DrawnUi.Maui.Add3d(net9.0)`, `DrawnUi.Maui.Game(net9.0)`, `DrawnUi.Maui.MapsUi(net9.0)`, `DrawnUi.Maui.Rive(net9.0)`, `DrawnUi.MauiGraphics(net9.0)`, `SomeBenchmarks`, `Tutorials(net9.0)`, `UnitTests`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such.
  • Public type used only inside its own library src/Maui/DrawnUi/HotReload.cs:5 — `DrawnUi.HotReloadService` (src/Maui/DrawnUi/HotReload.cs:5) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AppoMobi.Maui.DrawnUi(net9.0-android)`, `DrawnUi.Maui.Add3d(net9.0-android)`, `DrawnUi.Maui.Game(net9.0-android)`, `DrawnUi.Maui.MapsUi(net9.0-android)`, `DrawnUi.Maui.Rive(net9.0-android)`, `DrawnUi.MauiGraphics(net9.0-android)`, `GameTemplate(net9.0-android)`, `Tutorials(net9.0-android)`) and no public member of the library exposes it. Consumers outside this repository are not visible here; if they rely on it, it is API and should be documented as such.
  • + 9 more in this group — see findings.md.
X7 · Silent fallback defaults · Silent fallback default in catch · ×20
  • Silent fallback default in catch src/Maui/Addons/DrawnUi.Maui.MapsUi/SkiaMapsUi.cs:1366 — `GetScreenPosition` 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 src/Blazor/DrawnUi/Features/Keyboard/KeyboardManager.Blazor.cs:58 — `TextInputHasFocus` swallows every 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 src/Blazor/DrawnUi/Views/BrowserInterop.Blazor.cs:30 — `IsMobileBrowser` swallows every 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 src/Blazor/DrawnUi/Views/BrowserInterop.Blazor.cs:53 — `IsFullscreenEnabledAsync` swallows every 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 src/Blazor/DrawnUi/Views/BrowserInterop.Blazor.cs:76 — `SetFullscreenEnabledAsync` swallows every 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 src/Shared/DrawnUi/Controls/PlayFrames/SkiaLottie.cs:386 — `LoadLocalJson` swallows every exception and returns `json` still holding `null` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch src/Shared/DrawnUi/Draw/Layout/SkiaLayout.ListView.cs:759 — `GetItemForMemo` 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 src/Shared/DrawnUi/Draw/SkiaShape.Shared.cs:115 — `SetupType` swallows every exception and sets `DrawPath = null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch src/Shared/DrawnUi/Views/DrawnView.SystemTheme.cs:50 — `ReadWindowsSystemTheme` 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 src/Shared/DrawnUi/Views/SkiaAccessibilityManager.cs:492 — `DefaultIsScreenReaderRunning` swallows every exception 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 src/Maui/DrawnUi/Internals/Interfaces/ThemeBindingExtension.cs:267 — `UpdateTargetValue` swallows every 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 src/Maui/DrawnUi/Platforms/Android/AndroidExtensions.cs:37 — `StartTimerOnMainThreadAsync` swallows every exception and sets `ret = false;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch src/Maui/DrawnUi/Platforms/Android/Controls/KeyboardLayoutListener.cs:47 — `KeyboardSize` swallows every exception into `return 0;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch src/Maui/DrawnUi/Platforms/Android/DrawnView.Android.cs:69 — `IsElementVisibleInParentChain` swallows every 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 src/Maui/DrawnUi/Platforms/Apple/DrawnView.Apple.cs:123 — `IsElementVisibleInParentChain` swallows every 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 src/Maui/DrawnUi/Platforms/Windows/DrawnView.Windows.cs:834 — `IsElementVisibleInParentChain` swallows every 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 src/Wasm/DrawnUi/Super.Web.cs:121 — `GetDevicePixelRatio` swallows every exception into `return 1.0;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch src/Maui/Samples/Sandbox/Views/Controls/ContentFolder.cs:124 — `LoadSource` 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 src/OpenTk/Samples/HelloOpenTk/HelloApp.cs:149 — `LoadWindowIcon` 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 tpls/OpenTK/EmptyCode/MainWindow.cs:174 — `LoadIcon` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
D26 · Project Cohesion · Projects may be oversized for their cohesion · ×8
  • Projects may be oversized for their cohesion src/Maui/DrawnUi/DrawnUi.Maui.csproj:1 — `DrawnUi.Maui(net9.0)` overshoots its size bounds (127780 LoC, 592 public types across 19 namespaces). 8 of 64 project(s) overshoot their size bounds, lowering Project Cohesion to 7.7/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 src/Wpf/Drawnui.Wpf/DrawnUi.Wpf.csproj:1 — `DrawnUi.Wpf(net9.0-windows)` overshoots its size bounds (111154 LoC, 602 public types across 19 namespaces). 8 of 64 project(s) overshoot their size bounds, lowering Project Cohesion to 7.7/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 src/OpenTk/DrawnUi/DrawnUi.OpenTk.csproj:1 — `DrawnUi.OpenTk(net9.0)` overshoots its size bounds (110471 LoC, 598 public types across 19 namespaces). 8 of 64 project(s) overshoot their size bounds, lowering Project Cohesion to 7.7/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 src/Blazor/DrawnUi/DrawnUi.Blazor.csproj:1 — `DrawnUi.Blazor` overshoots its size bounds (108619 LoC, 589 public types across 16 namespaces). 8 of 64 project(s) overshoot their size bounds, lowering Project Cohesion to 7.7/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 src/Wasm/DrawnUi/DrawnUi.Wasm.csproj:1 — `DrawnUi.Wasm` overshoots its size bounds (108293 LoC, 593 public types across 17 namespaces). 8 of 64 project(s) overshoot their size bounds, lowering Project Cohesion to 7.7/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 src/Net/DrawnUi/DrawnUi.Net.csproj:1 — `DrawnUi.Net(net9.0)` overshoots its size bounds (107968 LoC, 591 public types across 18 namespaces). 8 of 64 project(s) overshoot their size bounds, lowering Project Cohesion to 7.7/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 src/Blazor/Samples/BlazorSandbox/BlazorSandbox.csproj:1 — `BlazorSandbox` overshoots its size bounds (6143 LoC, 52 public types across 13 namespaces). 8 of 64 project(s) overshoot their size bounds, lowering Project Cohesion to 7.7/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 src/Maui/Samples/FastRepro/FastRepro.csproj:1 — `FastRepro(net10.0-android)` overshoots its size bounds (6330 LoC, 58 public types across 11 namespaces). 8 of 64 project(s) overshoot their size bounds, lowering Project Cohesion to 7.7/10. Size alone is no reason to split a project: where its type references show a separable part, a Split row names it.
X7 · Silent fallback defaults · Silent fallback default on unknown code · ×8
  • Silent fallback default on unknown code src/Maui/DrawnUi/Platforms/Android/DrawnView.Accessibility.Android.cs:332 — `OnPopulateNodeForVirtualView` maps every unrecognised code to `ViewCompat.AccessibilityLiveRegionNone`, one of the real values, with no log or throw — a malformed or new code silently reads as a known one. Throw on the unknown code, or log it. If that member is the correct answer for any other code, say so in a comment on the member and the row stops firing.
  • Silent fallback default on unknown code src/Maui/DrawnUi/Platforms/Apple/DrawnView.Accessibility.Apple.cs:338 — `Traits` maps every unrecognised code to `UIAccessibilityTrait.None`, one of the real values, with no log or throw — a malformed or new code silently reads as a known one. Throw on the unknown code, or log it. If that member is the correct answer for any other code, say so in a comment on the member and the row stops firing.
  • Silent fallback default on unknown code src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsAutomationPeer.cs:289 — `GetLiveSettingCore` maps every unrecognised code to `AutomationLiveSetting.Off`, one of the real values, with no log or throw — a malformed or new code silently reads as a known one. Throw on the unknown code, or log it. If that member is the correct answer for any other code, say so in a comment on the member and the row stops firing.
  • Silent fallback default on unknown code src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsAutomationPeer.cs:474 — `AriaToControlType` maps every unrecognised code to `AutomationControlType.Custom`, one of the real values, with no log or throw — a malformed or new code silently reads as a known one. Throw on the unknown code, or log it. If that member is the correct answer for any other code, say so in a comment on the member and the row stops firing.
  • Silent fallback default on unknown code src/Maui/DrawnUi/Platforms/Windows/Accessibility/MauiWindowsUiaProvider.cs:274 — `AriaToControlType` maps every unrecognised code to `UiaControlType.Custom`, one of the real values, with no log or throw — a malformed or new code silently reads as a known one. Throw on the unknown code, or log it. If that member is the correct answer for any other code, say so in a comment on the member and the row stops firing.
  • Silent fallback default on unknown code src/OpenTk/DrawnUi/Accessibility/WindowsUiaProvider.cs:337 — `AriaToControlType` maps every unrecognised code to `UiaControlType.Custom`, one of the real values, with no log or throw — a malformed or new code silently reads as a known one. Throw on the unknown code, or log it. If that member is the correct answer for any other code, say so in a comment on the member and the row stops firing.
  • Silent fallback default on unknown code src/Wasm/DrawnUi/WebInput.cs:182 — `PointerOf` maps every unrecognised code to `PointerDeviceType.Mouse`, one of the real values, with no log or throw — a malformed or new code silently reads as a known one. Throw on the unknown code, or log it. If that member is the correct answer for any other code, say so in a comment on the member and the row stops firing.
  • Silent fallback default on unknown code src/Wpf/Drawnui.Wpf/Views/Accessibility/DrawnUiAutomationPeers.cs:405 — `AriaToControlType` maps every unrecognised code to `AutomationControlType.Custom`, one of the real values, with no log or throw — a malformed or new code silently reads as a known one. Throw on the unknown code, or log it. If that member is the correct answer for any other code, say so in a comment on the member and the row stops firing.
GD1 · Unfinished & placeholder code · Placeholder literal left in code · ×7
  • Placeholder literal left in code src/Maui/Samples/FastRepro/MauiProgram.cs:14 — A placeholder string ("This is a single label with a multile te…") is still in shipped code — typical of generated boilerplate that was never filled in.
  • Placeholder literal left in code src/Maui/Samples/FastRepro/PlanesTest.cs:39 — A placeholder string ("Lorem ipsum dolor sit amet, consectetur …") is still in shipped code — typical of generated boilerplate that was never filled in.
  • Placeholder literal left in code src/Maui/Samples/Sandbox/MauiProgram.cs:10 — A placeholder string ("This is a single label with a multile te…") is still in shipped code — typical of generated boilerplate that was never filled in.
  • Placeholder literal left in code src/Maui/Samples/Player/MauiProgram.cs:13 — A placeholder string ("This is a single label with a multile te…") is still in shipped code — typical of generated boilerplate that was never filled in.
  • Placeholder literal left in code src/Net/Samples/VirtualizationHarnessDemo/BuiltinWindowChatRepro.cs:33 — A placeholder string (" lorem ipsum dolor") is still in shipped code — typical of generated boilerplate that was never filled in.
  • Placeholder literal left in code src/Net/Samples/VirtualizationHarnessDemo/ChatLikeScene.cs:163 — A placeholder string (" lorem ipsum dolor") is still in shipped code — typical of generated boilerplate that was never filled in.
  • Placeholder literal left in code src/Net/Samples/VirtualizationHarnessDemo/TelegramLikeRepro.cs:40 — A placeholder string (" lorem ipsum dolor") is still in shipped code — typical of generated boilerplate that was never filled in.
P10 · Library API & versioning · Implementation type on the public API · ×6
  • Implementation type on the public API src/Blazor/DrawnUi/Internals/Core/DrawnExtensions.cs:7 — 138 public types in `DrawnUi.Draw` are marked as implementation by their own namespace, folder or name: `DrawnExtensions` (src/Blazor/DrawnUi/Internals/Core/DrawnExtensions.cs:7, `Internals`), `DrawnUiApp` (src/Blazor/DrawnUi/Internals/Core/DrawnUiApp.Blazor.cs:5, `Internals`), `DrawnUiBlazorBuilder` (src/Blazor/DrawnUi/Internals/Core/DrawnUiBlazorBuilder.cs:5, `Internals`), `FluentExtensions` (src/Blazor/DrawnUi/Internals/Core/FluentExtensions.Blazor.cs:6, `Internals`), `FontCollectionExtensions` (src/Blazor/DrawnUi/Internals/Core/FontCollectionExtensions.cs:10, `Internals`), `SkiaFontManager` (src/Blazor/DrawnUi/Internals/Core/SkiaFontManager.cs:10, `Internals`), `SkiaView` (src/Blazor/DrawnUi/Internals/Core/SkiaView.cs:8, `Internals`), `SKCanvasViewWrap` (src/Blazor/DrawnUi/Internals/Core/SkiaView.cs:194, `Internals`), and 130 more. While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers.
  • Implementation type on the public API src/Maui/DrawnUi/Internals/Extensions/InternalExtensions.Maui.cs:5 — 8 public types in `DrawnUi.Extensions` are marked as implementation by their own namespace, folder or name: `InternalExtensions` (src/Maui/DrawnUi/Internals/Extensions/InternalExtensions.Maui.cs:5, `Internals`), `InternalExtensions` (src/Maui/DrawnUi/Internals/Extensions/InternalExtensions.Maui.cs:5, `Internals`), `InternalExtensions` (src/Maui/DrawnUi/Internals/Extensions/InternalExtensions.Maui.cs:5, `Internals`), `InternalExtensions` (src/Maui/DrawnUi/Internals/Extensions/InternalExtensions.Maui.cs:5, `Internals`), `InternalExtensions` (src/Maui/DrawnUi/Internals/Extensions/InternalExtensions.Maui.cs:5, `Internals`), `InternalExtensions` (src/Maui/DrawnUi/Internals/Extensions/InternalExtensions.Maui.cs:5, `Internals`), `InternalExtensions` (src/Maui/DrawnUi/Internals/Extensions/InternalExtensions.Maui.cs:5, `Internals`), `InternalExtensions` (src/Maui/DrawnUi/Internals/Extensions/InternalExtensions.Maui.cs:5, `Internals`). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers.
  • Implementation type on the public API src/Maui/DrawnUi/Internals/Helpers/Screen.Maui.cs:3 — 8 public types in `DrawnUi.Models` are marked as implementation by their own namespace, folder or name: `Screen` (src/Maui/DrawnUi/Internals/Helpers/Screen.Maui.cs:3, `Internals`), `Screen` (src/Maui/DrawnUi/Internals/Helpers/Screen.Maui.cs:3, `Internals`), `Screen` (src/Maui/DrawnUi/Internals/Helpers/Screen.Maui.cs:3, `Internals`), `Screen` (src/Maui/DrawnUi/Internals/Helpers/Screen.Maui.cs:3, `Internals`), `Screen` (src/Maui/DrawnUi/Internals/Helpers/Screen.Maui.cs:3, `Internals`), `Screen` (src/Maui/DrawnUi/Internals/Helpers/Screen.Maui.cs:3, `Internals`), `Screen` (src/Maui/DrawnUi/Internals/Helpers/Screen.Maui.cs:3, `Internals`), `Screen` (src/Maui/DrawnUi/Internals/Helpers/Screen.Maui.cs:3, `Internals`). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers.
  • Implementation type on the public API src/Maui/DrawnUi/Internals/Markup/MarkupExtensions.cs:4 — 8 public types in `DrawnUi.Internals.Markup` are marked as implementation by their own namespace, folder or name: `MarkupExtensions` (src/Maui/DrawnUi/Internals/Markup/MarkupExtensions.cs:4, `Internals`), `MarkupExtensions` (src/Maui/DrawnUi/Internals/Markup/MarkupExtensions.cs:4, `Internals`), `MarkupExtensions` (src/Maui/DrawnUi/Internals/Markup/MarkupExtensions.cs:4, `Internals`), `MarkupExtensions` (src/Maui/DrawnUi/Internals/Markup/MarkupExtensions.cs:4, `Internals`), `MarkupExtensions` (src/Maui/DrawnUi/Internals/Markup/MarkupExtensions.cs:4, `Internals`), `MarkupExtensions` (src/Maui/DrawnUi/Internals/Markup/MarkupExtensions.cs:4, `Internals`), `MarkupExtensions` (src/Maui/DrawnUi/Internals/Markup/MarkupExtensions.cs:4, `Internals`), `MarkupExtensions` (src/Maui/DrawnUi/Internals/Markup/MarkupExtensions.cs:4, `Internals`). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers.
  • Implementation type on the public API src/Maui/DrawnUi/Internals/Xaml/ColumnDefinitionTypeConverter.cs:8 — 40 public types in `DrawnUi.Infrastructure.Xaml` are marked as implementation by their own namespace, folder or name: `ColumnDefinitionTypeConverter` (src/Maui/DrawnUi/Internals/Xaml/ColumnDefinitionTypeConverter.cs:8, `Internals`), `ColumnDefinitionTypeConverter` (src/Maui/DrawnUi/Internals/Xaml/ColumnDefinitionTypeConverter.cs:8, `Internals`), `ColumnDefinitionTypeConverter` (src/Maui/DrawnUi/Internals/Xaml/ColumnDefinitionTypeConverter.cs:8, `Internals`), `ColumnDefinitionTypeConverter` (src/Maui/DrawnUi/Internals/Xaml/ColumnDefinitionTypeConverter.cs:8, `Internals`), `ColumnDefinitionTypeConverter` (src/Maui/DrawnUi/Internals/Xaml/ColumnDefinitionTypeConverter.cs:8, `Internals`), `ColumnDefinitionTypeConverter` (src/Maui/DrawnUi/Internals/Xaml/ColumnDefinitionTypeConverter.cs:8, `Internals`), `ColumnDefinitionTypeConverter` (src/Maui/DrawnUi/Internals/Xaml/ColumnDefinitionTypeConverter.cs:8, `Internals`), `ColumnDefinitionTypeConverter` (src/Maui/DrawnUi/Internals/Xaml/ColumnDefinitionTypeConverter.cs:8, `Internals`), and 32 more. While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers.
  • Implementation type on the public API src/Shared/DrawnUi/Internals/Models/SelectableAction.cs:3 — 32 public types in `DrawnUi.Internals` are marked as implementation by their own namespace, folder or name: `SelectableAction` (src/Shared/DrawnUi/Internals/Models/SelectableAction.cs:3, `Internals`), `SelectableAction` (src/Shared/DrawnUi/Internals/Models/SelectableAction.cs:3, `Internals`), `SelectableAction` (src/Shared/DrawnUi/Internals/Models/SelectableAction.cs:3, `Internals`), `SelectableAction` (src/Shared/DrawnUi/Internals/Models/SelectableAction.cs:3, `Internals`), `SelectableAction` (src/Shared/DrawnUi/Internals/Models/SelectableAction.cs:3, `Internals`), `SelectableAction` (src/Shared/DrawnUi/Internals/Models/SelectableAction.cs:3, `Internals`), `SelectableAction` (src/Shared/DrawnUi/Internals/Models/SelectableAction.cs:3, `Internals`), `SelectableAction` (src/Shared/DrawnUi/Internals/Models/SelectableAction.cs:3, `Internals`), and 24 more. While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers.
P2 · Observability · Console output used as the logging channel · ×4
  • Console output used as the logging channel src/Maui/DrawnUi/Platforms/Android/Super.Android.cs:750 — `src/Maui/DrawnUi/Platforms/Android/Super.Android.cs` reports through `Console.Write…` at line 750 although other files in its project log through a logger. Console lines carry no level, category or structured properties and never reach the log pipeline or its exporters.
  • Console output used as the logging channel src/Maui/DrawnUi/Platforms/Android/Super.Android.cs:837 — `src/Maui/DrawnUi/Platforms/Android/Super.Android.cs` reports through `Console.Write…` at line 837 although other files in its project log through a logger. Console lines carry no level, category or structured properties and never reach the log pipeline or its exporters.
  • Console output used as the logging channel src/Maui/DrawnUi/Platforms/iOS/Super.iOS.cs:111 — `src/Maui/DrawnUi/Platforms/iOS/Super.iOS.cs` reports through `Console.Write…` at line 111 although other files in its project log through a logger. Console lines carry no level, category or structured properties and never reach the log pipeline or its exporters.
  • Console output used as the logging channel src/Maui/DrawnUi/Platforms/MacCatalyst/Super.Mac.cs:173 — `src/Maui/DrawnUi/Platforms/MacCatalyst/Super.Mac.cs` reports through `Console.Write…` at line 173 although other files in its project log through a logger. Console lines carry no level, category or structured properties and never reach the log pipeline or its exporters.
X7 · Silent fallback defaults · Silent fallback default on parse failure · ×4
  • Silent fallback default on parse failure src/Shared/DrawnUi/Features/Meshes/SKMeshSpecification.cs:560 — `UniformBytes` falls back to `0` when `int.TryParse(array.Trim('[', ']'), out var count) && count > 0` 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.
  • Silent fallback default on parse failure src/Shared/DrawnUi/Features/Meshes/SKMeshSpecification.cs:991 — `IsPositionPassthrough` returns `false` when `main.Success` 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.
  • Silent fallback default on parse failure src/Shared/DrawnUi/Features/Keyboard/KeyboardManager.cs:55 — `MapBrowserCode` falls back to `InputKey.Unknown` when `Enum.TryParse<InputKey>(code, ignoreCase: false, out var mapped)` 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.
  • Silent fallback default on parse failure src/Wpf/Samples/HelloWpf/DevSnapshot.cs:49 — `ArmIfRequested` falls back to `2.5` when `double.TryParse(Environment.GetEnvironmentVariable("HELLOWPF_SNAPSHOT_DELAY"), o…` 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.
AX6 · Interface segregation · Fat interface · ×3
  • Fat interface: IDrawnBase (42 members) src/Shared/DrawnUi/Internals/Interfaces/IDrawnBase.cs:5 — `IDrawnBase` declares 42 members: `DrawingRect`, `Tag`, `IsVisible`, `IsDisposed`, `IsDisposing`, `IsVisibleInViewTree`, `GetOnScreenVisibleArea`, `Invalidate`, `InvalidateParents`, `ClipSmart`, `CreateClip`, `RegisterAnimator`, `UnregisterAnimator`, `UnregisterAllAnimatorsByType`, `RegisterGestureListener`, `UnregisterGestureListener`, `PostAnimators`, `Views`, `AddSubView`, `RemoveSubView`, `MeasuredSize`, `Destination`, `HeightRequest`, `WidthRequest`, `Height`, `Width`, `TranslationX`, `TranslationY`, `InputTransparent`, `IsClippedToBounds`, `ClipEffects`, `UpdateLocks`, `InvalidateByChild`, `UpdateByChild`, `ShouldInvalidateByChildren`, `RenderingScale`, `X`, `Y`, `InvalidateViewport`, `Repaint`, and 2 more. 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.
  • Fat interface: ISkiaControl (18 members) src/Shared/DrawnUi/Internals/Interfaces/ISkiaControl.cs:3 — `ISkiaControl` declares 18 members: `VisualLayer`, `Parent`, `Margin`, `Padding`, `SetParent`, `IsGhost`, `Clipping`, `ZIndex`, `OptionalOnBeforeDrawing`, `OnBeforeMeasure`, `Arrange`, `Render`, `RenderedAtDestination`, `SetChildren`, `Measure`, `HorizontalOptions`, `VerticalOptions`, `CanDraw`. 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.
  • Fat interface: ISkiaAccessibilityNode (18 members) src/Shared/DrawnUi/Internals/Interfaces/ISkiaAccessibilityNode.cs:9 — `ISkiaAccessibilityNode` declares 18 members: `AccessibilityId`, `AccessibilityRole`, `AccessibilityLabel`, `AccessibilityHint`, `AccessibilityCanInteract`, `AccessibilityIsPressed`, `AccessibilityIsExpanded`, `AccessibilityLive`, `IsAccessibilityElement`, `GetAccessibilityPixelRect`, `OnAccessibilityActivated`, `OnAccessibilityKey`, `GetAccessibilityValue`, `OnAccessibilitySetValue`, `NotifyAccessibility`, `OnAccessibilityUnregistered`, `NotifyAccessibilityFocused`, `OnAccessibilityFocused`. 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.
S1 · Web-Security Posture · No security response headers detected · ×3
  • No security response headers detected — None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, …) is configured — defense in depth, even when a reverse proxy could set them. (−2.0 on this card.)
  • No security response headers detected src/Blazor/Samples/BlazorSandboxHybrid/BlazorSandboxHybrid/Program.cs:4 — This web host's pipeline is composed here and adds no security response header (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, a frame policy) to what it serves.
  • No security response headers detected src/Blazor/Samples/BlazorSandboxServer/BlazorSandboxServer/Program.cs:5 — This web host's pipeline is composed here and adds no security response header (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, a frame policy) to what it serves.
D19 · Documentation Quality · Documentation · ×1
  • Documentation: no build, run or usage example src/Blazor/DrawnUi.Server/README.md:1 — `DrawnUi.Server` is a package (`PackageId`) and neither `src/Blazor/DrawnUi.Server/README.md` nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet.
D20 · ADR Quality · No ADRs found · ×1
  • No ADRs found src/Blazor/DrawnUi/DrawnUi.Blazor.csproj:1 — 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 `src/Blazor/DrawnUi/DrawnUi.Blazor.csproj` makes this repository a deployable product (line 1).
D26 · Project Cohesion · Split DrawnUi.Net(net9.0) · ×1
  • Split DrawnUi.Net(net9.0) src/Net/DrawnUi/DrawnUi.Net.csproj:1 — `DrawnUi.Net(net9.0)` overshoots its size bounds (107968 LoC, 591 public types across 18 namespaces). These parts reach the rest of the project only through its shared core (`(root)`, `Draw`), so they are the cleanest seams: `DrawnUi.Testing` (8 types in 4 files): 15 of 110 of its type references cross into a sibling namespace, and the rest of the project uses it 0 times and it uses the rest 59 times. Extract each into its own project.
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
M2 · Architecture documentation · No ADRs · ×1
  • No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
P12 · CI test-gate honesty · Sleep-based test synchronization · ×1
  • Sleep-based test synchronization — 20 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.
P2 · Observability · Logging is not universal · ×1
  • Logging is not universal — Only 22/30 service-like projects use logging (pure contract/DTO projects are excluded — they have nothing to log). Of those 30, 12 ship a process this repository operates; the rest are libraries their consumer hosts, where the logging decision belongs to the host.
P3 · Security & performance tooling · No SAST · ×1
  • No SAST REDACTED:6 — 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 4 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
P3 · Security & performance tooling · No dependency-update automation · ×1
  • No dependency-update automation Tests/Labels/LabelsBenchmarks.csproj:14 — `Tests/Labels/LabelsBenchmarks.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`.
P6 · Release Hygiene · No changelog · ×1
  • No changelog — No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
X2 · Cancellation propagation · Not all async methods take a CancellationToken · ×1
  • Not all async methods take a CancellationToken — Only 86/231 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.
X5 · Nullable reference types · Nullable reference types not enabled everywhere · ×1
  • Nullable reference types not enabled everywhere — 24/60 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.
X5 · Nullable reference types · Null-forgiving operator (`!`) suppressions override nullable warnings · ×1
  • Null-forgiving operator (`!`) suppressions override nullable warnings — ~0.1 `!` suppressions per 1k syntax nodes — 40 suppression(s) across the 605502 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.
Minor — 9 finding(s)
D24 · Comment Value · doc comments repeat the names · ×8
  • doc comments repeat the names src/Net/DrawnUi/Controls/SkiaShell.cs:75 — 17 of 871 documented parameters and 20 of 2712 summaries in `DrawnUi.Blazor` only repeat the member or parameter name (e.g. "Toast background." for `ToastBackgroundColor`). 496 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names src/SharedAdd3d/Renderer3D.cs:166 — 0 of 8 documented parameters and 1 of 288 summaries in `DrawnUi.Blazor.Add3d` only repeat the member or parameter name (e.g. "1 = cull on, 2 = off." for `Cull`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names src/SharedGame/DrawnGame.cs:56 — 0 of 3 documented parameters and 0 of 10 summaries in `DrawnUi.Blazor.Game` only repeat the member or parameter name (e.g. "" for `deltaSeconds`). 3 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names src/Maui/DrawnUi/Internals/Extensions/FluentExtensions.Maui.cs:186 — 4 of 149 documented parameters and 10 of 344 summaries in `DrawnUi.Maui(net9.0)` only repeat the member or parameter name (e.g. "The target property" for `targetProperty`). 94 documentation tag(s) are empty. This build requires documentation, so say what the name does not: units, ranges, null handling, side effects.
  • doc comments repeat the names src/Maui/Addons/DrawnUi.Maui.MapsUi/SkiaMapsUi.cs:407 — 0 of 8 documented parameters and 3 of 29 summaries in `DrawnUi.Maui.MapsUi(net9.0)` only repeat the member or parameter name (e.g. "Clears the Touch State" for `ClearTouchState`). 3 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names src/Wasm/DrawnUi/JsInterop.cs:82 — 0 of 15 documented parameters and 2 of 81 summaries in `DrawnUi.Wasm` only repeat the member or parameter name (e.g. "Get device pixel ratio" for `GetDevicePixelRatio`). This build requires documentation, so say what the name does not: units, ranges, null handling, side effects.
  • doc comments repeat the names Tests/PreviewTests/Views/Aloha/BaseChartDrawable.cs:153 — 13 of 68 documented parameters and 11 of 154 summaries in `PreviewTests(net9.0-android)` only repeat the member or parameter name (e.g. "Stroke size. Default is 2.5" for `StrokeSize`). 4 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names src/Tests/UnitTests/SkiaLayoutTests.cs:297 — 0 of 2 documented parameters and 0 of 22 summaries in `UnitTests` only repeat the member or parameter name (e.g. "" for `itemsSource`). 2 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
D10 · Test Quality · Mock framework · ×1
  • Mock framework: NSubstitute — UnitTests references NSubstitute.

Appendix B — Reproduction & audit trail

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

DimensionToolVersionCommandFindingsRaw output
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --log-opts "--full-history --all --skip=0 --max-count=200" --report-format json --report-path /tmp/watchdog-gitleaks-b5b4fda231cf4d5f92c8f74d2201e3d9/history.json --exit-code 0 --source .0artifacts/raw/gitleaks-history.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --log-opts "--full-history --all --skip=200 --max-count=800" --report-format json --report-path /tmp/watchdog-gitleaks-b5b4fda231cf4d5f92c8f74d2201e3d9/history-1.json --exit-code 0 --source .0artifacts/raw/gitleaks-history-1.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --log-opts "--full-history --all --skip=1000 --max-count=3161" --report-format json --report-path /tmp/watchdog-gitleaks-b5b4fda231cf4d5f92c8f74d2201e3d9/history-2.json --exit-code 0 --source .10artifacts/raw/gitleaks-history-2.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-b5b4fda231cf4d5f92c8f74d2201e3d9/tree.json --exit-code 0 --source .0artifacts/raw/gitleaks-tree.json
D29 · Static Analysis (SAST)semgrep—semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/canine-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off --exclude *.arrow --exclude *.avro --exclude *.csv --exclude *.dat --exclude *.db --exclude *.feather --exclude *.geojson --exclude *.h5 --exclude *.hdf5 --exclude *.jsonl --exclude *.log --exclude *.ndjson --exclude *.npy --exclude *.npz --exclude *.orc --exclude *.parquet --exclude *.pickle --exclude *.pkl --exclude *.psv --exclude *.sqlite --exclude *.sqlite3 --exclude *.tfrecord --exclude *.tsv --exclude *.txt --exclude "src/Native/winui/SkiaSharp.Views.WinUI.Native/SkiaSharp.Views.WinUI.Native/Generated Files" .19artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiesnuget—nuget: not applicable — nuget: the solution did not restore on the analyzer's .NET SDK (an SDK/target-framework/restore mismatch, common for an older codebase), so there was no restored dependency graph to scan0—
D30 · Dependency Vulnerabilitiestrivy—trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** .0artifacts/raw/trivy-fs.json
D31 · IaC & Container Securitytrivy—trivy config --format json --quiet .0artifacts/raw/trivy-config.json
D32 · Data Compliance (PII/GDPR)semgrep—semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. semgrep could not parse 15 file(s) — `src/Blazor/Samples/BlazorSandbox/Games/Parallax/ParallaxGame.cs`, `src/Blazor/Samples/BlazorSandbox/Layout/NavMenuItems.cs`, `src/Maui/DrawnUi/Platforms/Windows/ViewChainPanel.Windows.cs`, `src/Maui/DrawnUi/Super.Maui.cs`, `src/OpenTk/DrawnUi/Accessibility/LinuxAtSpiProvider.cs`, … (+10 more) — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real.0—
D37 · Vulnerability-disclosure Policydisclosure—disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.0—
D40 · Network Egress Confinementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.0—
D41 · Kernel & Syscall Confinementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.0—
D42 · Runtime Threat Enforcementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.0—
D43 · Malicious Dependenciestrivy—trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** .0artifacts/raw/trivy-fs.json

Run 01a1e65a-801e-787f-b049-1cd2dc9eeaa1 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.

Appendix C — Personal-data map

Every field, property and record parameter whose name is conventional personal data — 1 field(s) across 1 category, each with an exact repo-relative file:line. This is the data inventory a compliance review starts from — right-to-erasure, retention, minimisation. Detected by NAME, from the C# syntax tree, with a deliberately specific identifier classifier — the same one the C1–C5 compliance cards use to decide whether personal data is present, so CardDefinition or FileName don't trip. Two caveats stated rather than glossed: those cards additionally require corroboration (a persistence/account signal, or two distinct PII categories) that this inventory deliberately does not, so it lists more than they gate on; and D32 Data Compliance shares nothing with it — that dimension is a separate semgrep ruleset for personal data leaking into logs, URLs and browser storage, and a clean D32 result says nothing about this list. Informational — it feeds no score.

Email — 1 field(s)
  • GalleryPage._emailField src/Shared/Samples/Add3dGallery.Shared/Pages/GalleryPage.Form.cs:18

Downloadable artifacts

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

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