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

vchelaru/Gum

Measured 17 November 2026, 09:40 UTC, at code version 116c3de

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

Code coverage is not measured: The suite ran but produced no coverage data.

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

CAI score 32.6out of 100 Provisional

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: 411,461 lines of product code in 217 projects, tests not counted · Estimated rebuild effort: about 9.6 person-years · Weakest lens: Performance, 20.0

Findings by how serious they are

335 critical 3046 serious 389 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
17 November 2026, 09:40 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 code didn't build, so the score is provisional
We couldn't build the code: the build stopped with 9 errors. The dimensions that need a working build, such as complexity, duplication and dead code, were measured on an incomplete picture of the code, so their grades and the score are provisional. Fix the build errors and run the survey again for a final score. The first errors: MSB3073: The command "dotnet "/tmp/nuget-packages/stride.assetcompiler/4.4.0/buildTransitive/../tools/net10.0-windows7.0/Stride.AssetCompiler.dll" build --disable-auto-compile --project-configuration "Debug" --platform=Windows --project-configuration=Debug --compile-property:StrideGraphicsApi=Vulkan --output-path="Samples/StrideGum/StrideGumSample/bin/Debug/net10.0-windows7.0/data" --build-path="Samples/StrideGum/StrideGumSample/obj//stride/assetbuild/data" --msbuild-uptodatecheck-filebase="Samples/StrideGum/StrideGumSample/obj/Debug/net10.0-windows7.0/stride/assetcompiler-uptodatecheck" "Samples/StrideGum/StrideGumSample/obj/Debug/net10.0-windows7.0/StrideGumSample.sdbuild"" exited with code 150.; CS2001: Source file 'Runtimes/SokolGum/../../MonoGameGum/Forms/DefaultVisuals/V3/ScrollViewerVisualSizedToChildren.cs' could not be found.; CS0246: The type or namespace name 'Gum' could not be found (are you missing a using directive or an assembly reference?); CS0246: The type or namespace name 'RenderingLibrary' could not be found (are you missing a using directive or an assembly reference?); CS0246: The type or namespace name 'IRenderableIpso' could not be found (are you missing a using directive or an assembly reference?); CS0246: The type or namespace name 'GraphicalUiElement' could not be found (are you missing a using directive or an assembly reference?)

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 ▸

92of 92 dimensions measured by tools.
3737of 3770 findings point to an exact file and line, so you can open each one in the code. The other 33 concern the repository as a whole, such as missing documentation.
92dimensions across 7 lenses, read from 411,461 lines of product code in 217 projects.
Chapters

Executive summary

vchelaru/Gum has a provisional result, because the code didn't build. It scores 32.6 out of 100, and the ratings may change once the code builds. 64 of its 335 critical findings are security problems in the build pipeline and in its code.

Performance, at 20.0, is the weakest lens and counts most in the score. The best first step is removing the blocking calls, worth about 11.3 points. Handling the discarded errors comes next, worth about 3.5 points. Raising Performance to 70 would lift the score to about 43.4.

Fifty-seven pipeline tools are referenced by a changeable name, so the build pipeline can be tampered with. Five pipeline steps put outside input straight into a shell command, so an attacker can run commands in the build pipeline, and sixty-eight errors are caught and ignored, so failures can go unnoticed. Pinning each tool to an exact version, passing outside input through environment variables and handling or logging the ignored errors would close these risks. Limiting each secret to its own step would fix the secret exposed to more of the pipeline than needed, and fixing the weaknesses the scanner points to would deal with the security weakness in the code. The 131 data fields that are written but never read need removing.

The product code is 411,461 lines, about €1,400,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.
Performance 20.0 · counts for 46%Code Health 34.6 · counts for 25%Production Readiness 45.9 · counts for 14%Security and Compliance 48.7 · counts for 8%Architecture 49.3 · counts for 4%Accessibility 70.2 · counts for 2%Maturity 83.2 · counts for 1%

If Performance rose from 20.0 to 70, the lowest score rated Strong, the score would rise from 32.6 to about 43.4.

Code composition: what the lines of code are
Business logic 19%Supporting code 21%Tests 57%Generated by tools 3%Code analyzers 0%
Rebuild cost: about €1,400,000 · Estimate
Cost to rebuild€460,000 to €2,300,000, for 7,635 to 24,679 hours of work, about 9.6 person-years for 5 to 19 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 33. 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: 411,461 lines of product code
Comment linesThe estimate prices 336,439 lines. Comment lines count towards the size of 411,461 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
Make the call chain async end-to-end and await it — never block on a Task with .Wait()/.GetAwaiter().GetResult().
Raises the score by about 11.3 points · Medium effort · Async & latency hygiene
2
Resolve the 68 EmptyCatchBlock finding(s) in Explicit Debt — start with Keyboard.cs (4), ReferenceTypes.cs (4), BehaviorFormsPropertyApplier.cs (3).
Raises the score by about 3.5 points · Medium effort · Explicit Debt
3
Resolve the 27 NoWarnInCsproj finding(s) in Explicit Debt — start with GumCommon.csproj (4), SkiaGum.csproj (4), UnityGum.csproj (4).
Raises the score by about 3.5 points · Medium effort · Explicit Debt

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.

If you do one thing first · First action
Fix the build. The code didn't build, so the dimensions that need a working build were measured on an incomplete picture of the code, and every grade in this report is provisional. Once the build works, the next survey gives a final score. The compiler's first errors: MSB3073: The command "dotnet "/tmp/nuget-packages/stride.assetcompiler/4.4.0/buildTransitive/../tools/net10.0-windows7.0/Stride.AssetCompiler.dll" build --disable-auto-compile --project-configuration "Debug" --platform=Windows --project-configuration=Debug --compile-property:StrideGraphicsApi=Vulkan --output-path="Samples/StrideGum/StrideGumSample/bin/Debug/net10.0-windows7.0/data" --build-path="Samples/StrideGum/StrideGumSample/obj//stride/assetbuild/data" --msbuild-uptodatecheck-filebase="Samples/StrideGum/StrideGumSample/obj/Debug/net10.0-windows7.0/stride/assetcompiler-uptodatecheck" "Samples/StrideGum/StrideGumSample/obj/Debug/net10.0-windows7.0/StrideGumSample.sdbuild"" exited with code 150.; CS2001: Source file 'Runtimes/SokolGum/../../MonoGameGum/Forms/DefaultVisuals/V3/ScrollViewerVisualSizedToChildren.cs' could not be found.; CS0246: The type or namespace name 'Gum' could not be found (are you missing a using directive or an assembly reference?); CS0246: The type or namespace name 'RenderingLibrary' could not be found (are you missing a using directive or an assembly reference?); CS0246: The type or namespace name 'IRenderableIpso' could not be found (are you missing a using directive or an assembly reference?); CS0246: The type or namespace name 'GraphicalUiElement' could not be found (are you missing a using directive or an assembly reference?)
Based on: Solution Shape
Where the investment is most exposed · Value at risk
This code would cost about €1,400,000 to build again, about 9.6 person-years of work. Its weakest lens is Performance, at 20.0 (Critical). Performance is about whether the code is written and measured with speed in mind. Because the weakest lens counts most in the score, work on Performance also moves the score most.
Based on: the rebuild estimate · the Performance grade · how much each lens counts
What to do: Start with the Performance actions in Top priorities.
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.8 out of 10. Code at that level is slower to change than clean code, and we estimate the extra work at 3% to 7% on every change. The history of the code shows how much it changes: about 972,188 lines over the last 90 days, which is about 3,942,762 lines a year. At that pace, the extra work comes to an estimated 299.3 to 1795.5 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 Kni Kni ctx:MonoGameGum MonoGameGum 3 projects Kni->ctx:MonoGameGum ctx:Runtimes Runtimes 22 projects Kni->ctx:Runtimes MonoGame MonoGame MonoGame->ctx:MonoGameGum MonoGame->ctx:Runtimes BrutalGumSample BrutalGumSample BrutalGumSample->ctx:Runtimes BrutalGumSampleOgl BrutalGumSampleOgl BrutalGumSampleOgl->ctx:Runtimes FnaSample FnaSample FnaSample->ctx:MonoGameGum FnaSample->ctx:Runtimes FontPlayground.MonoGame FontPlayground.MonoGame ctx:Integrations Integrations 5 projects FontPlayground.MonoGame->ctx:Integrations FontPlayground.MonoGame->ctx:MonoGameGum Raylib Raylib Raylib->ctx:Integrations Raylib->ctx:Runtimes FontResizeDemo.MonoGame FontResizeDemo.MonoGame FontResizeDemo.MonoGame->ctx:Integrations FontResizeDemo.MonoGame->ctx:MonoGameGum GameUiSamples GameUiSamples GameUiSamples->ctx:MonoGameGum GameUiSamplesSkia GameUiSamplesSkia GameUiSamplesSkia->ctx:Runtimes Gum Gum ctx:Gum Gum 13 projects Gum->ctx:Gum ctx:InputLibrary InputLibrary 1 project Gum->ctx:InputLibrary Gum->ctx:Runtimes ctx:Tool Tool 5 projects Gum->ctx:Tool ctx:Tools Tools 6 projects Gum->ctx:Tools ctx:WpfDataUi WpfDataUi 1 project Gum->ctx:WpfDataUi ctx:Wpf Wpf 1 project Gum->ctx:Wpf Avalonia Avalonia Avalonia->ctx:InputLibrary Avalonia->ctx:Runtimes Avalonia->ctx:Tool Avalonia->ctx:Tools ctx:XnaAndWinforms XnaAndWinforms 1 project Avalonia->ctx:XnaAndWinforms Cli Cli Cli->ctx:Runtimes Cli->ctx:Tools FormsStaging FormsStaging FormsStaging->ctx:Tools GumFromZipFile GumFromZipFile GumFromZipFile->ctx:MonoGameGum GumIcons GumIcons GumPreview GumPreview GumPreview->ctx:MonoGameGum GumPreview->ctx:Runtimes GumProjectFontGenerator GumProjectFontGenerator GumProjectFontGenerator->ctx:Tools Android Android ctx:Samples Samples 5 projects Android->ctx:Samples BlazorGL BlazorGL BlazorGL->ctx:Samples DesktopGL DesktopGL DesktopGL->ctx:Samples WindowsDX WindowsDX WindowsDX->ctx:Samples KniGumFromFile.Android KniGumFromFile.Android KniGumFromFile.Android->ctx:Samples KniGumFromFile.BlazorGL KniGumFromFile.BlazorGL KniGumFromFile.BlazorGL->ctx:Samples KniGumFromFile.DesktopGL KniGumFromFile.DesktopGL KniGumFromFile.DesktopGL->ctx:Samples KniGumFromFile.WindowsDX KniGumFromFile.WindowsDX KniGumFromFile.WindowsDX->ctx:Samples KniGumInCode.Android KniGumInCode.Android KniGumInCode.Android->ctx:Samples KniGumInCode.BlazorGL KniGumInCode.BlazorGL KniGumInCode.BlazorGL->ctx:Samples KniGumInCode.DesktopGL KniGumInCode.DesktopGL KniGumInCode.DesktopGL->ctx:Samples KniGumInCode.WindowsDX KniGumInCode.WindowsDX KniGumInCode.WindowsDX->ctx:Samples KniSkiaGumCodeGeneration KniSkiaGumCodeGeneration KniSkiaGumCodeGeneration->ctx:Runtimes KniSkiaGumFontLoading KniSkiaGumFontLoading KniSkiaGumFontLoading->ctx:Runtimes KniSkiaGumFromFile KniSkiaGumFromFile KniSkiaGumFromFile->ctx:Runtimes KniSkiaGumImmediateMode KniSkiaGumImmediateMode KniSkiaGumImmediateMode->ctx:Runtimes KniSkiaGumInCode KniSkiaGumInCode KniSkiaGumInCode->ctx:Runtimes KniSkiaGumSample KniSkiaGumSample KniSkiaGumSample->ctx:Runtimes MonoGameAndGum MonoGameAndGum MonoGameAndGum->ctx:MonoGameGum MonoGameGumCodeGeneration MonoGameGumCodeGeneration MonoGameGumCodeGeneration->ctx:MonoGameGum MonoGameGumFontLoading MonoGameGumFontLoading MonoGameGumFontLoading->ctx:MonoGameGum MonoGameGumFormsSample MonoGameGumFormsSample MonoGameGumFormsSample->ctx:MonoGameGum MonoGameGumFormsSample->ctx:Samples MonoGameGumFromFile MonoGameGumFromFile MonoGameGumFromFile->ctx:MonoGameGum MonoGameGumFromFileAndroid MonoGameGumFromFileAndroid MonoGameGumFromFileAndroid->ctx:MonoGameGum MonoGameGumFromFileDX MonoGameGumFromFileDX MonoGameGumFromFileDX->ctx:MonoGameGum MonoGameGumImmediateMode MonoGameGumImmediateMode MonoGameGumImmediateMode->ctx:Integrations MonoGameGumImmediateMode->ctx:MonoGameGum MonoGameGumInCode MonoGameGumInCode MonoGameGumInCode->ctx:Integrations MonoGameGumInCode->ctx:MonoGameGum MonoGameGumInCode->ctx:Runtimes MonoGameGumThemesShowcase MonoGameGumThemesShowcase MonoGameGumThemesShowcase->ctx:MonoGameGum MonoGameGumThemesShowcase->ctx:Runtimes ctx:Themes Themes 20 projects MonoGameGumThemesShowcase->ctx:Themes MultiGumServiceSample MultiGumServiceSample MultiGumServiceSample->ctx:MonoGameGum MultiGumServiceSample->ctx:Runtimes RaylibGumThemesShowcase RaylibGumThemesShowcase RaylibGumThemesShowcase->ctx:Runtimes RaylibGumThemesShowcase->ctx:Themes SampleProject SampleProject SampleProject->ctx:WpfDataUi SilkNetGumSample SilkNetGumSample SilkNetGumSample->ctx:Runtimes SilkNetGumThemesShowcase SilkNetGumThemesShowcase SilkNetGumThemesShowcase->ctx:Runtimes SilkNetGumThemesShowcase->ctx:Themes SkiaGumWpfSample SkiaGumWpfSample SkiaGumWpfSample->ctx:Runtimes SokolGumFromFile SokolGumFromFile SokolGumFromFile->ctx:Runtimes SokolGumSample SokolGumSample SokolGumSample->ctx:Runtimes StrideGumSample StrideGumSample StrideGumSample->ctx:Runtimes TextureFilterDemo.MonoGame TextureFilterDemo.MonoGame TextureFilterDemo.MonoGame->ctx:Integrations TextureFilterDemo.MonoGame->ctx:MonoGameGum WpfRenderSurfaceHostHarness WpfRenderSurfaceHostHarness WpfRenderSurfaceHostHarness->ctx:XnaAndWinforms WpfRenderSurfaceHostHarness->ctx:Wpf ctx:Core Core 1 project ctx:SpecializedXnaControls SpecializedXnaControls 1 project ctx:SpecializedXnaControls->ctx:InputLibrary ctx:SpecializedXnaControls->ctx:MonoGameGum ctx:SpecializedXnaControls->ctx:XnaAndWinforms ctx:Gum->ctx:SpecializedXnaControls ctx:Gum->ctx:InputLibrary ctx:Gum->ctx:MonoGameGum ctx:Gum->ctx:Tool ctx:Gum->ctx:Tools ctx:Gum->ctx:WpfDataUi ctx:Gum->ctx:XnaAndWinforms ctx:Gum->ctx:Wpf ctx:InputLibrary->ctx:Tools ctx:Integrations->ctx:MonoGameGum ctx:Integrations->ctx:Runtimes ctx:Runtimes->ctx:MonoGameGum ctx:Samples->ctx:MonoGameGum ctx:Samples->ctx:Runtimes ctx:Themes->ctx:Integrations ctx:Themes->ctx:MonoGameGum ctx:Themes->ctx:Runtimes ctx:Tool->ctx:SpecializedXnaControls ctx:Tool->ctx:InputLibrary ctx:Tool->ctx:MonoGameGum ctx:Tool->ctx:Runtimes ctx:Tool->ctx:Tools ctx:Tool->ctx:XnaAndWinforms ctx:Tool->ctx:Wpf ctx:Tools->ctx:Core ctx:Tools->ctx:MonoGameGum ctx:Tools->ctx:Runtimes ctx:WpfDataUi->ctx:Core ctx:XnaAndWinforms->ctx:InputLibrary ctx:Wpf->ctx:InputLibrary ctx:Wpf->ctx:XnaAndWinforms __more__ +5 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.

275 modules, with 1328 dependencies between them. 8 loops run through 93 of the modules, marked above the diagonal.

The table shows the 40 modules with the most connections; 235 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 ToolsUtilities2 Gum.ProjectServices.CodeGeneration3 Gum.Services.Dialogs4 RenderingLibrary.Graphics5 RenderingLibrary6 Gum.Renderables7 Gum.ToolStates8 Gum.GueDeriving9 Gum.Logic.FileWatch10 Gum.ToolCommands11 Gum.ProjectServices12 Gum.PropertyGridHelpers13 Gum.Plugins.InternalPlugins.VariableGrid14 Gum.Controls15 Gum.Undo16 Gum.Services17 Gum.ViewModels18 Gum.Menus19 Gum.Plugins.BaseClasses20 Gum.Plugins21 Gum.Wireframe.Editors22 Gum.Wireframe23 Gum.Input24 Gum25 Gum.Plugins.InternalPlugins.TreeView26 Gum.Managers27 Gum.Dialogs28 Gum.Logic29 Gum.DataTypes.Variables30 Gum.DataTypes.Behaviors31 Gum.DataTypes32 Gum.Commands33 StateAnimationPlugin.ViewModels34 CodeOutputPlugin35 Gum.Plugins.InternalPlugins.EditorTab.Services36 StateAnimationPlugin37 Gum.Avalonia.Services38 Gum.Plugins.InternalPlugins.EditorTab39 TextureCoordinateSelectionPlugin.Logic40 Gum.Avalonia.Plugins.EditorTab
1 ToolsUtilities
2 Gum.ProjectServices.CodeGeneration16827141
3 Gum.Services.Dialogs16
4 RenderingLibrary.Graphics32117
5 RenderingLibrary1212
6 Gum.Renderables472116133
7 Gum.ToolStates2311696221
8 Gum.GueDeriving28411811110
9 Gum.Logic.FileWatch613412
10 Gum.ToolCommands411222144104
11 Gum.ProjectServices2617445
12 Gum.PropertyGridHelpers1251154743171133109
13 Gum.Plugins.InternalPlugins.VariableGrid46614121982943923575314
14 Gum.Controls122113
15 Gum.Undo142141510266
16 Gum.Services33232117485
17 Gum.ViewModels111125122
18 Gum.Menus1115142
19 Gum.Plugins.BaseClasses121121011263362
20 Gum.Plugins222221222510266131
21 Gum.Wireframe.Editors33333336312376
22 Gum.Wireframe24915732233132317415212156
23 Gum.Input11
24 Gum12641112411114121573
25 Gum.Plugins.InternalPlugins.TreeView112431121116229
26 Gum.Managers1613511645326981653296123141325168022
27 Gum.Dialogs14102102317566
28 Gum.Logic348215732221014567113
29 Gum.DataTypes.Variables14
30 Gum.DataTypes.Behaviors34
31 Gum.DataTypes121245
32 Gum.Commands2251111224195646
33 StateAnimationPlugin.ViewModels4311132171
34 CodeOutputPlugin124475184264
35 Gum.Plugins.InternalPlugins.EditorTab.Services1332121323192
36 StateAnimationPlugin24626211231946312
37 Gum.Avalonia.Services11122553161
38 Gum.Plugins.InternalPlugins.EditorTab2124222227214613183431469
39 TextureCoordinateSelectionPlugin.Logic491114512133122
40 Gum.Avalonia.Plugins.EditorTab221111212121812311
Uses a module listed above itPart of a loopThe module itself
1 ToolsUtilities2 Gum.ProjectServices.CodeGeneration3 Gum.Services.Dialogs4 RenderingLibrary.Graphics5 RenderingLibrary6 Gum.Renderables7 Gum.ToolStates8 Gum.GueDeriving9 Gum.Logic.FileWatch10 Gum.ToolCommands11 Gum.ProjectServices12 Gum.PropertyGridHelpers13 Gum.Plugins.InternalPlugins.VariableGrid14 Gum.Controls15 Gum.Undo16 Gum.Services17 Gum.ViewModels18 Gum.Menus19 Gum.Plugins.BaseClasses20 Gum.Plugins21 Gum.Wireframe.Editors22 Gum.Wireframe23 Gum.Input24 Gum25 Gum.Plugins.InternalPlugins.TreeView26 Gum.Managers27 Gum.Dialogs28 Gum.Logic29 Gum.DataTypes.Variables30 Gum.DataTypes.Behaviors31 Gum.DataTypes32 Gum.Commands33 StateAnimationPlugin.ViewModels34 CodeOutputPlugin35 Gum.Plugins.InternalPlugins.EditorTab.Services36 StateAnimationPlugin37 Gum.Avalonia.Services38 Gum.Plugins.InternalPlugins.EditorTab39 TextureCoordinateSelectionPlugin.Logic40 Gum.Avalonia.Plugins.EditorTabToolsUtilities1Gum.ProjectServices.CodeGeneration2Gum.Services.Dialogs3RenderingLibrary.Graphics4RenderingLibrary5Gum.Renderables6Gum.ToolStates7Gum.GueDeriving8Gum.Logic.FileWatch9Gum.ToolCommands10Gum.ProjectServices11Gum.PropertyGridHelpers12Gum.Plugins.InternalPlugins.VariableGrid13Gum.Controls14Gum.Undo15Gum.Services16Gum.ViewModels17Gum.Menus18Gum.Plugins.BaseClasses19Gum.Plugins20Gum.Wireframe.Editors21Gum.Wireframe22Gum.Input23Gum24Gum.Plugins.InternalPlugins.TreeView25Gum.Managers26Gum.Dialogs27Gum.Logic28Gum.DataTypes.Variables29Gum.DataTypes.Behaviors30Gum.DataTypes31Gum.Commands32StateAnimationPlugin.ViewModels33CodeOutputPlugin34Gum.Plugins.InternalPlugins.EditorTab.Services35StateAnimationPlugin36Gum.Avalonia.Services37Gum.Plugins.InternalPlugins.EditorTab38TextureCoordinateSelectionPlugin.Logic39Gum.Avalonia.Plugins.EditorTab401682714116321171212472116133231169622128411811110613412411222144104261744512511547431711331094661412198294392357531412211314214151026633232117485111125122111514212112101126336222222122251026613133333336312376249157322331323174152121561112641112411114121573112431121116229161351164532698165329612314132516802214102102317566348215732221014567113143412124522511112241956464311132171124475184264133212132319224626211231946312111225531612124222227214613183431469491114512133122221111212121812311+235 more modules (most-connected shown)

At a glance — Code Health · 34.6 · Weak · gated by D18, R2, R3, X4 ·

At a glance — Architecture · 49.3 · Weak · gated by R11, AX2 ·

At a glance — Maturity · 83.2 · Strong ·

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

At a glance — Security · 48.7 · Weak · gated by D29, D36, C1 ·

At a glance — Accessibility · 70.2 · Strong ·

At a glance — Performance · 20.0 · Critical · 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 — Injection92High / Critical
A03:2025 — Software Supply Chain Failures15Medium

Roadmap

Top priorities: Make the call chain async end-to-end and await it — never block on a Task with .Wait()/.GetAwaiter().GetResult(); Resolve the 131 WriteOnlyPrivateField finding(s) in Explicit Debt — start with Renderer.cs (63), Game1.cs (13), PasswordBoxVisual.cs (9); Resolve the 27 NoWarnInCsproj finding(s) in Explicit Debt — start with GumCommon.csproj (4), SkiaGum.csproj (4), UnityGum.csproj (4).

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

Do thisHelpsEffortDimension
Make the call chain async end-to-end and await it — never block on a Task with .Wait()/.GetAwaiter().GetResult().+11.3 ptsMediumAsync & latency hygiene
Resolve the 68 EmptyCatchBlock finding(s) in Explicit Debt — start with Keyboard.cs (4), ReferenceTypes.cs (4), BehaviorFormsPropertyApplier.cs (3).+3.5 ptsMediumExplicit Debt
Resolve the 27 NoWarnInCsproj finding(s) in Explicit Debt — start with GumCommon.csproj (4), SkiaGum.csproj (4), UnityGum.csproj (4).+3.5 ptsMediumExplicit Debt
Resolve the 131 WriteOnlyPrivateField finding(s) in Explicit Debt — start with Renderer.cs (63), Game1.cs (13), PasswordBoxVisual.cs (9).+3.5 ptsHighExplicit Debt
Resolve the 40 finding(s) in Cyclomatic Complexity.+3.0 ptsMediumCyclomatic Complexity
Resolve the 2 Shell project finding(s) in Solution Shape — start with Sokol.csproj, SkiaGumMonogame.csproj.+1.2 ptsLowSolution Shape
Resolve the 2 Solution references a project that does not exist finding(s) in Solution Shape — start with AllLibraries.sln, FnaSample.sln.+1.2 ptsLowSolution Shape
Resolve the 1 Build failed finding(s) in Solution Shape.+0.6 ptsLowSolution Shape

File quality

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

FileScoreBandWorst signal
Tool/TreeViewPlugin.Core/ElementTreeViewManager.cs1.0SlopExplicit Debt: EmptyCatchBlock
RenderingLibrary/Graphics/Text.cs1.0SlopExplicit Debt: WriteOnlyPrivateField
GumDataTypes/GumProjectSave.cs1.0SlopExplicit Debt: EmptyCatchBlock
RenderingLibrary/Graphics/Renderer.cs1.0SlopExplicit Debt: WriteOnlyPrivateField
Tools/Gum.Presentation/Reflection/LateBinder.cs1.0SlopExplicit Debt: WriteOnlyPrivateField
Runtimes/SkiaGum.Maui/SkiaGumCanvasView.cs1.0SlopExplicit Debt: WriteOnlyPrivateField
Gum/CsvLibrary/Reflection/PropertyValuePair.cs1.2SlopExplicit Debt: WriteOnlyPrivateField
Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs1.2SlopExplicit Debt: EmptyCatchBlock
REDACTED1.3SlopStatic Analysis (SAST): High: REDACTED
Gum/Wireframe/CustomSetPropertyOnRenderable.cs1.6SlopExplicit Debt: EmptyCatchBlock
MonoGameGum/Forms/Controls/Games/DialogBox.cs1.6SlopExplicit Debt: WriteOnlyPrivateField
Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs1.6SlopExplicit Debt: WriteOnlyPrivateField
Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/SetVariableLogic.cs1.9SlopExplicit Debt: WriteOnlyPrivateField
MonoGameGum/GueDeriving/TextRuntime.cs1.9SlopExplicit Debt: EmptyCatchBlock
Samples/KniGumInCode/KniGumInCodeCommon/KniGumInCodeGame.cs2.0SlopExplicit Debt: WriteOnlyPrivateField
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
MonoGameGum/GumService.XnaLike.cs2.4SlopExplicit Debt: EmptyCatchBlock
REDACTED2.5SlopStatic Analysis (SAST): High: REDACTED
Tools/Gum.Presentation/Logic/ReferenceTypes.cs2.5SlopExplicit 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 — 335

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

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

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 92 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 — 92 dimensions across the health lenses
D1D2D3D4D5D6D7D10D11D13D14D15D17D18D19D20D21D22D24D25D26D27D28D29D30D34D35D36D43D44AC1AC2AC3AC5AC6AX1AX10AX2AX3AX4AX5AX6AX8AX9C1C4ED5GD1IC1M1M2M3M4P1P10P2P3P4P6P7PF3R1R10R11R2R3R4R5R6R7R8R9X1X12X13X16X18X19X2X20X21X23X24X25X26X27X28X29X3X30X4X5

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, 3737 of 3770 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 01a1e8e0-e7fe-7397-83f2-8678be5038e8.

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

Run transparency — what happened this run

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

  • D8 Code Coverage — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Coverage NOT MEASURED: this repository's test suite BUILT and its tests PASSED in this run — so neither the build nor our analyzer environment is in question — but the run produced no coverage data, and it captured no message saying why. The usual cause is that the test projects wire up no coverage collector (`--collect:"XPlat Code Coverage"` needs a `coverlet.collector` PackageReference); on a very large suite the instrumented run can also exceed its per-target budget before writing anything. Add a `coverlet.collector` PackageReference, or commit the Cobertura/OpenCover/lcov report your CI already produces, and real coverage is measured. It is excluded from the score rather than counted as a near-zero defect. You can widen what we reach: add the `coverlet.collector` package to the test projects to enable coverage (or commit the Cobertura/OpenCover/lcov report your CI produces).
  • D10 Test Quality — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. The 19,590 test(s) behind this row are the ones the C# collector could read, and this repository also carries at least 12 test source file(s) (.ts) that it cannot: it parses C# syntax and matches C# test attributes, so a vitest/jest/JUnit/pytest-style suite is invisible to it. Skipped tests, zero-assertion tests and the other quality signals on this row are UNMEASURED in that suite — their absence from the counts above is a gap in this analyzer's language coverage, not a finding that those tests are sound.
  • D12 Dependency Hygiene — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `dotnet list package` did not return usable output (restore or query failed); no outdated/vulnerable/deprecated data to assess. The tool said: /usr/share/dotnet/sdk/10.0.400/NuGet.targets(521,5): error MSB3202: The project file "fna/FNA.Core.csproj" was not found. [AllLibraries.sln].
  • 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. Dependency Hygiene ran out of its 5-minute budget before it had finished, so what it reports here is a floor rather than a complete count. The rows above are real and stand; what is not known is how many more there are. This is a limit of the analysis run, not a finding about this repository.
  • D14 License Compliance — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This repository declares a Unity UPM manifest (Packages/manifest.json or a package's package.json), but the licence verdict published here was taken over its NuGet package dependencies. Nothing was read about its Upm dependencies' licensing in either direction, and a clean score on this card must not be read as covering them.
  • D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-maintainer repository — bus factor is not applicable (53 contributor(s) across 8671 commit(s) sampled, automation and bot accounts excluded). One of them holds 92% of the history; the other 52 hold 0.2% 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: 'fna/FNA.Core.csproj'.
  • 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.
  • D21 Naming Consistency — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. PREREGISTRATION version 20's fallback (adjudication D21-sample3-v3): this rule kind was adjudicated below the 95 % precision gate, so its candidates are counted here and not published, and the score covers only the acronym-spelling and awaitable-suffix rules. The kind returns as rows only after it shows a measured precision; this says nothing about whether these names are consistent.
  • D23 Boundary Type-Coupling — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Large codebase (400,669 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. 1 of 3 declared ecosystem(s) (npm) 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.
  • D30 Dependency Vulnerabilities — 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. Osv-scanner exited 1 with no findings — dependency CVEs were not measured. 1 of 3 declared ecosystem(s) (npm) WERE scanned and every vulnerability they reported is included in this result; osv was not, so this dimension's score covers less than the dependency surface this repository declares, and nothing here is evidence that osv is free of known-vulnerable dependencies.
  • 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. `DataUi.Core/LateBinder.cs`, `Gum/Wireframe/CustomSetPropertyOnRenderable.cs`, `GumCommon/Bundle/FontReferenceCollector.cs`, `GumCommon/Mvvm/PathSegment.cs`, `GumCommon/Mvvm/PropertyPathObserver.cs`, … (+120 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.
  • D43 Malicious Dependencies — 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. Osv-scanner exited 1 with no findings — dependency CVEs were not measured. 1 of 2 declared ecosystem(s) (npm) WERE scanned and every vulnerability they reported is included in this result; osv was not, so this dimension's score covers less than the dependency surface this repository declares, and nothing here is evidence that osv is free of known-vulnerable dependencies.
  • 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. 172 further occurrence(s) are not listed individually; the score already reflects all 212.
  • AX4 Dependency direction — 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. 51 further occurrence(s) are not listed individually; the score already reflects all 91.
  • AXB1 Runtime evidence locked — no reproducible boot — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Subject: 1 markup document(s) — HTML, Razor, JSX, Vue, Svelte or server templates. The Runtime Evidence tier boots an app only via docker-compose, an Aspire AppHost, a Dockerfile, an npm dev script, a web service's own toolchain entry point (cargo, go, dotnet, Python, Spring Boot), or an Android app's own Gradle wrapper (run on an emulator); an Apple or Flutter app needs a host it lacks. None applied, so no live runtime a11y/egress/header evidence was collected. You can widen what we reach: add a docker-compose.yml (or an Aspire AppHost) that brings the app up with its dependencies. We then boot it in an isolated sandbox and gathers real runtime evidence — you change nothing in your pipeline (no CI step, no SDK).
  • 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. 669 further occurrence(s) are not listed individually; the score already reflects all 709.
  • 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.
  • 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. 913 further occurrence(s) are not listed individually; the score already reflects all 953.
  • 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.
  • R2 Cyclomatic Complexity — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 12 further occurrence(s) are not listed individually; the score already reflects all 52.
  • 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. 97 further occurrence(s) are not listed individually; the score already reflects all 137.
  • 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. 43 further occurrence(s) are not listed individually; the score already reflects all 83.
  • 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. 56 further occurrence(s) are not listed individually; the score already reflects all 96.
  • X7 Silent fallback defaults — 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. 23 further occurrence(s) are not listed individually; the score already reflects all 63.
  • Package restore incomplete — third-party types were unresolved in part of the solution — NuGet restore did not complete for Gum/StateAnimationPlugin/StateAnimationPlugin.csproj, Gum/TextureCoordinateSelectionPlugin/TextureCoordinateSelectionPlugin.csproj, Gum/CodeOutputPlugin/CodeOutputPlugin.csproj, Gum/Gum.csproj, Tool/EditorTabPlugin_XNA/EditorTabPlugin_XNA.csproj and 6 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.
  • D7 Architectural Integrity: Layering is checked against detected/declared rules — an architecture whose boundaries live in convention or in code review, not in a rule a scanner can read, is not enforced here.
  • D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
  • D11 Test Reliability: Flakiness is inferred from history/markers — we run the suite once (for coverage), not the repeated runs under varied conditions that reveal nondeterminism, so a flaky test never recorded as failing is invisible here.
  • D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
  • D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
  • D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
  • D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
  • D18 Solution Shape: Build integrity reflects whether the solution compiled in this environment — a build that needs a private feed, a specific SDK, or a generated file absent from the repo can read as broken when it is merely unreproducible here.
  • D19 Documentation Quality: Documentation quality publishes two things only: a runnable or packaged unit with no example, and a multi-project root README that maps none of its parts. It does not judge clarity, and its other checks (overview, licence, boilerplate, structure, empty sections, XML-doc coverage) are withheld after adjudication: their candidates are counted in the card's gaps, not shown as rows. A false statement in a document is M4's; units are .NET projects only.
  • D20 ADR Quality: ADR quality checks the structure of the decision records present: it cannot know about decisions made and never recorded, and it does not judge how well a record argues its case. Records in a language the section lexicon does not cover are not evaluated.
  • D21 Naming Consistency: Naming consistency compares each name with the convention its structural peers follow in this repository: it cannot tell whether a consistently used name is a good one, and languages other than C# and TypeScript are not measured.
  • D22 Internal API Consistency: API consistency compares the call shapes of members that play the same role on the exposed C# surface: whether the API suits its callers is not measured, and surfaces in other languages are not measured.
  • D24 Comment Value: Comment value is measured as redundancy only: a comment that repeats its code's words is found, but a paraphrase in other words, a vague comment, or one the code contradicts is not, and whether a comment is valuable is not claimed. Comments in other scripts or languages, and outside C#, are not judged.
  • D25 ADR Conformance: ADR conformance checks only decisions stated in a checkable form (a ruled-out element, package or dependency, an adr-rules block, a declared delivery status): a decision written only as prose is unverifiable, and decisions never written down are not checked.
  • D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
  • D27 Navigability: Indirection/navigability is structural — it measures hops to follow a call, not whether that indirection buys real flexibility or just ceremony.
  • D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
  • D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
  • D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
  • D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
  • D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
  • D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
  • D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
  • AC1 Text alternatives: Alt-text is detected structurally — the scan sees that an alternative EXISTS, not whether it meaningfully describes the image, and decorative-vs-missing is judged by attribute shape; runtime-injected images and a non-role=img decorative svg are out of scope. This is accessibility readiness, never a WCAG conformance claim.
  • AC2 Forms & labels: Label association is read from static markup — a label wired up at runtime (JS-set aria-labelledby, framework-injected ids) reads as missing, a present label says nothing about whether its text is correct. A known UI-library field component (e.g. a JSX <TextField>) is now checked conservatively — flagged only when it carries NO label/aria-label/aria-labelledby/id/name — but wrapper/context-labelled libraries (Chakra/Radix FormControl+FormLabel) aren't statically visible (possible false positive) and non-JSX lowercased components are still skipped. A click handler on a plain element is now asked for a name too (it is a control the author declared), but the subtree test that answers it is deliberately generous: any DYNAMIC text expression in the subtree counts as a name, so an icon chosen by a ternary ({cond ? <IconA/> : <IconB/>}) reads as named, and a glyph component from a library the icon-import list does not know still names its parent. A clean result is "no unlabelled control found", not a labelling proof.
  • AC3 Page structure: Page structure is read from the static markup tree — landmarks, headings and lang injected at runtime aren't seen, heading ORDER is checked structurally (not against the rendered visual hierarchy), and lang/title/main fire only on full documents, never partials, and the data-table check sees header-cell presence (a <th> exists), not whether each header correctly associates with its cells. Static readiness, not conformance.
  • AC5 ARIA correctness: ARIA correctness is checked against the static role/attribute shape — roles/attributes set dynamically aren't seen, a valid role says nothing about whether it matches the element's real behaviour, and required-state checks are suppressed when a JSX spread could supply them. The two-branch toggle check (a control whose state is conveyed only by which of two mutually exclusive branches renders) reads CONDITIONALS THAT ARE ATTRIBUTES — Vue v-if/v-else/v-show and Alpine x-if/x-show — so the same toggle written as a Svelte {#if} block or a JSX ternary is control flow the markup model never projects as a branch and is not seen at all.
  • AC6 Visual & motion safety: Contrast and motion safety are PARTIAL by construction — literal colours (hex/rgb/hsl/named) in inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS top-level declarations are read (same-rule/same-element colour+background pairs only); computed/runtime/theme colour, external-CDN stylesheets, CSS-in-JS dynamic (${…}) and nested-selector colours, cross-element pairs and image contrast stay out of reach, so a clean result is bounded by what the static CSS itself shows.
  • AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
  • AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
  • C4 Data Retention: This control is scored from in-repo evidence only — its real-world effectiveness, exercised only at runtime, is outside a static scan.
  • 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.5 / 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.5 / 10 · rule-coverage 100% · ceiling Prevented

332 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was CustomSetPropertyOnRenderable.SetPropertyOnRenderableFunc at 163. A further 9 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 VariableSaveExtensionMethods.ConvertEnumerationValuesToInts at 24 — they are counted neither in the figure above nor in this dimension's score. 2 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: Tools/Gum.Presentation/Managers/TreeNodeImageLogic.cs (TreeNodeImageLogic.GetImageIndexForInstance at 17), Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/ExclusionsLogic.cs (ExclusionsLogic.GetIfVariableIsExcluded at 16). 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.

extract.extractBoxTree::walk (cyclomatic 85) · ×6Tool/HtmlToGum/converter/extract.ts:705
map.mapTreeToScreen::walk (cyclomatic 152) · ×5Tool/HtmlToGum/converter/map.ts:1515
CustomSetPropertyOnRenderable.SetPropertyOnRenderableFunc (cyclomatic 163)Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs:507
GraphicalUiElement.UpdateLayoutWithinSession (cyclomatic 123)GumRuntime/GraphicalUiElement.UpdateLayout.cs:212
CodeGenerator.SetXamarinFormsLayoutPosition (cyclomatic 117)Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:3049

+ 318 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 CustomSetPropertyOnRenderable.SetPropertyOnRenderableFunc (cyclomatic 163), map.mapTreeToScreen::walk (cyclomatic 152), GraphicalUiElement.UpdateLayoutWithinSession (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.5 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.8 / 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.8 / 10 · rule-coverage 100% · ceiling Prevented

590 method(s) exceeded the cognitive complexity threshold of 15; the worst was map.mapTreeToScreen::walk at 255.

map.mapTreeToScreen::walk (cognitive 255) · ×6Tool/HtmlToGum/converter/map.ts:1515
extract.extractBoxTree::walk (cognitive 87) · ×5Tool/HtmlToGum/converter/extract.ts:705
convert.rasterizeEffects::walk (cognitive 30) · ×2Tool/HtmlToGum/converter/convert.ts:317
StringFunctions.GetIntAfter (cognitive 25) · ×2ToolsUtilities/StringFunctions.cs:48
HyTaleInventoryScreen.AssignIcon (cognitive 20) · ×2Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:152

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

What to do

  1. Bring the 10 bodies over 120 down to 120 or less in Cognitive Complexity — start with map.mapTreeToScreen::walk (cognitive 255), CsvReader.ReadField (cognitive 254), CustomSetPropertyOnRenderable.SetPropertyOnRenderableFunc (cognitive 251). — 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 10 together lifts Cognitive Complexity from 4.8 to about 5.7/10, projected with the scoring formula itself and assuming each lands exactly at 120; a cleaner split scores higher.

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

D3 · God Classes8.7 / 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.7 / 10 · rule-coverage 100% · ceiling Prevented

187 god class(es) detected.

FileTooLong: CodeGeneration/CodeGenerator.cs · ×59Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs
TooManyMethods: GraphicalUiElement · ×55GumRuntime/GraphicalUiElement.SetValuesAndStates.cs
MethodTooLong: CustomSetPropertyOnRenderable.SetPropertyOnRenderableFunc · ×46Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs:507
ClassTooLong: CustomSetPropertyOnRenderable · ×22Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs
FunctionTooLong: extract.extractBoxTree · ×5Tool/HtmlToGum/converter/extract.ts:11

What to do

  1. Resolve the 59 FileTooLong finding(s) in God Classes — start with Text.cs (3), CustomSetPropertyOnRenderable.cs (2), NineSlice.cs (2). — One of this dimension's main actionable groups (59 warning-level).
  2. Resolve the 55 TooManyMethods finding(s) in God Classes — start with Text.cs (3), GraphicalUiElement.SetValuesAndStates.cs, CodeGenerator.cs. — One of this dimension's main actionable groups (55 warning-level).
  3. Resolve the 46 MethodTooLong finding(s) in God Classes — start with CustomSetPropertyOnRenderable.cs (6), CodeGenerator.cs (5), NineSlice.cs (3). — One of this dimension's main actionable groups (46 warning-level).

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

D4 · Code Duplication7.0 / 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 7.0 / 10 · rule-coverage 100% · ceiling Verified

592 duplicated block group(s) detected. 7.5 % of the production lines (30,201 of 402,157) are in a reported copy. A further 619 rows report members as variants of one another; the share counts each copied line once, however many rows cite it. 347 of the 1211 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 (12 lines × 2) · ×24RenderingLibrary/Graphics/NineSlice.cs:1321
Duplicated block (13 lines × 2) · ×24DataUi.Core/LateBinder.cs:654
Duplicated block (6 lines × 2) · ×23DataUi.Core/Controls/TextBoxDisplayLogic.cs:263
Duplicated block (9 lines × 2) · ×22Tools/Gum.Cli/Commands/DiffStandardsCommand.cs:46
Duplicated block (10 lines × 2) · ×21Themes/Gum.Themes.Template.MonoGame/RadioButtonVisual.cs:94

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

What to do

  1. Resolve the 24 Duplicated block (12 lines × 2) finding(s) in Code Duplication — start with Game1.cs (4), NineSlice.cs (3), CustomPropertySaveJson.cs (2). — One of this dimension's main actionable groups (24 warning-level).
  2. Resolve the 24 Duplicated block (13 lines × 2) finding(s) in Code Duplication — start with HyTaleInventoryScreen.cs (3), LateBinder.cs (2), NineSlice.cs (2). — One of this dimension's main actionable groups (24 warning-level).
  3. Resolve the 23 Duplicated block (6 lines × 2) finding(s) in Code Duplication — start with ComboBoxVisual.cs (3), TextBoxDisplayLogic.cs, LinePolygon.cs. — One of this dimension's main actionable groups (23 warning-level).

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

D5 · Coupling9.5 / 10Adequategated by 4 critical 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.5 / 10 · rule-coverage 100% · ceiling Prevented

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

Layer violation: Domain → Web · ×4Tool/EditorTabPlugin.Core/EditorTabPlugin.Core.csproj:49
Off the main sequence: SkiaGum(net8.0) · ×10Runtimes/SkiaGum/SkiaGum.csproj:1
Unstable project SkiaGum.MauiRuntimes/SkiaGum.Maui/SkiaGum.Maui.csproj:1
Unstable project SokolGumRuntimes/SokolGum/SokolGum.csproj:1
Off the main sequence: GumCommon(net8.0) · ×2GumCommon/GumCommon.csproj:1

What to do

  1. Resolve the 4 Layer violation finding(s) in Coupling — start with EditorTabPlugin.Core.csproj, StateAnimationPlugin.Core.csproj, TextureCoordinatePlugin.Core.csproj. — One of this dimension's main actionable groups (4 issue-level).
  2. Resolve the 10 Off the main sequence finding(s) in Coupling — start with SkiaGum.csproj, RaylibGum.csproj, DataUi.Core.csproj. — One of this dimension's main actionable groups (10 warning-level).
  3. Resolve the 1 Unstable project SkiaGum.Maui finding(s) in Coupling — start with SkiaGum.Maui.csproj. — One of this dimension's main actionable groups (1 warning-level).

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

D6 · Cohesion (LCOM4)9.8 / 10Stronggated by 18 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.8 / 10 · rule-coverage 100% · ceiling Verified

18 of 1115 classes have LCOM4 above 3.

Low cohesion: PluginBase (LCOM4 91) · ×18Tools/Gum.Presentation/Plugins/BaseClasses/PluginBase.cs:24

What to do

  1. Resolve the 18 Low cohesion finding(s) in Cohesion (LCOM4) — start with PluginBase.cs, InteractiveGue.cs, GumProjectSave.cs. — One of this dimension's main actionable groups (18 warning-level).

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

D7 · Architectural Integrity10.0 / 10Exemplary✓ Tool-verified

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

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

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

All 15 mechanizable ADR(s) are enforced: 15 by analyzers, 0 by tests. Cycles found: 0.

✓ On the Gold path — maintain.

Detailed fixes: d7_recommendation.md.

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

5 skipped (5 with a documented reason), 11 zero-assertion, 9 whose failure is swallowed by a catch-all, 16 mock references across 19590 tests. Measured on the C# suite only — at least 12 test source file(s) (.ts) went unread, so its test quality is unmeasured and is not in these counts.

No assertions: SetBinding_ShouldBeReAssignable · ×11MonoGameGum.Tests/Forms/FrameworkElementBindingTests.cs:117
Test cannot fail: CategoryColorsAtZoomLevels · ×9Tests/Gum.Avalonia.Tests/Screenshots/CategoryColorScreenshotTests.cs:35
Test project verifies nothing: AutomatedTestsTool/Tests/AutomatedTests/UnitTest1.cs:15
Mock-dominated test: HandleVariableSet_does_nothing_when_no_state_is_selected · ×2Tests/Gum.Presentation.Tests/Plugins/CodeOutputPlugins/ParentSetLogicTests.cs:32
Mock framework: Moq · ×16

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

What to do

  1. Resolve the 11 No assertions finding(s) in Test Quality — start with FrameworkElementBindingTests.cs (2), SpriteRuntimeTests.cs (2), HotkeyManagerNudgeTests.cs (2). — One of this dimension's main actionable groups (11 warning-level).
  2. Resolve the 9 Test cannot fail finding(s) in Test Quality — start with TextureRegionsScreenshotTests.cs (4), CategoryColorScreenshotTests.cs (2), ExportAsImageScreenshotTests.cs. — One of this dimension's main actionable groups (9 warning-level).
  3. Resolve the 1 Test project verifies nothing finding(s) in Test Quality — start with UnitTest1.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

0 flaky across 1 measured tier(s). .NET suite (the runs D8 measures coverage on): measured (0 flaky).

✓ 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 Compliance10.0 / 10Exemplary○ Nothing flagged

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

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

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

0 of 802 packages use a banned license. ★ DEPTH: this repository's MSBuild projects declare 127 direct `PackageReference`(s), and 140 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 a Unity UPM manifest (Packages/manifest.json or a package's 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.

✓ On the Gold path — maintain.

Detailed fixes: d14_recommendation.md.

D15 · Churn × Complexity Hotspots9.8 / 10Stronggated by 123 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.8 / 10 · rule-coverage 100% · ceiling Documented

Top hotspots: Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs (28×163=4564); Gum/Wireframe/CustomSetPropertyOnRenderable.cs (57×73=4161); Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs (58×47=2726) Repeated repair below the complexity floor: Tool/Gum.Avalonia/Plugins/EditorTab/WireframeCanvasControl.cs (5 of 9 changes were fixes); Tool/Gum.Avalonia/Shell/AvaloniaNativeMenuBuilder.cs (4 of 6 changes were fixes); Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Services/CameraController.cs (4 of 6 changes were fixes)

Hotspot: Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs · ×111Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs:507
Repeated repair: Tool/Gum.Avalonia/Plugins/EditorTab/WireframeCanvasControl.cs · ×12Tool/Gum.Avalonia/Plugins/EditorTab/WireframeCanvasControl.cs:45

What to do

  1. Resolve the 111 Hotspot finding(s) in Churn × Complexity Hotspots — start with Text.cs (3), Program.cs (3), CustomSetPropertyOnRenderable.cs (2). — One of this dimension's main actionable groups (111 warning-level).
  2. Resolve the 12 Repeated repair finding(s) in Churn × Complexity Hotspots — start with WireframeCanvasControl.cs, AvaloniaNativeMenuBuilder.cs, CameraController.cs. — One of this dimension's main actionable groups (12 warning-level).

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

D17 · Explicit Debt7.9 / 10Adequategated by 238 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 7.9 / 10 · rule-coverage 100% · ceiling Prevented

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

WriteOnlyPrivateField · ×131DataUi.Core/LateBinder.cs:78
EmptyCatchBlock · ×68AvaloniaDataUi/Controls/EditTrackingTextBox.cs:159
NoWarnInCsproj · ×27Gum/Gum.csproj:20
FileScopedPragmaDisable · ×8Tests/Gum.ProjectServices.Tests/NewProjectFollowUpStepTests.cs:1
DisabledAnalyzers · ×2Gum/GumFormsPlugin/GumFormsPlugin.csproj:8

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

What to do

  1. Resolve the 131 WriteOnlyPrivateField finding(s) in Explicit Debt — start with Renderer.cs (63), Game1.cs (13), PasswordBoxVisual.cs (9). — One of this dimension's main actionable groups (131 issue-level).
  2. Resolve the 68 EmptyCatchBlock finding(s) in Explicit Debt — start with Keyboard.cs (4), ReferenceTypes.cs (4), BehaviorFormsPropertyApplier.cs (3). — One of this dimension's main actionable groups (68 issue-level).
  3. Resolve the 27 NoWarnInCsproj finding(s) in Explicit Debt — start with GumCommon.csproj (4), SkiaGum.csproj (4), UnityGum.csproj (4). — One of this dimension's main actionable groups (27 issue-level).

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

D18 · Solution Shape3.0 / 10Weak✓ 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 3.0 / 10 · rule-coverage 100% · ceiling Documented

217 projects, 9424 source files, 864311 hand-written lines of code (400669 production / 463642 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 24726 generated (machine-written code — designer, scaffolded and tool-emitted files — excluded from quality), 517 inter-project edges (build failed). Measured across 44 solutions loaded as one workspace: `AllLibraries.sln`, `GumFull.sln`, `Gum.slnx`, `Samples/WpfRenderSurfaceHostHarness/WpfRenderSurfaceHostHarness.sln`, `Samples/MonoGameGumThemesShowcase/MonoGameGumThemesShowcase.slnx`, `Samples/GameUiSamples/GameUiSamples.sln`, `Samples/GumFormsSample/MonoGameGumFormsSample.sln`, `Samples/MVVM/MonoGameAndGum.sln`, `Samples/MonoGameGumInCode/MonoGameGumInCode.sln`, `Samples/GameUiSamplesSkia/GameUiSamplesSkia.sln`, `Samples/MultiGumServiceSample/MultiGumServiceSample.sln`, `Samples/MonoGameGumFromFile/MonoGameGumFromFile.sln`, `Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode.sln`, `Samples/MonoGameGumCodeGeneration/MonoGameGumCodeGeneration.sln`, `Samples/FontPlayground/FontPlayground.MonoGame.sln`, `Samples/TextureFilterDemo/TextureFilterDemo.MonoGame.sln`, `Samples/FontResizeDemo/FontResizeDemo.MonoGame.sln`, `Samples/GumFromZipFile/GumFromZipFile.sln`, `Samples/MonoGameGumFontLoading/MonoGameGumFontLoading.sln`, `GumProjectFontGenerator/GumProjectFontGenerator.sln`, `SkiaGum.sln`, `Samples/GumFormsSample/KniGumFormsSample.sln`, `Samples/MauiSkiaGum/MauiSkiaGum.sln`, `Samples/KniSkiaGumCodeGeneration/KniSkiaGumCodeGeneration.sln`, `Samples/BrutalGum/BrutalGumSample.sln`, `Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode.sln`, `Samples/SilkNetGum/SilkNetGumSample.sln`, `Samples/StrideGum/StrideGumSample.sln`, `Samples/KniSkiaGumInCode/KniSkiaGumInCode.sln`, `Samples/KniSkiaGum/KniSkiaGumSample.sln`, `Samples/KniSkiaGumFontLoading/KniSkiaGumFontLoading.sln`, `Samples/KniSkiaGumFromFile/KniSkiaGumFromFile.sln`, `Samples/SkiaGumWpfSample/SkiaGumWpfSample.sln`, `Samples/raylib/RaylibSample.sln`, `Samples/FontPlayground/FontPlayground.Raylib.sln`, `Samples/RaylibGumThemesShowcase/RaylibGumThemesShowcase.slnx`, `Samples/KniGumFromFile/KniGumFromFile.sln`, `Samples/SokolGum/SokolGumSample.slnx`, `Samples/SokolGumFromFile/SokolGumFromFile.slnx`, `Samples/KniGumInCode/KniGumInCode.sln`, `Samples/SilkNetGumThemesShowcase/SilkNetGumThemesShowcase.slnx`, `WpfDataUi/SampleProject/SampleProject.sln`, `Samples/FnaGum/FnaSample.sln`, `Runtimes/Python/GumToPythonHelpers/GumToPythonHelpers.sln`.

Solution references a project that does not exist · ×2AllLibraries.sln
Build failed
Shell project: Sokol · ×2Runtimes/Sokol/Sokol.csproj
Thin analysable surface across projects: GumToPythonHelpersRuntimes/Python/GumToPythonHelpers/GumToPythonHelpers.csproj

What to do

  1. Resolve the 2 Solution references a project that does not exist finding(s) in Solution Shape — start with AllLibraries.sln, FnaSample.sln. — One of this dimension's main actionable groups (2 warning-level).
  2. Resolve the 2 Shell project finding(s) in Solution Shape — start with Sokol.csproj, SkiaGumMonogame.csproj. — One of this dimension's main actionable groups (2 recommendation-level).
  3. Resolve the 1 Build failed finding(s) in Solution Shape. — 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.6 / 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.6 / 10 · rule-coverage 100% · ceiling Documented

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

Documentation: no build, run or usage exampleIntegrations/KernSmith/KernSmith.GumCommon/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 Quality9.9 / 10Exemplary✓ 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 9.9 / 10 · rule-coverage 100% · ceiling Documented

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

ADR superseded but its status says otherwiseDirection/decisions/0002-target-code-first-frameworks-not-engines.md:1detected by adr-integrity

✓ On the Gold path — maintain.

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

D21 · Naming Consistency0.0 / 10Critical✓ Tool-verified

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

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

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

3 naming inconsistencies among 29 declarations measured against a convention their peers follow.

`RefreshUI` spells `UI` where 23 names in the project spell it `Ui` · ×2Tools/Gum.Presentation/Menus/StandardMenuModelBuilder.cs:223
`RefreshUI` spells `UI` where 12 names in the project spell it `Ui`Gum/Plugins/InternalPlugins/MenuStripPlugin/MenuStripManager.cs:54

What to do

  1. Resolve the 2 `RefreshUI` spells `UI` where 23 names in the project spell it `Ui` finding(s) in Naming Consistency — start with StandardMenuModelBuilder.cs, StateTreeController.cs. — One of this dimension's main actionable groups (2 recommendation-level).
  2. Resolve the 1 `RefreshUI` spells `UI` where 12 names in the project spell it `Ui` finding(s) in Naming Consistency — start with MenuStripManager.cs. — One of this dimension's main actionable groups (1 recommendation-level).

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

D22 · Internal API Consistency10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether the internal API surface is consistent and coherent.

Method: Call-shape rules (A1-A9) over the structured code model of the intentionally exposed C# surface: members of one type, overloads of one name and the same slot across sibling types are compared, and a member that makes a caller use a different convention for the same kind of operation is flagged. Deterministic, no model. Advisory.

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

0 API inconsistencies among 4 exposed members measured against a convention their peers follow.

✓ On the Gold path — maintain.

Detailed fixes: d22_recommendation.md.

D24 · Comment Value9.2 9.1 / 10Exemplary✓ 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 9.1 / 10 · rule-coverage 99% · ceiling Documented

146 of 17902 judged comments only repeat the code they sit on (0.8 %). 189 comment(s) in another language or script were not judged.

redundant comment · ×120DataUi.Core/LateBinder.cs:607
doc comments repeat the names · ×25spikes/AvaloniaCanvasSpike/Shared/ICanvasRenderer.cs:48

✓ On the Gold path — maintain.

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

D25 · ADR Conformance10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether the code actually follows the decisions recorded in the project's ADRs.

Method: Each binding ADR read for checkable forms: a backticked element its Decision section rules out, a ruled-out package the manifests declare, a forbidden module dependency, an opt-in adr-rules block, and a declared delivery status the code does not yet carry. A prose decision with no checkable form is unverifiable, neither a finding nor a pass. Deterministic, no model. Advisory.

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

0 of 2 checkable records are broken by the code or by their own declared delivery (2 of 20 binding records state a rule in checkable form or declare their delivery; prose decisions are unverifiable).

✓ On the Gold path — maintain.

Detailed fixes: d25_recommendation.md.

D26 · Project Cohesion8.3 / 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 8.3 / 10 · rule-coverage 100% · ceiling Documented

18 of 212 projects flagged as possibly oversized/incoherent.

Projects may be oversized for their cohesion · ×18GumCommon/GumCommon.csproj:1

What to do

  1. Resolve the 18 Projects may be oversized for their cohesion finding(s) in Project Cohesion — start with GumCommon.csproj, Gum.Presentation.csproj, GumCore.DesktopGlNet6.csproj. — One of this dimension's main actionable groups (18 recommendation-level).

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

D27 · Navigability5.5 / 10Adequate✓ 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 5.5 / 10 · rule-coverage 100% · ceiling Documented

73 % of calls cross a namespace and 2 % go through an interface, but 62 % of collaborators are co-located — so following a call takes several hops. Baseline: large — vertical-slice locality expected.

Pass-through layer · ×6Tools/Gum.Presentation/PropertyGridHelpers/StateReferencingInstanceMember.cs:28

What to do

  1. Resolve the 6 Pass-through layer finding(s) in Navigability — start with StateReferencingInstanceMember.cs, StrideVulkanTarget.cs, StrideDirect3D11Target.cs. — One of this dimension's main actionable groups (6 recommendation-level).

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

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

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

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

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

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

✓ On the Gold path — maintain.

Detailed fixes: d28_recommendation.md.

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

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

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

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

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

92 finding(s): 0 critical, 64 high, 27 medium, 1 low. 54 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 146 file(s) — `.github/scripts/smoke-test-package.sh` (lines 94–96), `.github/scripts/test-concurrent.sh` (line 62), `DataUi.Core/LateBinder.cs`, `Gum/Wireframe/CustomSetPropertyOnRenderable.cs` (line 72), `GumCommon/Bundle/FontReferenceCollector.cs` (line 525), … (+141 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 9 of those file(s) — `MonoGameGum/Forms/Data/Binding.cs`, `Tests/Gum.Avalonia.Tests/NativeMenuBuilderTests.cs`, `Tests/Gum.Mvvm.Benchmarks/Accessors.cs`, `Tests/Gum.Mvvm.Benchmarks/Harness.cs`, `Tests/Gum.Mvvm.Benchmarks/RefModels.cs`, … (+4 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 7 of those file(s) — `DataUi.Core/LateBinder.cs`, `Runtimes/BrutalGum.Vulkan/Vulkan/VulkanPresenter.cs`, `Runtimes/RaylibGum/RenderingLibrary/SystemManagers.cs`, `Runtimes/RaylibGum/RenderingLibrary/TtfFontLoader.cs`, `Tests/Gum.Avalonia.Tests/VariableGrid/VariableReferenceAndTypeScenarioTests.cs`, … (+2 more) — the break is at a TYPE DECLARATION (a C# primary constructor semgrep's grammar cannot parse), so the loss is wider than the named lines: rules scoped to that type see no type to scope to and are blind over its whole body, while rules matching statements keep working there. Absence of a type-scoped finding in those types is not evidence of anything. Separately, one or more rules could not re-parse an embedded snippet in 8 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

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

What to do

  1. Resolve the 3 REDACTED finding(s) charged to Static Analysis (SAST) — the other 54 are reported here at file:line but scored by D36 (supply-chain provenance), which charges them once. — One of this dimension's main actionable groups (57 issue-level, 3 of them charged here).
  2. Resolve the 5 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (3), REDACTED (2). — One of this dimension's main actionable groups (5 issue-level).
  3. Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).

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 1 ecosystem(s) that were scanned (npm). Partial dependency scan: 1 of 3 declared ecosystem(s) were scanned (npm), and the findings above are real and complete for them. nuget,osv 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; osv: osv-scanner exited 1 with no findings — dependency CVEs were not measured), 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.

D34 · Knowledge Freshness9.8 / 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 9.8 / 10 · rule-coverage 100% · ceiling Documented

20 of 992 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is Gum/GumFigmaIconRipper/Program.cs. Counted over 992 of the 1902 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

Orphaned file · ×20Gum/GumFigmaIconRipper/Program.cs:1
Orphaned files with no living knowledge

✓ On the Gold path — maintain.

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

D35 · Change Coupling9.9 / 10Adequategated by 3 critical 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: ErrorDocsRegistry.cs↔HeadlessErrorChecker.cs 85%; HotkeyManager.cs↔HotkeyViewModel.cs 83%; UndoManager.cs↔UndosViewModel.cs 75%

Boundary-crossing change coupling: MainEditorTabPlugin.cs ↔ WireframeEditor.cs · ×3Tool/EditorTabPlugin_XNA/MainEditorTabPlugin.cs:1
Change coupling: ErrorDocsRegistry.cs ↔ HeadlessErrorChecker.cs · ×9Tools/Gum.ProjectServices/ErrorDocsRegistry.cs:1

What to do

  1. Resolve the 3 Boundary-crossing change coupling finding(s) in Change Coupling — start with MainEditorTabPlugin.cs, AnimationChainListSave.cs, MainStateAnimationPlugin.cs. — One of this dimension's main actionable groups (3 issue-level).
  2. Resolve the 9 Change coupling finding(s) in Change Coupling — start with UndoManager.cs (2), ErrorDocsRegistry.cs, HotkeyManager.cs. — One of this dimension's main actionable groups (9 warning-level).

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

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

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

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

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

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

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

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

What to do

  1. Resolve the 4 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (4 warning-level).
  2. Resolve the 4 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (4 warning-level).
  3. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — 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 known-vulnerable dependencies in the 1 ecosystem(s) that were scanned (npm). Partial dependency scan: 1 of 2 declared ecosystem(s) were scanned (npm), and the findings above are real and complete for them. osv was not scanned (osv: osv-scanner exited 1 with no findings — dependency CVEs were not measured), so this is not the whole dependency surface and the result is reported at reduced confidence.

✓ On the Gold path — maintain.

Detailed fixes: d43_recommendation.md.

D44 · Platform End-of-Life6.0 / 10Adequate✓ 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 6.0 / 10 · rule-coverage 100% · ceiling Documented

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

End-of-life runtime: .NET Framework net452WpfDataUi/SampleProject/SampleProject/SampleProject.csproj:12

What to do

  1. Resolve the 1 End-of-life runtime finding(s) in Platform End-of-Life — start with SampleProject.csproj. — One of this dimension's main actionable groups (1 warning-level).

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

Frontend & cross-cutting dimensions

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

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

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

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

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

AC2 · Forms & labels7.7 / 10Strong✓ 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 <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id. (×16) — Direction/settings-design/mock-settings.html:60, Direction/settings-design/mock-settings.html:61, Direction/settings-design/mock-settings.html:63, …

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 structure6.2 / 10Adequate✓ Tool-verified

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

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

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

  • No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>. — Direction/settings-design/mock-settings.html:2
  • Skipping heading levels breaks the document outline assistive tech relies on. Don't jump levels — increase by at most one. — Direction/settings-design/mock-settings.html:92
  • With more than one navigation landmark, each needs an aria-label/aria-labelledby (e.g. "Primary", "Footer") so assistive tech can tell them apart. At least one nav here is unlabelled. — Tool/HtmlToGum/fidelity/frozen/mdn-background-size/index.html:1

What to do

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

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

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

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

AC6 · Visual & motion safety5.1 / 10Adequate✓ 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.

  • `.btn` sets color: #fff on background-color: #2f7fb0 — 4.4:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — Direction/settings-design/mock-settings.html:25
  • The inline foreground/background colours fall below the 4.5:1 WCAG AA minimum for normal text. Darken/lighten one of them. — Direction/settings-design/mock-settings.html:53
  • `.rpgui-button` 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. — Tool/HtmlToGum/samples/assets/rpgui/rpgui.css:59
  • `.rpgui-button.golden` 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. — Tool/HtmlToGum/samples/assets/rpgui/rpgui.css:98
  • `.rpgui-content *` 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. — Tool/HtmlToGum/samples/assets/rpgui/rpgui.css:218

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 dependencies7.9 / 10Strong✓ 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.

  • Building the SINGLETON `IBuiltInShaderFiles` resolves `Lazy`, registered as Transient, from the provider it was handed — the ROOT provider, outside any scope. The root provider keeps that instance for the life of the process, so the singleton is handed one transient `Lazy` forever (ASP.NET Core's scope validation rejects it in Development and lets it through in Production). Create a scope per use (`IServiceScopeFactory.CreateScope()`) and resolve `Lazy` from the scope's provider, or align the lifetimes. — Tools/Gum.Presentation/Services/GumCoreServiceCollectionExtensions.cs:255

What to do

  • Don't inject scoped/transient services into singletons; resolve them per-use via IServiceScopeFactory or a factory delegate, or align the lifetimes.
AX10 · Code composition10.0 / 10Exemplary✓ Tool-verified

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

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.

  • `PluginEnablementStore` is a singleton (one shared instance) but mutates instance state outside any lock (_settings; e.g. `_settings` at line 31). — Tools/Gum.Presentation/Plugins/PluginEnablementStore.cs:8
  • `TypeManager` is a singleton (one shared instance) but mutates instance state outside any lock (mTypes; e.g. `mTypes` at line 20). — Gum/Reflection/TypeManager.cs:10
  • `ProjectManager` is a singleton (one shared instance) but mutates instance state outside any lock (GeneralSettingsFile, _gumProjectSave, IsNotifyingProjectLoad, _inFlightLoadProjectTask, mHaveErrorsOccurredLoadingProject; e.g. `GeneralSettingsFile` at line 202). — Tools/Gum.Presentation/Managers/ProjectManager.cs:31
  • `IProjectManager` is a singleton (one shared instance) but mutates instance state outside any lock (AutoSave, UseStandardsPalette; e.g. `AutoSave` at Tools/Gum.Presentation/SettingsWindow/GeneralSettingsViewModel.cs line 46, through the shared instance). — Tools/Gum.Presentation/Managers/IProjectManager.cs:9
  • `CommandLineManager` is a singleton (one shared instance) but mutates instance state outside any lock (ShouldExitImmediately, ShouldCodeGenAll, GlueProjectToLoad, ElementName, UsageError; e.g. `ShouldExitImmediately` at line 88). — Tools/Gum.Presentation/CommandLine/CommandLineManager.cs:16
  • `AddDestinationTracker` is a singleton (one shared instance) but mutates instance state outside any lock (_destination, _hasSelectionChangedSinceAnchor; e.g. `_destination` at line 28). — Tools/Gum.Presentation/Logic/AddDestinationTracker.cs:7
  • `ProjectRestrictions` is a singleton (one shared instance) but mutates instance state outside any lock (_cachedProject, _cachedReference, _cachedProjectFileName, _cachedProfile, _cachedFilePath, _inMemoryProfile; e.g. `_cachedProject` at line 63). — Tools/Gum.Presentation/Managers/ProjectRestrictions.cs:10
  • `CopyPasteLogic` is a singleton (one shared instance) but mutates instance state outside any lock (_copyType, _cutElement; e.g. `_copyType` at line 186). — Tools/Gum.Presentation/Logic/CopyPasteLogic.cs:81
  • `ProjectOpenRequestRouter` is a singleton (one shared instance) but mutates instance state outside any lock (_pendingProject, _pendingElement, _isStartupComplete; e.g. `_pendingProject` at line 60). — Tools/Gum.Presentation/Startup/ProjectOpenRequestRouter.cs:16
  • `ToolFontGenerationCallbacks` is a singleton (one shared instance) but mutates instance state outside any lock (_currentSpinner; e.g. `_currentSpinner` at line 32). — Tools/Gum.Presentation/Services/Fonts/ToolFontGenerationCallbacks.cs:13
  • `HotkeyManager` is a singleton (one shared instance) but mutates instance state outside any lock (_isNudging; e.g. `_isNudging` at line 399). — Tools/Gum.Presentation/Managers/HotkeyManager.cs:22
  • `SettingsPageRegistry` is a singleton (one shared instance) but mutates instance state outside any lock (_pages; e.g. `_pages` at line 38). — Tools/Gum.Presentation/SettingsWindow/SettingsPageRegistry.cs:19
  • `StandardMenuModelBuilder` is a singleton (one shared instance) but mutates instance state outside any lock (_undoMenuItem, _redoMenuItem, _removeElementMenuItem, _removeStateMenuItem, _removeVariableMenuItem, _zoomStepper; e.g. `_undoMenuItem` at line 135). — Tools/Gum.Presentation/Menus/StandardMenuModelBuilder.cs:25
  • `LocalizationService` is a singleton (one shared instance) but mutates instance state outside any lock (_currentLanguage, Languages, mStringDatabase, HasDatabase; e.g. `_currentLanguage` at line 44). — GumCommon/Localization/LocalizationService.cs:13
  • `ILocalizationService` is a singleton (one shared instance) but mutates instance state outside any lock (CurrentLanguage; e.g. `CurrentLanguage` at Tools/Gum.ProjectServices/HeadlessLocalizationLoader.cs line 37, through the shared instance). — GumCommon/Localization/ILocalizationService.cs:8
  • `SelectedState` is a singleton (one shared instance) but mutates instance state outside any lock (_isHandlingCategoryAssigment; e.g. `_isHandlingCategoryAssigment` at line 554). — Tools/Gum.Presentation/ToolStates/SelectedState.cs:17
  • `UndoManager` is a singleton (one shared instance) but mutates instance state outside any lock (_loadedProject; e.g. `_loadedProject` at line 175). — Tools/Gum.Presentation/Undo/UndoManager.cs:23
  • `SelectionHistoryService` is a singleton (one shared instance) but mutates instance state outside any lock (_isAfterCurrent, _entries, _currentIndex, _isNavigating; e.g. `_isAfterCurrent` at line 50). — Tools/Gum.Presentation/SelectionHistory/SelectionHistoryService.cs:14
  • `AnimationUndoProviderRelay` is a singleton (one shared instance) but mutates instance state outside any lock (_provider; e.g. `_provider` at line 18). — Tools/Gum.Presentation/Undo/AnimationUndoProviderRelay.cs:14
  • `MainOutputViewModel` is a singleton (one shared instance) but mutates instance state outside any lock (HasErrors; e.g. `HasErrors` at line 70). — Tools/Gum.Presentation/Managers/MainOutputViewModel.cs:19
  • `WireframeObjectManager` is a singleton (one shared instance) but mutates instance state outside any lock (RootGue, ElementShowing; e.g. `RootGue` at line 159). — Tools/Gum.Presentation/Wireframe/WireframeObjectManager.cs:22
  • `FileWatchManager` is a singleton (one shared instance) but mutates instance state outside any lock (fileSystemWatchers, LastFileChange, IsFlushing; e.g. `fileSystemWatchers` at line 102). — Tools/Gum.Presentation/FileWatchPlugin/FileWatchManager.cs:27
  • `IFileWatchManager` is a singleton (one shared instance) but mutates instance state outside any lock (PrintFileChangesToOutput; e.g. `PrintFileChangesToOutput` at Tools/Gum.Presentation/FileWatchPlugin/FileWatchPluginController.cs line 37, through the shared instance). — Tools/Gum.Presentation/FileWatchPlugin/IFileWatchManager.cs:7
  • `UserProjectSettingsManager` is a singleton (one shared instance) but mutates instance state outside any lock (_currentFilePath, _currentSettings; e.g. `_currentFilePath` at line 32). — Tools/Gum.Presentation/Managers/UserProjectSettingsManager.cs:13
  • `FileElementAnimationsProvider` is a singleton (one shared instance) but mutates instance state outside any lock (_cache; e.g. `_cache` at line 56). — Tools/Gum.ProjectServices/FileElementAnimationsProvider.cs:19
  • `VariableReferenceLogic` is a singleton (one shared instance) but mutates instance state outside any lock (_batchDepth, _pendingReactions, ScanCount; e.g. `_batchDepth` at line 611). — Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/VariableReferenceLogic.cs:27
  • `SetVariableLogic` is a singleton (one shared instance) but mutates instance state outside any lock (_batchFileCopyDecision; e.g. `_batchFileCopyDecision` at line 943). — Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/SetVariableLogic.cs:37
  • `CommonControlLogic` is a singleton (one shared instance) but mutates instance state outside any lock (StoredAttemptToPersistPositionsOnUnitChanges; e.g. `StoredAttemptToPersistPositionsOnUnitChanges` at line 134). — Tools/Gum.Presentation/Plugins/InternalPlugins/AlignmentButtons/CommonControlLogic.cs:10
  • `WireframeCommands` is a singleton (one shared instance) but mutates instance state outside any lock (areRulersVisible, areCanvasBoundsVisible, isBackgroundGridVisible, areHighlightsVisible, isGridOverlayVisible, gridSize; e.g. `areRulersVisible` at line 28). — Tools/Gum.Presentation/Commands/WireframeCommands.cs:6
  • `IWireframeCommands` is a singleton (one shared instance) but mutates instance state outside any lock (AreRulersVisible, AreCanvasBoundsVisible, AreHighlightsVisible, IsGridOverlayVisible; e.g. `AreRulersVisible` at Tool/EditorTabPlugin.Core/Services/ScreenshotService.cs line 80, through the shared instance). — Tools/Gum.Presentation/Commands/IWireframeCommands.cs:3
  • `PropertyGridManager` is a singleton (one shared instance) but mutates instance state outside any lock (mainControl, _variablesTab, mVariablesDataGrid, isInRefresh, mLastInstanceSaves, mLastElement; e.g. `mainControl` at line 228). — Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/PropertyGridManager.cs:38
  • `IBehaviorVariablePropertyGridSink` is a singleton (one shared instance) but mutates instance state outside any lock (SelectedBehaviorVariable; e.g. `SelectedBehaviorVariable` at Tools/Gum.Presentation/ToolStates/SelectedState.cs line 753, through the shared instance). — Tools/Gum.Presentation/Managers/IBehaviorVariablePropertyGridSink.cs:10
  • `FileCommands` is a singleton (one shared instance) but mutates instance state outside any lock (_deferredAutoSaves; e.g. `_deferredAutoSaves` at line 196). — Tools/Gum.Presentation/Commands/FileCommands.cs:25
  • `FileChangeReactionLogic` is a singleton (one shared instance) but mutates instance state outside any lock (_reloadedWhileDeferring, _referencedFileChecksWhileDeferring, _behaviorsReloadedWhileDeferring, _contentReloadPending, _shaderFiles; e.g. `_reloadedWhileDeferring` at line 110). — Tools/Gum.Presentation/Managers/FileChangeReactionLogic.cs:22
  • `PluginManager` is a singleton (one shared instance) but mutates instance state outside any lock (_variableSetBatchElements, _guiCommands, _messenger, _dialogService, _outputManager, PluginScanReport; e.g. `_variableSetBatchElements` at line 387). — Tools/Gum.Presentation/Plugins/PluginManager.cs:58
  • `ElementTreeViewManager` is a singleton (one shared instance) but mutates instance state outside any lock (filterText, _view, SuppressNextEnsureVisible, hoverStartTime, mLastHoveredNode, mScreensTreeNode; e.g. `filterText` at line 136). — Tool/TreeViewPlugin.Core/ElementTreeViewManager.cs:37
  • `MenuStripManager` is a singleton (one shared instance) but mutates instance state outside any lock (_itemsByModel, _menu, _topLevelHandler; e.g. `_itemsByModel` at line 43). — Gum/Plugins/InternalPlugins/MenuStripPlugin/MenuStripManager.cs:20
  • `TabViewRegistry` is a singleton (one shared instance) but mutates instance state outside any lock (_registrations; e.g. `_registrations` at line 57). — Gum/Controls/TabViewRegistry.cs:29
  • `DialogViewResolver` is a singleton (one shared instance) but mutates instance state outside any lock (_checkedAssemblies, _vmViewPaires; e.g. `_checkedAssemblies` at line 100). — Gum/Services/Dialogs/DialogViewResolver.cs:49
  • `AvaloniaAppScaleProvider` is a singleton (one shared instance) but mutates instance state outside any lock (_baseFontSize; e.g. `_baseFontSize` at line 31). — Tool/Gum.Avalonia/Services/AvaloniaAppScaleProvider.cs:9

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 WpfDataUi ↔ WpfDataUi.DataTypes depend on each other. The lightest dependency in the cycle is WpfDataUi.DataTypes → WpfDataUi (WpfDataUi.DataTypes.InstanceMember → WpfDataUi.ApplyValueResult, 2 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. — DataUi.Core/DataTypes/InstanceMember.cs:37
  • The namespaces (global) ↔ Gum ↔ Gum.Bundle ↔ Gum.Collections ↔ Gum.CommandLine ↔ Gum.Commands ↔ Gum.Content.AnimationChain ↔ Gum.Controls ↔ Gum.Converters ↔ Gum.DataTypes ↔ Gum.DataTypes.Behaviors ↔ Gum.DataTypes.Variables ↔ Gum.Diagnostics ↔ Gum.Dialogs ↔ Gum.Expressions ↔ Gum.Forms ↔ Gum.Graphics.Animation ↔ Gum.GueDeriving ↔ Gum.Input ↔ Gum.Logic ↔ Gum.Logic.FileWatch ↔ Gum.Managers ↔ Gum.Menus ↔ Gum.Messages ↔ Gum.Plugins ↔ Gum.Plugins.BaseClasses ↔ Gum.Plugins.FontsPlugin ↔ Gum.Plugins.ImportPlugin.Manager ↔ Gum.Plugins.ImportPlugin.Services ↔ Gum.Plugins.InternalPlugins.HideShowTools ↔ Gum.Plugins.InternalPlugins.Hotkey.ViewModels ↔ Gum.Plugins.InternalPlugins.StatePlugin.ViewModels ↔ Gum.Plugins.InternalPlugins.TreeView ↔ Gum.Plugins.InternalPlugins.VariableGrid ↔ Gum.Plugins.VariableGrid ↔ Gum.ProjectServices ↔ Gum.ProjectServices.CodeGeneration ↔ Gum.ProjectServices.FontGeneration ↔ Gum.PropertyGridHelpers ↔ Gum.Renderables ↔ Gum.RenderingLibrary ↔ Gum.SelectionHistory ↔ Gum.Services ↔ Gum.Services.Dialogs ↔ Gum.Services.Fonts ↔ Gum.Settings ↔ Gum.SettingsWindow ↔ Gum.Startup ↔ Gum.ToolCommands ↔ Gum.ToolStates ↔ Gum.Undo ↔ Gum.ViewModels ↔ Gum.Wireframe ↔ Gum.Wireframe.Editors ↔ Gum.Wireframe.Editors.Handlers ↔ Gum.Wireframe.Editors.Visuals ↔ GumFormsPlugin.Services ↔ GumFormsPlugin.ViewModels ↔ GumRuntime ↔ ImportFromGumxPlugin ↔ ImportFromGumxPlugin.Services ↔ ImportFromGumxPlugin.ViewModels ↔ InputLibrary ↔ MonoGameGum ↔ RenderingLibrary ↔ RenderingLibrary.Content ↔ RenderingLibrary.Graphics ↔ RenderingLibrary.Graphics.Animation ↔ RenderingLibrary.Graphics.Fonts ↔ RenderingLibrary.Math.Geometry ↔ SkiaGum ↔ SkiaGum.Renderables ↔ SokolGum depend on each other. The lightest dependency in the cycle is (global) → Gum.Plugins (TabSelectedMessage → Gum.Plugins.PluginTab, 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. — Gum/Plugins/PluginTab.cs:6
  • The namespaces EditorTabPlugin_XNA.ViewModels ↔ Gum.Plugins.InternalPlugins.EditorTab.Views depend on each other. The lightest dependency in the cycle is EditorTabPlugin_XNA.ViewModels → Gum.Plugins.InternalPlugins.EditorTab.Views (EditorTabPlugin_XNA.ViewModels.EditorViewModel → Gum.Plugins.InternalPlugins.EditorTab.Views.Ruler, 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. — Tool/EditorTabPlugin.Core/ViewModels/EditorViewModel.cs:8
  • The namespaces EventOutputPlugin ↔ EventOutputPlugin.Managers ↔ EventOutputPlugin.Models depend on each other. The lightest dependency in the cycle is EventOutputPlugin → EventOutputPlugin.Managers (EventOutputPlugin.MainEventOutputPlugin → EventOutputPlugin.Managers.IExportEventFileManager, 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. — Gum/EventOutputPlugin/MainEventOutputPlugin.cs:1
  • The namespaces Gum.Avalonia.Canvas ↔ Gum.Avalonia.Services ↔ Gum.Avalonia.Shell depend on each other. The lightest dependency in the cycle is Gum.Avalonia.Canvas → Gum.Avalonia.Services (Gum.Avalonia.Canvas.AvaloniaInputHostAdapter → Gum.Avalonia.Services.SecondaryClickTracker, 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. — Tool/Gum.Avalonia/Canvas/AvaloniaInputHostAdapter.cs:7
  • The namespaces Gum.Plugins.AlignmentButtons ↔ Gum.Plugins.InternalPlugins.AlignmentButtons.ViewModels depend on each other. The lightest dependency in the cycle is Gum.Plugins.InternalPlugins.AlignmentButtons.ViewModels → Gum.Plugins.AlignmentButtons (Gum.Plugins.InternalPlugins.AlignmentButtons.ViewModels.AlignmentViewModel → Gum.Plugins.AlignmentButtons.CommonControlLogic, 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. — Tools/Gum.Presentation/Plugins/InternalPlugins/AlignmentButtons/ViewModels/AlignmentViewModel.cs:4
  • The namespaces StateAnimationPlugin ↔ StateAnimationPlugin.Managers ↔ StateAnimationPlugin.Validation ↔ StateAnimationPlugin.ViewModels ↔ StateAnimationPlugin.Views depend on each other. The lightest dependency in the cycle is StateAnimationPlugin → StateAnimationPlugin.Views (StateAnimationPlugin.MainStateAnimationPlugin → StateAnimationPlugin.Views.MainWindow, 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. — Gum/StateAnimationPlugin/MainStateAnimationPlugin.cs:23
  • The namespaces TextureCoordinateSelectionPlugin.Logic ↔ TextureCoordinateSelectionPlugin.ViewModels ↔ TextureCoordinateSelectionPlugin.Views depend on each other. The lightest dependency in the cycle is TextureCoordinateSelectionPlugin.ViewModels → TextureCoordinateSelectionPlugin.Logic (TextureCoordinateSelectionPlugin.ViewModels.MainControlViewModel → TextureCoordinateSelectionPlugin.Logic.ITextureCoordinateDisplayController, 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. — Tools/Gum.Presentation/TextureCoordinateSelectionPlugin/ViewModels/MainControlViewModel.cs:10

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.
AX4 · Dependency direction7.5 / 10Strong✓ Tool-verified

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

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

  • `EditorTabPlugin.Core` is a Domain project but references `Gum.Presentation`, a Web project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one. — Tool/EditorTabPlugin.Core/EditorTabPlugin.Core.csproj:49
  • This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.Managers`, `Gum.ViewModels`, `RightClickViewModel`, `ContextMenuItemViewModel`. The inward dependency rule is broken here. It is named again on lines 2, 10, 14, 24, 52. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/EditingManager.RightClick.cs:1
  • This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.DataTypes`, `Gum.Logic`, `Gum.Managers`, `Gum.Plugins.InternalPlugins.VariableGrid`, `Gum.Services`, `Gum.ToolCommands`, `Gum.ToolStates`, `IContextMenuState`, …. The inward dependency rule is broken here. It is named again on lines 2, 3, 4, 5, 6, 7, 18, 20, …. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/EditingManager.cs:1
  • This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.Commands`, `Gum.DataTypes`, `Gum.DataTypes.Variables`, `Gum.Dialogs`, `Gum.Input`, `Gum.Logic`, `Gum.Logic.FileWatch`, `Gum.Managers`, …. The inward dependency rule is broken here. It is named again on lines 5, 7, 8, 9, 11, 12, 13, 14, …. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/EditorTabPluginBase.cs:4
  • This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.DataTypes.Variables`, `Gum.Input`, `Gum.Wireframe.Editors.Visuals`, `InputHandlerBase`, `EditorContext`, `GumCursorKind`, `StateValueComparer`. The inward dependency rule is broken here. It is named again on lines 5, 6, 23, 45, 74, 79, 84, 321. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/Editors/Handlers/PolygonPointInputHandler.cs:4
  • This Domain file depends on the Web project `Gum.Presentation`: it names `GridSnapper`. The inward dependency rule is broken here. It is named again on line 29. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/Editors/Handlers/PolygonPointSnapper.cs:28
  • This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.DataTypes.Variables`, `EditorContext`. The inward dependency rule is broken here. It is named again on line 13. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/Editors/Handlers/PolygonPointsStateWriter.cs:4
  • This Domain file depends on the Web project `Gum.Presentation`: it names `ResizeSide`. The inward dependency rule is broken here. It is named again on line 26. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/Editors/Handlers/PolygonScaleDrag.cs:17
  • This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.DataTypes`, `Gum.Input`, `Gum.Wireframe.Editors.Visuals`, `InputHandlerBase`, `IResizeHandlesVisual`, `EditorContext`, `ResizeSide`, `GumCursorKind`. The inward dependency rule is broken here. It is named again on lines 7, 8, 19, 21, 39, 50, 54, 63, …. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/Editors/Handlers/PolygonScaleInputHandler.cs:6
  • This Domain file depends on the Web project `Gum.Presentation`: it names `ResizeSide`, `GridSnapper`. The inward dependency rule is broken here. It is named again on lines 57, 58, 59, 60, 192. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/Editors/Handlers/PolygonScaler.cs:39
  • This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.Commands`, `Gum.Input`, `Gum.Managers`, `Gum.Plugins`, `Gum.Plugins.InternalPlugins.VariableGrid`, `Gum.PropertyGridHelpers`, `Gum.Services`, `Gum.ToolCommands`, …. The inward dependency rule is broken here. It is named again on lines 3, 4, 5, 6, 7, 8, 9, 10, …. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/Editors/PolygonWireframeEditor.cs:2
  • This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.Services`, `ICanvasDisplayScale`, `ResizeHandleLayout`, `ResizeSide`. The inward dependency rule is broken here. It is named again on lines 39, 45, 47, 173, 176, 237, 240, 246, …. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/Editors/ResizeHandles.cs:1
  • This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.DataTypes`, `Gum.DataTypes.Variables`, `Gum.Input`, `Gum.Managers`, `Gum.PropertyGridHelpers`, `Gum.ToolStates`, `Gum.ToolCommands`, `Gum.Services`, …. The inward dependency rule is broken here. It is named again on lines 4, 5, 6, 7, 8, 20, 21, 22, …. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/Editors/StandardWireframeEditor.cs:3
  • This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.Input`, `EditorContext`. The inward dependency rule is broken here. It is named again on line 41. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/Editors/Visuals/AddPointSpriteVisual.cs:1
  • This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.DataTypes`, `Gum.Managers`, `Gum.Services`, `Gum.Wireframe`, `Gum.Wireframe.Editors.Handlers`, `IUiSettingsService`, `ResizeInputHandler`, `EditorContext`, …. The inward dependency rule is broken here. It is named again on lines 2, 3, 4, 5, 31, 32, 36, 38, …. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/Editors/Visuals/DimensionDisplayVisual.cs:1
  • This Domain file depends on the Web project `Gum.Presentation`: it names `IEditorVisual`, `EditorContext`. The inward dependency rule is broken here. It is named again on lines 12, 17. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/Editors/Visuals/EditorVisualBase.cs:10
  • This Domain file depends on the Web project `Gum.Presentation`: it names `EditorContext`. The inward dependency rule is broken here. Depend on an abstraction the inner layer owns, implemented in the outer one. (×3) — Tool/EditorTabPlugin.Core/Editors/Visuals/OriginDisplayVisual.cs:16, Tool/EditorTabPlugin.Core/Editors/Visuals/PolygonPointNodesVisual.cs:38, Tool/EditorTabPlugin.Core/Editors/Visuals/SelectedPointHighlightVisual.cs:29
  • This Domain file depends on the Web project `Gum.Presentation`: it names `IResizeHandlesVisual`, `ResizeSide`, `EditorContext`. The inward dependency rule is broken here. It is named again on lines 23, 24, 25, 27. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/Editors/Visuals/PolygonScaleHandlesVisual.cs:17
  • This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.DataTypes`, `IResizeHandlesVisual`, `ResizeSide`, `EditorContext`. The inward dependency rule is broken here. It is named again on lines 13, 25, 26, 27, 53. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/Editors/Visuals/ResizeHandlesVisual.cs:1
  • This Domain file depends on the Web project `Gum.Presentation`: it names `IRotationHandleVisual`, `EditorContext`. The inward dependency rule is broken here. It is named again on lines 32, 33, 35. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/Editors/Visuals/RotationHandleVisual.cs:18
  • This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.DataTypes`, `EditorContext`, `SelectionOutlineRule`. The inward dependency rule is broken here. It is named again on lines 24, 88, 101, 103. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/Editors/Visuals/SelectionOutlineVisual.cs:2
  • This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.Services`, `ISelectionRectangleVisual`, `ICanvasDisplayScale`. The inward dependency rule is broken here. It is named again on lines 16, 19, 55. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/Editors/Visuals/SelectionRectangleVisual.cs:1
  • This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.Wireframe.Editors`, `GridOverlayCalculator`. The inward dependency rule is broken here. It is named again on line 48. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/GridOverlayManager.cs:1
  • This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.Controls`, `Gum.DataTypes`, `Gum.Managers`, `Gum.ToolStates`, `Gum.Wireframe`, `ScrollBarControlLogic`, `ISelectedState`, `IWireframeObjectManager`, …. The inward dependency rule is broken here. It is named again on lines 2, 3, 5, 6, 20, 21, 22, 23, …. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/ScrollbarService.cs:1
  • This Domain file depends on the Web project `Gum.Presentation`: it names `Gum`, `Gum.Commands`, `Gum.Dialogs`, `Gum.Services`, `Gum.Settings`, `ThemeChangedMessage`, `WireframeCommands`, `IThemingService`, …. The inward dependency rule is broken here. It is named again on lines 12, 13, 14, 15, 18, 24, 26, 33, …. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/Services/BackgroundManager.cs:1
  • This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.Wireframe`. The inward dependency rule is broken here. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/Services/CanvasAnimationActivity.cs:2
  • This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.DataTypes.Variables`. The inward dependency rule is broken here. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/Services/EditedFileReload.cs:2
  • This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.ToolStates`, `Gum.Wireframe`, `IProjectState`. The inward dependency rule is broken here. It is named again on lines 2, 20, 25. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/Services/EditorRenderableFactory.cs:1
  • This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.DataTypes`, `Gum.Managers`. The inward dependency rule is broken here. It is named again on line 3. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/Services/FileDropTargetFilter.cs:2
  • This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.Services`, `IHighlightOverlayVisual`, `ICanvasDisplayScale`. The inward dependency rule is broken here. It is named again on lines 15, 21, 80. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/Services/HighlightManager.cs:1
  • This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.DataTypes`. The inward dependency rule is broken here. Depend on an abstraction the inner layer owns, implemented in the outer one. (×2) — Tool/EditorTabPlugin.Core/Services/IPreviewGumxProjectionService.cs:1, Tool/EditorTabPlugin.Core/Services/IPreviewLauncher.cs:2
  • This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.Diagnostics`, `ToolLog`. The inward dependency rule is broken here. It is named again on lines 23, 25, 31, 33. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/Services/LoggingContentLoader.cs:2
  • This Domain file depends on the Web project `Gum.Presentation`: it names `INineSliceCoordinateRefresher`. The inward dependency rule is broken here. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/Services/NineSliceCoordinateRefresher.cs:6
  • This Domain file depends on the Web project `Gum.Presentation`: it names `IPreciseHitTester`. The inward dependency rule is broken here. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/Services/PreciseHitTester.cs:9
  • This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.DataTypes`, `Gum.Services`, `IPathCaseSensitivity`. The inward dependency rule is broken here. It is named again on lines 7, 16, 18. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/Services/PreviewGumxProjectionService.cs:5
  • This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.DataTypes`, `Gum.DataTypes.Variables`, `Gum.Managers`, `Gum.ToolStates`, `ISelectedState`, `IProjectManager`, `IOutputManager`, `DiagnosticLogFile`. The inward dependency rule is broken here. It is named again on lines 7, 8, 9, 17, 18, 19, 38, 39, …. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/Services/PreviewLauncher.cs:6
  • This Domain file depends on the Web project `Gum.Presentation`: it names `DiagnosticLogFile`. The inward dependency rule is broken here. Depend on an abstraction the inner layer owns, implemented in the outer one. — Tool/EditorTabPlugin.Core/Services/PreviewProcessStartInfoBuilder.cs:25

What to do

  • Keep dependencies pointing inward: domain/application define interfaces, infrastructure/web implement them (Dependency Inversion).
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.9 / 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.

  • `ICursor` declares 40 members: `VisualOverBehavior`, `CustomCursor`, `LastInputDevice`, `X`, `Y`, `XRespectingGumZoomAndBounds`, `YRespectingGumZoomAndBounds`, `LastPrimaryPushTime`, `LastPrimaryClickTime`, `XChange`, `YChange`, `ScrollWheelChange`, `ZVelocity`, `PrimaryPush`, `PrimaryDown`, `PrimaryClick`, `PrimaryClickNoSlide`, `PrimaryDoubleClick`, `PrimaryDoublePush`, `SecondaryPush`, `SecondaryDown`, `SecondaryClick`, `SecondaryDoubleClick`, `MiddlePush`, `MiddleDown`, `MiddleClick`, `MiddleDoubleClick`, `WindowPushed`, `VisualRightPushed`, `WindowOver`, `VisualOver`, `VisualPushed`, `LastX`, `LastY`, `FrameworkElementOver`, `FrameworkElementPushed`, `FrameworkElementRightPushed`, `TransformMatrix`, `ClearInputValues`, `Activity`. 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. — GumRuntime/InteractiveGue.cs:1352
  • `IInputReceiverKeyboard` declares 16 members: `IsShiftDown`, `IsCtrlDown`, `IsAltDown`, `IsCommandDown`, `RepeatDelay`, `RepeatRate`, `KeysTyped`, `SupportsInlineKeyboard`, `ShowKeyboard`, `HideKeyboard`, `GetStringTyped`, `Activity`, `KeyDown`, `KeyPushed`, `KeyReleased`, `KeyTyped`. 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. — GumRuntime/InteractiveGue.cs:1471
  • `IGumService` declares 36 members: `Initialize`, `Initialize`, `IsInitialized`, `Renderer`, `Cursor`, `Keyboard`, `CanvasWidth`, `CanvasHeight`, `Draw`, `Root`, `DeferredQueue`, `GameTime`, `NativeTextInput`, `Clipboard`, `CreateSpriteRenderable`, `CreateCursor`, `CreateKeyboard`, `ApplyGamePadState`, `PopupRoot`, `ModalRoot`, `Gamepads`, `Update`, `UseKeyboardDefaults`, `UseGamepadDefaults`, `RefreshStyles`, `RefreshStyles`, `RefreshLocalization`, `LocalizationService`, `LastLoadResult`, `ExportSnapshot`, `SynchronizationContext`, `UseSingleThreadedAsync`, `Uninitialize`, `Context`, `Default`, `DefaultChanged`. 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. Those 36 declarations carry 34 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 34 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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. — RenderingLibrary/IGumService.cs:34
  • `IGradientedRenderable` declares 22 members: `UseGradient`, `GradientType`, `Alpha1`, `Red1`, `Green1`, `Blue1`, `Alpha2`, `Red2`, `Green2`, `Blue2`, `GradientX1`, `GradientX1Units`, `GradientY1`, `GradientY1Units`, `GradientX2`, `GradientX2Units`, `GradientY2`, `GradientY2Units`, `GradientInnerRadius`, `GradientInnerRadiusUnits`, `GradientOuterRadius`, `GradientOuterRadiusUnits`. 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. — MonoGameGum/GueDeriving/IGradientedRenderable.cs:25
  • `IEditCommands` declares 17 members: `AskToDeleteState`, `AskToRenameState`, `SetSetValuesToDefault`, `MoveToCategory`, `SetStateCategoryColor`, `AskToDeleteStateCategory`, `AskToRenameStateCategory`, `RemoveBehaviorVariable`, `AddBehavior`, `AskToRenameBehavior`, `EnsureProjectSaved`, `ShowAddScreenDialog`, `ShowAddComponentDialog`, `ShowAddFolderDialog`, `DuplicateSelectedElement`, `ShowCreateComponentFromInstancesDialog`, `DeleteSelection`. 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. — Tools/Gum.Presentation/Commands/IEditCommands.cs:44
  • `IFileCommands` declares 29 members: `ProjectDirectory`, `DeleteDirectory`, `ClearDirectoryContents`, `MoveToRecycleBin`, `MoveToRecycleBin`, `GetFiles`, `GetFiles`, `ReadAllText`, `MoveDirectory`, `SaveEmbeddedResource`, `TryAutoSaveCurrentObject`, `TryAutoSaveCurrentElement`, `TryAutoSaveElement`, `BeginAutoSaveBatch`, `TryAutoSaveBehavior`, `TryAutoSaveObject`, `NewProjectAsync`, `CloseProjectAsync`, `TryAutoSaveProject`, `ForceSaveProject`, `ForceSaveElement`, `LoadProjectAsync`, `GetFullFileName`, `GetFullPathXmlFile`, `LocalizationLoaded`, `LoadLocalizationFile`, `GetFullPathXmlFile`, `SaveGeneralSettings`, `SaveIfDiffers`. 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. Those 29 declarations carry 26 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 26 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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. — Tools/Gum.Presentation/Commands/IFileCommands.cs:13
  • `IPluginManager` declares 91 members: `BeforeSavingElementSave`, `AfterSavingElementSave`, `BeforeSavingProjectSave`, `ProjectLoad`, `ProjectPropertySet`, `ProjectSave`, `CreateGraphicalUiElement`, `ProjectLocationSet`, `Export`, `ModifyDefaultStandardState`, `TryHandleDelete`, `ElementRename`, `ElementAdd`, `ElementDelete`, `ElementImported`, `ElementDuplicate`, `ElementReloaded`, `StateRename`, `StateAdd`, `StateMovedToCategory`, `StateDelete`, `ReactToStateSaveSelected`, `ReactToFileChanged`, `ReactToCustomStateSaveSelected`, `RefreshStateTreeView`, `RefreshElementTreeView`, `CategoryRename`, `CategoryAdd`, `CategoryDelete`, `CategoryColorChange`, `GetDeleteStateCategoryResponse`, `GetDeleteStateResponse`, `ReactToStateSaveCategorySelected`, `VariableAdd`, `VariableDelete`, `VariableSet`, `VariableSetThroughReference`, `BeginVariableSetBatch`, `IsInVariableSetBatch`, `VariableSelected`, and 51 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. — Tools/Gum.Presentation/Plugins/IPluginManager.cs:15
  • `IHotkeyManager` declares 46 members: `Delete`, `DeleteAlt`, `Copy`, `Paste`, `Cut`, `Duplicate`, `Undo`, `Redo`, `RedoAlt`, `ReorderUp`, `ReorderDown`, `GoToDefinition`, `Search`, `FocusVariableFilter`, `NudgeUp`, `NudgeDown`, `NudgeRight`, `NudgeLeft`, `NudgeUp5`, `NudgeDown5`, `NudgeRight5`, `NudgeLeft5`, `LockMovementToAxis`, `MaintainResizeAspectRatio`, `SnapRotationTo15Degrees`, `MultiSelect`, `ResizeFromCenter`, `MoveCameraLeft`, `MoveCameraRight`, `MoveCameraUp`, `MoveCameraDown`, `ZoomCameraIn`, `ZoomCameraInAlternative`, `ZoomCameraOut`, `ZoomCameraOutAlternative`, `Rename`, `NavigateBack`, `NavigateForward`, `ShowHotkeys`, `FocusSelection`, and 6 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. — Tools/Gum.Presentation/Managers/IHotkeyManager.cs:7
  • `IProjectManager` declares 31 members: `GumProjectSave`, `HaveErrorsOccurredLoadingProject`, `IsNotifyingProjectLoad`, `AutoSave`, `UseStandardsPalette`, `EffectiveUseStandardsPalette`, `ShowTextOutlines`, `FrameRate`, `OutlineColorR`, `OutlineColorG`, `OutlineColorB`, `GuideLineColorR`, `GuideLineColorG`, `GuideLineColorB`, `GuideTextColorR`, `GuideTextColorG`, `GuideTextColorB`, `RecentProjects`, `SaveGeneralSettings`, `LoadSettings`, `Initialize`, `CreateNewProject`, `CreateBlankProject`, `AskUserForNewProjectLocation`, `SetProjectLocation`, `LoadProjectAsync`, `LoadProjectAsync`, `SaveProject`, `MakeAbsoluteIfNecessary`, `AskUserForProjectNameIfNecessary`, `ShowReadOnlyDialog`. 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. Those 31 declarations carry 30 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 30 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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. — Tools/Gum.Presentation/Managers/IProjectManager.cs:9
  • `IElementCommands` declares 18 members under just 11 distinct name(s): `AddInstance`, `AddInstance`, `GetUniqueNameForNewInstance`, `GetUniqueNameForNewInstance`, `AddState`, `AddState`, `SortVariables`, `SortVariables`, `MoveSelectedObjectsBy`, `ShouldSkipDraggingMovementOn`, `ModifyVariable`, `ModifyVariable`, `GetCurrentValueForVariable`, `AddCategory`, `AddCategoryStateVariable`, `AddInstance`, `AddBehaviorTo`, `AddBehaviorTo`. 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. That is an OVERLOAD SET, not 18 separate responsibilities: a caller binds to 11 operation(s) and uses the overload it selected, so the Interface-Segregation harm does NOT apply on the caller's side and splitting this into role-interfaces would scatter one operation without relieving anything. The burden that does remain is the IMPLEMENTER's — all 18 signatures must be written and kept in step. Reduce it by collapsing overloads (optional or default parameters, or an options object) rather than by segregating the interface. — Tools/Gum.Presentation/ToolCommands/IElementCommands.cs:11
  • `ISelectedState` declares 23 members: `SelectedScreen`, `SelectedElement`, `SelectedElements`, `SelectedStateContainer`, `SelectedInstanceContainer`, `SelectedBehavior`, `SelectedBehaviors`, `SelectedBehaviorReference`, `CustomCurrentStateSave`, `SelectedStateSave`, `SelectedStateSaveOrDefault`, `SelectedStateCategorySave`, `SelectedComponent`, `SelectedInstance`, `SelectedIpso`, `SelectedInstances`, `SelectedVariableName`, `SelectedStandardElement`, `SelectedVariableSave`, `SelectedBehaviorVariable`, `SelectedTreeNode`, `SelectedTreeNodes`, `GetTopLevelElementStack`. 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. — Tools/Gum.Presentation/ToolStates/ISelectedState.cs:11
  • `IUndoManager` declares 21 members: `CurrentElementHistory`, `CurrentBehaviorHistory`, `UndosChanged`, `RecordUndo`, `BroadcastUndosChanged`, `RequestLock`, `RequestLock`, `ClearAll`, `HandleProjectLoaded`, `RecordState`, `RecordBehaviorState`, `RecordBehaviorState`, `RecordBehaviorUndo`, `ApplyUndoSnapshotToElement`, `RebaseStoredValues`, `RecordCrossElementVariableChanges`, `RecordAnimationRename`, `PerformUndo`, `PerformRedo`, `CanUndo`, `CanRedo`. 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. Those 21 declarations carry 19 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 19 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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. — Tools/Gum.Presentation/Undo/IUndoManager.cs:10
  • `IElementTreeView` declares 36 members: `Content`, `Nodes`, `Selection`, `IsPointerOver`, `NodeUnderPointer`, `IsKeyboardFocusWithin`, `IsDeepSearchChecked`, `ContextMenuProvider`, `CurrentElementNameProvider`, `FocusTree`, `FocusSearch`, `ClearSearchText`, `EnsureVisible`, `ShowSearchResults`, `SetStandardsPaletteVisible`, `RefreshStandardsPaletteChips`, `SetSelectedStandardType`, `ApplyThemeColors`, `UpdateCollapseButtonSizes`, `SearchTextChanged`, `SearchResultChosen`, `DeepSearchChecked`, `CollapseAllRequested`, `CollapseToElementLevelRequested`, `NodeExpansionChangedByUser`, `PointerMoved`, `KeyDown`, `NodeDoubleClicked`, `UnhandledException`, `ValidateSortingDrop`, `NodeSortingDropped`, `ExternalDragOver`, `ExternalDrop`, `DragEnded`, `AddStandardToCurrentRequested`, `EditStandardDefaultsRequested`. 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. — Tool/TreeViewPlugin.Core/IElementTreeView.cs:16

What to do

  • Split fat interfaces into focused role-interfaces so clients depend only on what they use.
  • Where the width is an overload set rather than separate responsibilities, collapse the overloads instead — segregating those relieves no caller.
AX8 · Test isolation10.0 / 10Exemplary✓ Tool-verified

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

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

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

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

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

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

C1 · Data Protection3.5 / 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.

What to do

  • Strengthen data-at-rest protection: vault your keys (Azure Key Vault / AWS KMS / IDataProtector key ring) and encrypt the most sensitive columns (EF HasConversion encryption or provider-native column encryption) — partial coverage still leaves gaps.
  • Enforce HTTPS (UseHttpsRedirection / RequireHttpsMetadata) so data in transit is always encrypted.
C4 · Data Retention7.5 / 10Strong✓ Tool-verified

Other · Security — Whether data has a defined lifetime — retention periods, TTLs, cleanup jobs (storage limitation).

Method: Roslyn scan: retention/TTL configuration presence in schema; CascadeDelete detected but not scored as retention control. Deterministic, gated by PII presence.

  • A retention mechanism is present, but the data-lifecycle is not yet complete — missing: a scheduled purge / cleanup job (PurgeOlderThan / CleanupJob).

What to do

  • Complete the data-lifecycle story: an expiry limit (a declared maximum age for the stored data — a retention-age setting, or a store-level TTL where your storage offers one), a scheduled purge/cleanup job that enforces it, and a documented retention period covering the personal data.
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. (×26) — GumCommon/HostServices/Async/SingleThreadSynchronizationContext.cs:28, MonoGameGum/Forms/Controls/ComboBox.cs:467, MonoGameGum/Forms/Controls/ComboBox.cs:469, …

What to do

  • Finish or delete NotImplementedException stubs and replace placeholder literals before shipping.
IC1 · Incompleteness & stubs5.5 / 10Adequate✓ 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.

  • The branch `if (IsRelative(fileName))` 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. — Gum/CsvLibrary/CsvFileManager.cs:139
  • The branch `if (!handled)` 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. — Gum/CsvLibrary/Reflection/PropertyValuePair.cs:459
  • The branch `if (ManualDeserialization)` 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. — Gum/Graphics/Animation/Content/AnimationChainListSave.cs:91
  • `RecentFileItem.xaml` wires an event to `Image_MouseLeftButtonDown`, whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it. — Gum/Plugins/InternalPlugins/LoadRecentFilesPlugin/Views/RecentFileItem.xaml.cs:19
  • `Send` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — GumCommon/HostServices/Async/SingleThreadSynchronizationContext.cs:28
  • `IgnoredKeys` is a shipped property whose accessors only throw NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. (×5) — MonoGameGum/Forms/Controls/ComboBox.cs:467, MonoGameGum/Forms/Controls/Games/DialogBox.cs:102, MonoGameGum/Forms/Controls/ListBox.cs:434, …
  • `TakingInput` is a shipped property whose accessors only throw NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. (×4) — MonoGameGum/Forms/Controls/ComboBox.cs:469, MonoGameGum/Forms/Controls/ListBox.cs:436, MonoGameGum/Forms/Controls/Primitives/ButtonBase.cs:42, …
  • `NextInTabSequence` is a shipped property whose accessors only throw NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. (×2) — MonoGameGum/Forms/Controls/ComboBox.cs:471, MonoGameGum/Forms/Controls/Slider.cs:84
  • `HandleKeyDown` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. (×3) — MonoGameGum/Forms/Controls/ComboBox.cs:1608, MonoGameGum/Forms/Controls/Games/DialogBox.cs:979, MonoGameGum/Forms/Controls/ListBox.cs:2493
  • `HandleCharEntered` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. (×5) — MonoGameGum/Forms/Controls/ComboBox.cs:1612, MonoGameGum/Forms/Controls/Games/DialogBox.cs:984, MonoGameGum/Forms/Controls/ListBox.cs:2497, …
  • The branch `if (!knownType)` 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. — RenderingLibrary/Content/ContentLoader.cs:87
  • The branch `if (!string.IsNullOrEmpty(animationChainSave.ParentFile))` 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. — RenderingLibrary/Graphics/Animation/AnimationChain.cs:283
  • `ParseBinaryText` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — RenderingLibrary/Graphics/Fonts/ParsedFontFile.cs:108
  • The `default:` section (reached by `Bgr565`, `Bgra5551`, `Bgra4444`, `Dxt1` and 37 more) 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. — RenderingLibrary/Graphics/ImageData.cs:133
  • Control only reaches here when `textureToUse == null` is false, because the guard on line 898 exits otherwise. This test is therefore always false and everything it guards is unreachable. Implement the distinction that was intended, or delete the test. — RenderingLibrary/Graphics/Sprite.cs:976
  • `EnableTouchEvents` is a shipped property whose accessors only throw NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. (×4) — RenderingLibrary/SystemManagers.cs:135, Runtimes/RaylibGum/RenderingLibrary/SystemManagers.cs:102, Runtimes/SkiaGum.Wpf/GumSKElement.cs:30, …
  • `InvalidateSurface` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — RenderingLibrary/SystemManagers.cs:543
  • The branch `if (FileManager.IsUrl(fileName))` 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. — Runtimes/RaylibGum/RenderingLibrary/ContentLoader.cs:273
  • `HandleTouch` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — Runtimes/SkiaGum.Maui/SkiaGumCanvasView.cs:190
  • 1 guard above `return sgp_blend_mode.SGP_BLENDMODE_BLEND;` also returns `sgp_blend_mode.SGP_BLENDMODE_BLEND`, so no input can make it matter. Implement the distinction that was intended, or delete the guard. — Runtimes/SokolGum/Renderer.cs:284
  • The first 2 statements of the `if` and of the `else` are identical, so they run on both paths regardless of the condition. Lift them above the `if` — leaving them duplicated inside makes the branches read as though they handled this differently. (×2) — Themes/Gum.Themes.Retro95.MonoGame/TooltipVisual.cs:78, Themes/Gum.Themes.Retro95.MonoGame/WindowVisual.cs:92
  • `ReactIfChangedMemberIsCustomFont` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/SetVariableLogic.cs:643

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)7.6 / 10Strong✓ Tool-verified

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

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

What to do

  • Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
M2 · Architecture documentation8.0 / 10Strong✓ Tool-verified

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

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

M3 · Folder & project structure8.0 / 10Strong✓ 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.

  • Most of the production code is in directories of its own, but 1 application file(s) sit at the repository root beside the build and tooling files (`ILocalizationService.cs`).
M4 · Documentation accuracy10.0 / 10Exemplary○ Nothing flagged

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

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

P1 · CI/CD gates10.0 / 10Exemplary○ Nothing flagged

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

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

P10 · Library API & versioning8.2 / 10Strong✓ 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.

  • `Gum.DataTypes.VariableSaveSorter` (Gum/DataTypes/ElementSaveExtensionMethods.cs:10) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AvaloniaCanvasSpike.Kni`, `AvaloniaCanvasSpike.MonoGame`, `BrutalGum.OGL`, `BrutalGum.OGL.Tests`, `BrutalGum.Vulkan`, `BrutalGumSample`, `BrutalGumSampleOgl`, `CodeOutputPlugin`, `ConvertToJsonPlugin`, `CrossAssemblyAttributeFixture`, `EditorTabPlugin.Core`, `EditorTabPlugin_XNA`, `EventOutputPlugin`, `FlatRedBall.SpecializedXnaControls`, `FnaGum`, `FnaGum.ShadowDusk`, `FnaSample`, `FontPlayground.MonoGame`, `FontPlayground.Raylib`, `FontResizeDemo.MonoGame`, `GameUiSamples`, `GameUiSamplesSkia`, `Gum`, `Gum.Automation`, `Gum.Automation.KniSkia`, `Gum.Avalonia`, `Gum.Avalonia.Tests`, `Gum.Bundle.Tests`, `Gum.Cli`, `Gum.Cli.Tests`, `Gum.FormsStaging`, `Gum.Layout.Benchmarks`, `Gum.Mvvm.Benchmarks`, `Gum.Presentation`, `Gum.Presentation.Tests`, `Gum.ProjectServices`, `Gum.ProjectServices.MonoGame`, `Gum.ProjectServices.MonoGame.Tests`, `Gum.ProjectServices.Raylib`, `Gum.ProjectServices.Raylib.Tests`, `Gum.ProjectServices.SkiaGum`, `Gum.ProjectServices.SkiaGum.Tests`, `Gum.ProjectServices.Tests`, `Gum.Themes.Bubblegum.Kni`, `Gum.Themes.Bubblegum.MonoGame`, `Gum.Themes.Bubblegum.Raylib`, `Gum.Themes.Bubblegum.Skia`, `Gum.Themes.DarkPro.Kni`, `Gum.Themes.DarkPro.MonoGame`, `Gum.Themes.DarkPro.Raylib`, `Gum.Themes.DarkPro.Skia`, `Gum.Themes.Editor.Kni`, `Gum.Themes.Editor.MonoGame`, `Gum.Themes.Editor.Raylib`, `Gum.Themes.Editor.Skia`, `Gum.Themes.ForestGlade.Kni`, `Gum.Themes.ForestGlade.MonoGame`, `Gum.Themes.ForestGlade.Raylib`, `Gum.Themes.ForestGlade.Skia`, `Gum.Themes.Hazard.Kni`, `Gum.Themes.Hazard.MonoGame`, `Gum.Themes.Hazard.Raylib`, `Gum.Themes.Hazard.Skia`, `Gum.Themes.Meadow.Kni`, `Gum.Themes.Meadow.MonoGame`, `Gum.Themes.Meadow.Raylib`, `Gum.Themes.Meadow.Skia`, `Gum.Themes.Neon.Kni`, `Gum.Themes.Neon.MonoGame`, `Gum.Themes.Neon.Raylib`, `Gum.Themes.Neon.Skia`, `Gum.Themes.Retro95.Kni`, `Gum.Themes.Retro95.MonoGame`, `Gum.Themes.Retro95.Raylib`, `Gum.Themes.Retro95.Skia`, `Gum.Themes.Template.Kni`, `Gum.Themes.Template.MonoGame`, `Gum.Themes.Template.Raylib`, `Gum.Themes.Tests`, `GumExpressions`, `GumExpressions.Tests`, `GumFormsPlugin`, `GumFromZipFile`, `GumPreview`, `GumProjectFontGenerator`, `GumShadowDusk.Tests.KniDesktopGL`, `GumShadowDusk.Tests.KniWindowsDX`, `GumShadowDusk.Tests.MonoGameWindowsDX`, `GumTest`, `GumToolUnitTests`, `ImportFromGumxPlugin`, `InputLibrary`, `KernSmith.FnaGum`, `KernSmith.GumCommon`, `KernSmith.KniGum`, `KernSmith.MonoGameGum`, `KernSmith.RaylibGum`, `KniGum`, `KniGum.ShadowDusk`, `KniGumFormsSample.BlazorGL`, `KniGumFormsSample.DesktopGL`, `KniGumFormsSample.WindowsDX`, `KniGumFormsSampleCommon`, `KniGumFromFile.BlazorGL`, `KniGumFromFile.DesktopGL`, `KniGumFromFile.WindowsDX`, `KniGumFromFileCommon`, `KniGumInCode.BlazorGL`, `KniGumInCode.DesktopGL`, `KniGumInCode.WindowsDX`, `KniGumInCodeCommon`, `KniGumShapes`, `KniSkiaGum`, `KniSkiaGum.Tests`, `KniSkiaGumCodeGeneration`, `KniSkiaGumFontLoading`, `KniSkiaGumFromFile`, `KniSkiaGumImmediateMode`, `KniSkiaGumInCode`, `KniSkiaGumSample`, `MonoGameAndGum`, `MonoGameGum`, `MonoGameGum.IntegrationTests`, `MonoGameGum.ShadowDusk`, `MonoGameGum.Shapes.Tests`, `MonoGameGum.Tests`, `MonoGameGum.Tests.V3`, `MonoGameGum.TestsCommon`, `MonoGameGumCodeGeneration`, `MonoGameGumFontLoading`, `MonoGameGumFormsSample`, `MonoGameGumFormsSampleCommon`, `MonoGameGumFromFile`, `MonoGameGumFromFileAndroid`, `MonoGameGumFromFileDX`, `MonoGameGumImmediateMode`, `MonoGameGumInCode`, `MonoGameGumShapes`, `MonoGameGumThemesShowcase`, `MultiGumServiceSample`, `PerformanceMeasurementPlugin`, `RaylibGum`, `RaylibGum.ShadowDusk`, `RaylibGum.Tests`, `RaylibGumThemesShowcase`, `SilkNetGum`, `SilkNetGum.Tests`, `SilkNetGumSample`, `SilkNetGumThemesShowcase`, `SkiaGum(net8.0)`, `SkiaGum.GpuTests`, `SkiaGum.Maui`, `SkiaGum.ShadowDusk`, `SkiaGum.Standalone`, `SkiaGum.Tests`, `SkiaGum.Wpf`, `SkiaGumMonogame`, `SkiaGumWpfSample`, `SkiaHost.TestsCommon`, `SkiaPlugin`, `SokolGum`, `SokolGumFromFile`, `SokolGumSample`, `StateAnimationPlugin`, `StateAnimationPlugin.Core`, `StrideGum(net10.0)`, `StrideGum(net10.0-windows7.0)`, `StrideGum.GpuTests.D3D11`, `StrideGum.GpuTests.D3D12`, `StrideGum.Tests`, `StrideGumSample`, `TextureCoordinatePlugin.Core`, `TextureCoordinateSelectionPlugin`, `TextureFilterDemo.MonoGame`, `TreeViewPlugin.Core`, `UnityGum.Tests`, `WpfRenderSurfaceHostHarness`, `XnaAndWinforms`, `XnaAndWinforms.Wpf`) 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. — Gum/DataTypes/ElementSaveExtensionMethods.cs:10
  • `Gum.DataTypes.VariableSaveSorter` (Gum/DataTypes/ElementSaveExtensionMethods.cs:10) is public, and the library's own code uses it, but no other project in this repository uses it (read: `Gum.NetStandard.Tests`, `SkiaGum(netstandard2.1)`, `UnityGum`) 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. — Gum/DataTypes/ElementSaveExtensionMethods.cs:10
  • `Gum.DataTypes.VariableSaveSorter` (Gum/DataTypes/ElementSaveExtensionMethods.cs:10) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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. — Gum/DataTypes/ElementSaveExtensionMethods.cs:10
  • `SkiaPlugin.Managers.DefaultStateManager` (Gum/SvgPlugin/Managers/DefaultStateManager.cs:20) is public, and the library's own code uses it, but no other project in this repository uses it (read: `BrutalGum.OGL`, `BrutalGum.OGL.Tests`, `BrutalGum.Vulkan`, `BrutalGumSample`, `BrutalGumSampleOgl`, `GameUiSamplesSkia`, `Gum.Automation.KniSkia`, `Gum.Cli`, `Gum.Cli.Tests`, `Gum.ProjectServices.SkiaGum`, `Gum.ProjectServices.SkiaGum.Tests`, `Gum.Themes.Bubblegum.Skia`, `Gum.Themes.DarkPro.Skia`, `Gum.Themes.Editor.Skia`, `Gum.Themes.ForestGlade.Skia`, `Gum.Themes.Hazard.Skia`, `Gum.Themes.Meadow.Skia`, `Gum.Themes.Neon.Skia`, `Gum.Themes.Retro95.Skia`, `KniSkiaGum`, `KniSkiaGum.Tests`, `KniSkiaGumCodeGeneration`, `KniSkiaGumFontLoading`, `KniSkiaGumFromFile`, `KniSkiaGumImmediateMode`, `KniSkiaGumInCode`, `KniSkiaGumSample`, `SilkNetGum`, `SilkNetGum.Tests`, `SilkNetGumSample`, `SilkNetGumThemesShowcase`, `SkiaGum.GpuTests`, `SkiaGum.Maui`, `SkiaGum.ShadowDusk`, `SkiaGum.Standalone`, `SkiaGum.Tests`, `SkiaGum.Wpf`, `SkiaGumWpfSample`, `SkiaHost.TestsCommon`, `StrideGum(net10.0)`, `StrideGum(net10.0-windows7.0)`, `StrideGum.GpuTests.D3D11`, `StrideGum.GpuTests.D3D12`, `StrideGum.Tests`, `StrideGumSample`, `UnityGum.Tests`) 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. — Gum/SvgPlugin/Managers/DefaultStateManager.cs:20
  • `SkiaPlugin.Managers.DefaultStateManager` (Gum/SvgPlugin/Managers/DefaultStateManager.cs:20) is public, and the library's own code uses it, but no other project in this repository uses it (read: `Gum.NetStandard.Tests`, `UnityGum`) 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. — Gum/SvgPlugin/Managers/DefaultStateManager.cs:20
  • `Gum.Wireframe.ISpriteRuntime` (Gum/Wireframe/CustomSetPropertyOnRenderable.cs:79) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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. — Gum/Wireframe/CustomSetPropertyOnRenderable.cs:79
  • `Gum.Wireframe.INineSliceRuntime` (Gum/Wireframe/CustomSetPropertyOnRenderable.cs:88) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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. — Gum/Wireframe/CustomSetPropertyOnRenderable.cs:88
  • `Gum.Wireframe.IContainerRuntime` (Gum/Wireframe/CustomSetPropertyOnRenderable.cs:99) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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. — Gum/Wireframe/CustomSetPropertyOnRenderable.cs:99
  • `Gum.Wireframe.IPolygonRuntime` (Gum/Wireframe/CustomSetPropertyOnRenderable.cs:105) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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. — Gum/Wireframe/CustomSetPropertyOnRenderable.cs:105
  • `Gum.Wireframe.CustomSetPropertyOnRenderable` (Gum/Wireframe/CustomSetPropertyOnRenderable.cs:114) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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. — Gum/Wireframe/CustomSetPropertyOnRenderable.cs:114
  • `Gum.Wireframe.FallbackRenderableFactory` (Gum/Wireframe/FallbackRenderableFactory.cs:54) is public, and the library's own code uses it, but no other project in this repository uses it (read: `FnaGum.ShadowDusk`, `FnaSample`, `KernSmith.FnaGum`) 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. — Gum/Wireframe/FallbackRenderableFactory.cs:54
  • `Gum.Wireframe.FallbackRenderableFactory` (Gum/Wireframe/FallbackRenderableFactory.cs:54) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SokolGumFromFile`, `SokolGumSample`) 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. — Gum/Wireframe/FallbackRenderableFactory.cs:54
  • `Gum.Wireframe.FallbackRenderableFactory` (Gum/Wireframe/FallbackRenderableFactory.cs:54) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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. — Gum/Wireframe/FallbackRenderableFactory.cs:54
  • `Gum.Bundle.BundleGumFileProvider` (GumCommon/Bundle/BundleGumFileProvider.cs:12) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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. — GumCommon/Bundle/BundleGumFileProvider.cs:12
  • `Gum.Bundle.FontReferenceCollector` (GumCommon/Bundle/FontReferenceCollector.cs:36) is public, and the library's own code uses it, but no other project in this repository uses it (read: `Gum.NetStandard.Tests`, `SkiaGum(netstandard2.1)`, `UnityGum`) 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. — GumCommon/Bundle/FontReferenceCollector.cs:36
  • `Gum.Bundle.FontReferenceCollector` (GumCommon/Bundle/FontReferenceCollector.cs:36) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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. — GumCommon/Bundle/FontReferenceCollector.cs:36
  • `Gum.Bundle.GumBundleFormat` (GumCommon/Bundle/GumBundleFormat.cs:8) is public, and the library's own code uses it, but no other project in this repository uses it (read: `Gum.NetStandard.Tests`, `SkiaGum(netstandard2.1)`, `UnityGum`) 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. — GumCommon/Bundle/GumBundleFormat.cs:8
  • `Gum.Bundle.GumBundleFormat` (GumCommon/Bundle/GumBundleFormat.cs:8) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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. — GumCommon/Bundle/GumBundleFormat.cs:8
  • `Gum.Bundle.GumBundleFormatException` (GumCommon/Bundle/GumBundleFormatException.cs:9) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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. — GumCommon/Bundle/GumBundleFormatException.cs:9
  • `Gum.Bundle.GumBundleReader` (GumCommon/Bundle/GumBundleReader.cs:24) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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. — GumCommon/Bundle/GumBundleReader.cs:24
  • `Gum.Bundle.GumProjectDependencyWalker` (GumCommon/Bundle/GumProjectDependencyWalker.cs:31) is public, and the library's own code uses it, but no other project in this repository uses it (read: `Gum.NetStandard.Tests`, `SkiaGum(netstandard2.1)`, `UnityGum`) 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. — GumCommon/Bundle/GumProjectDependencyWalker.cs:31
  • `Gum.Bundle.GumProjectDependencyWalker` (GumCommon/Bundle/GumProjectDependencyWalker.cs:31) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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. — GumCommon/Bundle/GumProjectDependencyWalker.cs:31
  • `Gum.Bundle.GumRawTexture` (GumCommon/Bundle/GumRawTexture.cs:55) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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. — GumCommon/Bundle/GumRawTexture.cs:55
  • `Gum.Bundle.LooseFileGumFileProvider` (GumCommon/Bundle/LooseFileGumFileProvider.cs:17) is public, and the library's own code uses it, but no other project in this repository uses it (read: `Gum.NetStandard.Tests`, `SkiaGum(netstandard2.1)`, `UnityGum`) 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. — GumCommon/Bundle/LooseFileGumFileProvider.cs:17
  • `Gum.Bundle.LooseFileGumFileProvider` (GumCommon/Bundle/LooseFileGumFileProvider.cs:17) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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. — GumCommon/Bundle/LooseFileGumFileProvider.cs:17
  • `RenderingLibrary.Content.RgbaPixels` (GumCommon/Content/RgbaPixels.cs:9) is public, and the library's own code uses it, but no other project in this repository uses it (read: `Gum.NetStandard.Tests`, `SkiaGum(netstandard2.1)`, `UnityGum`) 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. — GumCommon/Content/RgbaPixels.cs:9
  • `RenderingLibrary.Content.RgbaPixels` (GumCommon/Content/RgbaPixels.cs:9) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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. — GumCommon/Content/RgbaPixels.cs:9
  • `Gum.ShaderIncludeTracker` (GumCommon/HostServices/ShaderIncludeTracker.cs:12) is public, and the library's own code uses it, but no other project in this repository uses it (read: `Gum.NetStandard.Tests`, `SkiaGum(netstandard2.1)`, `UnityGum`) 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. — GumCommon/HostServices/ShaderIncludeTracker.cs:12
  • `Gum.WindowFitMath` (GumCommon/HostServices/WindowFitMath.cs:8) is public, and the library's own code uses it, but no other project in this repository uses it (read: `Gum.NetStandard.Tests`, `SkiaGum(netstandard2.1)`, `UnityGum`) 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. — GumCommon/HostServices/WindowFitMath.cs:8
  • `Gum.Localization.LocalizationRuntimeState` (GumCommon/Localization/LocalizationRuntimeState.cs:11) is public, and the library's own code uses it, but no other project in this repository uses it (read: `Gum.NetStandard.Tests`, `SkiaGum(netstandard2.1)`, `UnityGum`) 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. — GumCommon/Localization/LocalizationRuntimeState.cs:11
  • `Gum.Localization.LocalizationRuntimeState` (GumCommon/Localization/LocalizationRuntimeState.cs:11) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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. — GumCommon/Localization/LocalizationRuntimeState.cs:11
  • `Gum.Mvvm.PathSegmentParser` (GumCommon/Mvvm/PathSegment.cs:41) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AvaloniaCanvasSpike.Kni`, `AvaloniaCanvasSpike.MonoGame`, `BrutalGum.OGL`, `BrutalGum.OGL.Tests`, `BrutalGum.Vulkan`, `BrutalGumSample`, `BrutalGumSampleOgl`, `CodeOutputPlugin`, `ConvertToJsonPlugin`, `CrossAssemblyAttributeFixture`, `EditorTabPlugin.Core`, `EditorTabPlugin_XNA`, `EventOutputPlugin`, `FlatRedBall.SpecializedXnaControls`, `FnaGum`, `FnaGum.ShadowDusk`, `FnaSample`, `FontPlayground.MonoGame`, `FontPlayground.Raylib`, `FontResizeDemo.MonoGame`, `GameUiSamples`, `GameUiSamplesSkia`, `Gum`, `Gum.Automation`, `Gum.Automation.KniSkia`, `Gum.Avalonia`, `Gum.Avalonia.Tests`, `Gum.Bundle.Tests`, `Gum.Cli`, `Gum.Cli.Tests`, `Gum.FormsStaging`, `Gum.Layout.Benchmarks`, `Gum.Mvvm.Benchmarks`, `Gum.Presentation`, `Gum.Presentation.Tests`, `Gum.ProjectServices`, `Gum.ProjectServices.MonoGame`, `Gum.ProjectServices.MonoGame.Tests`, `Gum.ProjectServices.Raylib`, `Gum.ProjectServices.Raylib.Tests`, `Gum.ProjectServices.SkiaGum`, `Gum.ProjectServices.SkiaGum.Tests`, `Gum.ProjectServices.Tests`, `Gum.Themes.Bubblegum.Kni`, `Gum.Themes.Bubblegum.MonoGame`, `Gum.Themes.Bubblegum.Raylib`, `Gum.Themes.Bubblegum.Skia`, `Gum.Themes.DarkPro.Kni`, `Gum.Themes.DarkPro.MonoGame`, `Gum.Themes.DarkPro.Raylib`, `Gum.Themes.DarkPro.Skia`, `Gum.Themes.Editor.Kni`, `Gum.Themes.Editor.MonoGame`, `Gum.Themes.Editor.Raylib`, `Gum.Themes.Editor.Skia`, `Gum.Themes.ForestGlade.Kni`, `Gum.Themes.ForestGlade.MonoGame`, `Gum.Themes.ForestGlade.Raylib`, `Gum.Themes.ForestGlade.Skia`, `Gum.Themes.Hazard.Kni`, `Gum.Themes.Hazard.MonoGame`, `Gum.Themes.Hazard.Raylib`, `Gum.Themes.Hazard.Skia`, `Gum.Themes.Meadow.Kni`, `Gum.Themes.Meadow.MonoGame`, `Gum.Themes.Meadow.Raylib`, `Gum.Themes.Meadow.Skia`, `Gum.Themes.Neon.Kni`, `Gum.Themes.Neon.MonoGame`, `Gum.Themes.Neon.Raylib`, `Gum.Themes.Neon.Skia`, `Gum.Themes.Retro95.Kni`, `Gum.Themes.Retro95.MonoGame`, `Gum.Themes.Retro95.Raylib`, `Gum.Themes.Retro95.Skia`, `Gum.Themes.Template.Kni`, `Gum.Themes.Template.MonoGame`, `Gum.Themes.Template.Raylib`, `Gum.Themes.Tests`, `GumExpressions`, `GumExpressions.Tests`, `GumFormsPlugin`, `GumFromZipFile`, `GumPreview`, `GumProjectFontGenerator`, `GumShadowDusk.Tests.KniDesktopGL`, `GumShadowDusk.Tests.KniWindowsDX`, `GumShadowDusk.Tests.MonoGameWindowsDX`, `GumTest`, `GumToolUnitTests`, `ImportFromGumxPlugin`, `InputLibrary`, `KernSmith.FnaGum`, `KernSmith.GumCommon`, `KernSmith.KniGum`, `KernSmith.MonoGameGum`, `KernSmith.RaylibGum`, `KniGum`, `KniGum.ShadowDusk`, `KniGumFormsSample.BlazorGL`, `KniGumFormsSample.DesktopGL`, `KniGumFormsSample.WindowsDX`, `KniGumFormsSampleCommon`, `KniGumFromFile.BlazorGL`, `KniGumFromFile.DesktopGL`, `KniGumFromFile.WindowsDX`, `KniGumFromFileCommon`, `KniGumInCode.BlazorGL`, `KniGumInCode.DesktopGL`, `KniGumInCode.WindowsDX`, `KniGumInCodeCommon`, `KniGumShapes`, `KniSkiaGum`, `KniSkiaGum.Tests`, `KniSkiaGumCodeGeneration`, `KniSkiaGumFontLoading`, `KniSkiaGumFromFile`, `KniSkiaGumImmediateMode`, `KniSkiaGumInCode`, `KniSkiaGumSample`, `MonoGameAndGum`, `MonoGameGum`, `MonoGameGum.IntegrationTests`, `MonoGameGum.ShadowDusk`, `MonoGameGum.Shapes.Tests`, `MonoGameGum.Tests`, `MonoGameGum.Tests.V3`, `MonoGameGum.TestsCommon`, `MonoGameGumCodeGeneration`, `MonoGameGumFontLoading`, `MonoGameGumFormsSample`, `MonoGameGumFormsSampleCommon`, `MonoGameGumFromFile`, `MonoGameGumFromFileAndroid`, `MonoGameGumFromFileDX`, `MonoGameGumImmediateMode`, `MonoGameGumInCode`, `MonoGameGumShapes`, `MonoGameGumThemesShowcase`, `MultiGumServiceSample`, `PerformanceMeasurementPlugin`, `RaylibGum`, `RaylibGum.ShadowDusk`, `RaylibGum.Tests`, `RaylibGumThemesShowcase`, `SilkNetGum`, `SilkNetGum.Tests`, `SilkNetGumSample`, `SilkNetGumThemesShowcase`, `SkiaGum(net8.0)`, `SkiaGum.GpuTests`, `SkiaGum.Maui`, `SkiaGum.ShadowDusk`, `SkiaGum.Standalone`, `SkiaGum.Tests`, `SkiaGum.Wpf`, `SkiaGumMonogame`, `SkiaGumWpfSample`, `SkiaHost.TestsCommon`, `SkiaPlugin`, `SokolGum`, `SokolGumFromFile`, `SokolGumSample`, `StateAnimationPlugin`, `StateAnimationPlugin.Core`, `StrideGum(net10.0)`, `StrideGum(net10.0-windows7.0)`, `StrideGum.GpuTests.D3D11`, `StrideGum.GpuTests.D3D12`, `StrideGum.Tests`, `StrideGumSample`, `TextureCoordinatePlugin.Core`, `TextureCoordinateSelectionPlugin`, `TextureFilterDemo.MonoGame`, `TreeViewPlugin.Core`, `UnityGum.Tests`, `WpfRenderSurfaceHostHarness`, `XnaAndWinforms`, `XnaAndWinforms.Wpf`) 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. — GumCommon/Mvvm/PathSegment.cs:41
  • `Gum.Mvvm.PathSegmentParser` (GumCommon/Mvvm/PathSegment.cs:41) is public, and the library's own code uses it, but no other project in this repository uses it (read: `Gum.NetStandard.Tests`, `SkiaGum(netstandard2.1)`, `UnityGum`) 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. — GumCommon/Mvvm/PathSegment.cs:41
  • `Gum.Mvvm.PropertyPathObserver` (GumCommon/Mvvm/PropertyPathObserver.cs:22) is public, and the library's own code uses it, but no other project in this repository uses it (read: `Gum.NetStandard.Tests`, `SkiaGum(netstandard2.1)`, `UnityGum`) 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. — GumCommon/Mvvm/PropertyPathObserver.cs:22
  • `Gum.ProjectServices.FormsBehaviorChain` (GumCommon/Runtime/FormsBehaviorChain.cs:16) is public, and the library's own code uses it, but no other project in this repository uses it (read: `Gum.NetStandard.Tests`, `SkiaGum(netstandard2.1)`, `UnityGum`) 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. — GumCommon/Runtime/FormsBehaviorChain.cs:16
  • `GumRuntime.ReferenceDependencies` (GumCommon/Runtime/ReferenceDependencies.cs:12) is public, and the library's own code uses it, but no other project in this repository uses it (read: `Gum.NetStandard.Tests`, `SkiaGum(netstandard2.1)`, `UnityGum`) 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. — GumCommon/Runtime/ReferenceDependencies.cs:12
  • `GumRuntime.ReferenceDependencies` (GumCommon/Runtime/ReferenceDependencies.cs:12) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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. — GumCommon/Runtime/ReferenceDependencies.cs:12
  • `Gum.Wireframe.RuntimeSnapshotSerializer` (GumCommon/Wireframe/RuntimeSnapshotSerializer.cs:102) is public, and the library's own code uses it, but no other project in this repository uses it (read: `Gum.NetStandard.Tests`, `SkiaGum(netstandard2.1)`, `UnityGum`) 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. — GumCommon/Wireframe/RuntimeSnapshotSerializer.cs:102
  • `Gum.DataTypes.GumFileSerializer` (GumDataTypes/Serialization/GumFileSerializer.cs:15) is public, and the library's own code uses it, but no other project in this repository uses it (read: `Gum.NetStandard.Tests`, `SkiaGum(netstandard2.1)`, `UnityGum`) 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. — GumDataTypes/Serialization/GumFileSerializer.cs:15
  • `Gum.DataTypes.GumFileSerializer` (GumDataTypes/Serialization/GumFileSerializer.cs:15) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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. — GumDataTypes/Serialization/GumFileSerializer.cs:15

What to do

  • Make `Gum.DataTypes.VariableSaveSorter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.DataTypes.VariableSaveSorter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.DataTypes.VariableSaveSorter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SkiaPlugin.Managers.DefaultStateManager` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SkiaPlugin.Managers.DefaultStateManager` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Wireframe.ISpriteRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Wireframe.INineSliceRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Wireframe.IContainerRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Wireframe.IPolygonRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Wireframe.CustomSetPropertyOnRenderable` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Wireframe.FallbackRenderableFactory` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Wireframe.FallbackRenderableFactory` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Wireframe.FallbackRenderableFactory` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Bundle.BundleGumFileProvider` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Bundle.FontReferenceCollector` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Bundle.FontReferenceCollector` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Bundle.GumBundleFormat` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Bundle.GumBundleFormat` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Bundle.GumBundleFormatException` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Bundle.GumBundleReader` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Bundle.GumProjectDependencyWalker` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Bundle.GumProjectDependencyWalker` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Bundle.GumRawTexture` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Bundle.LooseFileGumFileProvider` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Bundle.LooseFileGumFileProvider` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Content.RgbaPixels` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Content.RgbaPixels` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.ShaderIncludeTracker` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.WindowFitMath` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Localization.LocalizationRuntimeState` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Localization.LocalizationRuntimeState` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Mvvm.PathSegmentParser` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Mvvm.PathSegmentParser` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Mvvm.PropertyPathObserver` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.ProjectServices.FormsBehaviorChain` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `GumRuntime.ReferenceDependencies` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `GumRuntime.ReferenceDependencies` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Wireframe.RuntimeSnapshotSerializer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.DataTypes.GumFileSerializer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.DataTypes.GumFileSerializer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.DataTypes.Serialization.Json.GumAnimationJsonFileSerializer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.DataTypes.Serialization.Json.GumJsonFileSerializer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.DataTypes.Serialization.Json.GumJsonFileSerializer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Converters.RatioResizeCalculator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Wireframe.BbCodeFontStacks` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Wireframe.BbCodeParser` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Wireframe.IManagedObject` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Input.MouseState` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Input.MouseState` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Input.MouseState` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Input.MouseState` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Input.MouseState` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Input.MouseState` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Input.TouchCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Input.TouchCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Input.TouchCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Input.TouchCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Input.TouchCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Input.TouchCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Input.TouchCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Wireframe.InputEventArgs` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Wireframe.InputEventArgs` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Clipboard.ClipboardImplementation` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Clipboard.ClipboardImplementation` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Clipboard.ClipboardImplementation` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Clipboard.ClipboardImplementation` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Clipboard.ClipboardImplementation` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Clipboard.ClipboardImplementation` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.Data.GumProperty` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileButtonRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileButtonRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileButtonRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileButtonRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileButtonRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileButtonRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileCheckBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileCheckBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileCheckBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileCheckBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileCheckBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileCheckBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileCheckBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileColorPickerRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileColorPickerRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileColorPickerRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileColorPickerRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileColorPickerRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileColorPickerRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileComboBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileComboBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileComboBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileComboBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileComboBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileComboBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileComboBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileDialogBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileDialogBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileDialogBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileDialogBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileDialogBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileDialogBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileDialogBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileExpanderRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileExpanderRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileExpanderRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileExpanderRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileExpanderRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileExpanderRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileItemsControlRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileItemsControlRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileItemsControlRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileItemsControlRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileItemsControlRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileItemsControlRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileItemsControlRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileLabelRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileLabelRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileLabelRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileLabelRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileLabelRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileLabelRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileLabelRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileLabelTextRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileLabelTextRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileLabelTextRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileLabelTextRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileLabelTextRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileLabelTextRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileLabelTextRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileListBoxItemRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileListBoxItemRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileListBoxItemRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileListBoxItemRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileListBoxItemRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileListBoxItemRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileListBoxItemRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileListBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileListBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileListBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileListBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileListBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileListBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileListBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFilePasswordBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFilePasswordBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFilePasswordBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFilePasswordBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFilePasswordBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFilePasswordBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileRadioButtonRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileRadioButtonRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileRadioButtonRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileRadioButtonRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileRadioButtonRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileRadioButtonRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileRadioButtonRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileScrollBarRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileScrollBarRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileScrollBarRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileScrollBarRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileScrollBarRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileScrollBarRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileScrollBarRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileScrollViewerRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileScrollViewerRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileScrollViewerRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileScrollViewerRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileScrollViewerRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileScrollViewerRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileScrollViewerRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileSliderRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileSliderRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileSliderRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileSliderRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileSliderRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileSliderRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileSplitterRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileSplitterRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileSplitterRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileSplitterRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileSplitterRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileSplitterRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileStackPanelRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileStackPanelRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileStackPanelRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileStackPanelRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileStackPanelRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileStackPanelRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileStackPanelRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTabControlRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTabControlRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTabControlRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTabControlRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTabControlRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTabControlRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTabItemRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTabItemRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTabItemRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTabItemRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTabItemRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTabItemRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTabPageRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTabPageRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTabPageRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTabPageRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTabPageRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTabPageRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTextBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTextBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTextBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTextBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTextBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTextBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTextBoxRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileToggleButtonRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileToggleButtonRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileToggleButtonRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileToggleButtonRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileToggleButtonRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileToggleButtonRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileToggleButtonRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTooltipRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTooltipRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTooltipRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTooltipRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTooltipRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileTooltipRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileUserControlRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileUserControlRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileUserControlRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileUserControlRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileUserControlRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileUserControlRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileUserControlRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileWindowRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileWindowRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileWindowRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileWindowRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileWindowRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileWindowRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultFromFileVisuals.DefaultFromFileWindowRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.ThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.ThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.ThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.ThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.ThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.ThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.CheckBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.CheckBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.CheckBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.ColorPickerVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.ColorPickerVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.ColorPickerVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.ColorPickerVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.ComboBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.ComboBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.ComboBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.DialogBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.DialogBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.DialogBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.LabelVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.LabelVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.LabelVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.ListBoxItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.ListBoxItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.ListBoxItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.ListBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.ListBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.ListBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.MenuItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.MenuItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.MenuVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.MenuVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.PasswordBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.PasswordBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.RadioButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.RadioButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.RadioButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.SliderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.SliderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.SliderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.SplitterVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.SplitterVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.SplitterVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.TabControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.TabControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.TabItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.TabItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.TabPageVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.TabPageVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.TextBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.TextBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.TextBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.ToggleButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.ToggleButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.ToggleButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.TooltipVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.TooltipVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.TooltipVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.WindowVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.WindowVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.DefaultVisuals.V3.WindowVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.FormsUtilities` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.FormsUtilities` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Forms.SpatialNavigationService` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.GueDeriving.IAntialiasedRenderable` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.GueDeriving.IBlendedRenderable` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.GueDeriving.IDashedStrokeRenderable` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.GueDeriving.IDropshadowRenderable` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.GueDeriving.IFilledCircleRenderable` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.GueDeriving.IGradientedRenderable` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.GueDeriving.RectangleRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `MonoGameGum.GueDeriving.CircleRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `MonoGameGum.GueDeriving.ColoredRectangleRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `MonoGameGum.GueDeriving.PolygonRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `MonoGameGum.GueDeriving.RectangleRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Renderables.RenderableCreator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Renderables.RenderableCreator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Renderables.RenderableCreator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Renderables.RenderableCreator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Content.ContentLoader` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Content.TextureEdgeBleed` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Content.TextureEdgeBleed` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Content.TextureEdgeBleed` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Content.TexturePremultiply` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Content.TexturePremultiply` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Graphics.Animation.AnimationChainListFileLoader` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Graphics.Animation.AnimationChainListFileLoader` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Graphics.Animation.AnimationChainListFileLoader` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Graphics.Animation.AnimationChainListFileLoader` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Graphics.Animation.AnimationChainListFileLoader` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Graphics.Animation.AnimationChainListFileLoader` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Graphics.Animation.AnimationChainListFileLoader` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Graphics.Animation.KeyframeEvaluator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Graphics.Animation.KeyframeEvaluator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Graphics.Animation.KeyframeEvaluator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Graphics.Animation.KeyframeEvaluator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Graphics.Animation.KeyframeEvaluator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Graphics.Animation.KeyframeEvaluator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Graphics.Animation.KeyframeEvaluator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Graphics.Animation.PlaybackTimeline` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Graphics.Animation.PlaybackTimeline` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Graphics.Animation.PlaybackTimeline` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Graphics.Animation.PlaybackTimeline` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Graphics.Animation.PlaybackTimeline` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Graphics.Animation.PlaybackTimeline` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Graphics.Animation.PlaybackTimeline` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Graphics.Animation.PlaybackTimeline` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.BatchOrchestrator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.BatchOrchestrator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.BatchOrchestrator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.EffectShaderParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.EffectShaderParameters` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.Fonts.IPremultipliableFontCreator` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.ParsedFontFile` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.ParsedFontFile` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.FrozenObservableCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.FrozenObservableCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.FrozenObservableCollection` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.TextLineHeight` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.LetterCellScale` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.NineSliceExtensions` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.RenderTargetServiceBase` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.RenderTargetServiceBase` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.RenderTargetServiceBase` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.RenderTargetServiceBase` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.RenderTargetServiceBase` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.RenderTargetServiceBase` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.RenderTargetServiceBase` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.DeviceManager` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.ServiceProvider` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.GumBatch` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.DeviceManager` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.ServiceProvider` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.GumBatch` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.DeviceManager` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.ServiceProvider` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.GumBatch` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.DeviceManager` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.ServiceProvider` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.RendererSettings` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.RendererSettings` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.ShaderParameterText` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.ShaderParameterText` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.ShaderParameterVariables` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.ShaderResolverSlot` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.ShaderVariableNaming` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.ShaderVariableNaming` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.SortableLayer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.SortableLayer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.SpriteBatchStack` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.StateChangeInfoListPool` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.SpriteBatchStack` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.StateChangeInfoListPool` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.SpriteBatchStack` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.StateChangeInfoListPool` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.SpriteBatchStack` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.StateChangeInfoListPool` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.StyledSubstringSplitter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.StyledSubstringSplitter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.StyledSubstringSplitter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.StyledSubstringSplitter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.StyledSubstringSplitter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.ParameterizedLetterCustomizationCall` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.ParameterizedLetterCustomizationCall` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.Graphics.ParameterizedLetterCustomizationCall` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Content.ShapeSvgLoader` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `MonoGameGum.GueDeriving.ArcRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `MonoGameGum.GueDeriving.ColoredCircleRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `MonoGameGum.GueDeriving.LineRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `MonoGameGum.GueDeriving.RoundedRectangleRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Renderables.GradientUnitResolver` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `RenderingLibrary.ManagedTexture` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SkiaGum.Content.Fonts.GumFontMapper` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SkiaGum.Content.Fonts.WoffConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SkiaGum.Content.Fonts.WoffConverter` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SkiaGum.Content.SkSlRuntimeEffectLoader` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SkiaGum.Content.SkiaResourceManager` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SkiaGum.Content.SkiaRuntimeEffectDefaults` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SkiaGum.CustomSetPropertyOnRenderable` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `MonoGameGumShapes.CustomSetPropertyOnRenderable` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `MonoGameGumShapes.CustomSetPropertyOnRenderable` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SkiaGum.GueDeriving.ArcRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SkiaGum.GueDeriving.CircleRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SkiaGum.GueDeriving.ColoredCircleRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SkiaGum.GueDeriving.ColoredRectangleRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SkiaGum.GueDeriving.ContainerRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SkiaGum.GueDeriving.LineRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SkiaGum.GueDeriving.PolygonRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SkiaGum.GueDeriving.SpriteRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SkiaGum.GueDeriving.TextRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.GueDeriving.SvgRuntime` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SkiaGum.Renderables.Arc` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SkiaGum.Renderables.Circle` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SkiaGum.Renderables.Line` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SkiaGum.Renderables.LineGrid` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SkiaGum.Renderables.NineSlice` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SkiaGum.Renderables.Polygon` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SkiaGum.Renderables.Sprite` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SkiaGum.ParameterizedLetterCustomizationCall` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SkiaGum.ParameterizedLetterCustomizationCall` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SkiaGum.VectorSprite` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SokolGum.ContentLoader` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SokolGum.CustomSetPropertyOnRenderable` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `SokolGum.FontstashTextMeasurer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Renderables.SolidRectangle` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Renderables.Sprite` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.GumSceneRenderer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.GumSceneRenderer` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.CheckBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.CheckBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.CheckBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.ComboBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.ComboBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.ComboBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.ListBoxItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.ListBoxItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.ListBoxItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.ListBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.ListBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.ListBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.MenuItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.MenuItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.MenuItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.MenuVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.MenuVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.MenuVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.PasswordBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.PasswordBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.PasswordBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.RadioButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.RadioButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.ScrollBarThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.ScrollBarThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.ScrollBarThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.ScrollBarVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.ScrollBarVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.ScrollBarVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.SliderThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.SliderThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.SliderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.SliderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.SliderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.SplitterVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.SplitterVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.SplitterVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.TabControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.TabControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.TabControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.TabItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.TabItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.TabItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.TextBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.TextBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.TextBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.ThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.ThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.ToggleButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.ToggleButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.TooltipVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.TooltipVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.TooltipVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.WindowVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.WindowVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Bubblegum.WindowVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.ButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.ButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.CheckBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.CheckBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.CheckBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.ComboBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.ComboBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.ComboBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.ListBoxItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.ListBoxItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.ListBoxItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.ListBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.ListBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.ListBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.MenuItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.MenuItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.MenuItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.MenuVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.MenuVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.MenuVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.PasswordBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.PasswordBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.PasswordBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.RadioButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.RadioButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.ScrollBarThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.ScrollBarThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.ScrollBarThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.ScrollBarVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.ScrollBarVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.ScrollBarVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.SliderThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.SliderThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.SliderThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.SliderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.SliderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.SliderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.SplitterVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.SplitterVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.SplitterVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.TabControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.TabControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.TabControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.TabItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.TabItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.TabItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.TextBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.TextBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.TextBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.ToggleButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.ToggleButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.TooltipVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.TooltipVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.TooltipVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.WindowVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.WindowVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.DarkPro.WindowVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.CheckBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.CheckBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.CheckBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.ComboBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.ComboBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.ComboBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.ExpanderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.ExpanderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.ExpanderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.ListBoxItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.ListBoxItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.ListBoxItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.ListBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.ListBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.ListBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.PasswordBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.PasswordBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.PasswordBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.ScrollBarButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.ScrollBarButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.ScrollBarVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.ScrollBarVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.ScrollBarVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.SliderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.SliderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.SliderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.TabItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.TabItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.TabItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.TextBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.TextBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.TextBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.ThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Editor.ThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.CheckBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.CheckBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.CheckBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.ComboBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.ComboBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.ComboBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.ListBoxItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.ListBoxItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.ListBoxItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.ListBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.ListBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.ListBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.MenuItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.MenuItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.MenuItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.MenuVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.MenuVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.MenuVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.PasswordBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.PasswordBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.PasswordBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.RadioButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.RadioButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.ScrollBarThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.ScrollBarThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.ScrollBarThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.ScrollBarVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.ScrollBarVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.ScrollBarVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.SliderThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.SliderThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.SliderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.SliderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.SliderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.SplitterVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.SplitterVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.SplitterVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.TabControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.TabControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.TabControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.TabItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.TabItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.TabItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.TextBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.TextBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.TextBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.ThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.ThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.ToggleButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.ToggleButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.TooltipVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.TooltipVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.TooltipVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.WindowVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.WindowVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.ForestGlade.WindowVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.CheckBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.CheckBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.CheckBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.ComboBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.ComboBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.ComboBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.ListBoxItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.ListBoxItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.ListBoxItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.ListBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.ListBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.ListBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.MenuItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.MenuItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.MenuItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.MenuVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.MenuVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.MenuVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.PasswordBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.PasswordBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.PasswordBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.RadioButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.RadioButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.ScrollBarThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.ScrollBarThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.ScrollBarThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.ScrollBarVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.ScrollBarVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.ScrollBarVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.SliderThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.SliderThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.SliderThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.SliderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.SliderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.SliderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.SplitterVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.SplitterVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.SplitterVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.TabControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.TabControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.TabControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.TabItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.TabItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.TabItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.TextBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.TextBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.TextBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.ThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.ThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.ToggleButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.ToggleButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.TooltipVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.TooltipVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.TooltipVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.WindowVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.WindowVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Hazard.WindowVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.CheckBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.CheckBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.CheckBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.ComboBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.ComboBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.ComboBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.ListBoxItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.ListBoxItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.ListBoxItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.ListBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.ListBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.ListBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.MenuItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.MenuItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.MenuItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.MenuVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.MenuVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.MenuVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.PasswordBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.PasswordBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.PasswordBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.RadioButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.RadioButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.ScrollBarThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.ScrollBarThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.ScrollBarThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.ScrollBarVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.ScrollBarVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.ScrollBarVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.SliderThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.SliderThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.SliderThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.SliderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.SliderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.SliderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.SplitterVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.SplitterVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.SplitterVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.TabControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.TabControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.TabControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.TabItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.TabItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.TabItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.TextBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.TextBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.TextBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.ThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.ThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.ToggleButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.ToggleButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.TooltipVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.TooltipVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.TooltipVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.WindowVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.WindowVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Meadow.WindowVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.ButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.CheckBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.CheckBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.CheckBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.ComboBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.ComboBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.ComboBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.ListBoxItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.ListBoxItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.ListBoxItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.ListBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.ListBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.ListBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.MenuItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.MenuItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.MenuItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.MenuVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.MenuVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.MenuVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.PasswordBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.PasswordBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.PasswordBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.RadioButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.RadioButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.ScrollBarThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.ScrollBarThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.ScrollBarThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.ScrollBarVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.ScrollBarVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.ScrollBarVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.SliderThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.SliderThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.SliderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.SliderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.SliderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.SplitterVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.SplitterVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.SplitterVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.TabControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.TabControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.TabControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.TabItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.TabItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.TabItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.TextBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.TextBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.TextBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.ToggleButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.ToggleButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.TooltipVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.TooltipVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.TooltipVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.WindowVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.WindowVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Neon.WindowVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.CheckBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.CheckBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.CheckBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.ComboBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.ComboBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.ComboBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.ListBoxItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.ListBoxItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.ListBoxItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.ListBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.ListBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.ListBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.MenuItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.MenuItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.MenuItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.MenuVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.MenuVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.MenuVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.PasswordBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.PasswordBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.PasswordBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.RadioButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.RadioButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.Retro95DottedFocusRect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.Retro95DottedFocusRect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.Retro95DottedFocusRect` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.Retro95MenuPopupVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.Retro95MenuPopupVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.ScrollBarButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.ScrollBarButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.ScrollBarThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.ScrollBarThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.ScrollBarThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.ScrollBarVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.ScrollBarVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.ScrollBarVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.SliderThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.SliderThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.SliderThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.SliderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.SliderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.SliderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.SplitterVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.SplitterVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.SplitterVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.TabControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.TabControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.TabControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.TabItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.TabItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.TabItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.TextBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.TextBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.TextBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.ThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.ThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.ToggleButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.ToggleButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.TooltipVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.TooltipVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.TooltipVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.WindowVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.WindowVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Retro95.WindowVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.CheckBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.CheckBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.ComboBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.ComboBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.ItemsControlVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.ListBoxItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.ListBoxItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.ListBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.ListBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.MenuItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.MenuItemVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.MenuVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.MenuVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.PasswordBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.PasswordBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.RadioButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.ScrollBarThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.ScrollBarThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.ScrollBarVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.ScrollBarVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.SliderThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.SliderThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.SliderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.SliderVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.SplitterVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.SplitterVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.TextBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.TextBoxVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.ThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.ToggleButtonVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.TooltipVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.TooltipVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.Variants.SliderThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.Variants.SliderThumbVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.WindowVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only the library itself uses it and nothing on its public API exposes it, so hiding it costs consumers nothing and lets it change freely.
  • Make `Gum.Themes.Template.WindowVisual` internal (C#: `internal`, with `[InternalsVisibleTo]` for the sibling assemblies and tests that need them): only 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 · Observability5.5 / 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 31/64 service-like projects use logging (pure contract/DTO projects are excluded — they have nothing to log). Of those 64, 18 ship a process this repository operates; the rest are libraries their consumer hosts, where the logging decision belongs to the host.
  • `RenderingLibrary/Graphics/Renderer.cs` reports through `Console.Write…` at line 3161 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. (×9) — RenderingLibrary/Graphics/Renderer.cs:3161, RenderingLibrary/Graphics/Renderer.cs:3161, RenderingLibrary/Graphics/Renderer.cs:3161, …

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

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

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

  • No static application security testing detected. For this repository's stack, add 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 11 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:15
  • `Directory.Packages.props` 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`. — Directory.Packages.props:19

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 Hygiene10.0 / 10Exemplary✓ Tool-verified

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

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

P7 · Outbound HTTP 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 System.Net.Http.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. This codebase ships libraries/tools rather than a service it operates, so the failure lands as a hung caller — a build step, a CLI run, a UI thread — with no way out. — Runtimes/SkiaGum/Content/SkiaResourceManager.cs:168
  • `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. This codebase ships libraries/tools rather than a service it operates, so the failure lands as a hung caller — a build step, a CLI run, a UI thread — with no way out. (×3) — Samples/GumFormsSample/KniGumFormsSample.BlazorGL/Program.cs:19, Samples/KniGumFromFile/KniGumFromFile.BlazorGL/Program.cs:19, Samples/KniGumInCode/KniGumInCode.BlazorGL/Program.cs:19
  • `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. This codebase ships libraries/tools rather than a service it operates, so the failure lands as a hung caller — a build step, a CLI run, a UI thread — with no way out. — REDACTED:16

What to do

  • Give every outbound call a bound the caller can rely on: set an explicit `HttpClient.Timeout` (or pass a `CancellationToken` from a `CancellationTokenSource` with a deadline) and flow the caller's own `CancellationToken` through, so a slow endpoint fails fast instead of hanging.
PF3 · Async & latency hygiene2.0 / 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.

  • 10 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) — Runtimes/SkiaGum/Content/SkiaResourceManager.cs:169, Runtimes/GumShapes/Content/ShapeSvgLoader.cs:147, Tools/Gum.Cli/Commands/FontsCommand.cs:83, …
  • Only 0/13 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 _httpClient.GetAsync(url, HttpCompletionOption.ResponseHeadersRead)` 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)`. — ToolsUtilities/Network/NetworkManager.cs:34
  • `await response.Content.ReadAsStreamAsync()` 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)`. — ToolsUtilities/Network/NetworkManager.cs:51
  • `await ProcessContentStream(totalBytes, contentStream, destinationStream, progressCh...` 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)`. — ToolsUtilities/Network/NetworkManager.cs:54
  • `await contentStream.ReadAsync(buffer, 0, buffer.Length)` 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)`. — ToolsUtilities/Network/NetworkManager.cs:78
  • `await destinationStream.WriteAsync(buffer, 0, bytesRead)` 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)`. — ToolsUtilities/Network/NetworkManager.cs:86
  • `await StartShowAllPagesLoop()` 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) — MonoGameGum/Forms/Controls/Games/DialogBox.cs:296, MonoGameGum/Forms/Controls/Games/DialogBox.cs:315
  • `await ShowAsync(pageTasks, frbLayer)` 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)`. — MonoGameGum/Forms/Controls/Games/DialogBox.cs:336
  • `await page.Task()` 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)`. — MonoGameGum/Forms/Controls/Games/DialogBox.cs:450
  • `await semaphoreSlim.WaitAsync()` 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)`. — MonoGameGum/Forms/Controls/Games/DialogBox.cs:483
  • `await InjectedClipboard.GetTextAsync()` 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)`. — MonoGameGum/Clipboard/ClipboardImplementation.cs:32
  • `await CanProceedFunc()` 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)`. — Runtimes/SkiaGum.Maui/SkiaGumCanvasView.cs:166
  • `await ExclusiveUiInteractionSemaphore.WaitAsync(0)` 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)`. — Runtimes/SkiaGum.Maui/SkiaGumCanvasView.cs:170

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.
R1 · Type Safety10.0 / 10Exemplary✓ Tool-verified

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

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

R10 · Code Duplication5.7 / 10Adequate✓ Tool-verified

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

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

  • Tool/HtmlToGum/converter/extract.ts:114 · Tool/HtmlToGum/converter/forms.ts:25 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — Tool/HtmlToGum/converter/extract.ts:114
  • Tool/HtmlToGum/converter/map.ts:418 · Tool/HtmlToGum/converter/map.ts:756 — the two spans are one implementation copied and then locally edited — 234 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — Tool/HtmlToGum/converter/map.ts:418
  • Tool/HtmlToGum/converter/map.ts:1775 · Tool/HtmlToGum/converter/map.ts:2052 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — Tool/HtmlToGum/converter/map.ts:1775
  • Tool/HtmlToGum/converter/assets.ts:127 · Tool/HtmlToGum/converter/fonts.ts:122 — the two spans are one implementation copied and then locally edited — 131 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — Tool/HtmlToGum/converter/assets.ts:127
  • Tool/HtmlToGum/converter/convert.ts:257 · Tool/HtmlToGum/converter/raster-isolation.ts:27 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — Tool/HtmlToGum/converter/convert.ts:257
  • Tool/HtmlToGum/converter/forms.ts:134 · Tool/HtmlToGum/converter/map.ts:1701 — the two spans are one implementation copied and then locally edited — 98 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — Tool/HtmlToGum/converter/forms.ts:134
  • Tool/HtmlToGum/converter/convert.ts:349 · Tool/HtmlToGum/converter/convert.ts:367 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — Tool/HtmlToGum/converter/convert.ts:349
  • Tool/HtmlToGum/converter/map.ts:2084 · Tool/HtmlToGum/converter/map.ts:2099 — 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. — Tool/HtmlToGum/converter/map.ts:2084
  • Tool/HtmlToGum/converter/extract.ts:814 · Tool/HtmlToGum/converter/extract.ts:830 — 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. — Tool/HtmlToGum/converter/extract.ts:814
  • Tool/HtmlToGum/converter/map.ts:1729 · Tool/HtmlToGum/converter/map.ts:1787 · Tool/HtmlToGum/converter/map.ts:2018 · Tool/HtmlToGum/converter/map.ts:2043 · +1 more site(s) not listed — all 5 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — Tool/HtmlToGum/converter/map.ts:1729
  • Tool/HtmlToGum/fidelity/canaries.ts:57 · Tool/HtmlToGum/fidelity/site-fidelity.ts:82 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — Tool/HtmlToGum/fidelity/canaries.ts:57
  • Tool/HtmlToGum/converter/extract.ts:891 · Tool/HtmlToGum/converter/extract.ts:900 — all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct — the members of a type, or the entries of an object or array literal — with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal's entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or — where the copies are a literal's entries rather than a type's members — one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared — a decorator and its options, an annotation, a registration table's keys — the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases. — Tool/HtmlToGum/converter/extract.ts:891
  • Tool/HtmlToGum/converter/map.ts:1661 · Tool/HtmlToGum/converter/map.ts: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. — Tool/HtmlToGum/converter/map.ts:1661
  • Tool/HtmlToGum/fidelity/canaries.ts:24 · Tool/HtmlToGum/fidelity/site-fidelity.ts:26 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — Tool/HtmlToGum/fidelity/canaries.ts:24
  • Tool/HtmlToGum/fidelity/canaries.ts:78 · Tool/HtmlToGum/fidelity/site-fidelity.ts:108 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — Tool/HtmlToGum/fidelity/canaries.ts:78
  • Tool/HtmlToGum/fidelity/canaries.ts:152 · Tool/HtmlToGum/fidelity/site-fidelity.ts:308 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — Tool/HtmlToGum/fidelity/canaries.ts:152
  • Tool/HtmlToGum/converter/map.ts:546 · Tool/HtmlToGum/converter/map.ts:554 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — Tool/HtmlToGum/converter/map.ts:546
  • Tool/HtmlToGum/converter/map.ts:1139 · Tool/HtmlToGum/converter/map.ts:1146 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — Tool/HtmlToGum/converter/map.ts:1139
  • Tool/HtmlToGum/converter/map.ts:1767 · Tool/HtmlToGum/converter/map.ts:2029 — 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. — Tool/HtmlToGum/converter/map.ts:1767
  • Tool/HtmlToGum/converter/map.ts:1801 · Tool/HtmlToGum/converter/map.ts:1810 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — Tool/HtmlToGum/converter/map.ts:1801
  • Tool/HtmlToGum/converter/map.ts:1968 · Tool/HtmlToGum/converter/map.ts:1975 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — Tool/HtmlToGum/converter/map.ts:1968
  • Tool/HtmlToGum/converter/map.ts:2022 · Tool/HtmlToGum/converter/map.ts:2047 — 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. — Tool/HtmlToGum/converter/map.ts:2022
  • Tool/HtmlToGum/converter/regress.ts:99 · Tool/HtmlToGum/converter/regress.ts:117 · Tool/HtmlToGum/converter/regress.ts:165 — all 3 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — Tool/HtmlToGum/converter/regress.ts:99
  • Tool/HtmlToGum/fidelity/canaries.ts:67 · Tool/HtmlToGum/fidelity/site-fidelity.ts:93 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — Tool/HtmlToGum/fidelity/canaries.ts:67
  • Tool/HtmlToGum/converter/map.ts:537 · Tool/HtmlToGum/converter/map.ts:550 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — Tool/HtmlToGum/converter/map.ts:537
  • Tool/HtmlToGum/fidelity/freeze-page.ts:45 · Tool/HtmlToGum/fidelity/site-fidelity.ts:151 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — Tool/HtmlToGum/fidelity/freeze-page.ts:45
  • Tool/HtmlToGum/converter/dom-quiescence.ts:159 · Tool/HtmlToGum/converter/dom-quiescence.ts:197 — the two spans are one implementation copied and then locally edited — 57 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — Tool/HtmlToGum/converter/dom-quiescence.ts:159
  • Tool/HtmlToGum/converter/regress.ts:16 · Tool/HtmlToGum/fidelity/canaries.ts:24 · Tool/HtmlToGum/fidelity/site-fidelity.ts:26 — the 3 copies are spread across 3 files, and the CITED SPAN is a run of MODULE-LEVEL DECLARATIONS — bindings the module declares and exports — rather than statements with a call site. Do not read this as an extract-a-helper row: a call expression cannot stand where a declaration was, and putting one there would delete the names themselves, which are what the rest of the codebase imports. What actually repeats here is the INITIALISER — the same expression shape written once per binding. So give that expression one name (a small helper the initialisers call, or a shared base value they are each derived from) and keep every binding under the name it already has. Where the run is an enumeration — one binding per distinct thing, differing precisely in the thing each one names — the repetition IS the enumeration and collapsing it would delete entries; consider instead whether the set belongs in one exported table the individual names are read out of. Reported because the copies drift apart the first time only one of them is edited. — Tool/HtmlToGum/converter/regress.ts:16
  • Tool/HtmlToGum/converter/regress.ts:113 · Tool/HtmlToGum/converter/regress.ts:133 — 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. — Tool/HtmlToGum/converter/regress.ts:113
  • Tool/HtmlToGum/converter/regress.ts:177 · Tool/HtmlToGum/converter/regress.ts:197 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — Tool/HtmlToGum/converter/regress.ts:177
  • Tool/HtmlToGum/fidelity/freeze-page.ts:38 · Tool/HtmlToGum/fidelity/site-fidelity.ts:66 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — Tool/HtmlToGum/fidelity/freeze-page.ts:38

What to do

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

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

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

  • Tool/HtmlToGum/fidelity/canaries.ts:22 reaches into another package with a relative path (../converter/tsx-run.js) — import the package by name instead. — Tool/HtmlToGum/fidelity/canaries.ts:22
  • Tool/HtmlToGum/fidelity/crawl.ts:4 reaches into another package with a relative path (../converter/tsx-evaluate-shim.js) — import the package by name instead. — Tool/HtmlToGum/fidelity/crawl.ts:4
  • Tool/HtmlToGum/fidelity/freeze-page.ts:14 reaches into another package with a relative path (../converter/tsx-evaluate-shim.js) — import the package by name instead. — Tool/HtmlToGum/fidelity/freeze-page.ts:14
  • Tool/HtmlToGum/fidelity/site-fidelity.ts:24 reaches into another package with a relative path (../converter/tsx-run.js) — import the package by name instead. — Tool/HtmlToGum/fidelity/site-fidelity.ts:24

What to do

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

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

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

  • walk has cyclomatic complexity 152 and cognitive complexity 247; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/map.ts:1515
  • walk has cyclomatic complexity 84 and cognitive complexity 87; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/extract.ts:705
  • needsRasterPaint has cyclomatic complexity 64 and cognitive complexity 47; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/extract.ts:373
  • main has cyclomatic complexity 49 and cognitive complexity 71; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/fidelity/site-fidelity.ts:150
  • shouldRasterTextHeavyCell has cyclomatic complexity 47 and cognitive complexity 63; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/extract.ts:226
  • (anonymous) has cyclomatic complexity 39 and cognitive complexity 52; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/dom-quiescence.ts:77
  • formControlFromDom has cyclomatic complexity 39 and cognitive complexity 45; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/extract.ts:109
  • formControlFromDom has cyclomatic complexity 38 and cognitive complexity 44; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/forms.ts:24
  • applyChildrenLayout has cyclomatic complexity 28 and cognitive complexity 38; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/map.ts:915
  • resolveBackgroundImageLayout has cyclomatic complexity 27 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/map.ts:748
  • materializeWebFonts has cyclomatic complexity 26 and cognitive complexity 68; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/fonts.ts:363
  • downloadImages has cyclomatic complexity 26 and cognitive complexity 54; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/assets.ts:223
  • computeBackgroundSpriteCrop has cyclomatic complexity 26 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/map.ts:417
  • emitStackCrossAxis has cyclomatic complexity 25 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/map.ts:1084
  • walkTextNode has cyclomatic complexity 24 and cognitive complexity 49; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/extract.ts:551
  • crawlSite has cyclomatic complexity 23 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/fidelity/crawl.ts:26
  • main has cyclomatic complexity 22 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/fidelity/canaries.ts:216
  • parseHardTextShadows has cyclomatic complexity 21 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/map.ts:322
  • emitFormsControlVars has cyclomatic complexity 21 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/forms.ts:130
  • emitVisual has cyclomatic complexity 20 and cognitive complexity 35; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/map.ts:1241
  • extFor has cyclomatic complexity 19 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/fonts.ts:305
  • runOne has cyclomatic complexity 18 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/fidelity/canaries.ts:123
  • applyHtmlTableBorderPaint has cyclomatic complexity 18 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/extract.ts:83
  • layoutModeOf has cyclomatic complexity 17 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/map.ts:154
  • unicodeRangeCoversBasicLatin has cyclomatic complexity 16 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/fonts.ts:77
  • walk has cyclomatic complexity 16 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/nineslice.ts:65
  • main has cyclomatic complexity 16 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/convert.ts:442
  • walk has cyclomatic complexity 14 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/convert.ts:317
  • collectEntries has cyclomatic complexity 14 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/fidelity/canaries.ts:190
  • sniffExt has cyclomatic complexity 14 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/assets.ts:151
  • parseArgs has cyclomatic complexity 13 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/fidelity/site-fidelity.ts:33
  • emitSpriteSource has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/map.ts:1183
  • textAlignHorizontal has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/map.ts:541
  • intersectScreenshotClip has cyclomatic complexity 13 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/screenshot-clip.ts:12
  • isVisuallyHidden has cyclomatic complexity 13 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/extract.ts:24
  • shot has cyclomatic complexity 12 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/convert.ts:335
  • buildRectFillVars has cyclomatic complexity 12 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/map.ts:670
  • repairEmptyCustomFonts has cyclomatic complexity 12 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/fonts.ts:485
  • parseArgs has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/convert.ts:59
  • (anonymous) has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — Tool/HtmlToGum/converter/raster-isolation.test.ts:143
R3 · Large Files3.8 / 10Weak✓ Tool-verified

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

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

  • Tool/HtmlToGum/converter/map.ts has 2026 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — Tool/HtmlToGum/converter/map.ts:1
  • Tool/HtmlToGum/converter/extract.ts has 983 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — Tool/HtmlToGum/converter/extract.ts:1
  • Tool/HtmlToGum/converter/convert.ts has 602 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — Tool/HtmlToGum/converter/convert.ts:1
  • Tool/HtmlToGum/converter/fonts.ts has 490 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — Tool/HtmlToGum/converter/fonts.ts:1

What to do

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

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

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

  • No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one. (×10) — Tool/HtmlToGum/converter/convert.ts:1, Tool/HtmlToGum/fidelity/site-fidelity.ts:1, Tool/HtmlToGum/fidelity/canaries.ts:1, …

What to do

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

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

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

R6 · Tooling6.7 / 10Adequate✓ Tool-verified

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

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

  • test ✓ · lint ✗ · typecheck ✓ — read from this repository's package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: `test` for the suite, `lint` or `prettier` for linting, `typecheck`/`type-check`/`tsc` for type checking. ✗ therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline — a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A ✓ means the wiring is DECLARED — a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite.

What to do

  • Add eslint as package.json scripts and run them in CI.
R7 · Dead Code9.8 / 10Exemplary✓ Tool-verified

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

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

  • Unreachable from the 6 application, 1 tooling and 12 test entry point(s) detected in this repo. Gate removals on `npm run typecheck` — an undetected custom entry would make these reachable.
  • no import path from any entry point (6 application, 1 tooling, 12 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make — Tool/HtmlToGum/converter/snapshot-gfg.ts

What to do

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

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

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

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

What to do

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

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

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

X1 · Async correctness4.8 / 10Weak✓ 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.

  • This acquires a `SemaphoreSlim` with the BLOCKING `Wait()` inside a method that is already `async`. The thread does not yield while it queues for the semaphore: it parks a pool thread doing no work, and under contention the pool must grow (or the holders must finish) before any waiter can proceed — which is how a bounded-concurrency gate turns into a throughput collapse under exactly the load it exists to bound. `SemaphoreSlim` ships an asynchronous acquire for this: `await semaphore.WaitAsync()` releases the thread while it waits and is legal here because the enclosing method is already `async`, so this is a one-word change with no signature to break. Where the acquire must be bounded, `await semaphore.WaitAsync(timeout)`/`WaitAsync(cancellationToken)` keep that property; and whichever you use, release it in a `finally` so a throw inside the critical section cannot leak a permit. — MonoGameGum/Forms/Controls/Games/DialogBox.cs:480
  • 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. (×10) — Runtimes/SkiaGum/Content/SkiaResourceManager.cs:169, Runtimes/GumShapes/Content/ShapeSvgLoader.cs:147, Tools/Gum.Cli/Commands/FontsCommand.cs:83, …
  • `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. (×14) — Runtimes/SkiaGum.Maui/SkiaGumCanvasView.cs:190, Tools/Gum.Presentation/GumForms/ViewModels/AddFormsViewModel.cs:34, Tools/Gum.Presentation/HtmlToGumPlugin/MainHtmlToGumPlugin.cs:93, …
  • `Process.WaitForExit` blocks the thread on I/O while `Process.WaitForExitAsync` exists to wait without one — inside a method that is already `async`, await the twin. — Tools/Gum.ProjectServices/FontGeneration/BmFontExeFileGenerator.cs:76
  • Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout. — Tools/Gum.ProjectServices/FontGeneration/HeadlessFontGenerationService.cs:122
  • `File.WriteAllBytes` blocks the thread on I/O while `File.WriteAllBytesAsync` exists to wait without one — inside a method that is already `async`, await the twin. — Tools/Gum.Presentation/ImportFromGumx/Services/GumxImportService.cs:464
  • `.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). — Tools/Gum.Presentation/Startup/SingleInstance/OpenRequestServer.cs:123

What to do

  • Blocking `SemaphoreSlim.Wait()` inside an `async` method
X12 · Unreachable branch8.0 / 10Strong✓ Tool-verified

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.

  • `textureToUse == null` can never be true where it stands: the guard on line 898 (`textureToUse == null`) left this block when it was true. No value of `textureToUse` satisfies all of that, so this arm never runs. Reorder the tests, drop the dead branch, or fix the bound that was meant. — RenderingLibrary/Graphics/Sprite.cs:976
  • `yOrigin == VerticalAlignment.Top` can never be true where it stands: the arm on line 3330 (`yOrigin == VerticalAlignment.Center`) was false; the arm on line 3341 (`yOrigin == VerticalAlignment.Top`) was false. No value of `yOrigin` satisfies all of that, so this arm never runs. Reorder the tests, drop the dead branch, or fix the bound that was meant. — Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:3349
  • `case ResizeSide.None:` can never be true where it stands: the enclosing `if` on line 873 (`sideToUse != ResizeSide.None`) holds. No value of `sideToUse` satisfies all of that, so this case label never runs. Reorder the tests, drop the dead branch, or fix the bound that was meant. — Tool/TextureCoordinatePlugin.Core/RegionSelection/RectangleSelector.cs:914
  • `movable == 0` can never be true where it stands: `movable` was set from `Math.Max(1, trackLen - thumbLen)` on line 270. No value of `movable` satisfies all of that, so the true arm of this conditional expression never runs. Reorder the tests, drop the dead branch, or fix the bound that was meant. — Gum/Controls/ThemedScrollbar.cs:273

What to do

  • Each finding names the span that makes the branch dead and the span it is dead because of. Confirm from the two, then delete the dead arm or fix the predicate that was meant to be reachable.
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.

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.

  • `writer` is a `StreamWriter`, which implements `IDisposable`, and it is created here (line 1611). Every use of it in `SaveText` 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 writer = …;`), which releases it at the end of the scope on every path including a throw. — REDACTED:1611
  • `SkiaGumCanvasView` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `ExclusiveUiInteractionSemaphore` itself (line 91), which makes that instance its own. But `ExclusiveUiInteractionSemaphore` is named in none of the methods the disposal search covered: `Dispose` (line 812) — 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` (`ExclusiveUiInteractionSemaphore?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree. — Runtimes/SkiaGum.Maui/SkiaGumCanvasView.cs:91
  • `Inner` is never created by `QueueLockedBackend` — every assignment to it takes a constructor parameter — yet this type disposes it here (line 65). Its declared type `IBrutalGpuBackend` is an interface, so the instance came from whoever chose and created it, and that owner decides when it ends. Disposing it from here reaches outside this object's lifetime: a dependency shared with the rest of the process is torn down when THIS instance goes away, and the real owner's later `Dispose()` runs a second time on an object already disposed. Drop the call — a type disposes what it constructed, and only that. If this dependency genuinely is exclusive to this instance, construct it here (or take an owned factory) so the ownership is stated in the code rather than assumed. — Runtimes/BrutalHost/QueueLockedBackend.cs:65
  • `Inner` is never created by `LockedTarget` — every assignment to it takes a constructor parameter — yet this type disposes it here (line 94). Its declared type `IBrutalTarget` is an interface, so the instance came from whoever chose and created it, and that owner decides when it ends. Disposing it from here reaches outside this object's lifetime: a dependency shared with the rest of the process is torn down when THIS instance goes away, and the real owner's later `Dispose()` runs a second time on an object already disposed. Drop the call — a type disposes what it constructed, and only that. If this dependency genuinely is exclusive to this instance, construct it here (or take an owned factory) so the ownership is stated in the code rather than assumed. — Runtimes/BrutalHost/QueueLockedBackend.cs:94
  • `CsvReader` declares a finalizer (line 2068), but nothing in the type is unmanaged: no `IntPtr`/`UIntPtr` or pointer field, no `SafeHandle`, no `HandleRef`, no `extern`/`DllImport` member and no `Marshal`/`GCHandle`/`NativeMemory` use. A finalizer can only release what the garbage collector cannot, so on a purely-managed type it releases nothing and costs something: every instance is put on the finalizer queue, survives at least one extra collection, and is then finalized on a thread that is NOT the disposing one — where the managed objects it touches may already have been finalized themselves. Delete the finalizer (and the `GC.SuppressFinalize` that exists to defuse it); if a handle is added later, wrap it in a `SafeHandle`, which brings its own correct finalization. — Gum/CsvLibrary/CsvReader.cs:2068
  • `_reader` is never created by `CsvReader` — every assignment to it takes a constructor parameter — yet this type disposes it here (line 2040). Its declared type `TextReader` is an abstract class, so the instance came from whoever chose and created it, and that owner decides when it ends. Disposing it from here reaches outside this object's lifetime: a dependency shared with the rest of the process is torn down when THIS instance goes away, and the real owner's later `Dispose()` runs a second time on an object already disposed. Drop the call — a type disposes what it constructed, and only that. If this dependency genuinely is exclusive to this instance, construct it here (or take an owned factory) so the ownership is stated in the code rather than assumed. — Gum/CsvLibrary/CsvReader.cs:2040
  • `writer` is a `StreamWriter`, which implements `IDisposable`, and it is created here (line 885). Every use of it in `SaveText` 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 writer = …;`), which releases it at the end of the scope on every path including a throw. — Gum/CsvLibrary/RuntimeCsvRepresentation.cs:885
  • `_surfaceHost` is never created by `WpfGraphicsDeviceControl` — every assignment to it takes a constructor parameter — yet this type disposes it here (line 273). Its declared type `IWpfRenderSurfaceHost` is an interface, so the instance came from whoever chose and created it, and that owner decides when it ends. Disposing it from here reaches outside this object's lifetime: a dependency shared with the rest of the process is torn down when THIS instance goes away, and the real owner's later `Dispose()` runs a second time on an object already disposed. Drop the call — a type disposes what it constructed, and only that. If this dependency genuinely is exclusive to this instance, construct it here (or take an owned factory) so the ownership is stated in the code rather than assumed. — XnaAndWinforms.Wpf/WpfGraphicsDeviceControl.cs:273
  • `_secondaryClick` is declared `IDisposable` and nothing more, and every assignment to it takes a constructor parameter — so `HookPair` can do exactly one thing with it, which is the release performed here (line 31), and it is the only reference left that can perform it. That release is the tail of an unprotected sequence: `_redraw.Dispose()` runs first (line 30), and nothing in `Dispose` catches it. A single throw from that call skips the release entirely — and because a bare `IDisposable` carries no state to inspect and no second holder to fall back on, whatever it represents (a lock taken for this instance, a semaphore lease, a scope) is then held for the remaining lifetime of the process, with nothing left that could ever give it back. Wrap the calls that precede it in a `try` and move the release into the `finally`, so the one statement that must happen is the one that always happens. — Tool/Gum.Avalonia/Services/AppInputHooks.cs:31

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.
X19 · Unrestored process-global state10.0 / 10Exemplary○ Nothing flagged

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

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

X2 · Cancellation propagation4.6 / 10Weak✓ 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 9/91 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. (×35) — MonoGameGum/Forms/Controls/Games/DialogBox.cs:278, MonoGameGum/Forms/Controls/Games/DialogBox.cs:300, MonoGameGum/Forms/Controls/Games/DialogBox.cs:328, …
  • 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>`). — MonoGameGum/Clipboard/ClipboardImplementation.cs:32
  • 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. (×3) — Tools/Gum.Presentation/Dialogs/NewProjectDialogViewModel.cs:739, Tools/Gum.Presentation/Dialogs/NewProjectDialogViewModel.cs:798, Tools/Gum.Presentation/Dialogs/NewProjectDialogViewModel.cs:882

What to do

  • Thread a CancellationToken through async methods so work stops promptly on cancellation.
X20 · Mistyped argument guard7.5 / 10Strong✓ 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 731 rejects `field` and line 732 reports that rejection as `ArgumentNullException` — but the condition's own test `string.IsNullOrEmpty(field)` is true of a value that is NOT null: it is satisfied by an EMPTY `field`, and on that path `field` 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. — Gum/CsvLibrary/CsvReader.cs:732

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.

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 unescaped7.2 / 10Strong✓ 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.

  • `WebUtility.HtmlEncode(relativePath)` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through markup this method returns 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. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path. — Tools/Gum.ProjectServices/Screenshot/ScreenshotDiffHtmlReportWriter.cs:102

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 handoff10.0 / 10Exemplary○ Nothing flagged

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.

X27 · Collection changed while being enumerated8.0 / 10Strong✓ Tool-verified

Other · Code Health — Whether a `foreach` leaves the collection it is walking alone — a body that adds to or removes from the very collection the loop is enumerating invalidates the enumerator it is holding, so the next `MoveNext` throws `InvalidOperationException` and the remaining items are never seen.

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

  • The loop walks `sourceBindings.Values`, and line 109 calls `SetBinding(…)`, which reaches `vmPropsToUiProps.Remove(vmProperty)` in `GraphicalUiElement.SetBinding` — a structural change to that same `Dictionary` while the loop's enumerator is live. The next `MoveNext` throws `InvalidOperationException: Collection was modified; enumeration operation may not execute`, so every pass that reaches this call ends the loop by exception instead of by running out of items, and the remaining items are never seen. — GumRuntime/GraphicalUiElement.Binding.cs:107
  • The loop walks `pending`, and line 220 calls `TryAutoSaveElement(…)`, which reaches `_deferredAutoSaves.Add(elementSave)` in `FileCommands.TryAutoSaveElement` — a structural change to that same `HashSet` while the loop's enumerator is live. The next `MoveNext` throws `InvalidOperationException: Collection was modified; enumeration operation may not execute`, so every pass that reaches this call ends the loop by exception instead of by running out of items, and the remaining items are never seen. — Tools/Gum.Presentation/Commands/FileCommands.cs:218

What to do

  • Each finding names the two spans that cannot both stand — the `foreach` source, and the call inside the body that structurally changes that same collection. Confirm from those two, then pick one: enumerate a snapshot (`foreach (var x in c.ToList())`), collect what needs changing and apply it after the loop, or — where the loop was only ever meant to act on the first match — `break` immediately after the mutation, which is the one shape that is already safe.
X28 · Index access outside its own emptiness guard6.8 / 10Adequate✓ Tool-verified

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.

  • This guard tests `value` for emptiness and then indexes it where the test says it is empty: `value.Count > 0` (line 116) neither leaves nor refills `value`, so control falls through to `value[i]` indexes position i of nothing and throws. Either the guard is load-bearing, in which case this access crashes, or `value` cannot be empty here and the guard is dead. Move the access to the branch the test protects, or leave the method on the empty side. — Tools/Gum.Presentation/ToolStates/SelectedState.cs:135

What to do

  • Each finding names the index access that escapes the guard and the line of the correctly bracketed access beside it. Compare the two: they differ only in where one parenthesis sits. Move it so the emptiness test brackets every access to that symbol — and if the value provably cannot be empty at this point, delete the test rather than leave a condition that guards one access and not its neighbour.
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.1 / 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.

  • 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. (×28) — GumCommon/HostServices/GumHotReloadManager.cs:1995, GumCommon/Input/OsKeyRepeatSettingsProvider.cs:47, GumDataTypes/GumProjectSave.cs:894, …
  • `catch (ArgumentException)` 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. — GumCommon/HostServices/GumSnapshotExporter.cs:208
  • `catch (Exception)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch. (×5) — GumCommon/Input/KeyRepeatDefaults.cs:63, MonoGameGum/Forms/Data/UntypedBindingExpressionBase.cs:115, MonoGameGum/GumService.cs:753, …
  • `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. (×5) — MonoGameGum/GumService.XnaLike.cs:391, Tools/Gum.ProjectServices/CodeGeneration/SyntaxVersionDetectionService.cs:233, Tools/Gum.ProjectServices/CodeGeneration/SyntaxVersionDetectionService.cs:279, …
  • `catch (Exception) when (…)` 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. — Tools/Gum.ProjectServices/CodeGeneration/OrphanCodeFileScanService.cs:408

What to do

  • Swallowed exception (empty catch)
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.5 / 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. (×4) — Tools/Gum.Presentation/Plugins/PluginManager.cs:205, Tools/Gum.Presentation/Plugins/PluginManager.cs:1135, Gum/Program.cs:110, …

What to do

  • Interpolated log message defeats structured logging
X5 · Nullable reference types7.8 / 10Strong✓ 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 `childGue`: line 366 assigns it with `as GraphicalUiElement`, which hands back null rather than throwing when the value is not a `GraphicalUiElement`, but line 372 then dereferences it directly as `childGue.AddToManagers` 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 `childGue` once before the first use and handle the null case, or cast with `(GraphicalUiElement)` so the failure is reported where it happens — rather than leaving the two readings side by side. — GumRuntime/GraphicalUiElement.Managers.cs:372
  • This method contradicts itself about `containedAsGue`: line 461 assigns it with `as GraphicalUiElement`, which hands back null rather than throwing when the value is not a `GraphicalUiElement`, but line 463 then dereferences it directly as `containedAsGue.Parent` 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 `containedAsGue` once before the first use and handle the null case, or cast with `(GraphicalUiElement)` so the failure is reported where it happens — rather than leaving the two readings side by side. — GumRuntime/GraphicalUiElement.Managers.cs:463
  • This method contradicts itself about `asIpso`: line 64 assigns it with `as IPositionedSizedObject`, which hands back null rather than throwing when the value is not a `IPositionedSizedObject`, but line 65 then dereferences it directly as `asIpso.Width` 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 `asIpso` once before the first use and handle the null case, or cast with `(IPositionedSizedObject)` so the failure is reported where it happens — rather than leaving the two readings side by side. — GumRuntime/GraphicalUiElement.RequiredSize.cs:65
  • This method contradicts itself about `asIpso`: line 130 assigns it with `as IPositionedSizedObject`, which hands back null rather than throwing when the value is not a `IPositionedSizedObject`, but line 131 then dereferences it directly as `asIpso.Height` 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 `asIpso` once before the first use and handle the null case, or cast with `(IPositionedSizedObject)` so the failure is reported where it happens — rather than leaving the two readings side by side. — GumRuntime/GraphicalUiElement.RequiredSize.cs:131
  • This method contradicts itself about `asIpso`: line 161 assigns it with `as IRenderableIpso`, which hands back null rather than throwing when the value is not a `IRenderableIpso`, but line 163 then dereferences it directly as `asIpso.GetAbsoluteX` 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 `asIpso` once before the first use and handle the null case, or cast with `(IRenderableIpso)` so the failure is reported where it happens — rather than leaving the two readings side by side. — Tool/EditorTabPlugin.Core/Editors/Visuals/DimensionDisplayVisual.cs:163
  • This method contradicts itself about `toggleButtonClicked`: line 407 assigns it with `as ToggleButton`, which hands back null rather than throwing when the value is not a `ToggleButton`, but line 409 then dereferences it directly as `toggleButtonClicked.IsChecked` 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 `toggleButtonClicked` once before the first use and handle the null case, or cast with `(ToggleButton)` so the failure is reported where it happens — rather than leaving the two readings side by side. — WpfDataUi/Controls/ToggleButtonOptionDisplay.xaml.cs:409
  • This method contradicts itself about `userControl`: line 79 tests it for null before doing anything with it — the author's own statement that null is an input this code expects — but that `if` scopes only the block beneath it, and line 99 then dereferences `userControl` as `userControl.Width` AFTER the block has closed, where the guard no longer applies. A null `userControl` skips the guarded body and reaches that line anyway, throwing NullReferenceException on exactly the input the guard was written for. If the dereference belongs to the guarded work, move it inside the block; if `userControl` truly cannot be null by then, the guard above is misleading and should go. — Gum/Services/Dialogs/Dialog.cs:99
  • This method contradicts itself about `senderAsVm`: line 53 assigns it with `as BuildingViewModel`, which hands back null rather than throwing when the value is not a `BuildingViewModel`, but line 57 then dereferences it directly as `senderAsVm.Count` 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 `senderAsVm` once before the first use and handle the null case, or cast with `(BuildingViewModel)` so the failure is reported where it happens — rather than leaving the two readings side by side. (×2) — Samples/GameUiSamples/Screens/FrbClicker/FrbClickerCodeOnly.cs:57, Samples/GameUiSamplesSkia/Screens/FrbClicker/FrbClickerCodeOnly.cs:57
  • This method contradicts itself about `view`: line 78 assigns it with `as WeaponListBoxItemRuntime`, which hands back null rather than throwing when the value is not a `WeaponListBoxItemRuntime`, but line 80 then dereferences it directly as `view.NameTextInstance` 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 `view` once before the first use and handle the null case, or cast with `(WeaponListBoxItemRuntime)` so the failure is reported where it happens — rather than leaving the two readings side by side. — Samples/GumFormsSample/GumFormsSampleCommon/Screens/ComplexListBoxItemScreen.cs:80
  • This method contradicts itself about `newMenuItem`: line 102 assigns it with `as MenuItem`, which hands back null rather than throwing when the value is not a `MenuItem`, but line 103 then dereferences it directly as `newMenuItem.Header` 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 `newMenuItem` once before the first use and handle the null case, or cast with `(MenuItem)` so the failure is reported where it happens — rather than leaving the two readings side by side. — Samples/GumFormsSample/GumFormsSampleCommon/Screens/DemoScreenGumRuntime.cs:103
  • This method contradicts itself about `saveMenuItem`: line 107 assigns it with `as MenuItem`, which hands back null rather than throwing when the value is not a `MenuItem`, but line 108 then dereferences it directly as `saveMenuItem.Header` 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 `saveMenuItem` once before the first use and handle the null case, or cast with `(MenuItem)` so the failure is reported where it happens — rather than leaving the two readings side by side. — Samples/GumFormsSample/GumFormsSampleCommon/Screens/DemoScreenGumRuntime.cs:108
  • This method contradicts itself about `exitMenuItem`: line 113 assigns it with `as MenuItem`, which hands back null rather than throwing when the value is not a `MenuItem`, but line 114 then dereferences it directly as `exitMenuItem.Header` 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 `exitMenuItem` once before the first use and handle the null case, or cast with `(MenuItem)` so the failure is reported where it happens — rather than leaving the two readings side by side. — Samples/GumFormsSample/GumFormsSampleCommon/Screens/DemoScreenGumRuntime.cs:114
  • This method contradicts itself about `background`: line 94 assigns it with `as NineSliceRuntime`, which hands back null rather than throwing when the value is not a `NineSliceRuntime`, but line 97 then dereferences it directly as `background.Color` 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 `background` once before the first use and handle the null case, or cast with `(NineSliceRuntime)` so the failure is reported where it happens — rather than leaving the two readings side by side. — Samples/GumFormsSample/GumFormsSampleCommon/Screens/FrameworkElementExampleScreen.cs:97
  • This method contradicts itself about `bindableGue`: line 69 assigns it with `as GraphicalUiElement`, which hands back null rather than throwing when the value is not a `GraphicalUiElement`, but line 71 then dereferences it directly as `bindableGue.AddToManagers` 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 `bindableGue` once before the first use and handle the null case, or cast with `(GraphicalUiElement)` so the failure is reported where it happens — rather than leaving the two readings side by side. — Runtimes/SkiaGum.Wpf/GumSKElement.cs:71
  • This method contradicts itself about `graphicsDeviceManager`: line 27 assigns it with `as GraphicsDeviceManager`, which hands back null rather than throwing when the value is not a `GraphicsDeviceManager`, but line 33 then dereferences it directly as `graphicsDeviceManager.GraphicsDevice` 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 `graphicsDeviceManager` once before the first use and handle the null case, or cast with `(GraphicsDeviceManager)` so the failure is reported where it happens — rather than leaving the two readings side by side. — MonoGameIntegration/RuntimeLogic.cs:33
  • 133/169 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.8 `!` suppressions per 1k syntax nodes — 1242 suppression(s) across the 1569752 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 `?.`.
  • Where a method null-tests a symbol and then uses it after the guarded block closes, move the trailing work inside the block — the guard skips its body on null, it does not stop the method.
  • Enable <Nullable>enable</Nullable> across all projects and resolve warnings rather than suppressing with `!`.

WCAG coverage — what static analysis assessed

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

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

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

Reference — by lens

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

LensScoreRatingImpact
Code Health34.6Weak — gated by D18, R2, R3, X4Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture49.3Weak — gated by R11, AX2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Maturity83.2StrongStrongest area.
Readiness45.9Weak — gated by P3, P7Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security48.7Weak — gated by D29, D36, C1Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Accessibility70.2StrongSolid.
Performance20.0Critical — 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 — 2 observation(s) recorded · Reported, not scored — this card publishes what the CI gate does with the test inventory rather than grading it. The findings above are its output.
  • SC1 Supply-chain hygiene — 1 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.
  • X6 Hand-rolled structured-format parsing — 6 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
  • X7 Silent fallback defaults — 40 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 3 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.
  • 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 — 30 check(s) not relevant to this codebase

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

  • AC4 Keyboard semantics — No interactive element found in the parsed markup — AC4 not applicable here.
  • AX7 Slice cohesion — not applicable — not a vertical-slice architecture
  • AXB1 Runtime evidence locked — no reproducible boot — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • C2 Access Controls — No access-control surface detected in the analyzed source — no web/app surface to authorize (no HTTP API or web-UI project) and no authorization code at all (no [Authorize]/policies, no imperative guard methods). Access control is therefore N/A here — this is a library/CLI, which is authorized by its CALLER, not by itself. If this codebase grows request handlers, the dimension reactivates and a default-deny posture is expected then.
  • D12 Dependency Hygiene — Dependency hygiene not measured
  • D16 Bus Factor — single-maintainer repository — bus factor is not applicable
  • D23 Boundary Type-Coupling — Cross-context type coupling could not be assessed — this codebase's bounded contexts are neither declared nor inferable.
  • D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
  • D32 Data Compliance (PII/GDPR) — 125 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.
  • D8 Code Coverage — Coverage not measured — the suite ran but produced no coverage data
  • DM1 Domain Modelling — not scored — this repository shows only 1 of the 3 signals this lens looks for (8 value object(s))
  • ED2 Event/command shape — not scored — deciding whether a command has more than one competing handler requires resolving the call graph, and this analysis resolves a call's owner only where the receiver's type is written down in the source. Reported as guidance rather than measured
  • 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
  • PF1 Benchmark discipline — Not applicable: no benchmark suite was found by the two searches this check runs — a BenchmarkDotNet package reference in any project file (loaded, or on disk), and a script whose name contains `benchmark` that this repository's CI runs. Neither can see a suite in another ecosystem's idiom, so this is not a verdict that the repository has none. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted, and nothing is asked of a repository that has none.
  • PF2 Allocation hygiene — Not scored: this check counted allocation-aware idioms (Span, pools, stackalloc) per line, which describes what kind of code a repository is rather than whether it has an allocation problem, so it was withdrawn. Nothing here is a finding about your code.
  • S1 Web-Security Posture — No web surface detected in the analyzed source — no HTTP API or web-UI project (no controllers/minimal-API endpoints, no Razor/Blazor views) and no web middleware (HTTPS redirection, HSTS, security headers, cookies). Transport security, security headers, secure cookies, CSRF/input-validation and middleware-order controls are therefore N/A here — this is a library/CLI/worker, not a web app. Crypto hygiene was still checked and found nothing to flag. If this codebase becomes web-facing, the dimension reactivates automatically.
  • X14 Bypassable address classification — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X15 Unvalidated length from an untrusted reader — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X17 Uncapped recursion over a caller-supplied document — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X22 Contradicted release guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • 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
  • X8 JS interop contract — 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 — 335 finding(s)
D17 · Explicit Debt · WriteOnlyPrivateField · ×131
  • WriteOnlyPrivateField DataUi.Core/LateBinder.cs:78 — private Dictionary<Type, List<string>> mFields — 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 Tools/Gum.Presentation/Reflection/LateBinder.cs:51 — private Dictionary<Type, List<string>> mFields — 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 Gum/CsvLibrary/Reflection/PropertyValuePair.cs:10 — private Type stringType — 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 MonoGameGum.Tests/Runtimes/NineSliceBorderScaleTests.cs:13 — private string[] Sides — 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 MonoGameGum/Forms/Controls/Games/DialogBox.cs:91 — private string currentPageText — 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 MonoGameGum/Input/AnalogButton.cs:25 — private double mLastButtonPush — 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 RenderingLibrary/Graphics/ImageData.cs:25 — private byte[]? mByteData — 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 RenderingLibrary/Graphics/Renderer.cs:2836 — private EffectTechnique? _techniqueAdd — assigned 3 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 RenderingLibrary/Graphics/Renderer.cs:2837 — private EffectTechnique? _techniqueSubtract — assigned 3 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 RenderingLibrary/Graphics/Renderer.cs:2839 — private EffectTechnique? _techniqueModulate2X — assigned 3 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 RenderingLibrary/Graphics/Renderer.cs:2840 — private EffectTechnique? _techniqueModulate4X — assigned 3 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 RenderingLibrary/Graphics/Renderer.cs:2841 — private EffectTechnique? _techniqueInverseTexture — assigned 3 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 RenderingLibrary/Graphics/Renderer.cs:2842 — private EffectTechnique? _techniqueColor — assigned 3 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 RenderingLibrary/Graphics/Renderer.cs:2844 — private EffectTechnique? _techniqueInterpolateColor — assigned 3 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 RenderingLibrary/Graphics/Renderer.cs:2846 — private EffectTechnique? _techniqueTexture_CM — 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 RenderingLibrary/Graphics/Renderer.cs:2847 — private EffectTechnique? _techniqueAdd_CM — 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 RenderingLibrary/Graphics/Renderer.cs:2848 — private EffectTechnique? _techniqueSubtract_CM — 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 RenderingLibrary/Graphics/Renderer.cs:2850 — private EffectTechnique? _techniqueModulate2X_CM — 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 RenderingLibrary/Graphics/Renderer.cs:2851 — private EffectTechnique? _techniqueModulate4X_CM — 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 RenderingLibrary/Graphics/Renderer.cs:2852 — private EffectTechnique? _techniqueInverseTexture_CM — 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 RenderingLibrary/Graphics/Renderer.cs:2853 — private EffectTechnique? _techniqueColor_CM — 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 RenderingLibrary/Graphics/Renderer.cs:2855 — private EffectTechnique? _techniqueInterpolateColor_CM — 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 RenderingLibrary/Graphics/Renderer.cs:2857 — private EffectTechnique? _techniqueTexture_LN — 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 RenderingLibrary/Graphics/Renderer.cs:2858 — private EffectTechnique? _techniqueAdd_LN — 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 RenderingLibrary/Graphics/Renderer.cs:2859 — private EffectTechnique? _techniqueSubtract_LN — 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.
  • + 106 more in this group — see findings.md.
D17 · Explicit Debt · EmptyCatchBlock · ×68
  • EmptyCatchBlock AvaloniaDataUi/Controls/EditTrackingTextBox.cs:159 — 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 DataUi.Core/Controls/TextBoxDisplayLogic.cs:494 — 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 Gum/Behaviors/TitleBarClickPassthrough.cs:59 — 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 Gum/Controls/TitleFilePathDisplay.xaml.cs:60 — 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 Gum/Controls/TitleFilePathDisplay.xaml.cs:76 — 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 Gum/CsvLibrary/CsvReader.cs:2060 — 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 Gum/DataTypes/ElementSaveExtensionMethods.cs:191 — 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 Gum/Plugins/InternalPlugins/TreeView/FlatSearchListBox.xaml.cs:71 — 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 Gum/Services/Dialogs/DialogWindow.xaml.cs:69 — 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 Gum/Wireframe/CustomSetPropertyOnRenderable.cs:2679 — 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 Gum/Wireframe/CustomSetPropertyOnRenderable.cs:2969 — 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 GumCommon/HostServices/GumHotReloadManager.cs:1995 — 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 GumCommon/Input/OsKeyRepeatSettingsProvider.cs:47 — 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 GumDataTypes/GumProjectSave.cs:894 — 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 GumDataTypes/GumProjectSave.cs:895 — 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 GumRuntime/GraphicalUiElement.SetValuesAndStates.cs:752 — 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 MonoGameGum/Forms/BehaviorFormsPropertyApplier.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 MonoGameGum/Forms/BehaviorFormsPropertyApplier.cs:187 — 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 MonoGameGum/Forms/BehaviorFormsPropertyApplier.cs:208 — 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 MonoGameGum/Forms/Data/UntypedBindingExpressionBase.cs:104 — 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 MonoGameGum/GueDeriving/TextRuntime.cs:989 — 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 MonoGameGum/GumService.XnaLike.cs:233 — 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 MonoGameGum/GumService.XnaLike.cs:438 — 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 MonoGameGum/Input/Cursor.cs:567 — 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 MonoGameGum/Input/Keyboard.cs:187 — 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.
  • + 43 more in this group — see findings.md.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • + 32 more in this group — see findings.md.
D17 · Explicit Debt · NoWarnInCsproj · ×27
  • NoWarnInCsproj Gum/Gum.csproj:20 — CA1416 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
  • NoWarnInCsproj WpfDataUi/WpfDataUi.csproj:7 — CA1416 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
  • NoWarnInCsproj XnaAndWinforms.Wpf/XnaAndWinforms.Wpf.csproj:5 — CA1416 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
  • NoWarnInCsproj Gum/StateAnimationPlugin/StateAnimationPlugin.csproj:14 — CA1416 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
  • NoWarnInCsproj Gum/SvgPlugin/SkiaPlugin.csproj:11 — CA1416 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
  • NoWarnInCsproj Gum/TextureCoordinateSelectionPlugin/TextureCoordinateSelectionPlugin.csproj:12 — CA1416 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
  • NoWarnInCsproj Tests/StrideGum.GpuTests.D3D11/StrideGum.GpuTests.D3D11.csproj:14 — CA1416 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
  • NoWarnInCsproj Tests/StrideGum.GpuTests.D3D12/StrideGum.GpuTests.D3D12.csproj:14 — CA1416 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
  • NoWarnInCsproj Tool/EditorTabPlugin_XNA/EditorTabPlugin_XNA.csproj:15 — CA1416 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
  • NoWarnInCsproj GumCommon/GumCommon.csproj:426 — CS8600 — 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 Runtimes/SkiaGum/SkiaGum.csproj:23 — CS8600 — 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 Runtimes/UnityGum/UnityGum.csproj:22 — CS8600 — 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 GumCommon/GumCommon.csproj:426 — CS8602 — 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 Runtimes/SkiaGum/SkiaGum.csproj:23 — CS8602 — 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 Runtimes/UnityGum/UnityGum.csproj:22 — CS8602 — 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 GumCommon/GumCommon.csproj:426 — CS8603 — 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 Runtimes/SkiaGum/SkiaGum.csproj:23 — CS8603 — 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 Runtimes/UnityGum/UnityGum.csproj:22 — CS8603 — 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 GumCommon/GumCommon.csproj:426 — CS8604 — 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 Runtimes/SkiaGum/SkiaGum.csproj:23 — CS8604 — 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 Runtimes/UnityGum/UnityGum.csproj:22 — CS8604 — 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 Tests/GumShadowDusk.Tests.KniDesktopGL/GumShadowDusk.Tests.KniDesktopGL.csproj:15 — CS0618 — 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 Tests/GumShadowDusk.Tests.KniWindowsDX/GumShadowDusk.Tests.KniWindowsDX.csproj:15 — CS0618 — 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 Tests/GumShadowDusk.Tests.MonoGameWindowsDX/GumShadowDusk.Tests.MonoGameWindowsDX.csproj:15 — CS0618 — 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 Tests/MonoGameGum.IntegrationTests/MonoGameGum.IntegrationTests.csproj:12 — CS0618 — 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.
  • + 2 more in this group — see findings.md.
AC2 · Forms & labels · <label> that labels no control · ×16
  • <label> that labels no control Direction/settings-design/mock-settings.html:60 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control Direction/settings-design/mock-settings.html:61 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control Direction/settings-design/mock-settings.html:63 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control Direction/settings-design/mock-settings.html:66 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control Direction/settings-design/mock-settings.html:67 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control Direction/settings-design/mock-settings.html:68 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control Direction/settings-design/mock-settings.html:69 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control Direction/settings-design/mock-settings.html:79 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control Direction/settings-design/mock-settings.html:80 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control Direction/settings-design/mock-settings.html:81 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control Direction/settings-design/mock-settings.html:82 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control Direction/settings-design/mock-settings.html:96 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control Direction/settings-design/mock-settings.html:99 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control Direction/settings-design/mock-settings.html:102 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control Direction/settings-design/mock-settings.html:109 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
  • <label> that labels no control Direction/settings-design/mock-settings.html:112 — This <label> has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association — it is the TARGET of one, so a control still has to point at it. Give the label for="<the control's id>", move the control inside the label, or point the control's aria-labelledby at this label's id.
AX3 · Project dependency cycles · Namespace dependency cycle · ×8
  • Namespace dependency cycle DataUi.Core/DataTypes/InstanceMember.cs:37 — The namespaces WpfDataUi ↔ WpfDataUi.DataTypes depend on each other. The lightest dependency in the cycle is WpfDataUi.DataTypes → WpfDataUi (WpfDataUi.DataTypes.InstanceMember → WpfDataUi.ApplyValueResult, 2 type pair(s)); cut that one first, e.g. by moving the shared type to a namespace both can use or inverting it behind an interface.
  • Namespace dependency cycle Gum/Plugins/PluginTab.cs:6 — The namespaces (global) ↔ Gum ↔ Gum.Bundle ↔ Gum.Collections ↔ Gum.CommandLine ↔ Gum.Commands ↔ Gum.Content.AnimationChain ↔ Gum.Controls ↔ Gum.Converters ↔ Gum.DataTypes ↔ Gum.DataTypes.Behaviors ↔ Gum.DataTypes.Variables ↔ Gum.Diagnostics ↔ Gum.Dialogs ↔ Gum.Expressions ↔ Gum.Forms ↔ Gum.Graphics.Animation ↔ Gum.GueDeriving ↔ Gum.Input ↔ Gum.Logic ↔ Gum.Logic.FileWatch ↔ Gum.Managers ↔ Gum.Menus ↔ Gum.Messages ↔ Gum.Plugins ↔ Gum.Plugins.BaseClasses ↔ Gum.Plugins.FontsPlugin ↔ Gum.Plugins.ImportPlugin.Manager ↔ Gum.Plugins.ImportPlugin.Services ↔ Gum.Plugins.InternalPlugins.HideShowTools ↔ Gum.Plugins.InternalPlugins.Hotkey.ViewModels ↔ Gum.Plugins.InternalPlugins.StatePlugin.ViewModels ↔ Gum.Plugins.InternalPlugins.TreeView ↔ Gum.Plugins.InternalPlugins.VariableGrid ↔ Gum.Plugins.VariableGrid ↔ Gum.ProjectServices ↔ Gum.ProjectServices.CodeGeneration ↔ Gum.ProjectServices.FontGeneration ↔ Gum.PropertyGridHelpers ↔ Gum.Renderables ↔ Gum.RenderingLibrary ↔ Gum.SelectionHistory ↔ Gum.Services ↔ Gum.Services.Dialogs ↔ Gum.Services.Fonts ↔ Gum.Settings ↔ Gum.SettingsWindow ↔ Gum.Startup ↔ Gum.ToolCommands ↔ Gum.ToolStates ↔ Gum.Undo ↔ Gum.ViewModels ↔ Gum.Wireframe ↔ Gum.Wireframe.Editors ↔ Gum.Wireframe.Editors.Handlers ↔ Gum.Wireframe.Editors.Visuals ↔ GumFormsPlugin.Services ↔ GumFormsPlugin.ViewModels ↔ GumRuntime ↔ ImportFromGumxPlugin ↔ ImportFromGumxPlugin.Services ↔ ImportFromGumxPlugin.ViewModels ↔ InputLibrary ↔ MonoGameGum ↔ RenderingLibrary ↔ RenderingLibrary.Content ↔ RenderingLibrary.Graphics ↔ RenderingLibrary.Graphics.Animation ↔ RenderingLibrary.Graphics.Fonts ↔ RenderingLibrary.Math.Geometry ↔ SkiaGum ↔ SkiaGum.Renderables ↔ SokolGum depend on each other. The lightest dependency in the cycle is (global) → Gum.Plugins (TabSelectedMessage → Gum.Plugins.PluginTab, 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.
  • Namespace dependency cycle Tool/EditorTabPlugin.Core/ViewModels/EditorViewModel.cs:8 — The namespaces EditorTabPlugin_XNA.ViewModels ↔ Gum.Plugins.InternalPlugins.EditorTab.Views depend on each other. The lightest dependency in the cycle is EditorTabPlugin_XNA.ViewModels → Gum.Plugins.InternalPlugins.EditorTab.Views (EditorTabPlugin_XNA.ViewModels.EditorViewModel → Gum.Plugins.InternalPlugins.EditorTab.Views.Ruler, 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.
  • Namespace dependency cycle Gum/EventOutputPlugin/MainEventOutputPlugin.cs:1 — The namespaces EventOutputPlugin ↔ EventOutputPlugin.Managers ↔ EventOutputPlugin.Models depend on each other. The lightest dependency in the cycle is EventOutputPlugin → EventOutputPlugin.Managers (EventOutputPlugin.MainEventOutputPlugin → EventOutputPlugin.Managers.IExportEventFileManager, 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.
  • Namespace dependency cycle Tool/Gum.Avalonia/Canvas/AvaloniaInputHostAdapter.cs:7 — The namespaces Gum.Avalonia.Canvas ↔ Gum.Avalonia.Services ↔ Gum.Avalonia.Shell depend on each other. The lightest dependency in the cycle is Gum.Avalonia.Canvas → Gum.Avalonia.Services (Gum.Avalonia.Canvas.AvaloniaInputHostAdapter → Gum.Avalonia.Services.SecondaryClickTracker, 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.
  • Namespace dependency cycle Tools/Gum.Presentation/Plugins/InternalPlugins/AlignmentButtons/ViewModels/AlignmentViewModel.cs:4 — The namespaces Gum.Plugins.AlignmentButtons ↔ Gum.Plugins.InternalPlugins.AlignmentButtons.ViewModels depend on each other. The lightest dependency in the cycle is Gum.Plugins.InternalPlugins.AlignmentButtons.ViewModels → Gum.Plugins.AlignmentButtons (Gum.Plugins.InternalPlugins.AlignmentButtons.ViewModels.AlignmentViewModel → Gum.Plugins.AlignmentButtons.CommonControlLogic, 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.
  • Namespace dependency cycle Gum/StateAnimationPlugin/MainStateAnimationPlugin.cs:23 — The namespaces StateAnimationPlugin ↔ StateAnimationPlugin.Managers ↔ StateAnimationPlugin.Validation ↔ StateAnimationPlugin.ViewModels ↔ StateAnimationPlugin.Views depend on each other. The lightest dependency in the cycle is StateAnimationPlugin → StateAnimationPlugin.Views (StateAnimationPlugin.MainStateAnimationPlugin → StateAnimationPlugin.Views.MainWindow, 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.
  • Namespace dependency cycle Tools/Gum.Presentation/TextureCoordinateSelectionPlugin/ViewModels/MainControlViewModel.cs:10 — The namespaces TextureCoordinateSelectionPlugin.Logic ↔ TextureCoordinateSelectionPlugin.ViewModels ↔ TextureCoordinateSelectionPlugin.Views depend on each other. The lightest dependency in the cycle is TextureCoordinateSelectionPlugin.ViewModels → TextureCoordinateSelectionPlugin.Logic (TextureCoordinateSelectionPlugin.ViewModels.MainControlViewModel → TextureCoordinateSelectionPlugin.Logic.ITextureCoordinateDisplayController, 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.
D17 · Explicit Debt · FileScopedPragmaDisable · ×8
  • FileScopedPragmaDisable Tests/Gum.ProjectServices.Tests/NewProjectFollowUpStepTests.cs:1 — #pragma warning disable xUnit1031 // The helpers create projects synchronously; nothing here can deadlock (no synchronization context). — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
  • FileScopedPragmaDisable REDACTED:1 — #pragma warning disable xUnit1031 // The helpers create projects synchronously; nothing here can deadlock (no synchronization context). — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
  • FileScopedPragmaDisable Tests/Gum.ProjectServices.Tests/NewProjectOptionCombinationTests.cs:1 — #pragma warning disable xUnit1031 // The helpers create projects synchronously; nothing here can deadlock (no synchronization context). — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
  • FileScopedPragmaDisable Tests/Gum.ProjectServices.Tests/NewProjectPlatformCsprojTests.cs:1 — #pragma warning disable xUnit1031 // The helpers create projects synchronously; nothing here can deadlock (no synchronization context). — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
  • FileScopedPragmaDisable Tests/Gum.ProjectServices.Tests/NewProjectRecommendedPackagesHostTests.cs:1 — #pragma warning disable xUnit1031 // The helpers create projects synchronously; nothing here can deadlock (no synchronization context). — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
  • FileScopedPragmaDisable Tests/Gum.ProjectServices.Tests/NewProjectSourceLinkedReferenceTests.cs:1 — #pragma warning disable xUnit1031 // The helpers create projects synchronously; nothing here can deadlock (no synchronization context). — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
  • FileScopedPragmaDisable Tests/Gum.ProjectServices.Tests/NewProjectTargetFolderTests.cs:1 — #pragma warning disable xUnit1031 // The helpers create projects synchronously; nothing here can deadlock (no synchronization context). — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
  • FileScopedPragmaDisable Tests/Gum.ProjectServices.Tests/NewProjectThemeTests.cs:1 — #pragma warning disable xUnit1031 // The helpers create projects synchronously; nothing here can deadlock (no synchronization context). — the disable has no matching restore anywhere in this file, so it does not end with the construct that needed it: it runs to the end of the file and silences the rule for everything written below, including code added years later that nobody weighed against it. Close it with the matching restore directive immediately after the construct it covers — that alone turns a standing exemption into a scoped one — or fix the cause and drop the directive entirely.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D5 · Coupling · Layer violation · ×4
  • Layer violation: Domain → Web Tool/EditorTabPlugin.Core/EditorTabPlugin.Core.csproj:49 — EditorTabPlugin.Core (Domain) references Gum.Presentation (Web) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Domain → Web Tool/StateAnimationPlugin.Core/StateAnimationPlugin.Core.csproj:34 — StateAnimationPlugin.Core (Domain) references Gum.Presentation (Web) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Domain → Web Tool/TextureCoordinatePlugin.Core/TextureCoordinatePlugin.Core.csproj:36 — TextureCoordinatePlugin.Core (Domain) references Gum.Presentation (Web) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
  • Layer violation: Domain → Web Tool/TreeViewPlugin.Core/TreeViewPlugin.Core.csproj:35 — TreeViewPlugin.Core (Domain) references Gum.Presentation (Web) — dependencies must point inward (Web → Application → Domain; Infrastructure implements inner interfaces, nothing depends outward on it).
D35 · Change Coupling · Boundary-crossing change coupling · ×3
  • Boundary-crossing change coupling: MainEditorTabPlugin.cs ↔ WireframeEditor.cs Tool/EditorTabPlugin_XNA/MainEditorTabPlugin.cs:1 — `Tool/EditorTabPlugin_XNA/MainEditorTabPlugin.cs` (context Tool) and `Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/WireframeEditor.cs` (context Tools) sit in DIFFERENT parts of the tree yet change together 60% of the time (9 of the 15 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) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are `6cba72d5` Drain IPluginManager Locator calls from PolygonPointInputHandler, Res… (at that commit the file was still `Tool/EditorTabPlugin_XNA/Editors/WireframeEditor.cs`); `6d58b169` Phase 2 (static drain): ToolLayerService + ToolFontService singletons… (at that commit the file was still `Tool/EditorTabPlugin_XNA/Editors/WireframeEditor.cs`); `b1552d0b` 630 gum tool is laggy again with undo (#2229) (at that commit the file was still `Tool/EditorTabPlugin_XNA/Editors/WireframeEditor.cs`) — run `git show` on any of them.
  • Boundary-crossing change coupling: AnimationChainListSave.cs ↔ Sprite.cs Gum/Graphics/Animation/Content/AnimationChainListSave.cs:1 — `Gum/Graphics/Animation/Content/AnimationChainListSave.cs` (context Gum) and `RenderingLibrary/Graphics/Sprite.cs` (context RenderingLibrary) sit in DIFFERENT parts of the tree yet change together 53% of the time (8 of the 15 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) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are `8baa8a7f` Add per-frame keyframe interpolation to animation chains (#6033); `8a3ae121` Let animation frames author SpriteRuntime.ColorOperation (#4822) (#4823); `5dbc79b1` Support Multiply per-frame color from .achx/.achj animation chains (#… — run `git show` on any of them.
  • Boundary-crossing change coupling: MainStateAnimationPlugin.cs ↔ RenameManager.cs Gum/StateAnimationPlugin/MainStateAnimationPlugin.cs:1 — `Gum/StateAnimationPlugin/MainStateAnimationPlugin.cs` (context Gum) and `Tools/Gum.Presentation/StateAnimationPlugin/Managers/RenameManager.cs` (context Tools) sit in DIFFERENT parts of the tree yet 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) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are `50e22cb0` Drain IProjectManager Locator call from RenameManager to ctor injecti… (at that commit the file was still `Gum/StateAnimationPlugin/Managers/RenameManager.cs`); `32cc6071` Added hard values to the enums for codegen type (#1924) (at that commit the file was still `Gum/StateAnimationPlugin/Managers/RenameManager.cs`); `08948804` Lots of refactoring. (#1882) (at that commit the file was still `Gum/StateAnimationPlugin/Managers/RenameManager.cs`) — run `git show` on any of them.
D17 · Explicit Debt · DisabledAnalyzers · ×2
  • DisabledAnalyzers Gum/GumFormsPlugin/GumFormsPlugin.csproj:8 — AnalysisLevel — this does not switch a rule off, it stops the analyzers running for the whole project: every rule they ship is silenced at once, including every rule added by a future upgrade, and nothing at the sites they would have reported records that anything was switched off. There is no code here to look up and nothing to weigh, which is what makes it the one suppression that is never revisited. Turn the analyzers back on and deal with what they report — suppressing the handful of rules that are genuinely unwanted, each on its own line with its reason, keeps the rest protecting the project and leaves a record a reader can audit.
  • DisabledAnalyzers Gum/ImportFromGumxPlugin/ImportFromGumxPlugin.csproj:9 — AnalysisLevel — this does not switch a rule off, it stops the analyzers running for the whole project: every rule they ship is silenced at once, including every rule added by a future upgrade, and nothing at the sites they would have reported records that anything was switched off. There is no code here to look up and nothing to weigh, which is what makes it the one suppression that is never revisited. Turn the analyzers back on and deal with what they report — suppressing the handful of rules that are genuinely unwanted, each on its own line with its reason, keeps the rest protecting the project and leaves a record a reader can audit.
AX1 · Captive dependencies · Captive dependency · ×1
  • Captive dependency: singleton IBuiltInShaderFiles resolves transient Lazy from the root provider Tools/Gum.Presentation/Services/GumCoreServiceCollectionExtensions.cs:255 — Building the SINGLETON `IBuiltInShaderFiles` resolves `Lazy`, registered as Transient, from the provider it was handed — the ROOT provider, outside any scope. The root provider keeps that instance for the life of the process, so the singleton is handed one transient `Lazy` forever (ASP.NET Core's scope validation rejects it in Development and lets it through in Production). Create a scope per use (`IServiceScopeFactory.CreateScope()`) and resolve `Lazy` from the scope's provider, or align the lifetimes.
AX4 · Dependency direction · Dependency-rule violation · ×1
  • Dependency-rule violation: EditorTabPlugin.Core (Domain) → Gum.Presentation (Web) Tool/EditorTabPlugin.Core/EditorTabPlugin.Core.csproj:49 — `EditorTabPlugin.Core` is a Domain project but references `Gum.Presentation`, a Web project. The clean-architecture rule is that dependencies point INWARD — the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one.
D17 · Explicit Debt · FileScopedPragmaDisable repeated across 43 files · ×1
  • FileScopedPragmaDisable repeated across 43 files MonoGameGum.Tests/GumPreview/PreviewCanvasSizeTests.cs:1 — The identical FileScopedPragmaDisable (`#pragma warning disable CS0618`) appears in 43 files (43 occurrences) — a single repo-wide policy (e.g. a Directory.Build.props decision or an idiomatic suppression), not 43 independent debts. Decide it once centrally rather than file-by-file. (Every occurrence still counts toward the score and metrics.)
D17 · Explicit Debt · NoWarnInCsproj repeated across 67 files · ×1
  • NoWarnInCsproj repeated across 67 files GumCommon/GumCommon.csproj:18 — The identical NoWarnInCsproj (`1591`) appears in 67 files (67 occurrences) — a single repo-wide policy (e.g. a Directory.Build.props decision or an idiomatic suppression), not 67 independent debts. Decide it once centrally rather than file-by-file. (Every occurrence still counts toward the score and metrics.)
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
Serious — 3046 finding(s)
D17 · Explicit Debt · CommentedOutCode · ×142
  • CommentedOutCode DataUi.Core/DataTypes/InstanceMember.cs:570 — 5 consecutive commented-code lines
  • CommentedOutCode Gum/CsvLibrary/RuntimeCsvRepresentation.cs:472 — 5 consecutive commented-code lines
  • CommentedOutCode Gum/CsvLibrary/RuntimeCsvRepresentation.cs:510 — 5 consecutive commented-code lines
  • CommentedOutCode Gum/CsvLibrary/RuntimeCsvRepresentation.cs:608 — 5 consecutive commented-code lines
  • CommentedOutCode Gum/DataTypes/InstanceSaveExtensionMethods.cs:133 — 5 consecutive commented-code lines
  • CommentedOutCode Gum/DataTypes/InstanceSaveExtensionMethods.cs:139 — 5 consecutive commented-code lines
  • CommentedOutCode Gum/Graphics/Animation/Content/AnimationChainSave.cs:62 — 5 consecutive commented-code lines
  • CommentedOutCode Gum/MainWindow.xaml.cs:184 — 5 consecutive commented-code lines
  • CommentedOutCode Gum/SvgPlugin/SkiaInGumShared/Renderables/RenderableCanvas.cs:25 — 5 consecutive commented-code lines
  • CommentedOutCode Gum/SvgPlugin/SkiaInGumShared/Renderables/RenderableSvg.cs:35 — 5 consecutive commented-code lines
  • CommentedOutCode MonoGameGum.Tests/Runtimes/ColoredRectangleRuntimeTests.cs:15 — 5 consecutive commented-code lines
  • CommentedOutCode MonoGameGum.Tests/Runtimes/SpriteRuntimeTests.cs:369 — 5 consecutive commented-code lines
  • CommentedOutCode MonoGameGum/Forms/Controls/Primitives/RangeBase.cs:403 — 5 consecutive commented-code lines
  • CommentedOutCode MonoGameGum/Forms/Controls/ScrollViewer.cs:456 — 5 consecutive commented-code lines
  • CommentedOutCode RenderingLibrary/Graphics/Animation/AnimationFrame.cs:247 — 5 consecutive commented-code lines
  • CommentedOutCode RenderingLibrary/Graphics/Renderer.cs:229 — 5 consecutive commented-code lines
  • CommentedOutCode RenderingLibrary/Graphics/Renderer.cs:1672 — 5 consecutive commented-code lines
  • CommentedOutCode RenderingLibrary/Graphics/Sprite.cs:710 — 5 consecutive commented-code lines
  • CommentedOutCode RenderingLibrary/Graphics/Sprite.cs:718 — 5 consecutive commented-code lines
  • CommentedOutCode RenderingLibrary/Graphics/Sprite.cs:760 — 5 consecutive commented-code lines
  • CommentedOutCode RenderingLibrary/Graphics/Sprite.cs:788 — 5 consecutive commented-code lines
  • CommentedOutCode RenderingLibrary/Graphics/Text.cs:1172 — 5 consecutive commented-code lines
  • CommentedOutCode Runtimes/SkiaGum/GueDeriving/LottieAnimationRuntime.cs:63 — 5 consecutive commented-code lines
  • CommentedOutCode Tool/EditorTabPlugin.Core/Views/GraphicalOutline.cs:117 — 5 consecutive commented-code lines
  • CommentedOutCode Tools/Gum.Presentation/CodeOutputPlugin/CodeOutputPluginBase.cs:81 — 5 consecutive commented-code lines
  • + 117 more in this group — see findings.md.
D15 · Churn × Complexity Hotspots · Hotspot · ×111
  • Hotspot: Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs:507 — Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 163 in CustomSetPropertyOnRenderable.SetPropertyOnRenderableFunc at line 507. 4 of those changes were fix/bug commits, and the other 24 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- Runtimes/SkiaGum/CustomSetPropertyOnRenderable.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: Gum/Wireframe/CustomSetPropertyOnRenderable.cs Gum/Wireframe/CustomSetPropertyOnRenderable.cs:1322 — Gum/Wireframe/CustomSetPropertyOnRenderable.cs changed 57 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 73 in CustomSetPropertyOnRenderable.TrySetPropertyOnText at line 1322. 10 of those changes were fix/bug commits, and the other 47 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- Gum/Wireframe/CustomSetPropertyOnRenderable.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: Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:3957 — Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs changed 58 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in CodeGenerator.GenerateConstructors at line 3957. 6 of those changes were fix/bug commits, and the other 52 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.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: MonoGameGum/Forms/Controls/TextBoxBase.cs MonoGameGum/Forms/Controls/TextBoxBase.cs:921 — MonoGameGum/Forms/Controls/TextBoxBase.cs changed 44 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in TextBoxBase.HandleKeyDown at line 921. 7 of those changes were fix/bug commits, and the other 37 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- MonoGameGum/Forms/Controls/TextBoxBase.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: Runtimes/SkiaGum/Renderables/Text.cs Runtimes/SkiaGum/Renderables/Text.cs:1079 — Runtimes/SkiaGum/Renderables/Text.cs changed 49 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in Text.Render at line 1079. 3 of those changes were fix/bug commits, and the other 46 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- Runtimes/SkiaGum/Renderables/Text.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: GumRuntime/GraphicalUiElement.UpdateLayout.cs GumRuntime/GraphicalUiElement.UpdateLayout.cs:212 — GumRuntime/GraphicalUiElement.UpdateLayout.cs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 123 in GraphicalUiElement.UpdateLayoutWithinSession at line 212. 3 of those changes were fix/bug commits, and the other 12 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 21:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- GumRuntime/GraphicalUiElement.UpdateLayout.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: Runtimes/SkiaGum/Renderables/NineSlice.cs Runtimes/SkiaGum/Renderables/NineSlice.cs:593 — Runtimes/SkiaGum/Renderables/NineSlice.cs changed 30 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 57 in NineSlice.TryDrawLattice at line 593. 2 of those changes were fix/bug commits, and the other 28 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- Runtimes/SkiaGum/Renderables/NineSlice.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: GumRuntime/InteractiveGue.cs GumRuntime/InteractiveGue.cs:455 — GumRuntime/InteractiveGue.cs changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 73 in InteractiveGue.DoUiActivityRecursively at line 455. 4 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- GumRuntime/InteractiveGue.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: Tools/Gum.Presentation/Logic/CopyPasteLogic.cs Tools/Gum.Presentation/Logic/CopyPasteLogic.cs:676 — Tools/Gum.Presentation/Logic/CopyPasteLogic.cs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 80 in CopyPasteLogic.PasteInstanceSaves at line 676. 4 of those changes were fix/bug commits, and the other 14 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- Tools/Gum.Presentation/Logic/CopyPasteLogic.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: Tool/EditorTabPlugin.Core/EditorTabPluginBase.cs Tool/EditorTabPlugin.Core/EditorTabPluginBase.cs:839 — Tool/EditorTabPlugin.Core/EditorTabPluginBase.cs changed 41 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in EditorTabPluginBase.HandleVariableSetLate at line 839. 12 of those changes were fix/bug commits, and the other 29 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- Tool/EditorTabPlugin.Core/EditorTabPluginBase.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: GumRuntime/ElementSaveExtensions.GumRuntime.cs GumRuntime/ElementSaveExtensions.GumRuntime.cs:1747 — GumRuntime/ElementSaveExtensions.GumRuntime.cs changed 46 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in ElementSaveExtensions.TryReadReference at line 1747. 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- GumRuntime/ElementSaveExtensions.GumRuntime.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: MonoGameGum/Forms/Controls/FrameworkElement.cs MonoGameGum/Forms/Controls/FrameworkElement.cs:1878 — MonoGameGum/Forms/Controls/FrameworkElement.cs changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in FrameworkElement.HandleTabCore at line 1878. 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- MonoGameGum/Forms/Controls/FrameworkElement.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: Tools/Gum.ProjectServices/HeadlessErrorChecker.cs Tools/Gum.ProjectServices/HeadlessErrorChecker.cs:686 — Tools/Gum.ProjectServices/HeadlessErrorChecker.cs changed 39 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in HeadlessErrorChecker.VariableExists at line 686. 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- Tools/Gum.ProjectServices/HeadlessErrorChecker.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: MonoGameGum/Forms/FormsUtilities.cs MonoGameGum/Forms/FormsUtilities.cs:639 — MonoGameGum/Forms/FormsUtilities.cs changed 27 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in FormsUtilities.RegisterFromFileFormRuntimeDefaults at line 639. 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- MonoGameGum/Forms/FormsUtilities.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: Tools/Gum.Presentation/ImportFromGumx/Services/GumxImportService.cs Tools/Gum.Presentation/ImportFromGumx/Services/GumxImportService.cs:1032 — Tools/Gum.Presentation/ImportFromGumx/Services/GumxImportService.cs changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in GumxImportService.AddMissingReferencedInstances at line 1032. 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- Tools/Gum.Presentation/ImportFromGumx/Services/GumxImportService.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: Runtimes/RaylibGum/Renderables/Text.cs Runtimes/RaylibGum/Renderables/Text.cs:1616 — Runtimes/RaylibGum/Renderables/Text.cs changed 29 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in Text.DrawStyledLine at line 1616. 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- Runtimes/RaylibGum/Renderables/Text.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: Tool/TreeViewPlugin.Core/ElementTreeViewManager.cs Tool/TreeViewPlugin.Core/ElementTreeViewManager.cs:1728 — Tool/TreeViewPlugin.Core/ElementTreeViewManager.cs changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in ElementTreeViewManager.RefreshElementTreeNode at line 1728. 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- Tool/TreeViewPlugin.Core/ElementTreeViewManager.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: RenderingLibrary/Graphics/Text.cs RenderingLibrary/Graphics/Text.cs:1472 — RenderingLibrary/Graphics/Text.cs changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in Text.DrawWithInlineVariables at line 1472. 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- RenderingLibrary/Graphics/Text.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: MonoGameGum/Forms/Controls/ListBox.cs MonoGameGum/Forms/Controls/ListBox.cs:818 — MonoGameGum/Forms/Controls/ListBox.cs changed 29 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in ListBox.HandleItemSelected at line 818. 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- MonoGameGum/Forms/Controls/ListBox.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: Runtimes/GumExpressions/EvaluatedSyntax.cs Runtimes/GumExpressions/EvaluatedSyntax.cs:209 — Runtimes/GumExpressions/EvaluatedSyntax.cs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in EvaluatedSyntax.Evaluate at line 209. 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- Runtimes/GumExpressions/EvaluatedSyntax.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: Runtimes/SkiaGum/Renderables/Sprite.cs Runtimes/SkiaGum/Renderables/Sprite.cs:563 — Runtimes/SkiaGum/Renderables/Sprite.cs changed 29 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in Sprite.DrawBoundAtOrigin at line 563. 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- Runtimes/SkiaGum/Renderables/Sprite.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: GumRuntime/GraphicalUiElement.ChildUpdates.cs GumRuntime/GraphicalUiElement.ChildUpdates.cs:212 — GumRuntime/GraphicalUiElement.ChildUpdates.cs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 58 in GraphicalUiElement.UpdateChildren at line 212. 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- GumRuntime/GraphicalUiElement.ChildUpdates.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: Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/ElementSaveDisplayer.cs Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/ElementSaveDisplayer.cs:166 — Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/ElementSaveDisplayer.cs changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in ElementSaveDisplayer.FillPropertyList at line 166. 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/ElementSaveDisplayer.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: Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/PropertyGridManager.cs Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/PropertyGridManager.cs:367 — Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/PropertyGridManager.cs changed 31 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in PropertyGridManager.RefreshDataGrid at line 367. 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/PropertyGridManager.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: Tools/Gum.Presentation/Managers/DragDropManager.cs Tools/Gum.Presentation/Managers/DragDropManager.cs:594 — Tools/Gum.Presentation/Managers/DragDropManager.cs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in DragDropManager.ValidateDrop at line 594. 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- Tools/Gum.Presentation/Managers/DragDropManager.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.
  • + 86 more in this group — see findings.md.
D17 · Explicit Debt · TodoComment · ×88
  • TodoComment Gum/CsvLibrary/RuntimeCsvRepresentation.cs:1230 — // todo - need to support adding to property lists — 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 Gum/DataTypes/ElementSaveExtensionMethods.cs:160 — // todo - for now we're going to check for variables that may match if we remove their spaces. — 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 Gum/DataTypes/InstanceSaveExtensionMethods.cs:46 — // todo - eventually we may want to look at plugins here, but for now we'll do the built-in standards — 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 Gum/DataTypes/StateSaveExtensionMethods.cs:1149 — // todo: Handle lists? — 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 Gum/DataTypes/StateSaveExtensionMethods.cs:1224 — // todo: Handle lists? — 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 Gum/DataTypes/StateSaveExtensionMethods.cs:1243 — // todo: Handle lists? — 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 Gum/DataTypes/StateSaveExtensionMethods.cs:1262 — // todo: Handle lists? — 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 Gum/Graphics/Animation/Content/AnimationChainSave.cs:5 — //TODO: the AnimationChain namespace in the content assembly should probably be renamed to avoid this naming conflict — 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 Gum/Mvvm/ViewModel.cs:444 — // todo - worry about recursive notifications? — 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 Gum/SvgPlugin/SkiaInGumShared/Renderables/RenderableLottieAnimation.cs:101 — // todo - support MonoGame loads here using the normal content loader... — 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 Gum/SvgPlugin/SkiaInGumShared/Rendering/SkiaGLUtils.cs:399 — // TODO: Is there something that needs to be done when the device is reset? — 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 Gum/ViewModels/MainWindowViewModel.cs:102 — // todo: we should trigger this in the view instead — 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 GumDataTypes/Behaviors/BehaviorReference.cs:71 — // todo: eventually add this: — 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 GumDataTypes/GumProjectSave.cs:900 — // todo - need to figure out how to get this to work with sub-elements each having their own streams — 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 GumRuntime/GraphicalUiElement.Binding.cs:734 — // TODO: indexed leaf write-back (e.g. "Items[0].Name" or "Items[0]") is a — 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 GumRuntime/GraphicalUiElement.ChildUpdates.cs:449 — // todo - maybe look at the code below to see if we need to do the same thing here for — 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 GumRuntime/GraphicalUiElement.LayoutProperties.cs:142 — // todo - could be smarter here? — 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 GumRuntime/GraphicalUiElement.Managers.cs:397 — // todo: This should be called on instances and not just on element saves. This is messing up animation — 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 GumRuntime/InteractiveGue.cs:865 — // 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 MonoGameGum.Tests/Runtimes/InteractiveGueTests.cs:293 — // todo - repeat the tests above for ModalRoot and PopupRoot — 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 MonoGameGum/Forms/Controls/Games/DialogBox.cs:467 — // todo - do we want to always focus it? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment MonoGameGum/Forms/Controls/Games/DialogBox.cs:933 — // todo - customize this, for now let's go with ESC — 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 MonoGameGum/Forms/Controls/Menu.cs:110 — // todo - eventually we want to support templating like with ListBox, but that will come later: — 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 MonoGameGum/Forms/Controls/ScrollViewer.cs:41 — // todo - may expand this in the future, but creating this now — 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 MonoGameGum/Forms/Controls/ScrollViewer.cs:376 — // todo - give the first item focus: — 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.
  • + 63 more in this group — see findings.md.
D3 · God Classes · FileTooLong · ×59
  • FileTooLong: CodeGeneration/CodeGenerator.cs Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs — FileTooLong — 3365 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2865 over it, 6.73× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Renderables/Text.cs Runtimes/SkiaGum/Renderables/Text.cs — FileTooLong — 1678 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1178 over it, 3.36× 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: Graphics/Renderer.cs RenderingLibrary/Graphics/Renderer.cs — FileTooLong — 1485 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 985 over it, 2.97× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Wireframe/CustomSetPropertyOnRenderable.cs Gum/Wireframe/CustomSetPropertyOnRenderable.cs — FileTooLong — 1463 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 963 over it, 2.93× 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: converter/map.ts Tool/HtmlToGum/converter/map.ts — FileTooLong — 1370 significant lines (blank, comment-only and punctuation-only lines excluded), about 60% of them inside a single declaration: mapTreeToScreen (893-2122). The bar is 500 significant lines; this is 870 over it, 2.74× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: HostServices/GumHotReloadManager.cs GumCommon/HostServices/GumHotReloadManager.cs — FileTooLong — 1262 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 762 over it, 2.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: Controls/TextBoxBase.cs MonoGameGum/Forms/Controls/TextBoxBase.cs — FileTooLong — 1128 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 628 over it, 2.26× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Controls/FrameworkElement.cs MonoGameGum/Forms/Controls/FrameworkElement.cs — FileTooLong — 1102 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 602 over it, 2.20× 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: SkiaGum/CustomSetPropertyOnRenderable.cs Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs — FileTooLong — 1095 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 595 over it, 2.19× 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: TreeViewPlugin.Core/ElementTreeViewManager.cs Tool/TreeViewPlugin.Core/ElementTreeViewManager.cs — FileTooLong — 1068 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 568 over it, 2.14× 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: GumRuntime/ElementSaveExtensions.GumRuntime.cs GumRuntime/ElementSaveExtensions.GumRuntime.cs — FileTooLong — 1020 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 520 over it, 2.04× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Gum.ProjectServices/HeadlessErrorChecker.cs Tools/Gum.ProjectServices/HeadlessErrorChecker.cs — FileTooLong — 983 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 483 over it, 1.97× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Graphics/Text.cs RenderingLibrary/Graphics/Text.cs — FileTooLong — 968 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 468 over it, 1.94× 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/ListBox.cs MonoGameGum/Forms/Controls/ListBox.cs — FileTooLong — 954 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 454 over it, 1.91× 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: EditorTabPlugin.Core/EditorTabPluginBase.cs Tool/EditorTabPlugin.Core/EditorTabPluginBase.cs — FileTooLong — 954 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 454 over it, 1.91× 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: Services/GumxImportService.cs Tools/Gum.Presentation/ImportFromGumx/Services/GumxImportService.cs — FileTooLong — 859 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 359 over it, 1.72× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: GumRuntime/GraphicalUiElement.SetValuesAndStates.cs GumRuntime/GraphicalUiElement.SetValuesAndStates.cs — FileTooLong — 848 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 348 over it, 1.70× 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: VariableGrid/PropertyGridManager.cs Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/PropertyGridManager.cs — FileTooLong — 825 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 325 over it, 1.65× 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: Logic/CopyPasteLogic.cs Tools/Gum.Presentation/Logic/CopyPasteLogic.cs — FileTooLong — 812 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 312 over it, 1.62× 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: Renderables/Text.cs Runtimes/RaylibGum/Renderables/Text.cs — FileTooLong — 793 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 293 over it, 1.59× 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: Graphics/NineSlice.cs RenderingLibrary/Graphics/NineSlice.cs — FileTooLong — 779 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 279 over it, 1.56× 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: Renderables/RenderableShapeBase.cs Runtimes/SkiaGum/Renderables/RenderableShapeBase.cs — FileTooLong — 774 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 274 over it, 1.55× 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/MenuItem.cs MonoGameGum/Forms/Controls/MenuItem.cs — FileTooLong — 768 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 268 over it, 1.54× 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: Managers/StandardElementsManager.cs Gum/Managers/StandardElementsManager.cs — FileTooLong — 722 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 222 over it, 1.44× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: Runtime/VariableReferenceGraph.cs GumCommon/Runtime/VariableReferenceGraph.cs — FileTooLong — 718 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 218 over it, 1.44× 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.
  • + 34 more in this group — see findings.md.
D3 · God Classes · TooManyMethods · ×55
  • TooManyMethods: GraphicalUiElement GumRuntime/GraphicalUiElement.SetValuesAndStates.cs — TooManyMethods — 4812 significant lines (blank, comment-only and punctuation-only lines excluded), 267 methods, declared across 21 files: GumRuntime/GraphicalUiElement.SetValuesAndStates.cs (55), GumRuntime/GraphicalUiElement.Binding.cs (25), GumRuntime/GraphicalUiElement.Hierarchy.cs (19), GumRuntime/GraphicalUiElement.ChildUpdates.cs (18), +17 more file(s). The bar is 30 methods; this is 237 over it, 8.90× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: CodeGenerator Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs — TooManyMethods — 3238 significant lines (blank, comment-only and punctuation-only lines excluded), 158 methods. The bar is 30 methods; this is 128 over it, 5.27× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: ElementTreeViewManager Tool/TreeViewPlugin.Core/ElementTreeViewManager.cs — TooManyMethods — 1354 significant lines (blank, comment-only and punctuation-only lines excluded), 124 methods, declared across 2 files: TreeViewPlugin.Core/ElementTreeViewManager.cs (94), TreeViewPlugin.Core/ElementTreeViewManager.RightClick.cs (30). The bar is 30 methods; this is 94 over it, 4.13× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: PluginManager Tools/Gum.Presentation/Plugins/PluginManager.cs — TooManyMethods — 607 significant lines (blank, comment-only and punctuation-only lines excluded), 115 methods. The bar is 30 methods; this is 85 over it, 3.83× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: TextBoxBase MonoGameGum/Forms/Controls/TextBoxBase.cs — TooManyMethods — 1108 significant lines (blank, comment-only and punctuation-only lines excluded), 109 methods. The bar is 30 methods; this is 79 over it, 3.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: PluginBase Tools/Gum.Presentation/Plugins/BaseClasses/PluginBase.cs — TooManyMethods — 312 significant lines (blank, comment-only and punctuation-only lines excluded), 101 methods. The bar is 30 methods; this is 71 over it, 3.37× 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: FrameworkElement MonoGameGum/Forms/Controls/FrameworkElement.cs — TooManyMethods — 976 significant lines (blank, comment-only and punctuation-only lines excluded), 95 methods. The bar is 30 methods; this is 65 over it, 3.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: ElementSaveExtensions GumRuntime/ElementSaveExtensions.GumRuntime.cs — TooManyMethods — 973 significant lines (blank, comment-only and punctuation-only lines excluded), 86 methods. The bar is 30 methods; this is 56 over it, 2.87× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • TooManyMethods: Renderer RenderingLibrary/Graphics/Renderer.cs — TooManyMethods — 932 significant lines (blank, comment-only and punctuation-only lines excluded), 84 methods. The bar is 30 methods; this is 54 over it, 2.80× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: Text Runtimes/SkiaGum/Renderables/Text.cs — TooManyMethods — 1310 significant lines (blank, comment-only and punctuation-only lines excluded), 78 methods. The bar is 30 methods; this is 48 over it, 2.60× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: GumHotReloadManager GumCommon/HostServices/GumHotReloadManager.cs — TooManyMethods — 1149 significant lines (blank, comment-only and punctuation-only lines excluded), 77 methods. The bar is 30 methods; this is 47 over it, 2.57× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: HeadlessErrorChecker Tools/Gum.ProjectServices/HeadlessErrorChecker.cs — TooManyMethods — 1216 significant lines (blank, comment-only and punctuation-only lines excluded), 73 methods, declared across 3 files: Gum.ProjectServices/HeadlessErrorChecker.cs (55), Gum.ProjectServices/HeadlessErrorChecker.HandWrittenFiles.cs (12), Gum.ProjectServices/HeadlessErrorChecker.MissingReferences.cs (6). The bar is 30 methods; this is 43 over it, 2.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.
  • TooManyMethods: GumService MonoGameGum/GumService.cs — TooManyMethods — 551 significant lines (blank, comment-only and punctuation-only lines excluded), 71 methods, declared across 2 files: MonoGameGum/GumService.cs (37), MonoGameGum/GumService.XnaLike.cs (34). The bar is 30 methods; this is 41 over it, 2.37× 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: EditorTabPluginBase Tool/EditorTabPlugin.Core/EditorTabPluginBase.cs — TooManyMethods — 909 significant lines (blank, comment-only and punctuation-only lines excluded), 66 methods. The bar is 30 methods; this is 36 over it, 2.20× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: ListBox MonoGameGum/Forms/Controls/ListBox.cs — TooManyMethods — 872 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: FileManager REDACTED — TooManyMethods — 668 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. 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: MenuItem MonoGameGum/Forms/Controls/MenuItem.cs — TooManyMethods — 732 significant lines (blank, comment-only and punctuation-only lines excluded), 64 methods. The bar is 30 methods; this is 34 over it, 2.13× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: ObjectFinder Gum/Managers/ObjectFinder.cs — TooManyMethods — 607 significant lines (blank, comment-only and punctuation-only lines excluded), 59 methods. The bar is 30 methods; this is 29 over it, 1.97× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: ComboBox MonoGameGum/Forms/Controls/ComboBox.cs — TooManyMethods — 655 significant lines (blank, comment-only and punctuation-only lines excluded), 57 methods. The bar is 30 methods; this is 27 over it, 1.90× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: PropertyGridManager Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/PropertyGridManager.cs — TooManyMethods — 795 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: ScrollViewer MonoGameGum/Forms/Controls/ScrollViewer.cs — TooManyMethods — 611 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: Text RenderingLibrary/Graphics/Text.cs — TooManyMethods — 918 significant lines (blank, comment-only and punctuation-only lines excluded), 51 methods. The bar is 30 methods; this is 21 over it, 1.70× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: BitmapFont RenderingLibrary/Graphics/Fonts/BitmapFont.cs — TooManyMethods — 627 significant lines (blank, comment-only and punctuation-only lines excluded), 51 methods. The bar is 30 methods; this is 21 over it, 1.70× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: GumxImportService Tools/Gum.Presentation/ImportFromGumx/Services/GumxImportService.cs — TooManyMethods — 832 significant lines (blank, comment-only and punctuation-only lines excluded), 49 methods. 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: VariableReferenceGraph GumCommon/Runtime/VariableReferenceGraph.cs — TooManyMethods — 678 significant lines (blank, comment-only and punctuation-only lines excluded), 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.
  • + 30 more in this group — see findings.md.
D3 · God Classes · MethodTooLong · ×46
  • MethodTooLong: CustomSetPropertyOnRenderable.SetPropertyOnRenderableFunc Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs:507 — MethodTooLong — SetPropertyOnRenderableFunc runs 411 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 311 over it, 4.11× 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: CodeGenerator.SetXamarinFormsLayoutPosition Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:3049 — MethodTooLong — SetXamarinFormsLayoutPosition runs 286 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 186 over it, 2.86× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: StandardElementsManager.RefreshDefaults Gum/Managers/StandardElementsManager.cs:152 — MethodTooLong — RefreshDefaults runs 238 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 138 over it, 2.38× 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: GraphicalUiElement.UpdateLayoutWithinSession GumRuntime/GraphicalUiElement.UpdateLayout.cs:212 — MethodTooLong — UpdateLayoutWithinSession runs 210 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 110 over it, 2.10× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: CopyPasteLogic.PasteInstanceSaves Tools/Gum.Presentation/Logic/CopyPasteLogic.cs:676 — MethodTooLong — PasteInstanceSaves runs 201 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 101 over it, 2.01× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: GumChromeStyles.CreateStyles Tool/Gum.Avalonia/Themes/GumChromeStyles.cs:152 — MethodTooLong — CreateStyles runs 186 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 86 over it, 1.86× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: GraphicalUiElement.TrySetValueOnThis GumRuntime/GraphicalUiElement.SetValuesAndStates.cs:1139 — MethodTooLong — TrySetValueOnThis runs 184 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 84 over it, 1.84× 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: CodeGenerator.SetNonAbsoluteLayoutPosition Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2667 — MethodTooLong — SetNonAbsoluteLayoutPosition runs 175 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 75 over it, 1.75× 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: ScrollBarVisual.ScrollBarVisual(…) MonoGameGum/Forms/DefaultVisuals/V3/ScrollBarVisual.cs:144 — MethodTooLong — ScrollBarVisual(…) runs 174 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 74 over it, 1.74× 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: GumCoreServiceCollectionExtensions.AddGumCore Tools/Gum.Presentation/Services/GumCoreServiceCollectionExtensions.cs:76 — MethodTooLong — AddGumCore runs 172 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 72 over it, 1.72× 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: CustomSetPropertyOnRenderable.TrySetPropertyOnText Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs:1740 — MethodTooLong — TrySetPropertyOnText runs 167 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 67 over it, 1.67× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: CodeGenerator.FillWithExposedVariable Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:1362 — MethodTooLong — FillWithExposedVariable runs 154 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 54 over it, 1.54× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: CustomSetPropertyOnRenderable.TrySetPropertyOnText Gum/Wireframe/CustomSetPropertyOnRenderable.cs:1322 — MethodTooLong — TrySetPropertyOnText runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49× 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: CsvReader.ReadField Gum/CsvLibrary/CsvReader.cs:1104 — MethodTooLong — ReadField runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47× 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: GumxImportService.ImportAsync Tools/Gum.Presentation/ImportFromGumx/Services/GumxImportService.cs:119 — MethodTooLong — ImportAsync runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46× 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: GraphicalUiElementPropertyReadExtensions.TryGetProperty GumRuntime/GraphicalUiElementPropertyReadExtensions.cs:84 — MethodTooLong — TryGetProperty 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: BitmapFont.DrawTextLines RenderingLibrary/Graphics/Fonts/BitmapFont.cs:1013 — MethodTooLong — DrawTextLines 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: Text.DrawWithInlineVariables RenderingLibrary/Graphics/Text.cs:1472 — MethodTooLong — DrawWithInlineVariables runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42× 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: FormsUtilities.RegisterFromFileFormRuntimeDefaults MonoGameGum/Forms/FormsUtilities.cs:639 — MethodTooLong — RegisterFromFileFormRuntimeDefaults runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38× 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: LineRectangle.Render Runtimes/RaylibGum/Renderables/LineRectangle.cs:234 — MethodTooLong — Render runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32× 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: CustomSetPropertyOnRenderable.TrySetPropertiesOnRenderableBase Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs:224 — MethodTooLong — TrySetPropertiesOnRenderableBase runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32× 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: IWrappedTextExtensions.UpdateLines RenderingLibrary/Graphics/IWrappedText.cs:132 — MethodTooLong — UpdateLines runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: Splitter.ApplyResizeChangeInPixels MonoGameGum/Forms/Controls/Splitter.cs:182 — MethodTooLong — ApplyResizeChangeInPixels runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: CodeGenerator.GenerateConstructors Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:3957 — MethodTooLong — GenerateConstructors runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: ElementTreeViewManager.BuildContextMenuItems Tool/TreeViewPlugin.Core/ElementTreeViewManager.RightClick.cs:227 — MethodTooLong — BuildContextMenuItems runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • + 21 more in this group — see findings.md.
D17 · Explicit Debt · ObsoleteWithCallers · ×44
  • ObsoleteWithCallers GumDataTypes/DimensionUnitType.cs:12 — [Obsolete] Percentage
  • ObsoleteWithCallers GumDataTypes/DimensionUnitType.cs:20 — [Obsolete] RelativeToContainer
  • ObsoleteWithCallers GumRuntime/BindableGue.cs:14 — [Obsolete] BindableGue
  • ObsoleteWithCallers GumRuntime/GraphicalUiElement.Hierarchy.cs:215 — [Obsolete] GetChildByNameRecursively
  • ObsoleteWithCallers GumRuntime/GraphicalUiElement.Managers.cs:55 — [Obsolete] AddToManagers
  • ObsoleteWithCallers MonoGameGum/GueDeriving/ContainerRuntime.cs:320 — [Obsolete] AddToManagers
  • ObsoleteWithCallers MonoGameGum/GueDeriving/NineSliceRuntime.cs:458 — [Obsolete] AddToManagers
  • ObsoleteWithCallers MonoGameGum/GueDeriving/SpriteRuntime.cs:486 — [Obsolete] AddToManagers
  • ObsoleteWithCallers GumRuntime/GraphicalUiElement.Properties.cs:384 — [Obsolete] GetAbsoluteWidth
  • ObsoleteWithCallers GumRuntime/GraphicalUiElement.Properties.cs:391 — [Obsolete] GetAbsoluteHeight
  • ObsoleteWithCallers GumRuntime/GraphicalUiElement.Properties.cs:583 — [Obsolete] ParentGue
  • ObsoleteWithCallers GumRuntime/InteractiveGue.cs:1408 — [Obsolete] WindowOver
  • ObsoleteWithCallers MonoGameGum/Input/Cursor.cs:422 — [Obsolete] WindowOver
  • ObsoleteWithCallers MonoGameGum/Forms/Controls/FrameworkElement.cs:857 — [Obsolete] DefaultFormsComponents
  • ObsoleteWithCallers MonoGameGum/Forms/Controls/ListBox.cs:269 — [Obsolete] ListBoxItemFormsType
  • ObsoleteWithCallers MonoGameGum/Forms/FormsUtilities.cs:322 — [Obsolete] Update
  • ObsoleteWithCallers MonoGameGum/GumService.XnaLike.cs:585 — [Obsolete] Update
  • ObsoleteWithCallers MonoGameGum/Forms/GraphicalUiElementFormsExtensions.cs:94 — [Obsolete] GetFrameworkElementByName
  • ObsoleteWithCallers MonoGameGum/Forms/GraphicalUiElementFormsExtensions.cs:138 — [Obsolete] TryGetFrameworkElementByName
  • ObsoleteWithCallers MonoGameGum/GueDeriving/CircleRuntime.cs:193 — [Obsolete] Radius
  • ObsoleteWithCallers MonoGameGum/GueDeriving/CircleRuntime.cs:222 — [Obsolete] Color
  • ObsoleteWithCallers MonoGameGum/GueDeriving/RectangleRuntime.cs:937 — [Obsolete] Color
  • ObsoleteWithCallers Runtimes/SkiaGum/GueDeriving/SkiaShapeRuntime.cs:236 — [Obsolete] Color
  • ObsoleteWithCallers MonoGameGum/GueDeriving/ColoredRectangleRuntime.cs:31 — [Obsolete] ColoredRectangleRuntime
  • ObsoleteWithCallers MonoGameGum/GueDeriving/Shims/ColoredRectangleRuntimeShim.cs:12 — [Obsolete] ColoredRectangleRuntime
  • + 19 more in this group — see findings.md.
AX2 · Stateful singletons · Stateful singleton · ×40
  • Stateful singleton: PluginEnablementStore Tools/Gum.Presentation/Plugins/PluginEnablementStore.cs:8 — `PluginEnablementStore` is a singleton (one shared instance) but mutates instance state outside any lock (_settings; e.g. `_settings` at line 31).
  • Stateful singleton: TypeManager Gum/Reflection/TypeManager.cs:10 — `TypeManager` is a singleton (one shared instance) but mutates instance state outside any lock (mTypes; e.g. `mTypes` at line 20).
  • Stateful singleton: ProjectManager Tools/Gum.Presentation/Managers/ProjectManager.cs:31 — `ProjectManager` is a singleton (one shared instance) but mutates instance state outside any lock (GeneralSettingsFile, _gumProjectSave, IsNotifyingProjectLoad, _inFlightLoadProjectTask, mHaveErrorsOccurredLoadingProject; e.g. `GeneralSettingsFile` at line 202).
  • Stateful singleton: IProjectManager Tools/Gum.Presentation/Managers/IProjectManager.cs:9 — `IProjectManager` is a singleton (one shared instance) but mutates instance state outside any lock (AutoSave, UseStandardsPalette; e.g. `AutoSave` at Tools/Gum.Presentation/SettingsWindow/GeneralSettingsViewModel.cs line 46, through the shared instance).
  • Stateful singleton: CommandLineManager Tools/Gum.Presentation/CommandLine/CommandLineManager.cs:16 — `CommandLineManager` is a singleton (one shared instance) but mutates instance state outside any lock (ShouldExitImmediately, ShouldCodeGenAll, GlueProjectToLoad, ElementName, UsageError; e.g. `ShouldExitImmediately` at line 88).
  • Stateful singleton: AddDestinationTracker Tools/Gum.Presentation/Logic/AddDestinationTracker.cs:7 — `AddDestinationTracker` is a singleton (one shared instance) but mutates instance state outside any lock (_destination, _hasSelectionChangedSinceAnchor; e.g. `_destination` at line 28).
  • Stateful singleton: ProjectRestrictions Tools/Gum.Presentation/Managers/ProjectRestrictions.cs:10 — `ProjectRestrictions` is a singleton (one shared instance) but mutates instance state outside any lock (_cachedProject, _cachedReference, _cachedProjectFileName, _cachedProfile, _cachedFilePath, _inMemoryProfile; e.g. `_cachedProject` at line 63).
  • Stateful singleton: CopyPasteLogic Tools/Gum.Presentation/Logic/CopyPasteLogic.cs:81 — `CopyPasteLogic` is a singleton (one shared instance) but mutates instance state outside any lock (_copyType, _cutElement; e.g. `_copyType` at line 186).
  • Stateful singleton: ProjectOpenRequestRouter Tools/Gum.Presentation/Startup/ProjectOpenRequestRouter.cs:16 — `ProjectOpenRequestRouter` is a singleton (one shared instance) but mutates instance state outside any lock (_pendingProject, _pendingElement, _isStartupComplete; e.g. `_pendingProject` at line 60).
  • Stateful singleton: ToolFontGenerationCallbacks Tools/Gum.Presentation/Services/Fonts/ToolFontGenerationCallbacks.cs:13 — `ToolFontGenerationCallbacks` is a singleton (one shared instance) but mutates instance state outside any lock (_currentSpinner; e.g. `_currentSpinner` at line 32).
  • Stateful singleton: HotkeyManager Tools/Gum.Presentation/Managers/HotkeyManager.cs:22 — `HotkeyManager` is a singleton (one shared instance) but mutates instance state outside any lock (_isNudging; e.g. `_isNudging` at line 399).
  • Stateful singleton: SettingsPageRegistry Tools/Gum.Presentation/SettingsWindow/SettingsPageRegistry.cs:19 — `SettingsPageRegistry` is a singleton (one shared instance) but mutates instance state outside any lock (_pages; e.g. `_pages` at line 38).
  • Stateful singleton: StandardMenuModelBuilder Tools/Gum.Presentation/Menus/StandardMenuModelBuilder.cs:25 — `StandardMenuModelBuilder` is a singleton (one shared instance) but mutates instance state outside any lock (_undoMenuItem, _redoMenuItem, _removeElementMenuItem, _removeStateMenuItem, _removeVariableMenuItem, _zoomStepper; e.g. `_undoMenuItem` at line 135).
  • Stateful singleton: LocalizationService GumCommon/Localization/LocalizationService.cs:13 — `LocalizationService` is a singleton (one shared instance) but mutates instance state outside any lock (_currentLanguage, Languages, mStringDatabase, HasDatabase; e.g. `_currentLanguage` at line 44).
  • Stateful singleton: ILocalizationService GumCommon/Localization/ILocalizationService.cs:8 — `ILocalizationService` is a singleton (one shared instance) but mutates instance state outside any lock (CurrentLanguage; e.g. `CurrentLanguage` at Tools/Gum.ProjectServices/HeadlessLocalizationLoader.cs line 37, through the shared instance).
  • Stateful singleton: SelectedState Tools/Gum.Presentation/ToolStates/SelectedState.cs:17 — `SelectedState` is a singleton (one shared instance) but mutates instance state outside any lock (_isHandlingCategoryAssigment; e.g. `_isHandlingCategoryAssigment` at line 554).
  • Stateful singleton: UndoManager Tools/Gum.Presentation/Undo/UndoManager.cs:23 — `UndoManager` is a singleton (one shared instance) but mutates instance state outside any lock (_loadedProject; e.g. `_loadedProject` at line 175).
  • Stateful singleton: SelectionHistoryService Tools/Gum.Presentation/SelectionHistory/SelectionHistoryService.cs:14 — `SelectionHistoryService` is a singleton (one shared instance) but mutates instance state outside any lock (_isAfterCurrent, _entries, _currentIndex, _isNavigating; e.g. `_isAfterCurrent` at line 50).
  • Stateful singleton: AnimationUndoProviderRelay Tools/Gum.Presentation/Undo/AnimationUndoProviderRelay.cs:14 — `AnimationUndoProviderRelay` is a singleton (one shared instance) but mutates instance state outside any lock (_provider; e.g. `_provider` at line 18).
  • Stateful singleton: MainOutputViewModel Tools/Gum.Presentation/Managers/MainOutputViewModel.cs:19 — `MainOutputViewModel` is a singleton (one shared instance) but mutates instance state outside any lock (HasErrors; e.g. `HasErrors` at line 70).
  • Stateful singleton: WireframeObjectManager Tools/Gum.Presentation/Wireframe/WireframeObjectManager.cs:22 — `WireframeObjectManager` is a singleton (one shared instance) but mutates instance state outside any lock (RootGue, ElementShowing; e.g. `RootGue` at line 159).
  • Stateful singleton: FileWatchManager Tools/Gum.Presentation/FileWatchPlugin/FileWatchManager.cs:27 — `FileWatchManager` is a singleton (one shared instance) but mutates instance state outside any lock (fileSystemWatchers, LastFileChange, IsFlushing; e.g. `fileSystemWatchers` at line 102).
  • Stateful singleton: IFileWatchManager Tools/Gum.Presentation/FileWatchPlugin/IFileWatchManager.cs:7 — `IFileWatchManager` is a singleton (one shared instance) but mutates instance state outside any lock (PrintFileChangesToOutput; e.g. `PrintFileChangesToOutput` at Tools/Gum.Presentation/FileWatchPlugin/FileWatchPluginController.cs line 37, through the shared instance).
  • Stateful singleton: UserProjectSettingsManager Tools/Gum.Presentation/Managers/UserProjectSettingsManager.cs:13 — `UserProjectSettingsManager` is a singleton (one shared instance) but mutates instance state outside any lock (_currentFilePath, _currentSettings; e.g. `_currentFilePath` at line 32).
  • Stateful singleton: FileElementAnimationsProvider Tools/Gum.ProjectServices/FileElementAnimationsProvider.cs:19 — `FileElementAnimationsProvider` is a singleton (one shared instance) but mutates instance state outside any lock (_cache; e.g. `_cache` at line 56).
  • + 15 more in this group — see findings.md.
AX4 · Dependency direction · Dependency-rule violation · ×39
  • Dependency-rule violation: EditorTabPlugin.Core (Domain) → Gum.Presentation (Web) Tool/EditorTabPlugin.Core/EditingManager.RightClick.cs:1 — This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.Managers`, `Gum.ViewModels`, `RightClickViewModel`, `ContextMenuItemViewModel`. The inward dependency rule is broken here. It is named again on lines 2, 10, 14, 24, 52. Depend on an abstraction the inner layer owns, implemented in the outer one.
  • Dependency-rule violation: EditorTabPlugin.Core (Domain) → Gum.Presentation (Web) Tool/EditorTabPlugin.Core/EditingManager.cs:1 — This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.DataTypes`, `Gum.Logic`, `Gum.Managers`, `Gum.Plugins.InternalPlugins.VariableGrid`, `Gum.Services`, `Gum.ToolCommands`, `Gum.ToolStates`, `IContextMenuState`, …. The inward dependency rule is broken here. It is named again on lines 2, 3, 4, 5, 6, 7, 18, 20, …. Depend on an abstraction the inner layer owns, implemented in the outer one.
  • Dependency-rule violation: EditorTabPlugin.Core (Domain) → Gum.Presentation (Web) Tool/EditorTabPlugin.Core/EditorTabPluginBase.cs:4 — This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.Commands`, `Gum.DataTypes`, `Gum.DataTypes.Variables`, `Gum.Dialogs`, `Gum.Input`, `Gum.Logic`, `Gum.Logic.FileWatch`, `Gum.Managers`, …. The inward dependency rule is broken here. It is named again on lines 5, 7, 8, 9, 11, 12, 13, 14, …. Depend on an abstraction the inner layer owns, implemented in the outer one.
  • Dependency-rule violation: EditorTabPlugin.Core (Domain) → Gum.Presentation (Web) Tool/EditorTabPlugin.Core/Editors/Handlers/PolygonPointInputHandler.cs:4 — This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.DataTypes.Variables`, `Gum.Input`, `Gum.Wireframe.Editors.Visuals`, `InputHandlerBase`, `EditorContext`, `GumCursorKind`, `StateValueComparer`. The inward dependency rule is broken here. It is named again on lines 5, 6, 23, 45, 74, 79, 84, 321. Depend on an abstraction the inner layer owns, implemented in the outer one.
  • Dependency-rule violation: EditorTabPlugin.Core (Domain) → Gum.Presentation (Web) Tool/EditorTabPlugin.Core/Editors/Handlers/PolygonPointSnapper.cs:28 — This Domain file depends on the Web project `Gum.Presentation`: it names `GridSnapper`. The inward dependency rule is broken here. It is named again on line 29. Depend on an abstraction the inner layer owns, implemented in the outer one.
  • Dependency-rule violation: EditorTabPlugin.Core (Domain) → Gum.Presentation (Web) Tool/EditorTabPlugin.Core/Editors/Handlers/PolygonPointsStateWriter.cs:4 — This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.DataTypes.Variables`, `EditorContext`. The inward dependency rule is broken here. It is named again on line 13. Depend on an abstraction the inner layer owns, implemented in the outer one.
  • Dependency-rule violation: EditorTabPlugin.Core (Domain) → Gum.Presentation (Web) Tool/EditorTabPlugin.Core/Editors/Handlers/PolygonScaleDrag.cs:17 — This Domain file depends on the Web project `Gum.Presentation`: it names `ResizeSide`. The inward dependency rule is broken here. It is named again on line 26. Depend on an abstraction the inner layer owns, implemented in the outer one.
  • Dependency-rule violation: EditorTabPlugin.Core (Domain) → Gum.Presentation (Web) Tool/EditorTabPlugin.Core/Editors/Handlers/PolygonScaleInputHandler.cs:6 — This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.DataTypes`, `Gum.Input`, `Gum.Wireframe.Editors.Visuals`, `InputHandlerBase`, `IResizeHandlesVisual`, `EditorContext`, `ResizeSide`, `GumCursorKind`. The inward dependency rule is broken here. It is named again on lines 7, 8, 19, 21, 39, 50, 54, 63, …. Depend on an abstraction the inner layer owns, implemented in the outer one.
  • Dependency-rule violation: EditorTabPlugin.Core (Domain) → Gum.Presentation (Web) Tool/EditorTabPlugin.Core/Editors/Handlers/PolygonScaler.cs:39 — This Domain file depends on the Web project `Gum.Presentation`: it names `ResizeSide`, `GridSnapper`. The inward dependency rule is broken here. It is named again on lines 57, 58, 59, 60, 192. Depend on an abstraction the inner layer owns, implemented in the outer one.
  • Dependency-rule violation: EditorTabPlugin.Core (Domain) → Gum.Presentation (Web) Tool/EditorTabPlugin.Core/Editors/PolygonWireframeEditor.cs:2 — This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.Commands`, `Gum.Input`, `Gum.Managers`, `Gum.Plugins`, `Gum.Plugins.InternalPlugins.VariableGrid`, `Gum.PropertyGridHelpers`, `Gum.Services`, `Gum.ToolCommands`, …. The inward dependency rule is broken here. It is named again on lines 3, 4, 5, 6, 7, 8, 9, 10, …. Depend on an abstraction the inner layer owns, implemented in the outer one.
  • Dependency-rule violation: EditorTabPlugin.Core (Domain) → Gum.Presentation (Web) Tool/EditorTabPlugin.Core/Editors/ResizeHandles.cs:1 — This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.Services`, `ICanvasDisplayScale`, `ResizeHandleLayout`, `ResizeSide`. The inward dependency rule is broken here. It is named again on lines 39, 45, 47, 173, 176, 237, 240, 246, …. Depend on an abstraction the inner layer owns, implemented in the outer one.
  • Dependency-rule violation: EditorTabPlugin.Core (Domain) → Gum.Presentation (Web) Tool/EditorTabPlugin.Core/Editors/StandardWireframeEditor.cs:3 — This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.DataTypes`, `Gum.DataTypes.Variables`, `Gum.Input`, `Gum.Managers`, `Gum.PropertyGridHelpers`, `Gum.ToolStates`, `Gum.ToolCommands`, `Gum.Services`, …. The inward dependency rule is broken here. It is named again on lines 4, 5, 6, 7, 8, 20, 21, 22, …. Depend on an abstraction the inner layer owns, implemented in the outer one.
  • Dependency-rule violation: EditorTabPlugin.Core (Domain) → Gum.Presentation (Web) Tool/EditorTabPlugin.Core/Editors/Visuals/AddPointSpriteVisual.cs:1 — This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.Input`, `EditorContext`. The inward dependency rule is broken here. It is named again on line 41. Depend on an abstraction the inner layer owns, implemented in the outer one.
  • Dependency-rule violation: EditorTabPlugin.Core (Domain) → Gum.Presentation (Web) Tool/EditorTabPlugin.Core/Editors/Visuals/DimensionDisplayVisual.cs:1 — This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.DataTypes`, `Gum.Managers`, `Gum.Services`, `Gum.Wireframe`, `Gum.Wireframe.Editors.Handlers`, `IUiSettingsService`, `ResizeInputHandler`, `EditorContext`, …. The inward dependency rule is broken here. It is named again on lines 2, 3, 4, 5, 31, 32, 36, 38, …. Depend on an abstraction the inner layer owns, implemented in the outer one.
  • Dependency-rule violation: EditorTabPlugin.Core (Domain) → Gum.Presentation (Web) Tool/EditorTabPlugin.Core/Editors/Visuals/EditorVisualBase.cs:10 — This Domain file depends on the Web project `Gum.Presentation`: it names `IEditorVisual`, `EditorContext`. The inward dependency rule is broken here. It is named again on lines 12, 17. Depend on an abstraction the inner layer owns, implemented in the outer one.
  • Dependency-rule violation: EditorTabPlugin.Core (Domain) → Gum.Presentation (Web) Tool/EditorTabPlugin.Core/Editors/Visuals/OriginDisplayVisual.cs:16 — This Domain file depends on the Web project `Gum.Presentation`: it names `EditorContext`. The inward dependency rule is broken here. Depend on an abstraction the inner layer owns, implemented in the outer one.
  • Dependency-rule violation: EditorTabPlugin.Core (Domain) → Gum.Presentation (Web) Tool/EditorTabPlugin.Core/Editors/Visuals/PolygonPointNodesVisual.cs:38 — This Domain file depends on the Web project `Gum.Presentation`: it names `EditorContext`. The inward dependency rule is broken here. Depend on an abstraction the inner layer owns, implemented in the outer one.
  • Dependency-rule violation: EditorTabPlugin.Core (Domain) → Gum.Presentation (Web) Tool/EditorTabPlugin.Core/Editors/Visuals/PolygonScaleHandlesVisual.cs:17 — This Domain file depends on the Web project `Gum.Presentation`: it names `IResizeHandlesVisual`, `ResizeSide`, `EditorContext`. The inward dependency rule is broken here. It is named again on lines 23, 24, 25, 27. Depend on an abstraction the inner layer owns, implemented in the outer one.
  • Dependency-rule violation: EditorTabPlugin.Core (Domain) → Gum.Presentation (Web) Tool/EditorTabPlugin.Core/Editors/Visuals/ResizeHandlesVisual.cs:1 — This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.DataTypes`, `IResizeHandlesVisual`, `ResizeSide`, `EditorContext`. The inward dependency rule is broken here. It is named again on lines 13, 25, 26, 27, 53. Depend on an abstraction the inner layer owns, implemented in the outer one.
  • Dependency-rule violation: EditorTabPlugin.Core (Domain) → Gum.Presentation (Web) Tool/EditorTabPlugin.Core/Editors/Visuals/RotationHandleVisual.cs:18 — This Domain file depends on the Web project `Gum.Presentation`: it names `IRotationHandleVisual`, `EditorContext`. The inward dependency rule is broken here. It is named again on lines 32, 33, 35. Depend on an abstraction the inner layer owns, implemented in the outer one.
  • Dependency-rule violation: EditorTabPlugin.Core (Domain) → Gum.Presentation (Web) Tool/EditorTabPlugin.Core/Editors/Visuals/SelectedPointHighlightVisual.cs:29 — This Domain file depends on the Web project `Gum.Presentation`: it names `EditorContext`. The inward dependency rule is broken here. Depend on an abstraction the inner layer owns, implemented in the outer one.
  • Dependency-rule violation: EditorTabPlugin.Core (Domain) → Gum.Presentation (Web) Tool/EditorTabPlugin.Core/Editors/Visuals/SelectionOutlineVisual.cs:2 — This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.DataTypes`, `EditorContext`, `SelectionOutlineRule`. The inward dependency rule is broken here. It is named again on lines 24, 88, 101, 103. Depend on an abstraction the inner layer owns, implemented in the outer one.
  • Dependency-rule violation: EditorTabPlugin.Core (Domain) → Gum.Presentation (Web) Tool/EditorTabPlugin.Core/Editors/Visuals/SelectionRectangleVisual.cs:1 — This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.Services`, `ISelectionRectangleVisual`, `ICanvasDisplayScale`. The inward dependency rule is broken here. It is named again on lines 16, 19, 55. Depend on an abstraction the inner layer owns, implemented in the outer one.
  • Dependency-rule violation: EditorTabPlugin.Core (Domain) → Gum.Presentation (Web) Tool/EditorTabPlugin.Core/GridOverlayManager.cs:1 — This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.Wireframe.Editors`, `GridOverlayCalculator`. The inward dependency rule is broken here. It is named again on line 48. Depend on an abstraction the inner layer owns, implemented in the outer one.
  • Dependency-rule violation: EditorTabPlugin.Core (Domain) → Gum.Presentation (Web) Tool/EditorTabPlugin.Core/ScrollbarService.cs:1 — This Domain file depends on the Web project `Gum.Presentation`: it names `Gum.Controls`, `Gum.DataTypes`, `Gum.Managers`, `Gum.ToolStates`, `Gum.Wireframe`, `ScrollBarControlLogic`, `ISelectedState`, `IWireframeObjectManager`, …. The inward dependency rule is broken here. It is named again on lines 2, 3, 5, 6, 20, 21, 22, 23, …. Depend on an abstraction the inner layer owns, implemented in the outer one.
  • + 14 more in this group — see findings.md.
X2 · Cancellation propagation · Async method without CancellationToken · ×35
  • Async method without CancellationToken: ShowAsync MonoGameGum/Forms/Controls/Games/DialogBox.cs:278 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: ShowAsync MonoGameGum/Forms/Controls/Games/DialogBox.cs:300 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: ShowDialog MonoGameGum/Forms/Controls/Games/DialogBox.cs:328 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: StartShowAllPagesLoop MonoGameGum/Forms/Controls/Games/DialogBox.cs:437 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: CanProceed Runtimes/SkiaGum.Maui/SkiaGumCanvasView.cs:162 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: Execute Tools/Gum.Cli/Commands/FontsCommand.cs:133 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: GenerateFont Tools/Gum.ProjectServices/FontGeneration/BmFontExeFileGenerator.cs:47 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: CreateAllMissingFontFiles Tools/Gum.ProjectServices/FontGeneration/HeadlessFontGenerationService.cs:81 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: CreateAllMissingFontFiles Tools/Gum.ProjectServices/FontGeneration/HeadlessFontGenerationService.cs:87 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: GetOptimizedSizeFor Tools/Gum.ProjectServices/FontGeneration/HeadlessFontGenerationService.cs:133 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: GetPageCountFor Tools/Gum.ProjectServices/FontGeneration/HeadlessFontGenerationService.cs:186 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: GenerateMissingFontsFor Tools/Gum.ProjectServices/FontGeneration/HeadlessFontGenerationService.cs:276 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: TryCreateFontFor Tools/Gum.ProjectServices/FontGeneration/HeadlessFontGenerationService.cs:401 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: GenerateFontFor Tools/Gum.ProjectServices/FontGeneration/HeadlessFontGenerationService.cs:438 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: CreateBitmapFontFilesIfNecessaryAsync Tools/Gum.ProjectServices/FontGeneration/HeadlessFontGenerationService.cs:487 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: AssignEstimatedNeededSizeOn Tools/Gum.ProjectServices/FontGeneration/HeadlessFontGenerationService.cs:598 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: GenerateFont Tools/Gum.ProjectServices/FontGeneration/KernSmithFileGenerator.cs:57 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: ReadCommandLine Tools/Gum.Presentation/CommandLine/CommandLineManager.cs:73 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: HandleRebuildFontCommand Tools/Gum.Presentation/CommandLine/CommandLineManager.cs:193 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: NewProjectAsync Tools/Gum.Presentation/Commands/FileCommands.cs:269 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: CloseProjectAsync Tools/Gum.Presentation/Commands/FileCommands.cs:277 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: RefreshChecksAsync Tools/Gum.Presentation/Dialogs/NewProjectDialogViewModel.cs:1360 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: ImportThemeAsync Tools/Gum.Presentation/GumForms/Services/FormsThemeImporter.cs:72 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: ImportThemeCoreAsync Tools/Gum.Presentation/GumForms/Services/FormsThemeImporter.cs:86 — No CancellationToken parameter — this work can't be stopped early once started.
  • Async method without CancellationToken: OnAffirmative Tools/Gum.Presentation/GumForms/ViewModels/AddFormsViewModel.cs:34 — No CancellationToken parameter — this work can't be stopped early once started.
  • + 10 more in this group — see findings.md.
X3 · Exception handling · Swallowed exception (empty catch) · ×28
  • Swallowed exception (empty catch) GumCommon/HostServices/GumHotReloadManager.cs:1995 — 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) GumCommon/Input/OsKeyRepeatSettingsProvider.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.
  • Swallowed exception (empty catch) GumDataTypes/GumProjectSave.cs:894 — 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) GumDataTypes/GumProjectSave.cs:895 — 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) Gum/DataTypes/ElementSaveExtensionMethods.cs:191 — 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) GumRuntime/GraphicalUiElement.SetValuesAndStates.cs:752 — 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) MonoGameGum/Forms/Data/UntypedBindingExpressionBase.cs:104 — 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) MonoGameGum/Forms/BehaviorFormsPropertyApplier.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) MonoGameGum/Forms/BehaviorFormsPropertyApplier.cs:187 — 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) MonoGameGum/Forms/BehaviorFormsPropertyApplier.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) MonoGameGum/GumService.XnaLike.cs:233 — 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) MonoGameGum/GumService.XnaLike.cs:438 — 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) MonoGameGum/Input/Cursor.cs:567 — 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) MonoGameGum/Input/Keyboard.cs:187 — 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) MonoGameGum/Input/Keyboard.cs:220 — 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) MonoGameGum/Input/Keyboard.cs:408 — 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) Runtimes/SkiaGum/Content/SkiaResourceManager.cs:186 — 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) Runtimes/SkiaGum/RenderingLibrary/Renderer.cs:1328 — 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) Runtimes/GumExpressions/EvaluatedSyntax.cs:1392 — 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) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:7033 — 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) Tools/Gum.ProjectServices/CodeGeneration/SyntaxVersionDetectionService.cs:631 — 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) Tools/Gum.ProjectServices.MonoGame/MonoGameScreenshotService.cs:38 — 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) Tools/Gum.ProjectServices.SkiaGum/SkiaGumScreenshotService.cs:94 — 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) Tools/Gum.Presentation/Diagnostics/ToolLog.cs:135 — 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) Tools/Gum.Presentation/Dialogs/NewProjectDialogViewModel.cs:1379 — 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.
  • + 3 more in this group — see findings.md.
GD1 · Unfinished & placeholder code · Unfinished stub · ×26
  • Unfinished stub — throws NotImplementedException GumCommon/HostServices/Async/SingleThreadSynchronizationContext.cs:28 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException MonoGameGum/Forms/Controls/ComboBox.cs:467 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException MonoGameGum/Forms/Controls/ComboBox.cs:469 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException MonoGameGum/Forms/Controls/ComboBox.cs:471 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException MonoGameGum/Forms/Controls/Games/DialogBox.cs:102 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException MonoGameGum/Forms/Controls/ListBox.cs:434 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException MonoGameGum/Forms/Controls/ListBox.cs:436 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException MonoGameGum/Forms/Controls/Primitives/ButtonBase.cs:40 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException MonoGameGum/Forms/Controls/Primitives/ButtonBase.cs:42 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException MonoGameGum/Forms/Controls/Slider.cs:80 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException MonoGameGum/Forms/Controls/Slider.cs:82 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException MonoGameGum/Forms/Controls/Slider.cs:84 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException RenderingLibrary/SystemManagers.cs:135 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException RenderingLibrary/SystemManagers.cs:543 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException Runtimes/SkiaGum/RenderingLibrary/SystemManagers.cs:84 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException Runtimes/RaylibGum/RenderingLibrary/SystemManagers.cs:102 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException Gum/Controls/MultiplyConverter.cs:16 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException Gum/Converters/AreEqualMultiConverter.cs:12 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException Gum/Converters/MultiplyConverter.cs:29 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException Gum/Plugins/InternalPlugins/StatePlugin/Converters/BackgroundConverter.cs:22 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException Gum/Themes/Converters/LessThanConverter.cs:29 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException Gum/Themes/Converters/LessThanConverter.cs:57 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException Gum/Themes/Converters/NotNullConverter.cs:14 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException Gum/Themes/Converters/TabItemWidthConverter.cs:23 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException Samples/MonoGameGumFromFile/MonoGameGumFromFile/Managers/SingleThreadSynchronizationContext.cs:20 — A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface.
  • + 1 more in this group — see findings.md.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D17 · Explicit Debt · DeadPreprocessorBranch · ×24
  • DeadPreprocessorBranch Gum/Controls/ColorDisplay.xaml.cs:118 — #if XNA — 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 Gum/Controls/ColorDisplay.xaml.cs:165 — #if XNA — 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 Gum/Controls/ColorDisplay.xaml.cs:230 — #if XNA — 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 Gum/CsvLibrary/CsvFileManager.cs:148 — #if SILVERLIGHT || XBOX360 || WINDOWS_PHONE — 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 Gum/CsvLibrary/CsvFileManager.cs:163 — #if XBOX360 — 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 Gum/CsvLibrary/Reflection/PropertyValuePair.cs:17 — #if UWP — 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 Gum/CsvLibrary/Reflection/PropertyValuePair.cs:89 — #if UWP — 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 Gum/CsvLibrary/RuntimeCsvRepresentation.cs:955 — #if UWP — 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 Gum/CsvLibrary/Reflection/PropertyValuePair.cs:234 — #if FRB_XNA — 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 Gum/CsvLibrary/Reflection/PropertyValuePair.cs:251 — #if FRB_XNA — 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 Gum/CsvLibrary/Reflection/PropertyValuePair.cs:276 — #if FRB_XNA — 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 Gum/CsvLibrary/Reflection/PropertyValuePair.cs:296 — #if FRB_XNA — 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 Gum/CsvLibrary/Reflection/PropertyValuePair.cs:418 — #if FRB_XNA — 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 Gum/CsvLibrary/Reflection/PropertyValuePair.cs:686 — #if FRB_XNA — 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 Gum/CsvLibrary/Reflection/PropertyValuePair.cs:715 — #if FRB_XNA — 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 RenderingLibrary/Graphics/Renderer.cs:442 — #if DIRECTX_RENDERING — 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 Tools/Gum.Presentation/Reflection/LateBinder.cs:199 — #if XBOX360 || WINDOWS_PHONE || SILVERLIGHT — 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 Tools/Gum.Presentation/Reflection/LateBinder.cs:250 — #if XBOX360 || SILVERLIGHT || ZUNE || WINDOWS_PHONE — 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 Tools/Gum.Presentation/Reflection/LateBinder.cs:491 — #else — 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 Tools/Gum.Presentation/Reflection/LateBinder.cs:511 — #else — 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 Tools/Gum.Presentation/Reflection/LateBinder.cs:529 — #else — 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 Tools/Gum.Presentation/Reflection/LateBinder.cs:551 — #else — 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 Tools/Gum.Presentation/Reflection/LateBinder.cs:570 — #else — 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 REDACTED:1160 — #if MONODROID — 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 (12 lines × 2) · ×24
  • Duplicated block (12 lines × 2) RenderingLibrary/Graphics/NineSlice.cs:1321 — RenderingLibrary/Graphics/NineSlice.cs:1321-1332 | RenderingLibrary/Graphics/Sprite.cs:428-439 — 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) GumDataTypes/Serialization/Json/CustomPropertySaveJson.cs:14 — GumDataTypes/Serialization/Json/CustomPropertySaveJson.cs:14-25 | GumDataTypes/Serialization/Json/VariableSaveJson.cs:41-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 (12 lines × 2) GumRuntime/GraphicalUiElement.Managers.cs:248 — GumRuntime/GraphicalUiElement.Managers.cs:248-259 | GumRuntime/GraphicalUiElement.Managers.cs:273-284 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (12 lines × 2) MonoGameGum/Forms/Controls/Grid.cs:59 — MonoGameGum/Forms/Controls/Grid.cs:59-70 | MonoGameGum/Forms/Controls/Grid.cs:87-98 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (12 lines × 2) MonoGameGum/Forms/Controls/ListBox.cs:1318 — MonoGameGum/Forms/Controls/ListBox.cs:1318-1329 | MonoGameGum/Forms/Controls/ListBox.cs:1347-1358 — 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) GumCommon/Bundle/FontReferenceCollector.cs:340 — GumCommon/Bundle/FontReferenceCollector.cs:340-351 | GumCommon/Bundle/FontReferenceCollector.cs:462-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. Read the line range as the matched WINDOW rather than a finished unit: at `GumCommon/Bundle/FontReferenceCollector.cs:340` 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 `instance` to `InstanceSave` in one and `InstanceSave?` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (12 lines × 2) GumDataTypes/Serialization/Json/CustomPropertySaveJson.cs:34 — GumDataTypes/Serialization/Json/CustomPropertySaveJson.cs:34-45 | GumDataTypes/Serialization/Json/VariableSaveJson.cs:75-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 both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind `source` to `CustomPropertySave` in one and `VariableSave` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (12 lines × 2) RenderingLibrary/Graphics/BatchKeyGroupedOrderer.cs:667 — RenderingLibrary/Graphics/BatchKeyGroupedOrderer.cs:667-678 | RenderingLibrary/Graphics/BatchKeyGroupedOrderer.cs:693-704 — 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) Runtimes/SkiaGum/Renderables/NineSlice.cs:958 — Runtimes/SkiaGum/Renderables/NineSlice.cs:958-969 | Runtimes/SkiaGum/Renderables/NineSlice.cs:971-982 — 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 `Runtimes/SkiaGum/Renderables/NineSlice.cs:958` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (12 lines × 2) Runtimes/RaylibGum/Renderables/LinePolygon.cs:181 — Runtimes/RaylibGum/Renderables/LinePolygon.cs:181-192 | Runtimes/SkiaGum/Renderables/Polygon.cs:122-133 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (12 lines × 2) Runtimes/RaylibGum/Renderables/NineSlice.cs:718 — Runtimes/RaylibGum/Renderables/NineSlice.cs:718-729 | Runtimes/RaylibGum/Renderables/NineSlice.cs:731-742 — 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 `Runtimes/RaylibGum/Renderables/NineSlice.cs:718` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (12 lines × 2) Gum/Controls/GumTreeView.cs:315 — Gum/Controls/GumTreeView.cs:315-326 | Tool/Gum.Avalonia/Plugins/TreeView/AvaloniaGumTreeView.cs:596-607 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (12 lines × 2) Gum/Services/DispatcherUiTimer.cs:21 — Gum/Services/DispatcherUiTimer.cs:21-32 | Tool/Gum.Avalonia/Services/AvaloniaUiTimer.cs:17-33 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (12 lines × 2) Gum/Plugins/PluginTab.cs:46 — Gum/Plugins/PluginTab.cs:46-57 | Tool/Gum.Avalonia/Shell/AvaloniaPluginTab.cs:52-63 — 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) Samples/MonoGameGumThemesShowcase/Game1.cs:539 — Samples/MonoGameGumThemesShowcase/Game1.cs:539-550 | Samples/RaylibGumThemesShowcase/Program.cs:478-489 — before extracting anything, compare `Samples/MonoGameGumThemesShowcase/Game1.cs` and `Samples/RaylibGumThemesShowcase/Program.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 201 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 `Samples/MonoGameGumThemesShowcase/Game1.cs:539` 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) Samples/MonoGameGumThemesShowcase/Game1.cs:498 — Samples/MonoGameGumThemesShowcase/Game1.cs:498-509 | Samples/RaylibGumThemesShowcase/Program.cs:437-448 — before extracting anything, compare `Samples/MonoGameGumThemesShowcase/Game1.cs` and `Samples/RaylibGumThemesShowcase/Program.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 201 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 `Samples/MonoGameGumThemesShowcase/Game1.cs:498` 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) Samples/MonoGameGumThemesShowcase/Game1.cs:302 — Samples/MonoGameGumThemesShowcase/Game1.cs:302-313 | Samples/RaylibGumThemesShowcase/Program.cs:241-252 — before extracting anything, compare `Samples/MonoGameGumThemesShowcase/Game1.cs` and `Samples/RaylibGumThemesShowcase/Program.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 201 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 `Samples/MonoGameGumThemesShowcase/Game1.cs:302` 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) Tools/Gum.Presentation/Wireframe/SelectionManager.cs:378 — Tools/Gum.Presentation/Wireframe/SelectionManager.cs:378-389 | Tools/Gum.Presentation/Wireframe/SelectionManager.cs:420-431 — 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 `Tools/Gum.Presentation/Wireframe/SelectionManager.cs:378` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) Samples/MonoGameGumThemesShowcase/Game1.cs:116 — Samples/MonoGameGumThemesShowcase/Game1.cs:116-127 | Samples/RaylibGumThemesShowcase/Program.cs:104-115 — before extracting anything, compare `Samples/MonoGameGumThemesShowcase/Game1.cs` and `Samples/RaylibGumThemesShowcase/Program.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 201 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Samples/RaylibGumThemesShowcase/Program.cs:93` calls `AllControlsScreen`, `ApplyTheme` and `Samples/MonoGameGumThemesShowcase/Game1.cs:114` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (12 lines × 2) Samples/GameUiSamples/Screens/StardewHotbarScreen.cs:50 — Samples/GameUiSamples/Screens/StardewHotbarScreen.cs:50-61 | Samples/GameUiSamplesSkia/Screens/StardewHotbarScreen.cs:50-61 — before extracting anything, compare `Samples/GameUiSamples/Screens/StardewHotbarScreen.cs` and `Samples/GameUiSamplesSkia/Screens/StardewHotbarScreen.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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) Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/MoveInputHandler.cs:350 — Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/MoveInputHandler.cs:350-361 | Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/MoveInputHandler.cs:420-431 — 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 `Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/MoveInputHandler.cs:350` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (12 lines × 2) Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:160 — Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:160-171 | Samples/raylib/Screens/PolygonsScreen.cs:169-180 — before extracting anything, compare `Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs` and `Samples/raylib/Screens/PolygonsScreen.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 73 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) Tools/Gum.Presentation/Dialogs/RenameFolderDialogViewModel.cs:106 — Tools/Gum.Presentation/Dialogs/RenameFolderDialogViewModel.cs:106-117 | Tools/Gum.Presentation/Dialogs/RenameFolderDialogViewModel.cs:121-132 — 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 `Tools/Gum.Presentation/Dialogs/RenameFolderDialogViewModel.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 (12 lines × 2) Samples/GameUiSamples/Screens/FrbClicker/FrbScreenViewModel.cs:99 — Samples/GameUiSamples/Screens/FrbClicker/FrbScreenViewModel.cs:99-110 | Samples/GameUiSamplesSkia/Screens/FrbClicker/FrbScreenViewModel.cs:99-110 — before extracting anything, compare `Samples/GameUiSamples/Screens/FrbClicker/FrbScreenViewModel.cs` and `Samples/GameUiSamplesSkia/Screens/FrbClicker/FrbScreenViewModel.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 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 × 2) · ×24
  • Duplicated block (13 lines × 2) DataUi.Core/LateBinder.cs:654 — DataUi.Core/LateBinder.cs:654-666 | Tools/Gum.Presentation/Reflection/LateBinder.cs:520-532 — before extracting anything, compare `DataUi.Core/LateBinder.cs` and `Tools/Gum.Presentation/Reflection/LateBinder.cs` as WHOLE FILES: this scan already matched 12 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 (13 lines × 2) MonoGameGum/Forms/Controls/FrameworkElement.cs:2147 — MonoGameGum/Forms/Controls/FrameworkElement.cs:2147-2159 | MonoGameGum/Forms/Controls/FrameworkElement.cs:2474-2486 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:127 — Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:127-139 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs:121-133 — before extracting anything, compare `Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs` and `Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs` as WHOLE FILES: this scan already matched 10 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. 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 (13 lines × 2) DataUi.Core/LateBinder.cs:636 — DataUi.Core/LateBinder.cs:636-648 | Tools/Gum.Presentation/Reflection/LateBinder.cs:502-514 — before extracting anything, compare `DataUi.Core/LateBinder.cs` and `Tools/Gum.Presentation/Reflection/LateBinder.cs` as WHOLE FILES: this scan already matched 12 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. Read the line range as the matched WINDOW rather than a finished unit: at `DataUi.Core/LateBinder.cs:636` 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) Gum/Managers/StandardElementsManager.cs:874 — Gum/Managers/StandardElementsManager.cs:874-886 | Gum/Managers/StandardElementsManager.cs:1359-1371 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) MonoGameGum/Forms/Data/BinderHelpers.cs:246 — MonoGameGum/Forms/Data/BinderHelpers.cs:246-258 | MonoGameGum/Forms/Data/BinderHelpers.cs:275-288 — 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 `MonoGameGum/Forms/Data/BinderHelpers.cs:246` 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) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:1489 — Gum/Wireframe/CustomSetPropertyOnRenderable.cs:1489-1502 | Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs:1877-1889 — 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 `Gum/Wireframe/CustomSetPropertyOnRenderable.cs:1489` 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 (13 lines × 2) Runtimes/SkiaGum/Renderables/NineSlice.cs:798 — Runtimes/SkiaGum/Renderables/NineSlice.cs:798-810 | Runtimes/SkiaGum/Renderables/NineSlice.cs:811-823 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) Runtimes/SkiaGum/Renderables/Text.cs:2008 — Runtimes/SkiaGum/Renderables/Text.cs:2008-2020 | Runtimes/SkiaGum/Renderables/Text.cs:2033-2045 — 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 (13 lines × 2) Runtimes/RaylibGum/Renderables/NineSlice.cs:337 — Runtimes/RaylibGum/Renderables/NineSlice.cs:337-357 | Runtimes/RaylibGum/Renderables/Sprite.cs:215-227 — 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 (13 lines × 2) Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs:97 — Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs:97-109 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollViewerVisual.cs:91-103 — before extracting anything, compare `Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs` and `Themes/Gum.Themes.ForestGlade.MonoGame/ScrollViewerVisual.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 79 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 `Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs:97` 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 (13 lines × 2) Tools/Gum.Cli/Commands/FontsCommand.cs:137 — Tools/Gum.Cli/Commands/FontsCommand.cs:137-149 | Tools/Gum.Cli/Commands/ResaveCommand.cs:81-93 — 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 (13 lines × 2) Themes/Gum.Themes.Meadow.MonoGame/ListBoxItemVisual.cs:55 — Themes/Gum.Themes.Meadow.MonoGame/ListBoxItemVisual.cs:55-67 | Themes/Gum.Themes.Meadow.MonoGame/ListBoxItemVisual.cs:78-90 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) RenderingLibrary/Graphics/Text.cs:2171 — RenderingLibrary/Graphics/Text.cs:2171-2183 | Runtimes/RaylibGum/Renderables/Text.cs:2036-2048 — 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) Samples/MonoGameGumThemesShowcase/Game1.cs:397 — Samples/MonoGameGumThemesShowcase/Game1.cs:397-409 | Samples/RaylibGumThemesShowcase/Program.cs:336-348 — before extracting anything, compare `Samples/MonoGameGumThemesShowcase/Game1.cs` and `Samples/RaylibGumThemesShowcase/Program.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 201 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 `Samples/MonoGameGumThemesShowcase/Game1.cs:397` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:25 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:25-37 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/SvgScreen.cs:39-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 (13 lines × 2) Tools/Gum.Presentation/StateAnimationPlugin/ViewModels/ElementAnimationsViewModel.cs:756 — Tools/Gum.Presentation/StateAnimationPlugin/ViewModels/ElementAnimationsViewModel.cs:756-768 | Tools/Gum.Presentation/StateAnimationPlugin/ViewModels/ElementAnimationsViewModel.cs:783-795 — 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 `Tools/Gum.Presentation/StateAnimationPlugin/ViewModels/ElementAnimationsViewModel.cs:756` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:208 — Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:208-220 | Samples/raylib/Screens/ArcsScreen.cs:214-226 — before extracting anything, compare `Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs` and `Samples/raylib/Screens/ArcsScreen.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 before the matched lines, `Samples/raylib/Screens/ArcsScreen.cs:213` calls `Color` and `Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:207` 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 (13 lines × 2) Tools/Gum.Presentation/Logic/ReferenceFinder.cs:323 — Tools/Gum.Presentation/Logic/ReferenceFinder.cs:323-335 | Tools/Gum.Presentation/Logic/ReferenceFinder.cs:338-350 — 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 `Tools/Gum.Presentation/Logic/ReferenceFinder.cs:323` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:354 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:354-366 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:367-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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:367` calls `Color` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:354` 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 (13 lines × 2) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:422 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:422-434 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:436-448 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:90 — Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:90-102 | Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs:91-103 — before extracting anything, compare `Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs` and `Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 335 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) Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:222 — Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:222-234 | Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs:223-235 — before extracting anything, compare `Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs` and `Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 335 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) Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:238 — Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:238-250 | Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs:239-251 — before extracting anything, compare `Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs` and `Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 335 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 (6 lines × 2) · ×23
  • Duplicated block (6 lines × 2) DataUi.Core/Controls/TextBoxDisplayLogic.cs:263 — DataUi.Core/Controls/TextBoxDisplayLogic.cs:263-268 | DataUi.Core/Controls/TextBoxDisplayLogic.cs:288-293 — 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 `DataUi.Core/Controls/TextBoxDisplayLogic.cs:263` 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 (6 lines × 2) Runtimes/RaylibGum/Renderables/LinePolygon.cs:327 — Runtimes/RaylibGum/Renderables/LinePolygon.cs:327-332 | Runtimes/RaylibGum/Renderables/LineRectangle.cs:558-563 — 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 `Runtimes/RaylibGum/Renderables/LinePolygon.cs:327` 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) Themes/Gum.Themes.ForestGlade.MonoGame/ToggleButtonVisual.cs:89 — Themes/Gum.Themes.ForestGlade.MonoGame/ToggleButtonVisual.cs:89-94 | Themes/Gum.Themes.ForestGlade.MonoGame/ToggleButtonVisual.cs:97-102 — 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 `Themes/Gum.Themes.ForestGlade.MonoGame/ToggleButtonVisual.cs:89` 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) Themes/Gum.Themes.Retro95.MonoGame/Retro95TextInputDecoration.cs:40 — Themes/Gum.Themes.Retro95.MonoGame/Retro95TextInputDecoration.cs:40-45 | Themes/Gum.Themes.Retro95.MonoGame/Retro95TextInputDecoration.cs:50-55 — 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 `Themes/Gum.Themes.Retro95.MonoGame/Retro95TextInputDecoration.cs:40` 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) Themes/Gum.Themes.Neon.MonoGame/ListBoxItemVisual.cs:66 — Themes/Gum.Themes.Neon.MonoGame/ListBoxItemVisual.cs:66-71 | Themes/Gum.Themes.Neon.MonoGame/MenuItemVisual.cs:58-63 — 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 `Themes/Gum.Themes.Neon.MonoGame/ListBoxItemVisual.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 (6 lines × 2) Themes/Gum.Themes.ForestGlade.MonoGame/ButtonVisual.cs:59 — Themes/Gum.Themes.ForestGlade.MonoGame/ButtonVisual.cs:59-64 | Themes/Gum.Themes.ForestGlade.MonoGame/ToggleButtonVisual.cs:57-63 — 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 `Themes/Gum.Themes.ForestGlade.MonoGame/ButtonVisual.cs:59` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Themes/Gum.Themes.ForestGlade.MonoGame/ToggleButtonVisual.cs:55` calls `Color` and `Themes/Gum.Themes.ForestGlade.MonoGame/ButtonVisual.cs:58` 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 (6 lines × 2) Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs:149 — Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs:149-154 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs:155-160 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs:149` 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 (6 lines × 2) Tool/Gum.Avalonia/App.cs:367 — Tool/Gum.Avalonia/App.cs:367-372 | spikes/AvaloniaCanvasSpike/Shared/App.cs:57-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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (6 lines × 2) MonoGameGum/Forms/Controls/Primitives/ButtonBase.cs:400 — MonoGameGum/Forms/Controls/Primitives/ButtonBase.cs:400-405 | MonoGameGum/Forms/Controls/Slider.cs:663-668 — 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) MonoGameGum/GueDeriving/CircleRuntime.cs:767 — MonoGameGum/GueDeriving/CircleRuntime.cs:767-772 | MonoGameGum/GueDeriving/RectangleRuntime.cs:1065-1070 — before extracting anything, compare `MonoGameGum/GueDeriving/CircleRuntime.cs` and `MonoGameGum/GueDeriving/RectangleRuntime.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 119 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 (6 lines × 2) Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:220 — Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:220-225 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs:199-204 — before extracting anything, compare `Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs` and `Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs` as WHOLE FILES: this scan already matched 10 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. 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 (6 lines × 2) Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs:42 — Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs:42-47 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollViewerVisual.cs:35-40 — before extracting anything, compare `Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs` and `Themes/Gum.Themes.ForestGlade.MonoGame/ScrollViewerVisual.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 79 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 (6 lines × 2) Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:220 — Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:220-225 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs:199-204 — before extracting anything, compare `Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs` and `Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs` as WHOLE FILES: this scan already matched 10 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. 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 (6 lines × 2) Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:220 — Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:220-225 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs:199-204 — before extracting anything, compare `Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs` and `Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs` as WHOLE FILES: this scan already matched 10 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. 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 (6 lines × 2) DataUi.Core/LateBinder.cs:160 — DataUi.Core/LateBinder.cs:160-165 | Tools/Gum.Presentation/Reflection/LateBinder.cs:133-138 — before extracting anything, compare `DataUi.Core/LateBinder.cs` and `Tools/Gum.Presentation/Reflection/LateBinder.cs` as WHOLE FILES: this scan already matched 12 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 (6 lines × 2) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/GradientScreen.cs:169 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/GradientScreen.cs:169-174 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/GradientScreen.cs:182-187 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. 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) Tools/Gum.ProjectServices/StandardComparer.cs:76 — Tools/Gum.ProjectServices/StandardComparer.cs:76-81 | Tools/Gum.ProjectServices/StandardComparer.cs:118-123 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Tools/Gum.ProjectServices/StandardComparer.cs:76` 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) Samples/GameUiSamples/Data/HyTaleItemDefinition.cs:36 — Samples/GameUiSamples/Data/HyTaleItemDefinition.cs:36-41 | Samples/GameUiSamplesSkia/Data/HyTaleItemDefinition.cs:36-41 — before extracting anything, compare `Samples/GameUiSamples/Data/HyTaleItemDefinition.cs` and `Samples/GameUiSamplesSkia/Data/HyTaleItemDefinition.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.
  • Duplicated block (6 lines × 2) Samples/GameUiSamples/Screens/GameTitleScreen.cs:29 — Samples/GameUiSamples/Screens/GameTitleScreen.cs:29-34 | Samples/GameUiSamplesSkia/Screens/GameTitleScreen.cs:29-34 — before extracting anything, compare `Samples/GameUiSamples/Screens/GameTitleScreen.cs` and `Samples/GameUiSamplesSkia/Screens/GameTitleScreen.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.
  • Duplicated block (6 lines × 2) Tools/Gum.Presentation/Managers/NameVerifier.cs:279 — Tools/Gum.Presentation/Managers/NameVerifier.cs:279-284 | Tools/Gum.Presentation/Services/ExposeVariableService.cs:193-198 — 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) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/ElementSaveDisplayer.cs:1001 — Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/ElementSaveDisplayer.cs:1001-1006 | Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/VariableGridEntry.cs:537-542 — 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) Samples/GameUiSamples/Screens/StardewHotbarScreen.cs:81 — Samples/GameUiSamples/Screens/StardewHotbarScreen.cs:81-86 | Samples/GameUiSamplesSkia/Screens/StardewHotbarScreen.cs:81-86 — before extracting anything, compare `Samples/GameUiSamples/Screens/StardewHotbarScreen.cs` and `Samples/GameUiSamplesSkia/Screens/StardewHotbarScreen.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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) Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs:373 — Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs:373-378 | Samples/MonoGameGumFromFile/MonoGameGumFromFile/Game1.cs:401-406 — before extracting anything, compare `Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs` and `Samples/MonoGameGumFromFile/MonoGameGumFromFile/Game1.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 97 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.
D3 · God Classes · ClassTooLong · ×22
  • ClassTooLong: CustomSetPropertyOnRenderable Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs — ClassTooLong — 1071 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 671 over it, 2.68× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • ClassTooLong: CopyPasteLogic Tools/Gum.Presentation/Logic/CopyPasteLogic.cs — ClassTooLong — 774 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 374 over it, 1.94× 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: RenderableShapeBase Runtimes/SkiaGum/Renderables/RenderableShapeBase.cs — ClassTooLong — 761 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 361 over it, 1.90× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: NineSlice RenderingLibrary/Graphics/NineSlice.cs — ClassTooLong — 707 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 307 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.
  • ClassTooLong: ElementSaveDisplayer Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/ElementSaveDisplayer.cs — ClassTooLong — 646 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 246 over it, 1.62× 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: VariableGridEntry Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/VariableGridEntry.cs — ClassTooLong — 639 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 239 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.
  • ClassTooLong: SelectionManager Tools/Gum.Presentation/Wireframe/SelectionManager.cs — ClassTooLong — 548 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 148 over it, 1.37× 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: SetVariableLogic Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/SetVariableLogic.cs — ClassTooLong — 545 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 145 over it, 1.36× 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: ResizeInputHandler Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/ResizeInputHandler.cs — ClassTooLong — 540 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 140 over it, 1.35× 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: NineSlice Runtimes/SkiaGum/Renderables/NineSlice.cs — ClassTooLong — 520 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 120 over it, 1.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.
  • ClassTooLong: DragDropManager Tools/Gum.Presentation/Managers/DragDropManager.cs — ClassTooLong — 508 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 108 over it, 1.27× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: RenderableShapeBase Runtimes/GumShapes/Renderables/RenderableShapeBase.cs — ClassTooLong — 489 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 89 over it, 1.22× 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: BatchKeyGroupedOrderer RenderingLibrary/Graphics/BatchKeyGroupedOrderer.cs — ClassTooLong — 489 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 89 over it, 1.22× 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: RectangleSelector Tool/TextureCoordinatePlugin.Core/RegionSelection/RectangleSelector.cs — ClassTooLong — 485 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 85 over it, 1.21× 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: ImportFromGumxViewModel Tools/Gum.Presentation/ImportFromGumx/ImportFromGumxViewModel.cs — ClassTooLong — 481 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 81 over it, 1.20× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: RuntimeCsvRepresentation Gum/CsvLibrary/RuntimeCsvRepresentation.cs — ClassTooLong — 458 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 58 over it, 1.15× 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: Sprite RenderingLibrary/Graphics/Sprite.cs — ClassTooLong — 444 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 44 over it, 1.11× 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: RectangleRuntime MonoGameGum/GueDeriving/RectangleRuntime.cs — ClassTooLong — 431 significant lines (blank, comment-only and punctuation-only lines excluded), 8 methods. The bar is 400 significant lines; this is 31 over it, 1.08× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: NewProjectDialogView Tool/Gum.Avalonia/Dialogs/Views/NewProjectDialogView.cs — ClassTooLong — 429 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 29 over it, 1.07× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: ProjectManager Tools/Gum.Presentation/Managers/ProjectManager.cs — ClassTooLong — 424 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 24 over it, 1.06× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: FormsUtilities MonoGameGum/Forms/FormsUtilities.cs — ClassTooLong — 408 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 8 over it, 1.02× the bar. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them.
  • ClassTooLong: SkiaShapeRuntime Runtimes/SkiaGum/GueDeriving/SkiaShapeRuntime.cs — ClassTooLong — 401 significant lines (blank, comment-only and punctuation-only lines excluded), 12 methods. The bar is 400 significant lines; this is 1 over it, 1.00× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
D4 · Code Duplication · Duplicated block (9 lines × 2) · ×22
  • Duplicated block (9 lines × 2) Tools/Gum.Cli/Commands/DiffStandardsCommand.cs:46 — Tools/Gum.Cli/Commands/DiffStandardsCommand.cs:46-54 | Tools/Gum.Cli/Commands/ResaveCommand.cs:45-53 — 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 `Tools/Gum.Cli/Commands/DiffStandardsCommand.cs:46` 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 (9 lines × 2) GumCommon/Runtime/VariableReferenceGraph.cs:541 — GumCommon/Runtime/VariableReferenceGraph.cs:541-549 | GumCommon/Runtime/VariableReferenceGraph.cs:570-578 — 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 `GumCommon/Runtime/VariableReferenceGraph.cs:541` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) RenderingLibrary/Graphics/Layer.cs:124 — RenderingLibrary/Graphics/Layer.cs:124-132 | RenderingLibrary/Graphics/Layer.cs:160-168 — 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 `RenderingLibrary/Graphics/Layer.cs:124` 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) Themes/Gum.Themes.Retro95.MonoGame/ListBoxItemVisual.cs:33 — Themes/Gum.Themes.Retro95.MonoGame/ListBoxItemVisual.cs:33-41 | Themes/Gum.Themes.Retro95.MonoGame/SplitterVisual.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.
  • Duplicated block (9 lines × 2) MonoGameGum/Forms/DefaultVisuals/V3/ListBoxItemVisual.cs:220 — MonoGameGum/Forms/DefaultVisuals/V3/ListBoxItemVisual.cs:220-228 | MonoGameGum/Forms/DefaultVisuals/V3/ListBoxVisual.cs:163-171 — 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) RenderingLibrary/Math/MathFunctions.cs:86 — RenderingLibrary/Math/MathFunctions.cs:86-94 | RenderingLibrary/Math/MathFunctions.cs:104-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 `RenderingLibrary/Math/MathFunctions.cs:86` 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 first that the copies are not typed on the same thing: the declarations holding them bind `basePoint` to `Vector3` in one and `Vector2` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (9 lines × 2) MonoGameGum/Forms/DefaultVisuals/V3/ColorPickerVisual.cs:106 — MonoGameGum/Forms/DefaultVisuals/V3/ColorPickerVisual.cs:106-114 | MonoGameGum/Forms/DefaultVisuals/V3/ColorPickerVisual.cs:147-155 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `MonoGameGum/Forms/DefaultVisuals/V3/ColorPickerVisual.cs:106` 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) Runtimes/SokolGum/Renderables/NineSlice.cs:184 — Runtimes/SokolGum/Renderables/NineSlice.cs:184-192 | Runtimes/SokolGum/Renderables/NineSlice.cs:200-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. Read the line range as the matched WINDOW rather than a finished unit: at `Runtimes/SokolGum/Renderables/NineSlice.cs:200` 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) RenderingLibrary/IGumService.cs:244 — RenderingLibrary/IGumService.cs:244-252 | Runtimes/SkiaGum/GumServiceSkiaBase.cs:299-307 — 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) Gum/CsvLibrary/StringFunctions.cs:457 — Gum/CsvLibrary/StringFunctions.cs:457-465 | ToolsUtilities/StringFunctions.cs:455-463 — before extracting anything, compare `Gum/CsvLibrary/StringFunctions.cs` and `ToolsUtilities/StringFunctions.cs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 256 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) MonoGameGum/ExtensionMethods/IReadOnlyListExtensionMethods.cs:17 — MonoGameGum/ExtensionMethods/IReadOnlyListExtensionMethods.cs:17-25 | MonoGameGum/ExtensionMethods/Shims/IReadOnlyListExtensionMethodsShim.cs:25-33 — 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) MonoGameGum/GueDeriving/CircleRuntime.cs:668 — MonoGameGum/GueDeriving/CircleRuntime.cs:668-676 | MonoGameGum/GueDeriving/RectangleRuntime.cs:968-976 — before extracting anything, compare `MonoGameGum/GueDeriving/CircleRuntime.cs` and `MonoGameGum/GueDeriving/RectangleRuntime.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 119 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 (9 lines × 2) Runtimes/RaylibGum/Renderables/NineSlice.cs:193 — Runtimes/RaylibGum/Renderables/NineSlice.cs:193-201 | Runtimes/RaylibGum/Renderables/Sprite.cs:59-67 — 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 `Runtimes/RaylibGum/Renderables/NineSlice.cs:193` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 2) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:69 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:69-77 | Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs:50-58 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs` and `Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 144 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) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:142 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:142-150 | Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs:108-116 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs` and `Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 144 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) Tool/Gum.Avalonia/Dialogs/DialogViewRegistry.cs:97 — Tool/Gum.Avalonia/Dialogs/DialogViewRegistry.cs:97-105 | Tool/Gum.Avalonia/Dialogs/SettingsPageViewRegistry.cs:97-105 — 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 (9 lines × 2) Tools/Gum.Presentation/Logic/ReferenceTypes.cs:190 — Tools/Gum.Presentation/Logic/ReferenceTypes.cs:190-198 | Tools/Gum.Presentation/Logic/ReferenceTypes.cs:233-241 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Tools/Gum.Presentation/Logic/ReferenceTypes.cs:190` 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) Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:106 — Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:106-114 | Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs:107-115 — before extracting anything, compare `Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs` and `Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 335 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:349 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:349-358 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:409-417 — before extracting anything, compare `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 251 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 (9 lines × 2) Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:60 — Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:60-68 | Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs:61-69 — before extracting anything, compare `Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs` and `Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 335 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) Samples/GameUiSamples/Screens/StardewInventoryScreen.cs:47 — Samples/GameUiSamples/Screens/StardewInventoryScreen.cs:47-55 | Samples/GameUiSamplesSkia/Screens/StardewInventoryScreen.cs:47-55 — before extracting anything, compare `Samples/GameUiSamples/Screens/StardewInventoryScreen.cs` and `Samples/GameUiSamplesSkia/Screens/StardewInventoryScreen.cs` as WHOLE FILES: this scan already matched 9 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 (9 lines × 2) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:51 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:51-59 | Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:47-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.
D4 · Code Duplication · Duplicated block (10 lines × 2) · ×21
  • Duplicated block (10 lines × 2) Themes/Gum.Themes.Template.MonoGame/RadioButtonVisual.cs:94 — Themes/Gum.Themes.Template.MonoGame/RadioButtonVisual.cs:94-103 | Themes/Gum.Themes.Template.MonoGame/Variants/RadioButtonVisual.cs:104-113 — before extracting anything, compare `Themes/Gum.Themes.Template.MonoGame/RadioButtonVisual.cs` and `Themes/Gum.Themes.Template.MonoGame/Variants/RadioButtonVisual.cs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 205 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 (10 lines × 2) RenderingLibrary/Graphics/Text.cs:2249 — RenderingLibrary/Graphics/Text.cs:2249-2258 | Runtimes/RaylibGum/Renderables/Text.cs:148-157 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (10 lines × 2) RenderingLibrary/Graphics/NineSliceExtensions.cs:84 — RenderingLibrary/Graphics/NineSliceExtensions.cs:84-93 | REDACTED:811-820 — 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 (10 lines × 2) Themes/Gum.Themes.DarkPro.MonoGame/ListBoxItemVisual.cs:74 — Themes/Gum.Themes.DarkPro.MonoGame/ListBoxItemVisual.cs:74-84 | Themes/Gum.Themes.DarkPro.MonoGame/MenuItemVisual.cs:74-83 — 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 `Themes/Gum.Themes.DarkPro.MonoGame/ListBoxItemVisual.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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (10 lines × 2) Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeButtonChrome.cs:83 — Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeButtonChrome.cs:83-92 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeButtonChrome.cs:123-132 — 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) Themes/Gum.Themes.ForestGlade.MonoGame/WindowVisual.cs:80 — Themes/Gum.Themes.ForestGlade.MonoGame/WindowVisual.cs:80-89 | Themes/Gum.Themes.ForestGlade.MonoGame/WindowVisual.cs:104-113 — 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) Themes/Gum.Themes.Hazard.MonoGame/ListBoxItemVisual.cs:54 — Themes/Gum.Themes.Hazard.MonoGame/ListBoxItemVisual.cs:54-64 | Themes/Gum.Themes.Hazard.MonoGame/MenuItemVisual.cs:73-82 — 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 `Themes/Gum.Themes.Hazard.MonoGame/ListBoxItemVisual.cs:54` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (10 lines × 2) Gum/CsvLibrary/StringFunctions.cs:469 — Gum/CsvLibrary/StringFunctions.cs:469-478 | ToolsUtilities/StringFunctions.cs:467-476 — before extracting anything, compare `Gum/CsvLibrary/StringFunctions.cs` and `ToolsUtilities/StringFunctions.cs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 256 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) MonoGameGum/Forms/DefaultVisuals/V3/SplitterVisual.cs:53 — MonoGameGum/Forms/DefaultVisuals/V3/SplitterVisual.cs:53-63 | MonoGameGum/Forms/DefaultVisuals/V3/TooltipVisual.cs:52-61 — before extracting anything, compare `MonoGameGum/Forms/DefaultVisuals/V3/SplitterVisual.cs` and `MonoGameGum/Forms/DefaultVisuals/V3/TooltipVisual.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 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) MonoGameGum/Forms/DefaultVisuals/V3/SplitterVisual.cs:53 — MonoGameGum/Forms/DefaultVisuals/V3/SplitterVisual.cs:53-63 | MonoGameGum/Forms/DefaultVisuals/V3/TooltipVisual.cs:52-61 — before extracting anything, compare `MonoGameGum/Forms/DefaultVisuals/V3/SplitterVisual.cs` and `MonoGameGum/Forms/DefaultVisuals/V3/TooltipVisual.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 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) MonoGameGum/Forms/DefaultVisuals/V3/SplitterVisual.cs:53 — MonoGameGum/Forms/DefaultVisuals/V3/SplitterVisual.cs:53-63 | MonoGameGum/Forms/DefaultVisuals/V3/TooltipVisual.cs:52-61 — before extracting anything, compare `MonoGameGum/Forms/DefaultVisuals/V3/SplitterVisual.cs` and `MonoGameGum/Forms/DefaultVisuals/V3/TooltipVisual.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 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) MonoGameGum/Forms/DefaultVisuals/V3/SplitterVisual.cs:53 — MonoGameGum/Forms/DefaultVisuals/V3/SplitterVisual.cs:53-63 | MonoGameGum/Forms/DefaultVisuals/V3/TooltipVisual.cs:52-61 — before extracting anything, compare `MonoGameGum/Forms/DefaultVisuals/V3/SplitterVisual.cs` and `MonoGameGum/Forms/DefaultVisuals/V3/TooltipVisual.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 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) MonoGameGum/Forms/DefaultVisuals/V3/SplitterVisual.cs:53 — MonoGameGum/Forms/DefaultVisuals/V3/SplitterVisual.cs:53-63 | MonoGameGum/Forms/DefaultVisuals/V3/TooltipVisual.cs:52-61 — before extracting anything, compare `MonoGameGum/Forms/DefaultVisuals/V3/SplitterVisual.cs` and `MonoGameGum/Forms/DefaultVisuals/V3/TooltipVisual.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:162 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:162-171 | Samples/raylib/Screens/ArcsScreen.cs:164-173 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (10 lines × 2) Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:36 — Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:36-45 | Samples/raylib/Screens/PolygonsScreen.cs:39-48 — before extracting anything, compare `Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs` and `Samples/raylib/Screens/PolygonsScreen.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 73 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 (10 lines × 2) Samples/BrutalGum/BrutalGumSample/Program.cs:153 — Samples/BrutalGum/BrutalGumSample/Program.cs:153-162 | Samples/BrutalGum/BrutalGumSampleOgl/Program.cs:96-105 — 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 `Samples/BrutalGum/BrutalGumSample/Program.cs:153` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/PropertyGridManager.cs:1465 — Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/PropertyGridManager.cs:1465-1474 | Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/PropertyGridManager.cs:1498-1507 — 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:441 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:441-451 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:493-502 — before extracting anything, compare `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 251 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 `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:441` 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 (10 lines × 2) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/MixedScreen.cs:152 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/MixedScreen.cs:152-161 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/MixedScreen.cs:165-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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/MixedScreen.cs:149` calls `AddText` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/MixedScreen.cs:161` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (10 lines × 2) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:224 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:224-233 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:523-532 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (10 lines × 2) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:471 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:471-480 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:489-498 — 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 (5 lines × 2) · ×20
  • Duplicated block (5 lines × 2) Themes/Gum.Themes.Hazard.MonoGame/ButtonVisual.cs:58 — Themes/Gum.Themes.Hazard.MonoGame/ButtonVisual.cs:58-62 | Themes/Gum.Themes.Hazard.MonoGame/ToggleButtonVisual.cs:58-62 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.Hazard.MonoGame/ButtonVisual.cs:58` 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) GumCommon/Bundle/GumProjectDependencyWalker.cs:209 — GumCommon/Bundle/GumProjectDependencyWalker.cs:209-213 | GumCommon/Bundle/GumProjectDependencyWalker.cs:292-296 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `GumCommon/Bundle/GumProjectDependencyWalker.cs:209` 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) Themes/Gum.Themes.ForestGlade.MonoGame/ButtonVisual.cs:74 — Themes/Gum.Themes.ForestGlade.MonoGame/ButtonVisual.cs:74-78 | Themes/Gum.Themes.ForestGlade.MonoGame/ButtonVisual.cs:90-94 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) Themes/Gum.Themes.ForestGlade.MonoGame/ButtonVisual.cs:106 — Themes/Gum.Themes.ForestGlade.MonoGame/ButtonVisual.cs:106-110 | Themes/Gum.Themes.ForestGlade.MonoGame/ButtonVisual.cs:114-118 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) Themes/Gum.Themes.ForestGlade.MonoGame/ToggleButtonVisual.cs:130 — Themes/Gum.Themes.ForestGlade.MonoGame/ToggleButtonVisual.cs:130-134 | Themes/Gum.Themes.ForestGlade.MonoGame/ToggleButtonVisual.cs:154-158 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) Gum/Services/Builder.cs:86 — Gum/Services/Builder.cs:86-90 | Tool/Gum.Avalonia/Services/AvaloniaServiceCollectionExtensions.cs:49-53 — 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) MonoGameGum/GumService.XnaLike.cs:608 — MonoGameGum/GumService.XnaLike.cs:608-613 | Runtimes/KniSkiaGum/GumService.Kni.cs:250-254 — 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) Themes/Gum.Themes.Template.MonoGame/ListBoxVisual.cs:94 — Themes/Gum.Themes.Template.MonoGame/ListBoxVisual.cs:94-98 | Themes/Gum.Themes.Template.MonoGame/Variants/ListBoxVisual.cs:108-112 — before extracting anything, compare `Themes/Gum.Themes.Template.MonoGame/ListBoxVisual.cs` and `Themes/Gum.Themes.Template.MonoGame/Variants/ListBoxVisual.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 58 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) Themes/Gum.Themes.Template.MonoGame/ListBoxVisual.cs:94 — Themes/Gum.Themes.Template.MonoGame/ListBoxVisual.cs:94-98 | Themes/Gum.Themes.Template.MonoGame/Variants/ListBoxVisual.cs:108-112 — before extracting anything, compare `Themes/Gum.Themes.Template.MonoGame/ListBoxVisual.cs` and `Themes/Gum.Themes.Template.MonoGame/Variants/ListBoxVisual.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 58 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) Gum/Dialogs/ThemingService.cs:45 — Gum/Dialogs/ThemingService.cs:45-49 | Tool/Gum.Avalonia/Services/AvaloniaThemingService.cs:59-63 — 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) Gum/Dialogs/ThemingService.cs:62 — Gum/Dialogs/ThemingService.cs:62-66 | Tool/Gum.Avalonia/Services/AvaloniaThemingService.cs:77-81 — 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) Gum/ViewModels/MainPanelViewModel.cs:144 — Gum/ViewModels/MainPanelViewModel.cs:144-148 | Tool/Gum.Avalonia/Shell/AvaloniaTabManager.cs:131-135 — 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) Themes/Gum.Themes.Retro95.MonoGame/ListBoxItemVisual.cs:63 — Themes/Gum.Themes.Retro95.MonoGame/ListBoxItemVisual.cs:63-67 | Themes/Gum.Themes.Retro95.MonoGame/MenuItemVisual.cs:59-63 — 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 `Themes/Gum.Themes.Retro95.MonoGame/ListBoxItemVisual.cs:63` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) Tools/Gum.Presentation/ImportFromGumx/ImportFromGumxViewModel.cs:544 — Tools/Gum.Presentation/ImportFromGumx/ImportFromGumxViewModel.cs:544-548 | Tools/Gum.Presentation/ImportFromGumx/ImportFromGumxViewModel.cs:558-562 — 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 `Tools/Gum.Presentation/ImportFromGumx/ImportFromGumxViewModel.cs:544` 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) Samples/GameUiSamples/Components/HollowKnightComponents/Currency.cs:62 — Samples/GameUiSamples/Components/HollowKnightComponents/Currency.cs:62-66 | Samples/GameUiSamplesSkia/Components/HollowKnightComponents/Currency.cs:62-66 — before extracting anything, compare `Samples/GameUiSamples/Components/HollowKnightComponents/Currency.cs` and `Samples/GameUiSamplesSkia/Components/HollowKnightComponents/Currency.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 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 (5 lines × 2) Samples/GameUiSamples/Components/HyTaleComponents/HyTaleHotBar.cs:80 — Samples/GameUiSamples/Components/HyTaleComponents/HyTaleHotBar.cs:80-84 | Samples/GameUiSamplesSkia/Components/HyTaleComponents/HyTaleHotBar.cs:80-84 — before extracting anything, compare `Samples/GameUiSamples/Components/HyTaleComponents/HyTaleHotBar.cs` and `Samples/GameUiSamplesSkia/Components/HyTaleComponents/HyTaleHotBar.cs` as WHOLE FILES: this scan already matched 5 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.
  • Duplicated block (5 lines × 2) Samples/GameUiSamples/Components/StardewComponents/Hotbar.cs:70 — Samples/GameUiSamples/Components/StardewComponents/Hotbar.cs:70-74 | Samples/GameUiSamplesSkia/Components/StardewComponents/Hotbar.cs:70-74 — before extracting anything, compare `Samples/GameUiSamples/Components/StardewComponents/Hotbar.cs` and `Samples/GameUiSamplesSkia/Components/StardewComponents/Hotbar.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 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) Samples/KniGumInCode/KniGumInCodeCommon/KniGumInCodeGame.cs:303 — Samples/KniGumInCode/KniGumInCodeCommon/KniGumInCodeGame.cs:303-307 | Samples/MonoGameGumInCode/MonoGameGumInCode/Game1.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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs:242 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs:242-246 | Samples/raylib/Screens/PolygonsScreen.cs:240-244 — 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) Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Game1.cs:86 — Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Game1.cs:86-90 | Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Game1.cs:95-99 — before extracting anything, compare `Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Game1.cs` and `Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Game1.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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.
D6 · Cohesion (LCOM4) · Low cohesion · ×18
  • Low cohesion: PluginBase (LCOM4 91) Tools/Gum.Presentation/Plugins/BaseClasses/PluginBase.cs:24 — PluginBase's methods fall into 91 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 91 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: InteractiveGue (LCOM4 10) GumRuntime/InteractiveGue.cs:71 — InteractiveGue's methods fall into 10 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 10 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: GumProjectSave (LCOM4 9) GumDataTypes/GumProjectSave.cs:110 — GumProjectSave's methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: MainWindow (LCOM4 7) Gum/StateAnimationPlugin/Views/MainWindow.xaml.cs:23 — MainWindow's methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: VariableSave (LCOM4 7) GumDataTypes/Variables/VariableSave.cs:18 — VariableSave's methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: FrameworkElement (LCOM4 6) MonoGameGum/Forms/Controls/FrameworkElement.cs:115 — FrameworkElement'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: SkiaGumCanvasView (LCOM4 6) Runtimes/SkiaGum.Maui/SkiaGumCanvasView.cs:75 — SkiaGumCanvasView'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: InstanceMember (LCOM4 5) DataUi.Core/DataTypes/InstanceMember.cs:37 — InstanceMember'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: WireframeObjectManager (LCOM4 5) Tools/Gum.Presentation/Wireframe/WireframeObjectManager.cs:22 — WireframeObjectManager'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: CodeOutputProjectSettings (LCOM4 5) Tools/Gum.ProjectServices/CodeGeneration/CodeOutputProjectSettings.cs:62 — CodeOutputProjectSettings'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: WpfGraphicsDeviceControl (LCOM4 5) XnaAndWinforms.Wpf/WpfGraphicsDeviceControl.cs:31 — WpfGraphicsDeviceControl'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: AngleSelectorLogic (LCOM4 4) DataUi.Core/Controls/CompositeEditorLogic.cs:14 — AngleSelectorLogic'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: TextBoxDisplayLogic (LCOM4 4) DataUi.Core/Controls/TextBoxDisplayLogic.cs:15 — TextBoxDisplayLogic'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: MainControl (LCOM4 4) Gum/TextureCoordinateSelectionPlugin/Views/MainControl.xaml.cs:17 — MainControl'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: BrutalGlfwInput (LCOM4 4) Runtimes/BrutalHost/Input/BrutalGlfwInput.cs:13 — BrutalGlfwInput'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: TextureCoordinateView (LCOM4 4) Tool/Gum.Avalonia/Plugins/TextureCoordinates/TextureCoordinateView.cs:25 — TextureCoordinateView'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: RenameManager (LCOM4 4) Tools/Gum.Presentation/StateAnimationPlugin/Managers/RenameManager.cs:14 — RenameManager'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: ElementCommands (LCOM4 4) Tools/Gum.Presentation/ToolCommands/ElementCommands.cs:23 — ElementCommands's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
D4 · Code Duplication · Edited copy of a member (14 corresponding lines) · ×17
  • Edited copy of a member (14 corresponding lines) Gum/Controls/TabViewRegistry.cs:35 — Gum/Controls/TabViewRegistry.cs:35-50 | Tool/Gum.Avalonia/Shell/TabViewRegistry.cs:30-43 — 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) Tool/Gum.Avalonia/Services/SecondaryClickHook.cs:57 — Tool/Gum.Avalonia/Services/SecondaryClickHook.cs:57-71 | Tool/Gum.Avalonia/Services/SecondaryClickHook.cs:74-87 — 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) GumCommon/Mvvm/PropertyPathObserver.cs:152 — GumCommon/Mvvm/PropertyPathObserver.cs:152-165 | GumCommon/Mvvm/PropertyPathObserver.cs:232-246 — 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) XnaAndWinforms/RawPixelBufferCopy.cs:26 — XnaAndWinforms/RawPixelBufferCopy.cs:26-39 | spikes/AvaloniaCanvasSpike/Shared/CanvasView.cs:237-250 — 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) Runtimes/SkiaGum/Renderables/NineSlice.cs:208 — Runtimes/SkiaGum/Renderables/NineSlice.cs:208-224 | Runtimes/SkiaGum/Renderables/Sprite.cs:113-126 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (14 corresponding lines) Tool/Gum.Avalonia/Shell/AvaloniaMenuBuilder.cs:78 — Tool/Gum.Avalonia/Shell/AvaloniaMenuBuilder.cs:78-91 | Tool/Gum.Avalonia/Shell/AvaloniaNativeMenuBuilder.cs:129-142 — 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) MonoGameGum/Forms/Controls/ScrollViewer.cs:1486 — MonoGameGum/Forms/Controls/ScrollViewer.cs:1486-1499 | MonoGameGum/Forms/Controls/ScrollViewer.cs:1599-1612 — 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) MonoGameGum/Forms/Controls/FrameworkElement.cs:335 — MonoGameGum/Forms/Controls/FrameworkElement.cs:335-349 | MonoGameGum/Forms/Controls/ComboBox.cs:1048-1061 — 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) AvaloniaDataUi/Controls/CompositeDisplays.cs:574 — AvaloniaDataUi/Controls/CompositeDisplays.cs:574-588 | AvaloniaDataUi/Controls/MultiLineTextBoxDisplay.cs:115-128 — 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) GumCommon/HostServices/ShaderIncludeTracker.cs:23 — GumCommon/HostServices/ShaderIncludeTracker.cs:23-37 | Tools/Gum.Presentation/Managers/ShaderIncludeMap.cs:39-52 — 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) Runtimes/RaylibGum/Renderables/NineSlice.cs:188 — Runtimes/RaylibGum/Renderables/NineSlice.cs:188-201 | Runtimes/RaylibGum/Renderables/Sprite.cs:54-67 — 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) Samples/GameUiSamples/Screens/StardewHotbarScreen.cs:48 — Samples/GameUiSamples/Screens/StardewHotbarScreen.cs:48-61 | Samples/GameUiSamplesSkia/Screens/StardewHotbarScreen.cs:48-61 — 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:94 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:94-107 | Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:90-103 — 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) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/ExclusionsLogic.cs:101 — Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/ExclusionsLogic.cs:101-114 | Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/ExclusionsLogic.cs:121-139 — 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) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:637 — Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:637-653 | Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:714-727 — 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) Tools/Gum.Presentation/Logic/InheritanceLogic.cs:55 — Tools/Gum.Presentation/Logic/InheritanceLogic.cs:55-68 | Tools/Gum.Presentation/Logic/InheritanceLogic.cs:91-111 — 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) Samples/MonoGameGumCodeGeneration/Game1.cs:28 — Samples/MonoGameGumCodeGeneration/Game1.cs:28-41 | Samples/KniSkiaGumCodeGeneration/KniSkiaGumCodeGeneration/Game1.cs:40-55 — 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 · Duplicated block (11 lines × 2) · ×17
  • Duplicated block (11 lines × 2) Runtimes/RaylibGum/Renderables/NineSlice.cs:176 — Runtimes/RaylibGum/Renderables/NineSlice.cs:176-186 | Runtimes/RaylibGum/Renderables/Sprite.cs:42-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 `Runtimes/RaylibGum/Renderables/NineSlice.cs:176` 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) Gum/CsvLibrary/StringFunctions.cs:482 — Gum/CsvLibrary/StringFunctions.cs:482-492 | ToolsUtilities/StringFunctions.cs:480-490 — before extracting anything, compare `Gum/CsvLibrary/StringFunctions.cs` and `ToolsUtilities/StringFunctions.cs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 256 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) GumCommon/ExtensionMethods/GumLoadResultExtensions.cs:25 — GumCommon/ExtensionMethods/GumLoadResultExtensions.cs:25-35 | GumDataTypes/GumProjectSave.cs:729-743 — 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 `GumCommon/ExtensionMethods/GumLoadResultExtensions.cs:25` 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) MonoGameGum/GumService.cs:696 — MonoGameGum/GumService.cs:696-709 | Runtimes/SkiaGum/GumServiceSkiaBase.cs:611-621 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `MonoGameGum/GumService.cs:719` calls `RegisterExtendedDefaultStates` and `Runtimes/SkiaGum/GumServiceSkiaBase.cs:622` 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 (11 lines × 2) MonoGameGum/Forms/DefaultFromFileVisuals/DefaultFromFileLabelRuntime.cs:14 — MonoGameGum/Forms/DefaultFromFileVisuals/DefaultFromFileLabelRuntime.cs:14-24 | MonoGameGum/Forms/DefaultFromFileVisuals/DefaultFromFileLabelTextRuntime.cs:20-30 — before extracting anything, compare `MonoGameGum/Forms/DefaultFromFileVisuals/DefaultFromFileLabelRuntime.cs` and `MonoGameGum/Forms/DefaultFromFileVisuals/DefaultFromFileLabelTextRuntime.cs` as WHOLE FILES: 83% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 (11 lines × 2) DataUi.Core/LateBinder.cs:580 — DataUi.Core/LateBinder.cs:580-590 | Tools/Gum.Presentation/Reflection/LateBinder.cs:443-456 — before extracting anything, compare `DataUi.Core/LateBinder.cs` and `Tools/Gum.Presentation/Reflection/LateBinder.cs` as WHOLE FILES: this scan already matched 12 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.
  • Duplicated block (11 lines × 2) Runtimes/GumShadowDusk/ReportingIncludeResolver.cs:46 — Runtimes/GumShadowDusk/ReportingIncludeResolver.cs:46-56 | Tool/EditorTabPlugin.Core/Services/ShaderSourceCompiler.cs:108-119 — 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 (11 lines × 2) Tools/Gum.Presentation/CodeOutputPlugin/Manager/CodeGenerationService.cs:142 — Tools/Gum.Presentation/CodeOutputPlugin/Manager/CodeGenerationService.cs:142-152 | Tools/Gum.ProjectServices/CodeGeneration/HeadlessCodeGenerationService.cs:185-195 — 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 `Tools/Gum.Presentation/CodeOutputPlugin/Manager/CodeGenerationService.cs:142` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Screens/TextRuntimeScreen.cs:24 — Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Screens/TextRuntimeScreen.cs:24-34 | Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Screens/TextRuntimeScreen.cs:27-37 — 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 (11 lines × 2) Samples/GameUiSamples/Screens/HollowKnightHudScreen.cs:65 — Samples/GameUiSamples/Screens/HollowKnightHudScreen.cs:65-75 | Samples/GameUiSamplesSkia/Screens/HollowKnightHudScreen.cs:65-75 — before extracting anything, compare `Samples/GameUiSamples/Screens/HollowKnightHudScreen.cs` and `Samples/GameUiSamplesSkia/Screens/HollowKnightHudScreen.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 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 (11 lines × 2) Samples/GameUiSamples/Screens/HyTaleHotbarScreen.cs:46 — Samples/GameUiSamples/Screens/HyTaleHotbarScreen.cs:46-56 | Samples/GameUiSamplesSkia/Screens/HyTaleHotbarScreen.cs:46-56 — before extracting anything, compare `Samples/GameUiSamples/Screens/HyTaleHotbarScreen.cs` and `Samples/GameUiSamplesSkia/Screens/HyTaleHotbarScreen.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 111 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) Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:118 — Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:118-128 | Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs:119-129 — before extracting anything, compare `Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs` and `Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 335 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetShaderScreen.cs:203 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetShaderScreen.cs:203-213 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetShaderScreen.cs:306-316 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:416 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:416-426 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:437-447 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:608 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:608-618 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:563-573 — before extracting anything, compare `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 251 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 `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:608` 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetScreen.cs:267 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetScreen.cs:267-277 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetScreen.cs:305-315 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetScreen.cs:316` calls `AddChild` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetScreen.cs:278` 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 (11 lines × 2) Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Game1.cs:132 — Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Game1.cs:132-142 | Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Game1.cs:141-151 — before extracting anything, compare `Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Game1.cs` and `Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Game1.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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.
IC1 · Incompleteness & stubs · Unfinished stub · ×17
  • Unfinished stub — throws NotImplementedException GumCommon/HostServices/Async/SingleThreadSynchronizationContext.cs:28 — `Send` 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 MonoGameGum/Forms/Controls/ComboBox.cs:467 — `IgnoredKeys` is a shipped property whose accessors only throw NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException MonoGameGum/Forms/Controls/ComboBox.cs:469 — `TakingInput` is a shipped property whose accessors only throw NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException MonoGameGum/Forms/Controls/ComboBox.cs:471 — `NextInTabSequence` is a shipped property whose accessors only throw NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException MonoGameGum/Forms/Controls/Games/DialogBox.cs:102 — `IgnoredKeys` is a shipped property whose accessors only throw NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException MonoGameGum/Forms/Controls/ListBox.cs:434 — `IgnoredKeys` is a shipped property whose accessors only throw NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException MonoGameGum/Forms/Controls/ListBox.cs:436 — `TakingInput` is a shipped property whose accessors only throw NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException MonoGameGum/Forms/Controls/Primitives/ButtonBase.cs:40 — `IgnoredKeys` is a shipped property whose accessors only throw NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException MonoGameGum/Forms/Controls/Primitives/ButtonBase.cs:42 — `TakingInput` is a shipped property whose accessors only throw NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException MonoGameGum/Forms/Controls/Slider.cs:80 — `IgnoredKeys` is a shipped property whose accessors only throw NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException MonoGameGum/Forms/Controls/Slider.cs:82 — `TakingInput` is a shipped property whose accessors only throw NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException MonoGameGum/Forms/Controls/Slider.cs:84 — `NextInTabSequence` is a shipped property whose accessors only throw NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException RenderingLibrary/SystemManagers.cs:135 — `EnableTouchEvents` is a shipped property whose accessors only throw NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException RenderingLibrary/SystemManagers.cs:543 — `InvalidateSurface` 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 Runtimes/RaylibGum/RenderingLibrary/SystemManagers.cs:102 — `EnableTouchEvents` is a shipped property whose accessors only throw NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException Runtimes/SkiaGum.Wpf/GumSKElement.cs:30 — `EnableTouchEvents` is a shipped property whose accessors only throw NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
  • Unfinished stub — throws NotImplementedException Runtimes/SkiaGum/RenderingLibrary/SystemManagers.cs:84 — `EnableTouchEvents` is a shipped property whose accessors only throw NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface.
D4 · Code Duplication · Edited copy of a member (7 corresponding lines) · ×16
  • Edited copy of a member (7 corresponding lines) Themes/Gum.Themes.Retro95.MonoGame/ListBoxItemVisual.cs:56 — Themes/Gum.Themes.Retro95.MonoGame/ListBoxItemVisual.cs:56-67 | Themes/Gum.Themes.Retro95.MonoGame/MenuItemVisual.cs:57-63 — 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) Runtimes/RaylibGum/Renderables/NineSlice.cs:146 — Runtimes/RaylibGum/Renderables/NineSlice.cs:146-152 | Runtimes/SokolGum/Renderables/NineSlice.cs:28-34 — 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) Tools/Gum.Presentation/Reflection/LateBinder.cs:132 — Tools/Gum.Presentation/Reflection/LateBinder.cs:132-138 | DataUi.Core/LateBinder.cs:159-165 — 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) Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:219 — Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:219-225 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs:198-204 — 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) Runtimes/SkiaGum/Renderables/NineSlice.cs:179 — Runtimes/SkiaGum/Renderables/NineSlice.cs:179-185 | Runtimes/SkiaGum/Renderables/Sprite.cs:46-52 — 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) Gum/Plugins/InternalPlugins/MenuStripPlugin/MenuStripManager.cs:67 — Gum/Plugins/InternalPlugins/MenuStripPlugin/MenuStripManager.cs:67-73 | Tool/Gum.Avalonia/Shell/AvaloniaMenuBuilder.cs:32-38 — 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) MonoGameGum/Forms/Controls/Primitives/ButtonBase.cs:399 — MonoGameGum/Forms/Controls/Primitives/ButtonBase.cs:399-405 | MonoGameGum/Forms/Controls/Slider.cs:662-668 — 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) MonoGameGum/GueDeriving/CircleRuntime.cs:766 — MonoGameGum/GueDeriving/CircleRuntime.cs:766-772 | MonoGameGum/GueDeriving/RectangleRuntime.cs:1064-1070 — 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) RenderingLibrary/Graphics/Text.cs:66 — RenderingLibrary/Graphics/Text.cs:66-72 | Runtimes/SkiaGum/Renderables/Text.cs:62-68 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (7 corresponding lines) RenderingLibrary/Graphics/Text.cs:78 — RenderingLibrary/Graphics/Text.cs:78-84 | Runtimes/SkiaGum/Renderables/Text.cs:74-80 — 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) Runtimes/GumShapes/Renderables/Circle.cs:30 — Runtimes/GumShapes/Renderables/Circle.cs:30-36 | Runtimes/GumShapes/Renderables/RoundedRectangle.cs:36-42 — 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) Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs:41 — Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs:41-47 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollViewerVisual.cs:34-40 — 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) MonoGameGum/GueDeriving/TextRuntime.cs:529 — MonoGameGum/GueDeriving/TextRuntime.cs:529-544 | Runtimes/SokolGum/GueDeriving/TextRuntime.cs:240-246 — 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) Samples/MonoGameGumFromFile/MonoGameGumFromFile/Game1.cs:297 — Samples/MonoGameGumFromFile/MonoGameGumFromFile/Game1.cs:297-303 | Samples/SokolGumFromFile/Program.cs:369-375 — 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) Samples/MonoGameGumThemesShowcase/Game1.cs:145 — Samples/MonoGameGumThemesShowcase/Game1.cs:145-151 | Samples/RaylibGumThemesShowcase/Program.cs:179-185 — 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) Samples/GameUiSamples/Screens/StardewHotbarScreen.cs:80 — Samples/GameUiSamples/Screens/StardewHotbarScreen.cs:80-86 | Samples/GameUiSamplesSkia/Screens/StardewHotbarScreen.cs:80-86 — 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 (15 lines × 2) · ×16
  • Duplicated block (15 lines × 2) Themes/Gum.Themes.Retro95.MonoGame/TooltipVisual.cs:91 — Themes/Gum.Themes.Retro95.MonoGame/TooltipVisual.cs:91-105 | Themes/Gum.Themes.Retro95.MonoGame/WindowVisual.cs:105-119 — before extracting anything, compare `Themes/Gum.Themes.Retro95.MonoGame/TooltipVisual.cs` and `Themes/Gum.Themes.Retro95.MonoGame/WindowVisual.cs` as WHOLE FILES: this scan already matched 4 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 `Themes/Gum.Themes.Retro95.MonoGame/TooltipVisual.cs:91` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. 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 (15 lines × 2) DataUi.Core/LateBinder.cs:614 — DataUi.Core/LateBinder.cs:614-628 | Tools/Gum.Presentation/Reflection/LateBinder.cs:480-494 — before extracting anything, compare `DataUi.Core/LateBinder.cs` and `Tools/Gum.Presentation/Reflection/LateBinder.cs` as WHOLE FILES: this scan already matched 12 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 (15 lines × 2) Gum/CsvLibrary/StringFunctions.cs:348 — Gum/CsvLibrary/StringFunctions.cs:348-362 | ToolsUtilities/StringFunctions.cs:346-360 — before extracting anything, compare `Gum/CsvLibrary/StringFunctions.cs` and `ToolsUtilities/StringFunctions.cs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 256 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 × 2) Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs:1488 — Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs:1488-1502 | Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs:1670-1684 — 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 `Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs:1488` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (15 lines × 2) Themes/Gum.Themes.Retro95.MonoGame/ScrollBarVisual.cs:220 — Themes/Gum.Themes.Retro95.MonoGame/ScrollBarVisual.cs:220-234 | Themes/Gum.Themes.Retro95.MonoGame/TooltipVisual.cs:55-69 — before extracting anything, compare `Themes/Gum.Themes.Retro95.MonoGame/ScrollBarVisual.cs` and `Themes/Gum.Themes.Retro95.MonoGame/TooltipVisual.cs` as WHOLE FILES: this scan already matched 4 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. 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) Themes/Gum.Themes.Template.MonoGame/ListBoxVisual.cs:31 — Themes/Gum.Themes.Template.MonoGame/ListBoxVisual.cs:31-45 | Themes/Gum.Themes.Template.MonoGame/Variants/ListBoxVisual.cs:42-56 — before extracting anything, compare `Themes/Gum.Themes.Template.MonoGame/ListBoxVisual.cs` and `Themes/Gum.Themes.Template.MonoGame/Variants/ListBoxVisual.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 58 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) Themes/Gum.Themes.Template.MonoGame/TemplateTextInputDecoration.cs:65 — Themes/Gum.Themes.Template.MonoGame/TemplateTextInputDecoration.cs:65-79 | Themes/Gum.Themes.Template.MonoGame/Variants/TemplateTextInputDecoration.cs:66-80 — before extracting anything, compare `Themes/Gum.Themes.Template.MonoGame/TemplateTextInputDecoration.cs` and `Themes/Gum.Themes.Template.MonoGame/Variants/TemplateTextInputDecoration.cs` as WHOLE FILES: this scan already matched 3 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 (15 lines × 2) WpfDataUi/Controls/ListBoxDisplay.xaml.cs:39 — WpfDataUi/Controls/ListBoxDisplay.xaml.cs:39-53 | WpfDataUi/Controls/MultiFileDisplay.xaml.cs:51-65 — 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 `WpfDataUi/Controls/ListBoxDisplay.xaml.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.
  • Duplicated block (15 lines × 2) Runtimes/SokolGum/ContentLoader.cs:21 — Runtimes/SokolGum/ContentLoader.cs:21-35 | Runtimes/SokolGum/ContentLoader.cs:42-56 — 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 (15 lines × 2) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:2381 — Gum/Wireframe/CustomSetPropertyOnRenderable.cs:2381-2395 | Gum/Wireframe/CustomSetPropertyOnRenderable.cs:2447-2461 — 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 `Gum/Wireframe/CustomSetPropertyOnRenderable.cs:2381` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) Themes/Gum.Themes.ForestGlade.MonoGame/ButtonVisual.cs:27 — Themes/Gum.Themes.ForestGlade.MonoGame/ButtonVisual.cs:27-43 | Themes/Gum.Themes.ForestGlade.MonoGame/ToggleButtonVisual.cs:26-40 — 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 `Themes/Gum.Themes.ForestGlade.MonoGame/ButtonVisual.cs:27` 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) Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Screens/RenderTargetScreen.cs:85 — Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Screens/RenderTargetScreen.cs:85-99 | Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Screens/RenderTargetScreen.cs:91-105 — before extracting anything, compare `Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Screens/RenderTargetScreen.cs` and `Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Screens/RenderTargetScreen.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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/NineSliceScreen.cs:31 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/NineSliceScreen.cs:31-45 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/SpriteScreen.cs:31-45 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (15 lines × 2) Samples/GameUiSamples/Screens/FrbClicker/FrbClickerCodeOnly.cs:51 — Samples/GameUiSamples/Screens/FrbClicker/FrbClickerCodeOnly.cs:51-65 | Samples/GameUiSamplesSkia/Screens/FrbClicker/FrbClickerCodeOnly.cs:51-65 — before extracting anything, compare `Samples/GameUiSamples/Screens/FrbClicker/FrbClickerCodeOnly.cs` and `Samples/GameUiSamplesSkia/Screens/FrbClicker/FrbClickerCodeOnly.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 159 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 × 2) Samples/GameUiSamples/Screens/StardewInventoryScreen.cs:131 — Samples/GameUiSamples/Screens/StardewInventoryScreen.cs:131-145 | Samples/GameUiSamplesSkia/Screens/StardewInventoryScreen.cs:131-145 — before extracting anything, compare `Samples/GameUiSamples/Screens/StardewInventoryScreen.cs` and `Samples/GameUiSamplesSkia/Screens/StardewInventoryScreen.cs` as WHOLE FILES: this scan already matched 9 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 (15 lines × 2) Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:26 — Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:26-40 | Samples/raylib/Screens/ArcsScreen.cs:34-48 — before extracting anything, compare `Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs` and `Samples/raylib/Screens/ArcsScreen.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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, `Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:41` calls `Add`, `BuildSection`, `BuildAntialiasingRow` and `Samples/raylib/Screens/ArcsScreen.cs:49` 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 · Edited copy of a member (8 corresponding lines) · ×15
  • Edited copy of a member (8 corresponding lines) Tools/Gum.Presentation/Managers/TreeNodeExpansionPaths.cs:93 — Tools/Gum.Presentation/Managers/TreeNodeExpansionPaths.cs:93-102 | Tool/TreeViewPlugin.Core/GumTreeNode.cs:233-240 — 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) Tool/EditorTabPlugin.Core/Editors/ResizeHandles.cs:226 — Tool/EditorTabPlugin.Core/Editors/ResizeHandles.cs:226-233 | Tool/TextureCoordinatePlugin.Core/RegionSelection/RectangleSelector.cs:988-997 — 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) Gum/PluginViews/ImportFromGumx/ImportFromGumxView.xaml.cs:21 — Gum/PluginViews/ImportFromGumx/ImportFromGumxView.xaml.cs:21-28 | Tool/Gum.Avalonia/Plugins/PluginDialogs/ImportFromGumxViews.cs:128-135 — 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) MonoGameGum/Forms/Controls/ComboBox.cs:1064 — MonoGameGum/Forms/Controls/ComboBox.cs:1064-1071 | MonoGameGum/Forms/Controls/MenuItem.cs:1672-1679 — 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) MonoGameGum/Forms/Controls/Button.cs:93 — MonoGameGum/Forms/Controls/Button.cs:93-100 | MonoGameGum/Forms/Controls/ToggleButton.cs:173-181 — 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) Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:293 — Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:293-300 | Samples/raylib/Screens/PolygonsScreen.cs:302-309 — 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs:231 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs:231-238 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs:305-312 — 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) Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:238 — Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:238-245 | Samples/raylib/Screens/PolygonsScreen.cs:247-254 — 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) Samples/GameUiSamples/Components/HyTaleComponents/HyTaleHotBar.cs:49 — Samples/GameUiSamples/Components/HyTaleComponents/HyTaleHotBar.cs:49-56 | Samples/GameUiSamplesSkia/Components/HyTaleComponents/HyTaleHotBar.cs:49-56 — 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) Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:149 — Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:149-156 | Samples/raylib/Screens/PolygonsScreen.cs:131-138 — 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) Samples/GameUiSamples/Components/HyTaleComponents/HyTaleHotBar.cs:87 — Samples/GameUiSamples/Components/HyTaleComponents/HyTaleHotBar.cs:87-94 | Samples/GameUiSamplesSkia/Components/HyTaleComponents/HyTaleHotBar.cs:87-94 — 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) Samples/GameUiSamples/Components/StardewComponents/Hotbar.cs:77 — Samples/GameUiSamples/Components/StardewComponents/Hotbar.cs:77-84 | Samples/GameUiSamplesSkia/Components/StardewComponents/Hotbar.cs:77-84 — 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) Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:94 — Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:94-101 | Samples/raylib/Screens/PolygonsScreen.cs:97-104 — 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) Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:79 — Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:79-86 | Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs:80-87 — 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) Samples/GameUiSamples/Screens/StardewInventoryScreen.cs:58 — Samples/GameUiSamples/Screens/StardewInventoryScreen.cs:58-65 | Samples/GameUiSamplesSkia/Screens/StardewInventoryScreen.cs:58-65 — 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 (7 lines × 2) · ×15
  • Duplicated block (7 lines × 2) MonoGameGum/Forms/Controls/ComboBox.cs:1065 — MonoGameGum/Forms/Controls/ComboBox.cs:1065-1071 | MonoGameGum/Forms/Controls/MenuItem.cs:1673-1679 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (7 lines × 2) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:101 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:101-107 | Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs:82-88 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs` and `Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 144 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:204 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:204-210 | Samples/raylib/Screens/ArcsScreen.cs:206-212 — 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) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:1433 — Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:1433-1439 | Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:1458-1464 — 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) Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:239 — Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:239-245 | Samples/raylib/Screens/PolygonsScreen.cs:248-254 — before extracting anything, compare `Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs` and `Samples/raylib/Screens/PolygonsScreen.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 73 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) Tools/Gum.Presentation/Logic/CopyPasteLogic.cs:934 — Tools/Gum.Presentation/Logic/CopyPasteLogic.cs:934-940 | Tools/Gum.Presentation/Logic/CopyPasteLogic.cs:1003-1010 — 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 `Tools/Gum.Presentation/Logic/CopyPasteLogic.cs:934` 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:77 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:77-83 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:83-89 — before extracting anything, compare `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 251 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:480 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:480-487 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:530-536 — before extracting anything, compare `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 251 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) Samples/GameUiSamples/Components/HyTaleComponents/HyTaleHotBar.cs:50 — Samples/GameUiSamples/Components/HyTaleComponents/HyTaleHotBar.cs:50-56 | Samples/GameUiSamplesSkia/Components/HyTaleComponents/HyTaleHotBar.cs:50-56 — before extracting anything, compare `Samples/GameUiSamples/Components/HyTaleComponents/HyTaleHotBar.cs` and `Samples/GameUiSamplesSkia/Components/HyTaleComponents/HyTaleHotBar.cs` as WHOLE FILES: this scan already matched 5 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 (7 lines × 2) Samples/GameUiSamples/Components/HyTaleComponents/HyTaleHotBar.cs:88 — Samples/GameUiSamples/Components/HyTaleComponents/HyTaleHotBar.cs:88-94 | Samples/GameUiSamplesSkia/Components/HyTaleComponents/HyTaleHotBar.cs:88-94 — before extracting anything, compare `Samples/GameUiSamples/Components/HyTaleComponents/HyTaleHotBar.cs` and `Samples/GameUiSamplesSkia/Components/HyTaleComponents/HyTaleHotBar.cs` as WHOLE FILES: this scan already matched 5 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 (7 lines × 2) Samples/GameUiSamples/Components/StardewComponents/Hotbar.cs:78 — Samples/GameUiSamples/Components/StardewComponents/Hotbar.cs:78-84 | Samples/GameUiSamplesSkia/Components/StardewComponents/Hotbar.cs:78-84 — before extracting anything, compare `Samples/GameUiSamples/Components/StardewComponents/Hotbar.cs` and `Samples/GameUiSamplesSkia/Components/StardewComponents/Hotbar.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 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) Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:80 — Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:80-86 | Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs:81-87 — before extracting anything, compare `Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs` and `Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 335 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) Samples/GameUiSamples/Screens/StardewInventoryScreen.cs:59 — Samples/GameUiSamples/Screens/StardewInventoryScreen.cs:59-65 | Samples/GameUiSamplesSkia/Screens/StardewInventoryScreen.cs:59-65 — before extracting anything, compare `Samples/GameUiSamples/Screens/StardewInventoryScreen.cs` and `Samples/GameUiSamplesSkia/Screens/StardewInventoryScreen.cs` as WHOLE FILES: this scan already matched 9 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 (7 lines × 2) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:230 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:230-236 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:255-261 — before extracting anything, compare `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 251 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:558 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:558-564 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:547-553 — before extracting anything, compare `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 251 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.
X5 · Nullable reference types · Symbol treated as nullable, then dereferenced unguarded · ×15
  • Symbol treated as nullable, then dereferenced unguarded GumRuntime/GraphicalUiElement.Managers.cs:372 — This method contradicts itself about `childGue`: line 366 assigns it with `as GraphicalUiElement`, which hands back null rather than throwing when the value is not a `GraphicalUiElement`, but line 372 then dereferences it directly as `childGue.AddToManagers` 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 `childGue` once before the first use and handle the null case, or cast with `(GraphicalUiElement)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded GumRuntime/GraphicalUiElement.Managers.cs:463 — This method contradicts itself about `containedAsGue`: line 461 assigns it with `as GraphicalUiElement`, which hands back null rather than throwing when the value is not a `GraphicalUiElement`, but line 463 then dereferences it directly as `containedAsGue.Parent` 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 `containedAsGue` once before the first use and handle the null case, or cast with `(GraphicalUiElement)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded GumRuntime/GraphicalUiElement.RequiredSize.cs:65 — This method contradicts itself about `asIpso`: line 64 assigns it with `as IPositionedSizedObject`, which hands back null rather than throwing when the value is not a `IPositionedSizedObject`, but line 65 then dereferences it directly as `asIpso.Width` 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 `asIpso` once before the first use and handle the null case, or cast with `(IPositionedSizedObject)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded GumRuntime/GraphicalUiElement.RequiredSize.cs:131 — This method contradicts itself about `asIpso`: line 130 assigns it with `as IPositionedSizedObject`, which hands back null rather than throwing when the value is not a `IPositionedSizedObject`, but line 131 then dereferences it directly as `asIpso.Height` 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 `asIpso` once before the first use and handle the null case, or cast with `(IPositionedSizedObject)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded Tool/EditorTabPlugin.Core/Editors/Visuals/DimensionDisplayVisual.cs:163 — This method contradicts itself about `asIpso`: line 161 assigns it with `as IRenderableIpso`, which hands back null rather than throwing when the value is not a `IRenderableIpso`, but line 163 then dereferences it directly as `asIpso.GetAbsoluteX` 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 `asIpso` once before the first use and handle the null case, or cast with `(IRenderableIpso)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded WpfDataUi/Controls/ToggleButtonOptionDisplay.xaml.cs:409 — This method contradicts itself about `toggleButtonClicked`: line 407 assigns it with `as ToggleButton`, which hands back null rather than throwing when the value is not a `ToggleButton`, but line 409 then dereferences it directly as `toggleButtonClicked.IsChecked` 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 `toggleButtonClicked` once before the first use and handle the null case, or cast with `(ToggleButton)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded Samples/GameUiSamples/Screens/FrbClicker/FrbClickerCodeOnly.cs:57 — This method contradicts itself about `senderAsVm`: line 53 assigns it with `as BuildingViewModel`, which hands back null rather than throwing when the value is not a `BuildingViewModel`, but line 57 then dereferences it directly as `senderAsVm.Count` 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 `senderAsVm` once before the first use and handle the null case, or cast with `(BuildingViewModel)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded Samples/GumFormsSample/GumFormsSampleCommon/Screens/ComplexListBoxItemScreen.cs:80 — This method contradicts itself about `view`: line 78 assigns it with `as WeaponListBoxItemRuntime`, which hands back null rather than throwing when the value is not a `WeaponListBoxItemRuntime`, but line 80 then dereferences it directly as `view.NameTextInstance` 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 `view` once before the first use and handle the null case, or cast with `(WeaponListBoxItemRuntime)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded Samples/GumFormsSample/GumFormsSampleCommon/Screens/DemoScreenGumRuntime.cs:103 — This method contradicts itself about `newMenuItem`: line 102 assigns it with `as MenuItem`, which hands back null rather than throwing when the value is not a `MenuItem`, but line 103 then dereferences it directly as `newMenuItem.Header` 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 `newMenuItem` once before the first use and handle the null case, or cast with `(MenuItem)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded Samples/GumFormsSample/GumFormsSampleCommon/Screens/DemoScreenGumRuntime.cs:108 — This method contradicts itself about `saveMenuItem`: line 107 assigns it with `as MenuItem`, which hands back null rather than throwing when the value is not a `MenuItem`, but line 108 then dereferences it directly as `saveMenuItem.Header` 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 `saveMenuItem` once before the first use and handle the null case, or cast with `(MenuItem)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded Samples/GumFormsSample/GumFormsSampleCommon/Screens/DemoScreenGumRuntime.cs:114 — This method contradicts itself about `exitMenuItem`: line 113 assigns it with `as MenuItem`, which hands back null rather than throwing when the value is not a `MenuItem`, but line 114 then dereferences it directly as `exitMenuItem.Header` 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 `exitMenuItem` once before the first use and handle the null case, or cast with `(MenuItem)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded Samples/GumFormsSample/GumFormsSampleCommon/Screens/FrameworkElementExampleScreen.cs:97 — This method contradicts itself about `background`: line 94 assigns it with `as NineSliceRuntime`, which hands back null rather than throwing when the value is not a `NineSliceRuntime`, but line 97 then dereferences it directly as `background.Color` 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 `background` once before the first use and handle the null case, or cast with `(NineSliceRuntime)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded Samples/GameUiSamplesSkia/Screens/FrbClicker/FrbClickerCodeOnly.cs:57 — This method contradicts itself about `senderAsVm`: line 53 assigns it with `as BuildingViewModel`, which hands back null rather than throwing when the value is not a `BuildingViewModel`, but line 57 then dereferences it directly as `senderAsVm.Count` 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 `senderAsVm` once before the first use and handle the null case, or cast with `(BuildingViewModel)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded Runtimes/SkiaGum.Wpf/GumSKElement.cs:71 — This method contradicts itself about `bindableGue`: line 69 assigns it with `as GraphicalUiElement`, which hands back null rather than throwing when the value is not a `GraphicalUiElement`, but line 71 then dereferences it directly as `bindableGue.AddToManagers` 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 `bindableGue` once before the first use and handle the null case, or cast with `(GraphicalUiElement)` so the failure is reported where it happens — rather than leaving the two readings side by side.
  • Symbol treated as nullable, then dereferenced unguarded MonoGameIntegration/RuntimeLogic.cs:33 — This method contradicts itself about `graphicsDeviceManager`: line 27 assigns it with `as GraphicsDeviceManager`, which hands back null rather than throwing when the value is not a `GraphicsDeviceManager`, but line 33 then dereferences it directly as `graphicsDeviceManager.GraphicsDevice` 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 `graphicsDeviceManager` once before the first use and handle the null case, or cast with `(GraphicsDeviceManager)` so the failure is reported where it happens — rather than leaving the two readings side by side.
D4 · Code Duplication · Duplicated block (18 lines × 2) · ×14
  • Duplicated block (18 lines × 2) RenderingLibrary/Graphics/Sprite.cs:437 — RenderingLibrary/Graphics/Sprite.cs:437-454 | Runtimes/RaylibGum/Renderables/Sprite.cs:571-588 — 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 `RenderingLibrary/Graphics/Sprite.cs:437` 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 first that the copies are not typed on the same thing: the declarations holding them bind `frame` to `AnimationFrame` in one and `Gum.Graphics.Animation.AnimationFrame` 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 (18 lines × 2) GumCommon/Runtime/AnimationRuntime.cs:461 — GumCommon/Runtime/AnimationRuntime.cs:461-478 | GumCommon/Runtime/AnimationRuntime.cs:505-522 — 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 `GumCommon/Runtime/AnimationRuntime.cs:461` 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 (18 lines × 2) MonoGameGum/Forms/DefaultVisuals/V3/ComboBoxVisual.cs:202 — MonoGameGum/Forms/DefaultVisuals/V3/ComboBoxVisual.cs:202-219 | MonoGameGum/Forms/DefaultVisuals/V3/ListBoxItemVisual.cs:190-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.
  • Duplicated block (18 lines × 2) Tools/Gum.Cli/Commands/ScreenshotCommand.cs:36 — Tools/Gum.Cli/Commands/ScreenshotCommand.cs:36-53 | Tools/Gum.Cli/Commands/SvgCommand.cs:24-41 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Tools/Gum.Cli/Commands/ScreenshotCommand.cs:36` 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) GumDataTypes/GumProjectSave.cs:803 — GumDataTypes/GumProjectSave.cs:803-820 | GumDataTypes/GumProjectSave.cs:834-851 — 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 `GumDataTypes/GumProjectSave.cs:803` 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 (18 lines × 2) GumRuntime/GraphicalUiElement.Position.cs:667 — GumRuntime/GraphicalUiElement.Position.cs:667-684 | RenderingLibrary/Graphics/NineSlice.cs:671-688 — 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 `GumRuntime/GraphicalUiElement.Position.cs:667` 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) Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:88 — Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:88-105 | Themes/Gum.Themes.Template.MonoGame/Variants/CheckBoxVisual.cs:92-109 — before extracting anything, compare `Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs` and `Themes/Gum.Themes.Template.MonoGame/Variants/CheckBoxVisual.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 304 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) Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:156 — Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:156-173 | Themes/Gum.Themes.Template.MonoGame/Variants/CheckBoxVisual.cs:160-177 — before extracting anything, compare `Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs` and `Themes/Gum.Themes.Template.MonoGame/Variants/CheckBoxVisual.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 304 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 (18 lines × 2) Samples/GameUiSamples/Components/HollowKnightComponents/Currency.cs:41 — Samples/GameUiSamples/Components/HollowKnightComponents/Currency.cs:41-58 | Samples/GameUiSamplesSkia/Components/HollowKnightComponents/Currency.cs:41-58 — before extracting anything, compare `Samples/GameUiSamples/Components/HollowKnightComponents/Currency.cs` and `Samples/GameUiSamplesSkia/Components/HollowKnightComponents/Currency.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 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 × 2) Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs:382 — Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs:382-399 | Samples/MonoGameGumFromFile/MonoGameGumFromFile/Game1.cs:410-427 — before extracting anything, compare `Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs` and `Samples/MonoGameGumFromFile/MonoGameGumFromFile/Game1.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 97 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 `Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs:382` 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) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:575 — Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:575-592 | Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:594-616 — 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 `Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:575` 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 (18 lines × 2) Samples/GameUiSamples/Screens/HyTaleHotbarScreen.cs:25 — Samples/GameUiSamples/Screens/HyTaleHotbarScreen.cs:25-42 | Samples/GameUiSamplesSkia/Screens/HyTaleHotbarScreen.cs:25-42 — before extracting anything, compare `Samples/GameUiSamples/Screens/HyTaleHotbarScreen.cs` and `Samples/GameUiSamplesSkia/Screens/HyTaleHotbarScreen.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 111 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) Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:132 — Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:132-149 | Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs:133-150 — before extracting anything, compare `Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs` and `Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 335 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:694 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:694-711 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:644-661 — before extracting anything, compare `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 251 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 `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:694` 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 lines × 2) · ×14
  • Duplicated block (14 lines × 2) DataUi.Core/LateBinder.cs:675 — DataUi.Core/LateBinder.cs:675-688 | Tools/Gum.Presentation/Reflection/LateBinder.cs:541-554 — before extracting anything, compare `DataUi.Core/LateBinder.cs` and `Tools/Gum.Presentation/Reflection/LateBinder.cs` as WHOLE FILES: this scan already matched 12 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. Read the line range as the matched WINDOW rather than a finished unit: at `DataUi.Core/LateBinder.cs:675` 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 (14 lines × 2) DataUi.Core/LateBinder.cs:694 — DataUi.Core/LateBinder.cs:694-707 | Tools/Gum.Presentation/Reflection/LateBinder.cs:560-573 — before extracting anything, compare `DataUi.Core/LateBinder.cs` and `Tools/Gum.Presentation/Reflection/LateBinder.cs` as WHOLE FILES: this scan already matched 12 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 (14 lines × 2) Themes/Gum.Themes.ForestGlade.MonoGame/ToggleButtonVisual.cs:105 — Themes/Gum.Themes.ForestGlade.MonoGame/ToggleButtonVisual.cs:105-118 | Themes/Gum.Themes.ForestGlade.MonoGame/ToggleButtonVisual.cs:162-175 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.ForestGlade.MonoGame/ToggleButtonVisual.cs:105` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (14 lines × 2) RenderingLibrary/Graphics/Fonts/BitmapFont.cs:1412 — RenderingLibrary/Graphics/Fonts/BitmapFont.cs:1412-1425 | RenderingLibrary/Graphics/Fonts/BitmapFont.cs:1441-1454 — 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 `RenderingLibrary/Graphics/Fonts/BitmapFont.cs:1412` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (14 lines × 2) Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs:116 — Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs:116-129 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollViewerVisual.cs:110-123 — before extracting anything, compare `Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs` and `Themes/Gum.Themes.ForestGlade.MonoGame/ScrollViewerVisual.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 79 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 `Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs:116` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (14 lines × 2) Integrations/KernSmith/KernSmith.GumCommon/GumFontGenerator.cs:348 — Integrations/KernSmith/KernSmith.GumCommon/GumFontGenerator.cs:348-361 | Tools/Gum.ProjectServices/FontGeneration/KernSmithFileGenerator.cs:231-244 — 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 `Integrations/KernSmith/KernSmith.GumCommon/GumFontGenerator.cs:348` 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) Runtimes/SokolGum/Renderables/LineCircle.cs:60 — Runtimes/SokolGum/Renderables/LineCircle.cs:60-73 | Runtimes/SokolGum/Renderables/LinePolygon.cs:53-66 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Runtimes/SokolGum/Renderables/LineCircle.cs:60` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) Gum/CsvLibrary/StringFunctions.cs:440 — Gum/CsvLibrary/StringFunctions.cs:440-453 | ToolsUtilities/StringFunctions.cs:438-451 — before extracting anything, compare `Gum/CsvLibrary/StringFunctions.cs` and `ToolsUtilities/StringFunctions.cs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 256 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) Tools/Gum.Presentation/Plugins/PluginManager.cs:623 — Tools/Gum.Presentation/Plugins/PluginManager.cs:623-636 | Tools/Gum.Presentation/Plugins/PluginManager.cs:663-676 — 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 `Tools/Gum.Presentation/Plugins/PluginManager.cs:623` 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) Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/MoveInputHandler.cs:409 — Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/MoveInputHandler.cs:409-422 | Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/MoveInputHandler.cs:438-451 — 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 `Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/MoveInputHandler.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 (14 lines × 2) Samples/GameUiSamples/Game1.cs:72 — Samples/GameUiSamples/Game1.cs:72-85 | Samples/GameUiSamplesSkia/Game1.cs:68-81 — 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 (14 lines × 2) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:66 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:66-79 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs:56-69 — 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 `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:66` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (14 lines × 2) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetScreen.cs:212 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetScreen.cs:212-225 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetScreen.cs:292-305 — 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 `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetScreen.cs:212` 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) Samples/GameUiSamples/Screens/StardewInventoryScreen.cs:30 — Samples/GameUiSamples/Screens/StardewInventoryScreen.cs:30-43 | Samples/GameUiSamplesSkia/Screens/StardewInventoryScreen.cs:30-43 — before extracting anything, compare `Samples/GameUiSamples/Screens/StardewInventoryScreen.cs` and `Samples/GameUiSamplesSkia/Screens/StardewInventoryScreen.cs` as WHOLE FILES: this scan already matched 9 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.
PF3 · Async & latency hygiene · Awaits without ConfigureAwait(false) · ×14
  • Awaits without ConfigureAwait(false) — Only 0/13 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) ToolsUtilities/Network/NetworkManager.cs:34 — `await _httpClient.GetAsync(url, HttpCompletionOption.ResponseHeadersRead)` 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) ToolsUtilities/Network/NetworkManager.cs:51 — `await response.Content.ReadAsStreamAsync()` 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) ToolsUtilities/Network/NetworkManager.cs:54 — `await ProcessContentStream(totalBytes, contentStream, destinationStream, progressCh...` 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) ToolsUtilities/Network/NetworkManager.cs:78 — `await contentStream.ReadAsync(buffer, 0, buffer.Length)` 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) ToolsUtilities/Network/NetworkManager.cs:86 — `await destinationStream.WriteAsync(buffer, 0, bytesRead)` 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) MonoGameGum/Forms/Controls/Games/DialogBox.cs:296 — `await StartShowAllPagesLoop()` 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) MonoGameGum/Forms/Controls/Games/DialogBox.cs:315 — `await StartShowAllPagesLoop()` 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) MonoGameGum/Forms/Controls/Games/DialogBox.cs:336 — `await ShowAsync(pageTasks, frbLayer)` 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) MonoGameGum/Forms/Controls/Games/DialogBox.cs:450 — `await page.Task()` 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) MonoGameGum/Forms/Controls/Games/DialogBox.cs:483 — `await semaphoreSlim.WaitAsync()` 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) MonoGameGum/Clipboard/ClipboardImplementation.cs:32 — `await InjectedClipboard.GetTextAsync()` 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) Runtimes/SkiaGum.Maui/SkiaGumCanvasView.cs:166 — `await CanProceedFunc()` 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) Runtimes/SkiaGum.Maui/SkiaGumCanvasView.cs:170 — `await ExclusiveUiInteractionSemaphore.WaitAsync(0)` 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)`.
X1 · Async correctness · async void method · ×14
  • async void method: HandleTouch Runtimes/SkiaGum.Maui/SkiaGumCanvasView.cs:190 — `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: OnAffirmative Tools/Gum.Presentation/GumForms/ViewModels/AddFormsViewModel.cs:34 — `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: HandleImportHtml Tools/Gum.Presentation/HtmlToGumPlugin/MainHtmlToGumPlugin.cs:93 — `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: OnAffirmative Tools/Gum.Presentation/ImportFromGumx/ImportFromGumxViewModel.cs:261 — `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: HandleLoadRecentClicked Tools/Gum.Presentation/Plugins/InternalPlugins/LoadRecentFilesPlugin/MainRecentFilesPlugin.cs:92 — `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: OnSourcePathKeyDown Gum/PluginViews/ImportFromGumx/ImportFromGumxView.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: ShowCanvasContextMenuAfterNextFrame Tool/Gum.Avalonia/Plugins/EditorTab/AvaloniaEditorTabPlugin.cs:151 — `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: HandlePropertyChanged Tool/Gum.Avalonia/Plugins/Fonts/MainFontsPlugin.cs:150 — `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: HandleFileChanged Tool/Gum.Avalonia/Plugins/Fonts/MainFontsPlugin.cs:166 — `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: HandleSourcePathKeyDown Tool/Gum.Avalonia/Plugins/PluginDialogs/ImportFromGumxViews.cs:127 — `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: StartDrag Tool/Gum.Avalonia/Plugins/TreeView/AvaloniaGumTreeView.cs:615 — `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: HandleListBoxKeyDown AvaloniaDataUi/Controls/CompositeDisplays.cs:694 — `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: HandlePastingFromClipboard AvaloniaDataUi/Controls/EditTrackingTextBox.cs:109 — `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: HandleCuttingToClipboard AvaloniaDataUi/Controls/EditTrackingTextBox.cs:135 — `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.
D4 · Code Duplication · Edited copy of a member (20 corresponding lines) · ×13
  • Edited copy of a member (20 corresponding lines) Themes/Gum.Themes.Retro95.MonoGame/ScrollBarThumbVisual.cs:41 — Themes/Gum.Themes.Retro95.MonoGame/ScrollBarThumbVisual.cs:41-60 | Themes/Gum.Themes.Retro95.MonoGame/SliderThumbVisual.cs:49-78 — 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) Themes/Gum.Themes.DarkPro.MonoGame/ListBoxItemVisual.cs:74 — Themes/Gum.Themes.DarkPro.MonoGame/ListBoxItemVisual.cs:74-94 | Themes/Gum.Themes.DarkPro.MonoGame/MenuItemVisual.cs:74-93 — 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) Themes/Gum.Themes.Template.MonoGame/ListBoxItemVisual.cs:53 — Themes/Gum.Themes.Template.MonoGame/ListBoxItemVisual.cs:53-73 | Themes/Gum.Themes.Template.MonoGame/MenuItemVisual.cs:72-91 — 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) Themes/Gum.Themes.Hazard.MonoGame/ListBoxItemVisual.cs:54 — Themes/Gum.Themes.Hazard.MonoGame/ListBoxItemVisual.cs:54-74 | Themes/Gum.Themes.Hazard.MonoGame/MenuItemVisual.cs:73-92 — 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) Tool/Gum.Avalonia/Dialogs/Views/DeleteOptionsDialogView.cs:23 — Tool/Gum.Avalonia/Dialogs/Views/DeleteOptionsDialogView.cs:23-49 | Tool/Gum.Avalonia/Plugins/PluginDialogs/ConvertToJsonViews.cs:19-38 — 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) Runtimes/SokolGum/ContentLoader.cs:147 — Runtimes/SokolGum/ContentLoader.cs:147-171 | Runtimes/SokolGum/SystemManagers.cs:203-222 — 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) Themes/Gum.Themes.Meadow.MonoGame/ListBoxItemVisual.cs:31 — Themes/Gum.Themes.Meadow.MonoGame/ListBoxItemVisual.cs:31-50 | Themes/Gum.Themes.Template.MonoGame/ListBoxItemVisual.cs:27-50 — 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) Themes/Gum.Themes.Template.MonoGame/ListBoxItemVisual.cs:27 — Themes/Gum.Themes.Template.MonoGame/ListBoxItemVisual.cs:27-50 | Themes/Gum.Themes.Meadow.MonoGame/ListBoxItemVisual.cs:31-50 — 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) RenderingLibrary/Content/LoaderManagerExtensionMethods.cs:49 — RenderingLibrary/Content/LoaderManagerExtensionMethods.cs:49-74 | RenderingLibrary/Content/LoaderManager.cs:251-270 — 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) Themes/Gum.Themes.ForestGlade.MonoGame/ButtonVisual.cs:27 — Themes/Gum.Themes.ForestGlade.MonoGame/ButtonVisual.cs:27-49 | Themes/Gum.Themes.ForestGlade.MonoGame/ToggleButtonVisual.cs:26-45 — 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) Tool/EditorTabPlugin.Core/ExtensionMethods/CursorExtensionMethods.cs:10 — Tool/EditorTabPlugin.Core/ExtensionMethods/CursorExtensionMethods.cs:10-29 | Tool/EditorTabPlugin.Core/ExtensionMethods/CursorExtensionMethods.cs:32-53 — 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) MonoGameGum/Forms/Controls/ScrollViewer.cs:698 — MonoGameGum/Forms/Controls/ScrollViewer.cs:698-723 | MonoGameGum/Forms/Controls/ScrollViewer.cs:1042-1061 — 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) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:4759 — Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:4759-4782 | Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:4788-4807 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (15 corresponding lines) · ×13
  • Edited copy of a member (15 corresponding lines) MonoGameGum/Forms/Controls/ColorPicker.cs:339 — MonoGameGum/Forms/Controls/ColorPicker.cs:339-357 | MonoGameGum/Forms/Controls/ColorPicker.cs:364-378 — 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) Runtimes/SilkNetGum/Input/Cursor.Silk.cs:38 — Runtimes/SilkNetGum/Input/Cursor.Silk.cs:38-52 | Runtimes/StrideGum/Input/Cursor.Stride.cs:43-60 — 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) Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Services/CanvasZoomToFit.cs:98 — Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Services/CanvasZoomToFit.cs:98-113 | Tool/EditorTabPlugin.Core/ScrollbarService.cs:78-92 — 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) Gum/CsvLibrary/RuntimeCsvRepresentation.cs:1582 — Gum/CsvLibrary/RuntimeCsvRepresentation.cs:1582-1596 | Gum/CsvLibrary/RuntimeCsvRepresentation.cs:1599-1613 — 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) Themes/Gum.Themes.Template.MonoGame/SliderThumbVisual.cs:38 — Themes/Gum.Themes.Template.MonoGame/SliderThumbVisual.cs:38-52 | Themes/Gum.Themes.Template.MonoGame/Variants/SliderThumbVisual.cs:44-64 — 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) RenderingLibrary/Camera.cs:266 — RenderingLibrary/Camera.cs:266-280 | RenderingLibrary/Graphics/Layer.cs:274-290 — 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) Tool/Gum.Avalonia/Plugins/VariableGrid/GumDisplays.cs:676 — Tool/Gum.Avalonia/Plugins/VariableGrid/GumDisplays.cs:676-690 | AvaloniaDataUi/Controls/CompositeDisplays.cs:153-169 — 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) Gum/Controls/ColorDisplay.xaml.cs:41 — Gum/Controls/ColorDisplay.xaml.cs:41-56 | Gum/Controls/CornerRadiusDisplay.xaml.cs:41-55 — 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) Gum/Services/WpfHeadStartup.cs:29 — Gum/Services/WpfHeadStartup.cs:29-44 | Tool/Gum.Avalonia/Services/AvaloniaHeadStartup.cs:28-42 — 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) Tool/Gum.Avalonia/Plugins/Fonts/MainFontsPlugin.cs:104 — Tool/Gum.Avalonia/Plugins/Fonts/MainFontsPlugin.cs:104-121 | Tools/Gum.Presentation/Plugins/InternalPlugins/ProjectPropertiesWindowPlugin/MainPropertiesWindowPlugin.cs:125-139 — 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) MonoGameGum/Forms/Controls/ComboBox.cs:1362 — MonoGameGum/Forms/Controls/ComboBox.cs:1362-1376 | MonoGameGum/Forms/Controls/ListBox.cs:2172-2187 — 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) Runtimes/SkiaGum.Maui/SkiaGumCanvasView.cs:721 — Runtimes/SkiaGum.Maui/SkiaGumCanvasView.cs:721-735 | Runtimes/SkiaGum.Wpf/GumSKElement.cs:132-146 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (15 corresponding lines) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:114 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:114-128 | Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:110-124 — 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) · ×13
  • Edited copy of a member (13 corresponding lines) Tools/Gum.Presentation/Reflection/LateBinder.cs:423 — Tools/Gum.Presentation/Reflection/LateBinder.cs:423-437 | DataUi.Core/LateBinder.cs:562-574 — 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) Runtimes/GumShapes/Renderables/Arc.cs:248 — Runtimes/GumShapes/Renderables/Arc.cs:248-260 | Runtimes/GumShapes/Renderables/Arc.cs:262-274 — 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) Runtimes/SokolGum/SystemManagers.cs:156 — Runtimes/RaylibGum/RenderingLibrary/SystemManagers.cs:199-234 | Runtimes/SokolGum/SystemManagers.cs:156-168 — 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) MonoGameGum/Forms/Controls/TextBoxBase.cs:2777 — MonoGameGum/Forms/Controls/TextBoxBase.cs:2777-2789 | MonoGameGum/Forms/Controls/TextBoxBase.cs:2794-2806 — 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) GumCommon/Mvvm/PropertyPathObserver.cs:252 — GumCommon/Mvvm/PropertyPathObserver.cs:252-268 | MonoGameGum/Forms/Data/BinderHelpers.cs:532-544 — 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) Runtimes/GumShapes/GueDeriving/AposShapeRuntime.cs:224 — Runtimes/GumShapes/GueDeriving/AposShapeRuntime.cs:224-253 | Gum/SvgPlugin/MainSkiaPlugin.cs:165-177 — 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) DataUi.Core/LateBinder.cs:24 — DataUi.Core/LateBinder.cs:24-36 | Tools/Gum.Presentation/Reflection/LateBinder.cs:15-27 — 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) WpfDataUi/Controls/InlineChannelsDisplay.xaml.cs:30 — WpfDataUi/Controls/InlineChannelsDisplay.xaml.cs:30-49 | WpfDataUi/Controls/NullableBoolDisplay.xaml.cs:40-52 — 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) Tool/Gum.Avalonia/Panels/InternalPanelViews.cs:328 — Tool/Gum.Avalonia/Panels/InternalPanelViews.cs:328-340 | Tool/Gum.Avalonia/Plugins/StateAnimation/AnimationsView.cs:379-391 — 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) Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Screens/MixedBatchScreen.cs:46 — Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Screens/MixedBatchScreen.cs:46-66 | Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Screens/MixedBatchScreen.cs:48-60 — 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) Samples/GumFormsSample/MonoGameGumFormsSample/BenchmarkGame.cs:18 — Samples/GumFormsSample/MonoGameGumFormsSample/BenchmarkGame.cs:18-30 | Samples/KniSkiaGum/KniSkiaGumSample/Game1.cs:35-51 — 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:214 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:214-226 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:239-251 — 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) Tools/Gum.Presentation/Plugins/InternalPlugins/OrphanCodeFiles/MainOrphanCodeFilePlugin.cs:147 — Tools/Gum.Presentation/Plugins/InternalPlugins/OrphanCodeFiles/MainOrphanCodeFilePlugin.cs:147-160 | Tools/Gum.Presentation/Plugins/InternalPlugins/OrphanCodeFiles/MainOrphanCodeFilePlugin.cs:165-177 — 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 · Duplicated block (8 lines × 2) · ×13
  • Duplicated block (8 lines × 2) Themes/Gum.Themes.Template.MonoGame/TemplateTextInputDecoration.cs:83 — Themes/Gum.Themes.Template.MonoGame/TemplateTextInputDecoration.cs:83-90 | Themes/Gum.Themes.Template.MonoGame/Variants/TemplateTextInputDecoration.cs:84-91 — before extracting anything, compare `Themes/Gum.Themes.Template.MonoGame/TemplateTextInputDecoration.cs` and `Themes/Gum.Themes.Template.MonoGame/Variants/TemplateTextInputDecoration.cs` as WHOLE FILES: this scan already matched 3 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 (8 lines × 2) Gum/Services/WpfHeadStartup.cs:35 — Gum/Services/WpfHeadStartup.cs:35-43 | Tool/Gum.Avalonia/Services/AvaloniaHeadStartup.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.
  • Duplicated block (8 lines × 2) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:57 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:57-64 | Themes/Gum.Themes.Template.MonoGame/TemplateShapes.cs:57-64 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs` and `Themes/Gum.Themes.Template.MonoGame/TemplateShapes.cs` as WHOLE FILES: this scan already matched 16 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 (8 lines × 2) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:115 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:115-122 | Themes/Gum.Themes.Template.MonoGame/TemplateShapes.cs:116-123 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs` and `Themes/Gum.Themes.Template.MonoGame/TemplateShapes.cs` as WHOLE FILES: this scan already matched 16 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 (8 lines × 2) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:57 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:57-64 | Themes/Gum.Themes.Template.MonoGame/TemplateShapes.cs:57-64 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs` and `Themes/Gum.Themes.Template.MonoGame/TemplateShapes.cs` as WHOLE FILES: this scan already matched 16 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 (8 lines × 2) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:115 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:115-122 | Themes/Gum.Themes.Template.MonoGame/TemplateShapes.cs:116-123 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs` and `Themes/Gum.Themes.Template.MonoGame/TemplateShapes.cs` as WHOLE FILES: this scan already matched 16 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 (8 lines × 2) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:41 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:41-48 | Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs:38-45 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs` and `Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 144 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) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:127 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:127-134 | Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs:93-100 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs` and `Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 144 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) Tool/EditorTabPlugin.Core/Services/BackgroundManager.cs:140 — Tool/EditorTabPlugin.Core/Services/BackgroundManager.cs:140-147 | Tool/TextureCoordinatePlugin.Core/Logic/BackgroundManager.cs:112-119 — before extracting anything, compare `Tool/EditorTabPlugin.Core/Services/BackgroundManager.cs` and `Tool/TextureCoordinatePlugin.Core/Logic/BackgroundManager.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 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) Tools/Gum.Presentation/Managers/DeleteLogic.cs:176 — Tools/Gum.Presentation/Managers/DeleteLogic.cs:176-183 | Tools/Gum.Presentation/Managers/DeleteLogic.cs:309-316 — 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 `Tools/Gum.Presentation/Managers/DeleteLogic.cs:176` 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) Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:109 — Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:109-116 | Samples/raylib/Screens/PolygonsScreen.cs:111-118 — before extracting anything, compare `Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs` and `Samples/raylib/Screens/PolygonsScreen.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 73 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetScreen.cs:125 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetScreen.cs:125-132 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetScreen.cs:333-340 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) Samples/GameUiSamples/Screens/FrbClicker/FrbScreenViewModel.cs:51 — Samples/GameUiSamples/Screens/FrbClicker/FrbScreenViewModel.cs:51-58 | Samples/GameUiSamplesSkia/Screens/FrbClicker/FrbScreenViewModel.cs:51-58 — before extracting anything, compare `Samples/GameUiSamples/Screens/FrbClicker/FrbScreenViewModel.cs` and `Samples/GameUiSamplesSkia/Screens/FrbClicker/FrbScreenViewModel.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 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.
D15 · Churn × Complexity Hotspots · Repeated repair · ×12
  • Repeated repair: Tool/Gum.Avalonia/Plugins/EditorTab/WireframeCanvasControl.cs Tool/Gum.Avalonia/Plugins/EditorTab/WireframeCanvasControl.cs:45 — Tool/Gum.Avalonia/Plugins/EditorTab/WireframeCanvasControl.cs changed 9 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 3 (its worst body is WireframeCanvasControl.OnKeyDown at line 45), 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: “Finish the sample sweep; fix canvas alpha bleed and gumcli reference renders (#5117) (#5172)”; “Fix #4985: pan the canvas on a macOS trackpad scroll, zoom on pinch (#4988)”; “Fix #4989: draw the Avalonia canvases only when something changed (#4992)”; “Fix #4785: share CameraController between the wireframe and texture-coordinate canvases (#4790)”. 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- Tool/Gum.Avalonia/Plugins/EditorTab/WireframeCanvasControl.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: Tool/Gum.Avalonia/Shell/AvaloniaNativeMenuBuilder.cs Tool/Gum.Avalonia/Shell/AvaloniaNativeMenuBuilder.cs:144 — Tool/Gum.Avalonia/Shell/AvaloniaNativeMenuBuilder.cs changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 6 (its worst body is AvaloniaNativeMenuBuilder.ApplyGestures at line 144), 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 #4982: run macOS menu-bar actions after AppKit's menu tracking ends (#4984)”; “Fix #4736, #4737: macOS Redo is Shift+Cmd+Z, and menu-bar key equivalents bind only while the main window is active (#4747)”; “Fix #4729: make hotkeys use Cmd on macOS and show the platform's modifier names (#4738)”; “Fix #4735: put About Gum in the macOS app menu (#4741)”. 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- Tool/Gum.Avalonia/Shell/AvaloniaNativeMenuBuilder.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Services/CameraController.cs Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Services/CameraController.cs:172 — Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Services/CameraController.cs changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 10 (its worst body is CameraController.HandleKeyPress at line 172), 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 #4985: pan the canvas on a macOS trackpad scroll, zoom on pinch (#4988)”; “Fix #4785: share CameraController between the wireframe and texture-coordinate canvases (#4790)”; “Fix #4788: throttle trackpad two-finger zoom to mouse-notch cadence (#4789)”; “Fix #4779: Space+left-drag pans the wireframe canvas like middle-drag (#4784)”. 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Services/CameraController.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: Tool/EditorTabPlugin.Core/Views/OriginDisplay.cs Tool/EditorTabPlugin.Core/Views/OriginDisplay.cs:147 — Tool/EditorTabPlugin.Core/Views/OriginDisplay.cs changed 5 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 11 (its worst body is OriginDisplay.UpdateTo at line 147), 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: “Nullable annotations for EditorTabPlugin.Core; fix null crashes (#4997) (#5109)”; “Fix #4986: draw overlay lines and circles at the OS display scale (#4996)”; “Fix #4983: scale the editor overlay by the OS display scale (#4987)”. 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- Tool/EditorTabPlugin.Core/Views/OriginDisplay.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: Tool/Gum.Avalonia/Canvas/AvaloniaInputHostAdapter.cs Tool/Gum.Avalonia/Canvas/AvaloniaInputHostAdapter.cs:133 — Tool/Gum.Avalonia/Canvas/AvaloniaInputHostAdapter.cs changed 5 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 10 (its worst body is AvaloniaInputHostAdapter.ToXnaKey at line 133), 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 #4811: render the Avalonia canvas at physical-pixel resolution (#4813)”; “Fix #4704: Avalonia tree/file drag-drop lands at cursor position, not (0,0) (#4707)”; “Fix the Avalonia visual differences (#4694) and the tool bugs #4691, #4692, #4693 (#4698)”. 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- Tool/Gum.Avalonia/Canvas/AvaloniaInputHostAdapter.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: Tool/EditorTabPlugin.Core/Views/DistanceArrows.cs Tool/EditorTabPlugin.Core/Views/DistanceArrows.cs:89 — Tool/EditorTabPlugin.Core/Views/DistanceArrows.cs changed 5 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 6 (its worst body is DistanceArrows.SetFrom at line 89), 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: “Nullable annotations for EditorTabPlugin.Core; fix null crashes (#4997) (#5109)”; “Fix #4986: draw overlay lines and circles at the OS display scale (#4996)”; “Fix #4983: scale the editor overlay by the OS display scale (#4987)”. 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- Tool/EditorTabPlugin.Core/Views/DistanceArrows.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: MonoGameGum/GueDeriving/ColoredRectangleRuntime.cs MonoGameGum/GueDeriving/ColoredRectangleRuntime.cs:40 — MonoGameGum/GueDeriving/ColoredRectangleRuntime.cs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 2 (its worst body is ColoredRectangleRuntime.ContainedColoredRectangle.get at line 40), 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: “Port GameUiSamples to the KNI Skia host and fix three Skia host gaps (#6197)”; “Nullable annotations for MonoGameGum runtime (non-Forms); fix null crashes (#4997) (#5107)”; “Nullable annotations for GumRuntime and runtime text; fix null crashes (#4997) (#5087)”. 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- MonoGameGum/GueDeriving/ColoredRectangleRuntime.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: Tool/EditorTabPlugin.Core/Editors/Visuals/DimensionDisplayVisual.cs Tool/EditorTabPlugin.Core/Editors/Visuals/DimensionDisplayVisual.cs:102 — Tool/EditorTabPlugin.Core/Editors/Visuals/DimensionDisplayVisual.cs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 12 (its worst body is DimensionDisplayVisual.ShouldShowForSide at line 102), 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: “Nullable annotations for EditorTabPlugin.Core; fix null crashes (#4997) (#5109)”; “Fix #4986: draw overlay lines and circles at the OS display scale (#4996)”; “Fix #4983: scale the editor overlay by the OS display scale (#4987)”. 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- Tool/EditorTabPlugin.Core/Editors/Visuals/DimensionDisplayVisual.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: Tools/Gum.ProjectServices/ConvertProjectToJsonService.cs Tools/Gum.ProjectServices/ConvertProjectToJsonService.cs:46 — Tools/Gum.ProjectServices/ConvertProjectToJsonService.cs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 4 (its worst body is ConvertProjectToJsonService.ValidateAndGetSourceDirectory at line 46), 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 Gum.ProjectServices nullable warnings from the data-type annotations (#4997) (#5049)”; “Fix #4926: opt-in move of converted XML to the trash, clearer Convert to JSON dialogs (#4941)”; “Fix #4748: serve .gumx projects from the Native AOT preview build, drop Preview/ from the release (#4768)”. 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- Tools/Gum.ProjectServices/ConvertProjectToJsonService.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: Tool/Gum.Avalonia/Shell/AvaloniaTabManager.cs Tool/Gum.Avalonia/Shell/AvaloniaTabManager.cs:213 — Tool/Gum.Avalonia/Shell/AvaloniaTabManager.cs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 8 (its worst body is AvaloniaTabManager.Sync at line 213), 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 the Avalonia visual differences (#4694) and the tool bugs #4691, #4692, #4693 (#4698)”; “Fix the tool grid rows falling back to text and match the WPF dialog chrome, tab selection and text dialog validation in the Avalonia head”; “Fix the WPF property grid's default row template and match the WPF menus, scroll bars, tabs and option buttons in the Avalonia head”. 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- Tool/Gum.Avalonia/Shell/AvaloniaTabManager.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: Tools/Gum.ProjectServices/FormsTemplateCreator.cs Tools/Gum.ProjectServices/FormsTemplateCreator.cs:61 — Tools/Gum.ProjectServices/FormsTemplateCreator.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 9 (its worst body is FormsTemplateCreator.CreateFromTheme at line 61), 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 Text-based Forms codegen; add gumcli new --theme and a theme compile check (#5936)”; “Fix #4923: add gumcli add-forms to merge Forms controls into an existing project (#4924)”; “Fix #4705: default new projects to .gumj (JSON) in both the tool and CLI (#4711)”. 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- Tools/Gum.ProjectServices/FormsTemplateCreator.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Repeated repair: Tool/EditorTabPlugin.Core/Services/PreviewExecutableLocator.cs Tool/EditorTabPlugin.Core/Services/PreviewExecutableLocator.cs:54 — Tool/EditorTabPlugin.Core/Services/PreviewExecutableLocator.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 5 (its worst body is PreviewExecutableLocator.Candidates at line 54), 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 #4748: serve .gumx projects from the Native AOT preview build, drop Preview/ from the release (#4768)”; “Fix #4706: ship a Native AOT GumPreview build for .gumj projects (#4721)”; “Fix #4713: Move GumPreview out of Samples/ into Tool/ (#4716)”. 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:12:47 -07:00' --until='2026-11-16 21:12:47 -07:00' --full-history --no-merges -- Tool/EditorTabPlugin.Core/Services/PreviewExecutableLocator.cs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
D4 · Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) · ×12
  • Members sharing a duplicated core (4 members, 50+ identical tokens) GumCommon/Runtime/VariableReferenceGraph.cs:222 — GumCommon/Runtime/VariableReferenceGraph.cs:222-249 | GumCommon/Runtime/VariableReferenceGraph.cs:266-295 | Tools/Gum.Presentation/Wireframe/ReDrivenReferenceRowTracker.cs:112-137 | Tools/Gum.Presentation/Wireframe/WireframeObjectManager.cs:288-326 — 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) Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs:36 — Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs:36-65 | Themes/Gum.Themes.DarkPro.MonoGame/ToggleButtonVisual.cs:34-63 | Themes/Gum.Themes.Meadow.MonoGame/ButtonVisual.cs:45-69 | Themes/Gum.Themes.Meadow.MonoGame/ToggleButtonVisual.cs:38-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) Themes/Gum.Themes.Bubblegum.MonoGame/ScrollBarThumbVisual.cs:51 — Themes/Gum.Themes.Bubblegum.MonoGame/ScrollBarThumbVisual.cs:51-76 | Themes/Gum.Themes.DarkPro.MonoGame/ScrollBarThumbVisual.cs:74-102 | Themes/Gum.Themes.Hazard.MonoGame/ScrollBarThumbVisual.cs:45-73 | Themes/Gum.Themes.Template.MonoGame/ScrollBarThumbVisual.cs:45-73 — 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) Themes/Gum.Themes.DarkPro.MonoGame/SliderVisual.cs:203 — Themes/Gum.Themes.DarkPro.MonoGame/SliderVisual.cs:203-215 | Themes/Gum.Themes.Hazard.MonoGame/SliderVisual.cs:152-160 | Themes/Gum.Themes.Template.MonoGame/SliderVisual.cs:150-158 | Themes/Gum.Themes.Template.MonoGame/Variants/SliderVisual.cs:156-164 — 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) Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:122 — Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:122-145 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs:114-139 | Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs:132-155 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollViewerVisual.cs:126-149 — 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) Tools/Gum.Presentation/Logic/ReferenceTypes.cs:29 — Tools/Gum.Presentation/Logic/ReferenceTypes.cs:29-78 | Tools/Gum.Presentation/Logic/ReferenceTypes.cs:88-137 | Tools/Gum.Presentation/Logic/ReferenceTypes.cs:158-212 | Tools/Gum.Presentation/Logic/ReferenceTypes.cs:221-255 — 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) Samples/GameUiSamples/Components/HyTaleComponents/HyTaleHotBar.cs:59 — Samples/GameUiSamples/Components/HyTaleComponents/HyTaleHotBar.cs:59-76 | Samples/GameUiSamples/Components/StardewComponents/Hotbar.cs:49-66 | Samples/GameUiSamplesSkia/Components/HyTaleComponents/HyTaleHotBar.cs:59-76 | Samples/GameUiSamplesSkia/Components/StardewComponents/Hotbar.cs:49-66 — 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) Samples/GameUiSamples/Screens/HyTaleHotbarScreen.cs:24 — Samples/GameUiSamples/Screens/HyTaleHotbarScreen.cs:24-42 | Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:27-56 | Samples/GameUiSamplesSkia/Screens/HyTaleHotbarScreen.cs:24-42 | Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs:28-57 — 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:52 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:52-87 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:58-93 | Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:20-43 | Samples/raylib/Screens/ArcsScreen.cs:28-50 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) Samples/KniGumInCode/KniGumInCodeCommon/KniGumInCodeGame.cs:97 — Samples/KniGumInCode/KniGumInCodeCommon/KniGumInCodeGame.cs:97-118 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/DrawCallStressScreen.cs:36-88 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/NineSliceScreen.cs:30-214 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/SpriteScreen.cs:30-429 — 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetScreen.cs:124 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetScreen.cs:124-135 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetScreen.cs:141-153 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetScreen.cs:159-171 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetScreen.cs:326-356 — 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) Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs:147 — Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs:147-229 | Samples/KniSkiaGumFromFile/KniSkiaGumFromFile/Game1.cs:114-145 | Samples/MonoGameGumFromFile/MonoGameGumFromFile/Game1.cs:153-246 | Samples/SokolGumFromFile/Program.cs:236-324 — 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 (12 corresponding lines) · ×12
  • Edited copy of a member (12 corresponding lines) Tool/Gum.Avalonia/App.cs:363 — Tool/Gum.Avalonia/App.cs:363-374 | spikes/AvaloniaCanvasSpike/Shared/App.cs:54-67 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/BuiltInShaderFiles.cs:158 — Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/BuiltInShaderFiles.cs:158-169 | Tool/Gum.Avalonia/Accessibility/AutomationNames.cs:40-56 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) Runtimes/SkiaGum/Renderables/NineSlice.cs:228 — Runtimes/SkiaGum/Renderables/NineSlice.cs:228-239 | Runtimes/SkiaGum/Renderables/Sprite.cs:130-141 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/ResizeInputHandler.cs:53 — Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/ResizeInputHandler.cs:53-64 | Tool/EditorTabPlugin.Core/Editors/Handlers/PolygonScaleInputHandler.cs:55-69 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) Runtimes/SkiaGum/Renderables/NineSlice.cs:23 — Runtimes/SkiaGum/Renderables/NineSlice.cs:23-37 | Runtimes/SkiaGum/Renderables/Sprite.cs:213-224 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) Tools/Gum.ProjectServices/GumSourceLocator.cs:15 — Tools/Gum.ProjectServices/GumSourceLocator.cs:15-29 | Tool/EditorTabPlugin.Core/Services/PreviewExecutableLocator.cs:80-91 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) WpfDataUi/Controls/ListBoxDisplay.xaml.cs:265 — WpfDataUi/Controls/ListBoxDisplay.xaml.cs:265-277 | AvaloniaDataUi/Controls/CompositeDisplays.cs:681-692 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) WpfDataUi/Controls/FileSelectionDisplay.xaml.cs:125 — WpfDataUi/Controls/FileSelectionDisplay.xaml.cs:125-136 | WpfDataUi/Controls/TextBoxDisplay.xaml.cs:193-204 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) MonoGameGum/Forms/Controls/ListBox.cs:1548 — MonoGameGum/Forms/Controls/ListBox.cs:1548-1566 | MonoGameGum/Forms/Controls/TabControl.cs:548-559 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:174 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:174-185 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:194-205 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:160 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:160-171 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:180-191 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:3697 — Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:3697-3708 | Tools/Gum.Presentation/CodeOutputPlugin/Manager/ParentSetLogic.cs:250-261 — 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.
X3 · Exception handling · Swallowed exception (caught, then discarded) · ×12
  • Swallowed exception (caught, then discarded) GumCommon/HostServices/GumSnapshotExporter.cs:208 — `catch (ArgumentException)` 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) GumCommon/Input/KeyRepeatDefaults.cs:63 — `catch (Exception)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
  • Swallowed exception (caught, then discarded) MonoGameGum/Forms/Data/UntypedBindingExpressionBase.cs:115 — `catch (Exception)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
  • Swallowed exception (caught, then discarded) MonoGameGum/GumService.cs:753 — `catch (Exception)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
  • Swallowed exception (caught, then discarded) MonoGameGum/GumService.XnaLike.cs:391 — `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) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:871 — `catch (Exception)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
  • Swallowed exception (caught, then discarded) Tools/Gum.ProjectServices/CodeGeneration/OrphanCodeFileScanService.cs:408 — `catch (Exception) when (…)` 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) Tools/Gum.ProjectServices/CodeGeneration/SyntaxVersionDetectionService.cs:233 — `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) Tools/Gum.ProjectServices/CodeGeneration/SyntaxVersionDetectionService.cs:279 — `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) Tools/Gum.ProjectServices/Diagnostics/StartupTiming.cs:56 — `catch (Exception)` does nothing with the exception it caught — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch. Log it through whatever this codebase already uses to report problems, or let it propagate; if one specific failure genuinely cannot matter, catch exactly that exception type and say why in a comment on the catch.
  • Swallowed exception (caught, then discarded) Tools/Gum.ProjectServices/HeadlessErrorChecker.cs:1939 — `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) Tools/Gum.Presentation/FileWatchPlugin/FileWatchLogic.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.
D10 · Test Quality · No assertions · ×11
  • No assertions: SetBinding_ShouldBeReAssignable MonoGameGum.Tests/Forms/FrameworkElementBindingTests.cs:117 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: InvalidPath_DoesNoHarm MonoGameGum.Tests/Forms/FrameworkElementBindingTests.cs:923 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: RemovingChildren_ShouldNotThrowException MonoGameGum.Tests/Forms/RootTests.cs:72 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: Initialize_ShouldWork Tests/MonoGameGum.IntegrationTests/MonoGameGum/GumServiceUnitTests.cs:44 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: AnimationChainCycled_ShouldForwardToAnimationLogic Tests/SkiaGum.Tests/GueDeriving/SpriteRuntimeTests.cs:357 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: AnimationChainCycled_ShouldBeTriggered Tests/RaylibGum.Tests/Runtimes/SpriteRuntimeTests.cs:136 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: SuspendScope_WithNoRegistration_DoesNotThrow Tests/Gum.ProjectServices.Tests/UiFreezeWatchdogHookRegistryTests.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.
  • No assertions: ProcessCmdKeyWireframe_NudgingABehaviorInstance_DoesNotThrow Tests/Gum.Presentation.Tests/HotkeyManagerNudgeTests.cs:14 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: ProcessCmdKeyWireframe_NudgingAnInstanceWhoseTypeIsMissing_DoesNotThrow Tests/Gum.Presentation.Tests/HotkeyManagerNudgeTests.cs:30 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: ReactToPropertyValueChanged_ShouldAddTextureAddressValues_WhenSettingTextureAddresOnNineSlice Tests/Gum.Presentation.Tests/SetVariableLogicTests.cs:1014 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: Test1 Tool/Tests/AutomatedTests/UnitTest1.cs:15 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
D4 · Code Duplication · Edited copy of a member (21 corresponding lines) · ×11
  • Edited copy of a member (21 corresponding lines) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTextInputDecoration.cs:72 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTextInputDecoration.cs:72-92 | Themes/Gum.Themes.Bubblegum.MonoGame/ComboBoxVisual.cs:112-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.
  • Edited copy of a member (21 corresponding lines) Themes/Gum.Themes.Meadow.MonoGame/ComboBoxVisual.cs:118 — Themes/Gum.Themes.Meadow.MonoGame/ComboBoxVisual.cs:118-138 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTextInputDecoration.cs:108-128 — 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) Themes/Gum.Themes.Template.MonoGame/SliderVisual.cs:127 — Themes/Gum.Themes.Template.MonoGame/SliderVisual.cs:127-147 | Themes/Gum.Themes.Template.MonoGame/Variants/SliderVisual.cs:133-153 — 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) Themes/Gum.Themes.Retro95.MonoGame/ButtonVisual.cs:33 — Themes/Gum.Themes.Retro95.MonoGame/ButtonVisual.cs:33-54 | Themes/Gum.Themes.Retro95.MonoGame/ToggleButtonVisual.cs:28-48 — 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) Gum/SvgPlugin/SkiaInGumShared/Rendering/SkiaRenderer.cs:258 — Gum/SvgPlugin/SkiaInGumShared/Rendering/SkiaRenderer.cs:258-278 | Gum/SvgPlugin/SkiaInGumShared/Rendering/SkiaRenderer.cs:281-306 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (21 corresponding lines) RenderingLibrary/SystemManagers.cs:590 — RenderingLibrary/SystemManagers.cs:590-611 | Runtimes/RaylibGum/RenderingLibrary/PixelDataTextureApplier.cs:46-66 — 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) Gum/Controls/GumTreeView.cs:248 — Gum/Controls/GumTreeView.cs:248-271 | Gum/Controls/GumTreeView.cs:274-294 — 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) DataUi.Core/LateBinder.cs:198 — DataUi.Core/LateBinder.cs:198-218 | DataUi.Core/LateBinder.cs:221-242 — 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) MonoGameGum/Forms/Controls/ComboBox.cs:561 — MonoGameGum/Forms/Controls/ComboBox.cs:561-583 | MonoGameGum/Forms/Controls/Primitives/ButtonBase.cs:108-128 — 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) Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:129 — Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:129-149 | Samples/raylib/Screens/ArcsScreen.cs:134-154 — 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) Samples/SokolGum/Program.cs:70 — Samples/SokolGum/Program.cs:70-90 | Samples/SokolGumFromFile/Program.cs:166-196 — 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 (18 corresponding lines) · ×11
  • Edited copy of a member (18 corresponding lines) Themes/Gum.Themes.DarkPro.MonoGame/ListBoxItemVisual.cs:74 — Themes/Gum.Themes.DarkPro.MonoGame/ListBoxItemVisual.cs:74-94 | Themes/Gum.Themes.ForestGlade.MonoGame/MenuItemVisual.cs:58-75 — 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) Runtimes/SokolGum/ContentLoader.cs:20 — Runtimes/SokolGum/ContentLoader.cs:20-38 | Runtimes/SokolGum/ContentLoader.cs:41-58 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (18 corresponding lines) Runtimes/SokolGum/Renderables/NineSlice.cs:108 — Runtimes/SokolGum/Renderables/NineSlice.cs:108-126 | Runtimes/SokolGum/Renderables/Sprite.cs:114-131 — 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) Runtimes/SokolGum/ContentLoader.cs:73 — Runtimes/SokolGum/ContentLoader.cs:73-90 | Runtimes/SokolGum/ContentLoader.cs:124-144 — 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) GumCommon/HostServices/GumHotReloadManager.cs:969 — GumCommon/HostServices/GumHotReloadManager.cs:969-986 | GumCommon/HostServices/GumHotReloadManager.cs:989-1006 — 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) Tool/TextureCoordinatePlugin.Core/RegionSelection/RectangleSelector.cs:965 — Tool/TextureCoordinatePlugin.Core/RegionSelection/RectangleSelector.cs:965-984 | Tool/TextureCoordinatePlugin.Core/RegionSelection/RectangleSelector.cs:1000-1017 — 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) MonoGameGum/Forms/Controls/ItemsControl.cs:150 — MonoGameGum/Forms/Controls/ItemsControl.cs:150-167 | MonoGameGum/Forms/Controls/ItemsControl.cs:175-192 — 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) Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:31 — Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:31-48 | Samples/raylib/Screens/PolygonsScreen.cs:34-51 — 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) Tools/Gum.Presentation/Undo/BehaviorUndoStrategy.cs:182 — Tools/Gum.Presentation/Undo/BehaviorUndoStrategy.cs:182-199 | Tools/Gum.Presentation/Undo/BehaviorUndoStrategy.cs:202-225 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (18 corresponding lines) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/MixedScreen.cs:179 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/MixedScreen.cs:179-200 | Samples/KniGumInCode/KniGumInCodeCommon/KniGumInCodeGame.cs:256-273 — 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) Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Game1.cs:51 — Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Game1.cs:51-72 | Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Game1.cs:46-63 — 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 (10 corresponding lines) · ×11
  • Edited copy of a member (10 corresponding lines) Runtimes/GumShadowDusk/ReportingIncludeResolver.cs:34 — Runtimes/GumShadowDusk/ReportingIncludeResolver.cs:34-43 | Tool/EditorTabPlugin.Core/Services/ShaderSourceCompiler.cs:96-105 — 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) Gum/Controls/TabViewRegistry.cs:80 — Gum/Controls/TabViewRegistry.cs:80-89 | Tool/Gum.Avalonia/Shell/TabViewRegistry.cs:73-82 — 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) WpfDataUi/Controls/CheckBoxDisplay.xaml.cs:178 — WpfDataUi/Controls/CheckBoxDisplay.xaml.cs:178-188 | WpfDataUi/Controls/TextBoxDisplay.xaml.cs:333-342 — 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) RenderingLibrary/SystemManagers.cs:418 — RenderingLibrary/SystemManagers.cs:418-427 | Runtimes/SkiaGum/RenderingLibrary/SystemManagers.cs:399-408 — 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) Tools/Gum.Presentation/StateAnimationPlugin/ViewModels/AnimatedKeyframeViewModel.cs:266 — Tools/Gum.Presentation/StateAnimationPlugin/ViewModels/AnimatedKeyframeViewModel.cs:266-276 | GumCommon/ExtensionMethods/AnimationRuntimeExtensions.cs:62-71 — 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) WpfDataUi/Controls/ListBoxDisplay.xaml.cs:121 — WpfDataUi/Controls/ListBoxDisplay.xaml.cs:121-130 | AvaloniaDataUi/Controls/CompositeDisplays.cs:592-601 — 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) Gum/StateAnimationPlugin/Views/MainWindow.xaml.cs:102 — Gum/StateAnimationPlugin/Views/MainWindow.xaml.cs:102-111 | Gum/Plugins/InternalPlugins/VariableGrid/MainPropertyGrid.xaml.cs:126-135 — 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) MonoGameGum/Forms/FrameworkElementTreeExtensions.cs:110 — MonoGameGum/Forms/FrameworkElementTreeExtensions.cs:110-119 | MonoGameGum/Forms/GraphicalUiElementFormsExtensions.cs:73-82 — 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) MonoGameGum/Forms/FrameworkElementTreeExtensions.cs:93 — MonoGameGum/Forms/FrameworkElementTreeExtensions.cs:93-102 | MonoGameGum/Forms/GraphicalUiElementFormsExtensions.cs:56-65 — 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) Tool/EditorTabPlugin.Core/Services/BackgroundManager.cs:138 — Tool/EditorTabPlugin.Core/Services/BackgroundManager.cs:138-147 | Tool/TextureCoordinatePlugin.Core/Logic/BackgroundManager.cs:110-119 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (10 corresponding lines) GumCommon/Content/LoaderManager.cs:189 — GumCommon/Content/LoaderManager.cs:189-208 | RenderingLibrary/Content/LoaderManager.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.
PF3 · Async & latency hygiene · Sync-over-async blocking · ×11
  • Sync-over-async blocking — 10 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 Runtimes/SkiaGum/Content/SkiaResourceManager.cs:169 — `.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 Runtimes/GumShapes/Content/ShapeSvgLoader.cs:147 — `.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 Tools/Gum.Cli/Commands/FontsCommand.cs:83 — `.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 Tools/Gum.Cli/Commands/NewCommand.cs:123 — `.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 Tools/Gum.Cli/Commands/NewCommand.cs:156 — `.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 Tools/Gum.ProjectServices/NewProject/ExistingCodeProjectDetector.cs:56 — `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
  • Sync-over-async blocking Tools/Gum.Presentation/Startup/SingleInstance/SingleInstanceGate.cs:254 — `.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 Tools/Gum.Presentation/Startup/SingleInstance/SingleInstanceGate.cs:262 — `.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 Gum/SvgPlugin/SkiaInGumShared/Renderables/RenderableSvg.cs:155 — `.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 Tool/Gum.Avalonia/Dialogs/AvaloniaDialogService.cs:216 — `.GetAwaiter().GetResult()` blocks this thread until the async work completes — it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one).
D4 · Code Duplication · Members sharing a duplicated core (8 members, 50+ identical tokens) · ×10
  • Members sharing a duplicated core (8 members, 50+ identical tokens) Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:48 — Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:48-80 | Themes/Gum.Themes.DarkPro.MonoGame/CheckBoxVisual.cs:45-81 | Themes/Gum.Themes.ForestGlade.MonoGame/CheckBoxVisual.cs:42-73 | Themes/Gum.Themes.Hazard.MonoGame/CheckBoxVisual.cs:50-86 | Themes/Gum.Themes.Meadow.MonoGame/CheckBoxVisual.cs:45-76 | Themes/Gum.Themes.Neon.MonoGame/CheckBoxVisual.cs:48-80 | Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:48-84 | Themes/Gum.Themes.Template.MonoGame/Variants/CheckBoxVisual.cs:52-88 — These 8 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 8 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 8 times.
  • Members sharing a duplicated core (8 members, 50+ identical tokens) Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:149 — Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:149-166 | Themes/Gum.Themes.DarkPro.MonoGame/CheckBoxVisual.cs:152-175 | Themes/Gum.Themes.ForestGlade.MonoGame/CheckBoxVisual.cs:153-170 | Themes/Gum.Themes.Hazard.MonoGame/CheckBoxVisual.cs:157-180 | Themes/Gum.Themes.Meadow.MonoGame/CheckBoxVisual.cs:145-162 | Themes/Gum.Themes.Neon.MonoGame/CheckBoxVisual.cs:149-166 | Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:155-178 | Themes/Gum.Themes.Template.MonoGame/Variants/CheckBoxVisual.cs:159-182 — These 8 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 8 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 8 times.
  • Members sharing a duplicated core (8 members, 50+ identical tokens) Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:169 — Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:169-188 | Themes/Gum.Themes.DarkPro.MonoGame/CheckBoxVisual.cs:178-198 | Themes/Gum.Themes.ForestGlade.MonoGame/CheckBoxVisual.cs:173-191 | Themes/Gum.Themes.Hazard.MonoGame/CheckBoxVisual.cs:183-203 | Themes/Gum.Themes.Meadow.MonoGame/CheckBoxVisual.cs:165-184 | Themes/Gum.Themes.Neon.MonoGame/CheckBoxVisual.cs:169-188 | Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:181-201 | Themes/Gum.Themes.Template.MonoGame/Variants/CheckBoxVisual.cs:185-205 — These 8 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 8 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 8 times.
  • Members sharing a duplicated core (8 members, 50+ identical tokens) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:97 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:97-118 | Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs:96-117 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTheme.cs:117-138 | Themes/Gum.Themes.Hazard.MonoGame/HazardTheme.cs:98-126 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTheme.cs:126-147 | Themes/Gum.Themes.Neon.MonoGame/NeonTheme.cs:116-137 | Themes/Gum.Themes.Retro95.MonoGame/Retro95Theme.cs:87-108 | Themes/Gum.Themes.Template.MonoGame/TemplateTheme.cs:125-153 — These 8 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 8 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 8 times.
  • Members sharing a duplicated core (8 members, 50+ identical tokens) Themes/Gum.Themes.Bubblegum.MonoGame/MenuVisual.cs:44 — Themes/Gum.Themes.Bubblegum.MonoGame/MenuVisual.cs:44-61 | Themes/Gum.Themes.DarkPro.MonoGame/MenuVisual.cs:66-83 | Themes/Gum.Themes.ForestGlade.MonoGame/MenuVisual.cs:68-83 | Themes/Gum.Themes.Hazard.MonoGame/MenuVisual.cs:48-65 | Themes/Gum.Themes.Meadow.MonoGame/MenuVisual.cs:62-79 | Themes/Gum.Themes.Neon.MonoGame/MenuVisual.cs:62-79 | Themes/Gum.Themes.Retro95.MonoGame/MenuVisual.cs:59-75 | Themes/Gum.Themes.Template.MonoGame/MenuVisual.cs:48-65 — These 8 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 8 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 8 times.
  • Members sharing a duplicated core (8 members, 50+ identical tokens) Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs:35 — Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs:35-52 | Themes/Gum.Themes.DarkPro.MonoGame/RadioButtonVisual.cs:38-58 | Themes/Gum.Themes.ForestGlade.MonoGame/RadioButtonVisual.cs:38-55 | Themes/Gum.Themes.Hazard.MonoGame/RadioButtonVisual.cs:43-63 | Themes/Gum.Themes.Meadow.MonoGame/RadioButtonVisual.cs:35-52 | Themes/Gum.Themes.Neon.MonoGame/RadioButtonVisual.cs:35-52 | Themes/Gum.Themes.Template.MonoGame/RadioButtonVisual.cs:41-61 | Themes/Gum.Themes.Template.MonoGame/Variants/RadioButtonVisual.cs:51-71 — These 8 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 8 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 8 times.
  • Members sharing a duplicated core (8 members, 50+ identical tokens) Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs:55 — Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs:55-78 | Themes/Gum.Themes.DarkPro.MonoGame/RadioButtonVisual.cs:61-84 | Themes/Gum.Themes.ForestGlade.MonoGame/RadioButtonVisual.cs:58-81 | Themes/Gum.Themes.Hazard.MonoGame/RadioButtonVisual.cs:66-89 | Themes/Gum.Themes.Meadow.MonoGame/RadioButtonVisual.cs:55-78 | Themes/Gum.Themes.Neon.MonoGame/RadioButtonVisual.cs:55-78 | Themes/Gum.Themes.Template.MonoGame/RadioButtonVisual.cs:64-87 | Themes/Gum.Themes.Template.MonoGame/Variants/RadioButtonVisual.cs:74-97 — These 8 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 8 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 8 times.
  • Members sharing a duplicated core (8 members, 50+ identical tokens) Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs:81 — Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs:81-100 | Themes/Gum.Themes.DarkPro.MonoGame/RadioButtonVisual.cs:87-109 | Themes/Gum.Themes.ForestGlade.MonoGame/RadioButtonVisual.cs:84-103 | Themes/Gum.Themes.Hazard.MonoGame/RadioButtonVisual.cs:92-114 | Themes/Gum.Themes.Meadow.MonoGame/RadioButtonVisual.cs:81-100 | Themes/Gum.Themes.Neon.MonoGame/RadioButtonVisual.cs:81-100 | Themes/Gum.Themes.Template.MonoGame/RadioButtonVisual.cs:90-112 | Themes/Gum.Themes.Template.MonoGame/Variants/RadioButtonVisual.cs:100-122 — These 8 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 8 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 8 times.
  • Members sharing a duplicated core (8 members, 50+ identical tokens) Themes/Gum.Themes.Bubblegum.MonoGame/SliderVisual.cs:86 — Themes/Gum.Themes.Bubblegum.MonoGame/SliderVisual.cs:86-101 | Themes/Gum.Themes.DarkPro.MonoGame/SliderVisual.cs:120-135 | Themes/Gum.Themes.ForestGlade.MonoGame/SliderVisual.cs:85-100 | Themes/Gum.Themes.Hazard.MonoGame/SliderVisual.cs:111-126 | Themes/Gum.Themes.Meadow.MonoGame/SliderVisual.cs:85-100 | Themes/Gum.Themes.Neon.MonoGame/SliderVisual.cs:86-101 | Themes/Gum.Themes.Template.MonoGame/SliderVisual.cs:109-124 | Themes/Gum.Themes.Template.MonoGame/Variants/SliderVisual.cs:115-130 — These 8 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 8 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 8 times.
  • Members sharing a duplicated core (8 members, 50+ identical tokens) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:62 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:62-79 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:140-157 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs:52-69 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:160-177 | Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:58-75 | Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:51-68 | Samples/raylib/Screens/ArcsScreen.cs:65-82 | Samples/raylib/Screens/PolygonsScreen.cs:54-71 — These 8 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 8 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 8 times.
D4 · Code Duplication · Edited copy of a member (16 corresponding lines) · ×10
  • Edited copy of a member (16 corresponding lines) Themes/Gum.Themes.Meadow.MonoGame/ListBoxItemVisual.cs:99 — Themes/Gum.Themes.Meadow.MonoGame/ListBoxItemVisual.cs:99-114 | Themes/Gum.Themes.Meadow.MonoGame/MenuItemVisual.cs:59-74 — 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) Themes/Gum.Themes.Neon.MonoGame/ListBoxItemVisual.cs:66 — Themes/Gum.Themes.Neon.MonoGame/ListBoxItemVisual.cs:66-81 | Themes/Gum.Themes.Neon.MonoGame/MenuItemVisual.cs:58-73 — 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) Themes/Gum.Themes.Bubblegum.MonoGame/ListBoxItemVisual.cs:48 — Themes/Gum.Themes.Bubblegum.MonoGame/ListBoxItemVisual.cs:48-63 | Themes/Gum.Themes.Bubblegum.MonoGame/MenuItemVisual.cs:60-75 — 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) Runtimes/SkiaGum.ShadowDusk/ShadowDuskEffectLoader.cs:69 — Runtimes/SkiaGum.ShadowDusk/ShadowDuskEffectLoader.cs:69-84 | Runtimes/RaylibGum.ShadowDusk/ShadowDuskShaderLoader.cs:94-109 — 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) Tool/Gum.Avalonia/Plugins/VariableGrid/ShaderVectorDisplay.cs:29 — Tool/Gum.Avalonia/Plugins/VariableGrid/ShaderVectorDisplay.cs:29-44 | AvaloniaDataUi/Controls/KeyChipDisplay.cs:24-45 — 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) Gum/Plugins/ImportPlugin/Views/ImportFileView.xaml.cs:25 — Gum/Plugins/ImportPlugin/Views/ImportFileView.xaml.cs:25-41 | Tool/Gum.Avalonia/Dialogs/Views/ProjectDialogViews.cs:195-210 — 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) Runtimes/RaylibGum/Renderables/NineSlice.cs:171 — Runtimes/RaylibGum/Renderables/NineSlice.cs:171-186 | Runtimes/RaylibGum/Renderables/Sprite.cs:37-52 — 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) DataUi.Core/DataTypes/MultiSelectInstanceMember.cs:41 — DataUi.Core/DataTypes/MultiSelectInstanceMember.cs:41-59 | DataUi.Core/DataTypes/MultiSelectInstanceMember.cs:123-138 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (16 corresponding lines) Tools/Gum.Presentation/CodeOutputPlugin/Manager/CodeFileDeleteService.cs:89 — Tools/Gum.Presentation/CodeOutputPlugin/Manager/CodeFileDeleteService.cs:89-110 | Tools/Gum.Presentation/CodeOutputPlugin/Manager/CodeFileDeleteService.cs:151-166 — 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) Tools/Gum.Presentation/Logic/ReferenceTypes.cs:358 — Tools/Gum.Presentation/Logic/ReferenceTypes.cs:358-373 | Tools/Gum.Presentation/Logic/ReferenceTypes.cs:380-395 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (27 corresponding lines) · ×10
  • Edited copy of a member (27 corresponding lines) Themes/Gum.Themes.Hazard.MonoGame/ScrollViewerVisual.cs:29 — Themes/Gum.Themes.Hazard.MonoGame/ScrollViewerVisual.cs:29-55 | Themes/Gum.Themes.Template.MonoGame/ScrollViewerVisual.cs:29-55 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (27 corresponding lines) Themes/Gum.Themes.Template.MonoGame/ScrollViewerVisual.cs:29 — Themes/Gum.Themes.Template.MonoGame/ScrollViewerVisual.cs:29-55 | Themes/Gum.Themes.Hazard.MonoGame/ScrollViewerVisual.cs:29-55 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (27 corresponding lines) Runtimes/SokolGum/CustomSetPropertyOnRenderable.cs:243 — Runtimes/SokolGum/CustomSetPropertyOnRenderable.cs:243-270 | Runtimes/SokolGum/CustomSetPropertyOnRenderable.cs:317-343 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (27 corresponding lines) Gum/CsvLibrary/StringFunctions.cs:221 — Gum/CsvLibrary/StringFunctions.cs:221-247 | Gum/CsvLibrary/StringFunctions.cs:250-276 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (27 corresponding lines) Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs:55 — Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs:55-90 | Themes/Gum.Themes.Neon.MonoGame/ListBoxVisual.cs:33-59 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (27 corresponding lines) Themes/Gum.Themes.Neon.MonoGame/ListBoxVisual.cs:33 — Themes/Gum.Themes.Neon.MonoGame/ListBoxVisual.cs:33-59 | Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs:55-90 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (27 corresponding lines) GumRuntime/GraphicalUiElement.DockAndAnchor.cs:48 — GumRuntime/GraphicalUiElement.DockAndAnchor.cs:48-75 | GumRuntime/GraphicalUiElement.DockAndAnchor.cs:326-352 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (27 corresponding lines) Samples/GumFormsSample/GumFormsSampleCommon/Screens/FrameworkElementExampleScreen.cs:405 — Samples/GumFormsSample/GumFormsSampleCommon/Screens/FrameworkElementExampleScreen.cs:405-436 | Samples/MonoGameGumThemesShowcase/Screens/AllControlsScreen.cs:503-529 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (27 corresponding lines) Samples/MonoGameGumThemesShowcase/Screens/AllControlsScreen.cs:503 — Samples/MonoGameGumThemesShowcase/Screens/AllControlsScreen.cs:503-529 | Samples/GumFormsSample/GumFormsSampleCommon/Screens/FrameworkElementExampleScreen.cs:405-436 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (27 corresponding lines) Samples/KniSkiaGumFromFile/KniSkiaGumFromFile/Game1.cs:298 — Samples/KniSkiaGumFromFile/KniSkiaGumFromFile/Game1.cs:298-324 | Samples/SokolGumFromFile/Program.cs:521-551 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (11 corresponding lines) · ×10
  • Edited copy of a member (11 corresponding lines) Tool/Gum.Avalonia/Dialogs/Views/FreezeDiagnosticsPromptView.cs:14 — Tool/Gum.Avalonia/Dialogs/Views/FreezeDiagnosticsPromptView.cs:14-24 | Tool/Gum.Avalonia/Plugins/PluginDialogs/GumFormsViews.cs:22-32 — 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) Tool/Gum.Avalonia/Dialogs/AvaloniaDialogService.cs:97 — Tool/Gum.Avalonia/Dialogs/AvaloniaDialogService.cs:97-108 | Tool/Gum.Avalonia/Dialogs/AvaloniaDialogService.cs:112-122 — 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) MonoGameGum/GumService.cs:408 — MonoGameGum/GumService.cs:408-418 | Runtimes/SkiaGum/GumServiceSkiaBase.cs:368-380 — 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) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:3589 — Runtimes/SkiaGum/RenderingLibrary/SystemManagers.cs:347-357 | Gum/Wireframe/CustomSetPropertyOnRenderable.cs:3589-3652 — 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) MonoGameGum/Forms/Controls/Panel.cs:97 — MonoGameGum/Forms/Controls/Panel.cs:97-107 | MonoGameGum/Forms/Window.cs:221-231 — 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) Gum/MainWindow.xaml.cs:84 — Gum/MainWindow.xaml.cs:84-94 | Tool/Gum.Avalonia/Shell/AppWideWindowGestures.cs:74-84 — 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) Tools/Gum.Presentation/ViewModels/RightClickViewModel.cs:38 — Tools/Gum.Presentation/ViewModels/RightClickViewModel.cs:38-48 | Tool/EditorTabPlugin.Core/EditingManager.cs:40-50 — 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) Gum/Controls/CornerRadiusDisplay.xaml.cs:251 — Gum/Controls/CornerRadiusDisplay.xaml.cs:251-262 | Tool/Gum.Avalonia/Plugins/VariableGrid/GumDisplays.cs:757-767 — 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) Runtimes/GumShapes/Renderables/RenderableShapeBase.cs:957 — Runtimes/GumShapes/Renderables/RenderableShapeBase.cs:957-969 | Runtimes/RaylibGum/Renderables/GradientUnitResolver.cs:47-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) Tools/Gum.ProjectServices/HeadlessErrorChecker.cs:315 — Tools/Gum.ProjectServices/HeadlessErrorChecker.cs:315-325 | Tools/Gum.Presentation/Wireframe/SelectedStateReferenceMerger.cs:178-199 — 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.
D5 · Coupling · Off the main sequence · ×10
  • Off the main sequence: SkiaGum(net8.0) Runtimes/SkiaGum/SkiaGum.csproj:1 — SkiaGum(net8.0): abstractness 0.05, instability 0.06, distance 0.89 — zone of pain — concrete and depended on by 15 project(s), so it's rigid to change.
  • Off the main sequence: RaylibGum Runtimes/RaylibGum/RaylibGum.csproj:1 — RaylibGum: abstractness 0.04, instability 0.08, distance 0.89 — zone of pain — concrete and depended on by 12 project(s), so it's rigid to change.
  • Off the main sequence: DataUi.Core DataUi.Core/DataUi.Core.csproj:1 — DataUi.Core: abstractness 0.13, instability 0.00, distance 0.87 — zone of pain — concrete and depended on by 3 project(s), so it's rigid to change.
  • Off the main sequence: MonoGameGum MonoGameGum/MonoGameGum.csproj:1 — MonoGameGum: abstractness 0.09, instability 0.06, distance 0.85 — zone of pain — concrete and depended on by 13 project(s), so it's rigid to change.
  • Off the main sequence: KernSmith.MonoGameGum Integrations/KernSmith/KernSmith.MonoGameGum/KernSmith.MonoGameGum.csproj:1 — KernSmith.MonoGameGum: abstractness 0.00, instability 0.18, distance 0.82 — zone of pain — concrete and depended on by 9 project(s), so it's rigid to change.
  • Off the main sequence: KernSmith.KniGum Integrations/KernSmith/KernSmith.KniGum/KernSmith.KniGum.csproj:1 — KernSmith.KniGum: abstractness 0.00, instability 0.18, distance 0.82 — zone of pain — concrete and depended on by 9 project(s), so it's rigid to change.
  • Off the main sequence: KernSmith.RaylibGum Integrations/KernSmith/KernSmith.RaylibGum/KernSmith.RaylibGum.csproj:1 — KernSmith.RaylibGum: abstractness 0.00, instability 0.18, distance 0.82 — zone of pain — concrete and depended on by 9 project(s), so it's rigid to change.
  • Off the main sequence: MonoGameGumShapes Runtimes/GumShapes/MonoGameGumShapes.csproj:1 — MonoGameGumShapes: abstractness 0.15, instability 0.08, distance 0.77 — zone of pain — concrete and depended on by 9 project(s), so it's rigid to change.
  • Off the main sequence: KniGumShapes Runtimes/GumShapes/KniGumShapes.csproj:1 — KniGumShapes: abstractness 0.15, instability 0.08, distance 0.77 — zone of pain — concrete and depended on by 10 project(s), so it's rigid to change.
  • Off the main sequence: SkiaGum.Standalone Runtimes/SkiaGum.Standalone/SkiaGum.Standalone.csproj:1 — SkiaGum.Standalone: abstractness 0.00, instability 0.25, distance 0.75 — zone of pain — concrete and depended on by 3 project(s), so it's rigid to change.
IC1 · Incompleteness & stubs · Empty method body · ×10
  • Empty method body — does nothing with its inputs MonoGameGum/Forms/Controls/ComboBox.cs:1608 — `HandleKeyDown` 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 MonoGameGum/Forms/Controls/ComboBox.cs:1612 — `HandleCharEntered` 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 MonoGameGum/Forms/Controls/Games/DialogBox.cs:979 — `HandleKeyDown` 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 MonoGameGum/Forms/Controls/Games/DialogBox.cs:984 — `HandleCharEntered` 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 MonoGameGum/Forms/Controls/ListBox.cs:2493 — `HandleKeyDown` 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 MonoGameGum/Forms/Controls/ListBox.cs:2497 — `HandleCharEntered` 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 MonoGameGum/Forms/Controls/Primitives/ButtonBase.cs:407 — `HandleCharEntered` 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 MonoGameGum/Forms/Controls/Slider.cs:670 — `HandleCharEntered` 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 RenderingLibrary/Graphics/Fonts/ParsedFontFile.cs:108 — `ParseBinaryText` 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 Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/SetVariableLogic.cs:643 — `ReactIfChangedMemberIsCustomFont` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it.
R4 · Test Coverage · No test reaches this file · ×10
  • No test reaches this file Tool/HtmlToGum/converter/convert.ts:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file Tool/HtmlToGum/fidelity/site-fidelity.ts:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file Tool/HtmlToGum/fidelity/canaries.ts:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file Tool/HtmlToGum/converter/regress.ts:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file Tool/HtmlToGum/converter/nineslice.ts:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file Tool/HtmlToGum/fidelity/freeze-page.ts:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file Tool/HtmlToGum/converter/responsive.ts:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file Tool/HtmlToGum/converter/snapshot-gfg.ts:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file Tool/HtmlToGum/converter/gumcli.ts:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file Tool/HtmlToGum/converter/samples-path.ts:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
X1 · Async correctness · Sync-over-async (deadlock risk) · ×10
  • Sync-over-async (deadlock risk) Runtimes/SkiaGum/Content/SkiaResourceManager.cs:169 — 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) Runtimes/GumShapes/Content/ShapeSvgLoader.cs:147 — 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) Tools/Gum.Cli/Commands/FontsCommand.cs:83 — 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) Tools/Gum.Cli/Commands/NewCommand.cs:123 — 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) Tools/Gum.Cli/Commands/NewCommand.cs:154 — 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) Tools/Gum.ProjectServices/NewProject/ExistingCodeProjectDetector.cs:56 — Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Prefer awaiting it: make the caller `async` and `await` instead. Where a synchronous entry point must stay — a public sync API you cannot break, or a process entry point that must not return until the work finishes — the block belongs in ONE documented bridge and never inside code that is already async; and where it already is that bridge, give the wait a TIMEOUT so a hung task fails the call instead of hanging the process.
  • Sync-over-async (deadlock risk) Tools/Gum.Presentation/Startup/SingleInstance/SingleInstanceGate.cs:254 — 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) Tools/Gum.Presentation/Startup/SingleInstance/SingleInstanceGate.cs:262 — 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) Gum/SvgPlugin/SkiaInGumShared/Renderables/RenderableSvg.cs:155 — 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) Tool/Gum.Avalonia/Dialogs/AvaloniaDialogService.cs:216 — 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.
D10 · Test Quality · Test cannot fail · ×9
  • Test cannot fail: CategoryColorsAtZoomLevels Tests/Gum.Avalonia.Tests/Screenshots/CategoryColorScreenshotTests.cs:35 — This test's act runs inside `Run` at Tests/Shared/FreezeGuard.cs:28, which catches every exception and neither rethrows nor verifies — so the method passes whether or not the behaviour it names actually happens. The 2 assertion(s) this test does make are inside that region, and an xUnit/NUnit assertion reports by THROWING — so they are caught and discarded too, which is why nothing else here flags this test. Assert the outcome instead of catching it: `Assert.Throws<T>(() => …)` (or the framework equivalent) when a throw is the expected result, or narrow the catch to the one exception type and assert on it. A catch-all that only logs belongs in production code, not between a test and its verdict.
  • Test cannot fail: PaletteContactSheets Tests/Gum.Avalonia.Tests/Screenshots/CategoryColorScreenshotTests.cs:160 — This test's act runs inside `Run` at Tests/Shared/FreezeGuard.cs:28, which catches every exception and neither rethrows nor verifies — so the method passes whether or not the behaviour it names actually happens. The 3 assertion(s) this test does make are inside that region, and an xUnit/NUnit assertion reports by THROWING — so they are caught and discarded too, which is why nothing else here flags this test. Assert the outcome instead of catching it: `Assert.Throws<T>(() => …)` (or the framework equivalent) when a throw is the expected result, or narrow the catch to the one exception type and assert on it. A catch-all that only logs belongs in production code, not between a test and its verdict.
  • Test cannot fail: ExportedImage Tests/Gum.Avalonia.Tests/Screenshots/ExportAsImageScreenshotTests.cs:17 — This test's act runs inside `Run` at Tests/Shared/FreezeGuard.cs:28, which catches every exception and neither rethrows nor verifies — so the method passes whether or not the behaviour it names actually happens. The 2 assertion(s) this test does make are inside that region, and an xUnit/NUnit assertion reports by THROWING — so they are caught and discarded too, which is why nothing else here flags this test. Assert the outcome instead of catching it: `Assert.Throws<T>(() => …)` (or the framework equivalent) when a throw is the expected result, or narrow the catch to the one exception type and assert on it. A catch-all that only logs belongs in production code, not between a test and its verdict.
  • Test cannot fail: SelectedPolygon Tests/Gum.Avalonia.Tests/Screenshots/PolygonScaleHandlesScreenshotTests.cs:15 — This test's act runs inside `Run` at Tests/Shared/FreezeGuard.cs:28, which catches every exception and neither rethrows nor verifies — so the method passes whether or not the behaviour it names actually happens. The 2 assertion(s) this test does make are inside that region, and an xUnit/NUnit assertion reports by THROWING — so they are caught and discarded too, which is why nothing else here flags this test. Assert the outcome instead of catching it: `Assert.Throws<T>(() => …)` (or the framework equivalent) when a throw is the expected result, or narrow the catch to the one exception type and assert on it. A catch-all that only logs belongs in production code, not between a test and its verdict.
  • Test cannot fail: SpriteWithNoTexture Tests/Gum.Avalonia.Tests/TextureCoordinates/TextureCoordinateScreenshotTests.cs:10 — This test's act runs inside `Run` at Tests/Shared/FreezeGuard.cs:28, which catches every exception and neither rethrows nor verifies — so the method passes whether or not the behaviour it names actually happens. The 2 assertion(s) this test does make are inside that region, and an xUnit/NUnit assertion reports by THROWING — so they are caught and discarded too, which is why nothing else here flags this test. Assert the outcome instead of catching it: `Assert.Throws<T>(() => …)` (or the framework equivalent) when a throw is the expected result, or narrow the catch to the one exception type and assert on it. A catch-all that only logs belongs in production code, not between a test and its verdict.
  • Test cannot fail: EmptyCase Tests/Gum.Avalonia.Tests/TextureCoordinates/TextureRegionsScreenshotTests.cs:22 — This test's act runs inside `Run` at Tests/Shared/FreezeGuard.cs:28, which catches every exception and neither rethrows nor verifies — so the method passes whether or not the behaviour it names actually happens. The 2 assertion(s) this test does make are inside that region, and an xUnit/NUnit assertion reports by THROWING — so they are caught and discarded too, which is why nothing else here flags this test. Assert the outcome instead of catching it: `Assert.Throws<T>(() => …)` (or the framework equivalent) when a throw is the expected result, or narrow the catch to the one exception type and assert on it. A catch-all that only logs belongs in production code, not between a test and its verdict.
  • Test cannot fail: FewRegions Tests/Gum.Avalonia.Tests/TextureCoordinates/TextureRegionsScreenshotTests.cs:31 — This test's act runs inside `Run` at Tests/Shared/FreezeGuard.cs:28, which catches every exception and neither rethrows nor verifies — so the method passes whether or not the behaviour it names actually happens. The 2 assertion(s) this test does make are inside that region, and an xUnit/NUnit assertion reports by THROWING — so they are caught and discarded too, which is why nothing else here flags this test. Assert the outcome instead of catching it: `Assert.Throws<T>(() => …)` (or the framework equivalent) when a throw is the expected result, or narrow the catch to the one exception type and assert on it. A catch-all that only logs belongs in production code, not between a test and its verdict.
  • Test cannot fail: PixelSheet Tests/Gum.Avalonia.Tests/TextureCoordinates/TextureRegionsScreenshotTests.cs:44 — This test's act runs inside `Run` at Tests/Shared/FreezeGuard.cs:28, which catches every exception and neither rethrows nor verifies — so the method passes whether or not the behaviour it names actually happens. The 2 assertion(s) this test does make are inside that region, and an xUnit/NUnit assertion reports by THROWING — so they are caught and discarded too, which is why nothing else here flags this test. Assert the outcome instead of catching it: `Assert.Throws<T>(() => …)` (or the framework equivalent) when a throw is the expected result, or narrow the catch to the one exception type and assert on it. A catch-all that only logs belongs in production code, not between a test and its verdict.
  • Test cannot fail: SixtyRegions Tests/Gum.Avalonia.Tests/TextureCoordinates/TextureRegionsScreenshotTests.cs:65 — This test's act runs inside `Run` at Tests/Shared/FreezeGuard.cs:28, which catches every exception and neither rethrows nor verifies — so the method passes whether or not the behaviour it names actually happens. The 2 assertion(s) this test does make are inside that region, and an xUnit/NUnit assertion reports by THROWING — so they are caught and discarded too, which is why nothing else here flags this test. Assert the outcome instead of catching it: `Assert.Throws<T>(() => …)` (or the framework equivalent) when a throw is the expected result, or narrow the catch to the one exception type and assert on it. A catch-all that only logs belongs in production code, not between a test and its verdict.
D35 · Change Coupling · Change coupling · ×9
  • Change coupling: ErrorDocsRegistry.cs ↔ HeadlessErrorChecker.cs Tools/Gum.ProjectServices/ErrorDocsRegistry.cs:1 — `Tools/Gum.ProjectServices/ErrorDocsRegistry.cs` and `Tools/Gum.ProjectServices/HeadlessErrorChecker.cs` change together 85% of the time (17 of the 20 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 17 shared commits counted here, the most recent 3 are `8e944ede` Checker problems get a code and typed Details (#7966) (#7985); `bf8be0f3` Remove GUM0029 (variable the instance's type does not have) from gumc…; `5256e88a` gumcli check: give an unknown BaseType the code GUM0030 (#7059) (#7548) — run `git show` on any of them.
  • Change coupling: HotkeyManager.cs ↔ HotkeyViewModel.cs Tools/Gum.Presentation/Managers/HotkeyManager.cs:1 — `Tools/Gum.Presentation/Managers/HotkeyManager.cs` and `Tools/Gum.Presentation/Plugins/InternalPlugins/Hotkey/ViewModels/HotkeyViewModel.cs` change together 83% of the time (10 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). 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 10 shared commits counted here, the most recent 3 are `844a5b0b` Focus the canvas on the selection with F, View menu or tree double-cl…; `c23693d9` macOS Backspace deletes wherever Delete does (#5552) (#5561); `0cdc57e1` Fix #4912: Ctrl+/ opens Hotkeys tab; View Hotkeys menu selects it (#4… — run `git show` on any of them.
  • Change coupling: UndoManager.cs ↔ UndosViewModel.cs Tools/Gum.Presentation/Undo/UndoManager.cs:1 — `Tools/Gum.Presentation/Undo/UndoManager.cs` and `Tools/Gum.Presentation/Undos/UndosViewModel.cs` change together 75% of the time (15 of the 20 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 15 shared commits counted here, the most recent 3 are `fc8e2cdb` 510 undoredo history should be supported for behaviors (#2230) (at that commit the files were still `Gum/Undo/UndoManager.cs` and `Gum/Plugins/InternalPlugins/Undos/UndosViewModel.cs`); `aeace4ff` remove UndoManager.Self (at that commit the files were still `Gum/Undo/UndoManager.cs` and `Gum/Plugins/InternalPlugins/Undos/UndosViewModel.cs`); `0d84890f` More improvement fixes for history (at that commit the files were still `Gum/Undo/UndoManager.cs` and `Gum/Plugins/InternalPlugins/Undos/UndosViewModel.cs`) — run `git show` on any of them.
  • Change coupling: DeleteVariableService.cs ↔ EditVariableService.cs Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/DeleteVariableService.cs:1 — `Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/DeleteVariableService.cs` and `Tools/Gum.Presentation/Services/EditVariableService.cs` change together 60% of the time (6 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 6 shared commits counted here, the most recent 3 are `5e70ced3` Move MainControlViewModel (Variables tab) into headless Gum.Presentat… (at that commit the files were still `Gum/Plugins/InternalPlugins/VariableGrid/DeleteVariableService.cs` and `Gum/Services/EditVariableService.cs`); `f8a33499` 455 UI low behavior categories rename oddities (#2248) (at that commit the files were still `Gum/Plugins/InternalPlugins/VariableGrid/DeleteVariableService.cs` and `Gum/Services/EditVariableService.cs`); `c05c080b` migrate RenameLogic from dirty container to clean container (#891) (at that commit the files were still `Gum/Plugins/InternalPlugins/VariableGrid/DeleteVariableService.cs` and `Gum/Services/EditVariableService.cs`) — run `git show` on any of them.
  • Change coupling: DefaultStateManager.cs ↔ RenderableSkiaObject.cs Gum/SvgPlugin/Managers/DefaultStateManager.cs:1 — `Gum/SvgPlugin/Managers/DefaultStateManager.cs` and `Gum/SvgPlugin/SkiaInGumShared/Renderables/RenderableSkiaObject.cs` change together 56% of the time (18 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 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 18 shared commits counted here, the most recent 3 are `94864733` Skia line (#2402); `18bed571` Added skia arc dropshadow support (#1497) (at that commit the files were still `SvgPlugin/Managers/DefaultStateManager.cs` and `SvgPlugin/SkiaInGumShared/Renderables/RenderableSkiaObject.cs`); `056574ae` Added Container.Blend (at that commit the files were still `SvgPlugin/Managers/DefaultStateManager.cs` and `SvgPlugin/SkiaInGumShared/Renderables/RenderableSkiaObject.cs`) — run `git show` on any of them.
  • Change coupling: ImportFromGumxViewModel.cs ↔ GumxImportService.cs Tools/Gum.Presentation/ImportFromGumx/ImportFromGumxViewModel.cs:1 — `Tools/Gum.Presentation/ImportFromGumx/ImportFromGumxViewModel.cs` and `Tools/Gum.Presentation/ImportFromGumx/Services/GumxImportService.cs` change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). 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 6 shared commits counted here, the most recent 3 are `1379c5a9` Report every item an import cannot bring over (#6854) (#6874); `b08931d1` Reject imports from a newer-version project (Import from .gumx, Add F…; `24ab97e2` Importing a Standard replaces its animations whole, and the dialog sa… — run `git show` on any of them.
  • Change coupling: FileWatchLogic.cs ↔ FileWatchManager.cs Tools/Gum.Presentation/FileWatchPlugin/FileWatchLogic.cs:1 — `Tools/Gum.Presentation/FileWatchPlugin/FileWatchLogic.cs` and `Tools/Gum.Presentation/FileWatchPlugin/FileWatchManager.cs` change together 54% of the time (13 of the 24 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 13 shared commits counted here, the most recent 3 are `effb1e61` Reload Gum files saved by a macOS atomic swap (Created only) (#6864); `18fda1f3` Ban FilePath.Standardized in tool code so file I/O can't go through a…; `ee0321e0` Drop FileWatchIgnoreList's unused count-based ignore (#5281) (#5292) — run `git show` on any of them.
  • Change coupling: PreviewLauncher.cs ↔ Game1.cs Tool/EditorTabPlugin.Core/Services/PreviewLauncher.cs:1 — `Tool/EditorTabPlugin.Core/Services/PreviewLauncher.cs` and `Tool/GumPreview/Game1.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 `e72787c5` Debug builds always write the diagnostic log to a fixed path (#7536); `1c6903f3` GumPreview: opt-in --log diagnostic file log (#7493); `cace25b5` Preview follows a rename of the element it shows (#7185) — run `git show` on any of them.
  • Change coupling: UndoManager.cs ↔ UndoPlugin.cs Tools/Gum.Presentation/Undo/UndoManager.cs:1 — `Tools/Gum.Presentation/Undo/UndoManager.cs` and `Tools/Gum.Presentation/Undo/UndoPlugin.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 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 5 shared commits counted here, the most recent 3 are `fc8e2cdb` 510 undoredo history should be supported for behaviors (#2230) (at that commit the files were still `Gum/Undo/UndoManager.cs` and `Gum/Undo/UndoPlugin.cs`); `aeace4ff` remove UndoManager.Self (at that commit the files were still `Gum/Undo/UndoManager.cs` and `Gum/Undo/UndoPlugin.cs`); `46fdf81a` Selected state now remains selected on undo (at that commit the files were still `Gum/Undo/UndoManager.cs` and `Gum/Undo/UndoPlugin.cs`) — run `git show` on any of them.
D4 · Code Duplication · Edited copy of a member (6 corresponding lines) · ×9
  • Edited copy of a member (6 corresponding lines) Tool/Gum.Avalonia/Plugins/EditorTab/WireframeCanvasControl.cs:99 — Tool/Gum.Avalonia/Plugins/EditorTab/WireframeCanvasControl.cs:99-104 | Tool/Gum.Avalonia/Plugins/TextureCoordinates/TextureCoordinateView.cs:202-207 — 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) Gum/ViewModels/MainPanelViewModel.cs:143 — Gum/ViewModels/MainPanelViewModel.cs:143-148 | Tool/Gum.Avalonia/Shell/AvaloniaTabManager.cs:130-135 — 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) Tool/Gum.Avalonia/Plugins/VariableGrid/GumDisplays.cs:69 — Tool/Gum.Avalonia/Plugins/VariableGrid/GumDisplays.cs:69-74 | Tool/Gum.Avalonia/Themes/GumFluentIcons.cs:22-28 — 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) Integrations/KernSmith/KernSmith.MonoGameGum/KernSmithFontCreator.cs:102 — Integrations/KernSmith/KernSmith.MonoGameGum/KernSmithFontCreator.cs:102-107 | Integrations/KernSmith/KernSmith.RaylibGum/KernSmithRaylibFontCreator.cs:119-124 — 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) Runtimes/SkiaGum/GueDeriving/ColoredCircleRuntime.cs:24 — Runtimes/SkiaGum/GueDeriving/ColoredCircleRuntime.cs:24-29 | Runtimes/GumShapes/GueDeriving/ColoredCircleRuntime.cs:30-35 — 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Game1.cs:121 — Samples/MonoGameGumInCode/MonoGameGumInCode/Game1.cs:121-126 | Samples/KniGumInCode/KniGumInCodeCommon/KniGumInCodeGame.cs:302-307 — 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) Tools/Gum.ProjectServices/StandardComparer.cs:197 — Tools/Gum.ProjectServices/StandardComparer.cs:197-204 | Tools/Gum.Presentation/ImportFromGumx/Services/GumxImportService.cs:883-888 — 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) Samples/GameUiSamples/Components/HollowKnightComponents/Currency.cs:61 — Samples/GameUiSamples/Components/HollowKnightComponents/Currency.cs:61-66 | Samples/GameUiSamplesSkia/Components/HollowKnightComponents/Currency.cs:61-66 — 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) Tools/Gum.Presentation/CodeOutputPlugin/CodeFileLocationChange.cs:35 — Tools/Gum.Presentation/CodeOutputPlugin/CodeFileLocationChange.cs:35-42 | Tools/Gum.Presentation/CodeOutputPlugin/CustomCodeHeaderChange.cs:29-34 — 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 (16 lines × 2) · ×9
  • Duplicated block (16 lines × 2) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:3438 — Gum/Wireframe/CustomSetPropertyOnRenderable.cs:3438-3453 | Gum/Wireframe/CustomSetPropertyOnRenderable.cs:3500-3515 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (16 lines × 2) Runtimes/RaylibGum/Renderables/NineSlice.cs:76 — Runtimes/RaylibGum/Renderables/NineSlice.cs:76-91 | Runtimes/SkiaGum/Renderables/NineSlice.cs:76-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 `Runtimes/RaylibGum/Renderables/NineSlice.cs:76` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) Runtimes/RaylibGum/Renderables/LineCircle.cs:328 — Runtimes/RaylibGum/Renderables/LineCircle.cs:328-343 | Runtimes/RaylibGum/Renderables/LineRectangle.cs:295-310 — 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 `Runtimes/RaylibGum/Renderables/LineCircle.cs:328` 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) Integrations/KernSmith/KernSmith.GumCommon/GumFontGenerator.cs:397 — Integrations/KernSmith/KernSmith.GumCommon/GumFontGenerator.cs:397-412 | RenderingLibrary/Graphics/Fonts/BmfcSave.cs:448-463 — 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 `Integrations/KernSmith/KernSmith.GumCommon/GumFontGenerator.cs:397` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (16 lines × 2) DataUi.Core/LateBinder.cs:67 — DataUi.Core/LateBinder.cs:67-82 | Tools/Gum.Presentation/Reflection/LateBinder.cs:40-55 — before extracting anything, compare `DataUi.Core/LateBinder.cs` and `Tools/Gum.Presentation/Reflection/LateBinder.cs` as WHOLE FILES: this scan already matched 12 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. Read the line range as the matched WINDOW rather than a finished unit: at `DataUi.Core/LateBinder.cs:67` 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) Samples/GameUiSamples/Screens/FrbClicker/FrbClickerCodeOnly.cs:25 — Samples/GameUiSamples/Screens/FrbClicker/FrbClickerCodeOnly.cs:25-40 | Samples/GameUiSamplesSkia/Screens/FrbClicker/FrbClickerCodeOnly.cs:25-40 — before extracting anything, compare `Samples/GameUiSamples/Screens/FrbClicker/FrbClickerCodeOnly.cs` and `Samples/GameUiSamplesSkia/Screens/FrbClicker/FrbClickerCodeOnly.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 159 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) Samples/GameUiSamples/Screens/FrbClicker/FrbScreenViewModel.cs:140 — Samples/GameUiSamples/Screens/FrbClicker/FrbScreenViewModel.cs:140-155 | Samples/GameUiSamplesSkia/Screens/FrbClicker/FrbScreenViewModel.cs:140-155 — before extracting anything, compare `Samples/GameUiSamples/Screens/FrbClicker/FrbScreenViewModel.cs` and `Samples/GameUiSamplesSkia/Screens/FrbClicker/FrbScreenViewModel.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 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) Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Game1.cs:67 — Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Game1.cs:67-82 | Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Game1.cs:76-91 — before extracting anything, compare `Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Game1.cs` and `Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Game1.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetScreen.cs:71 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetScreen.cs:71-86 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetScreen.cs:194-209 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. 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 (31 corresponding lines) · ×8
  • Edited copy of a member (31 corresponding lines) Themes/Gum.Themes.Neon.MonoGame/ButtonVisual.cs:151 — Themes/Gum.Themes.Neon.MonoGame/ButtonVisual.cs:151-181 | Themes/Gum.Themes.Neon.MonoGame/ComboBoxVisual.cs:166-197 — These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (31 corresponding lines) Themes/Gum.Themes.Bubblegum.MonoGame/ButtonVisual.cs:101 — Themes/Gum.Themes.Bubblegum.MonoGame/ButtonVisual.cs:101-147 | Themes/Gum.Themes.Meadow.MonoGame/ButtonVisual.cs:122-152 — These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (31 corresponding lines) MonoGameGum/GueDeriving/CircleRuntime.cs:1379 — MonoGameGum/GueDeriving/CircleRuntime.cs:1379-1423 | MonoGameGum/GueDeriving/RectangleRuntime.cs:1706-1736 — These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (31 corresponding lines) WpfDataUi/Controls/ListBoxDisplay.xaml.cs:80 — WpfDataUi/Controls/ListBoxDisplay.xaml.cs:80-118 | WpfDataUi/Controls/StringListTextBoxDisplay.xaml.cs:60-90 — These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (31 corresponding lines) Themes/Gum.Themes.Neon.MonoGame/ButtonVisual.cs:49 — Themes/Gum.Themes.Neon.MonoGame/ButtonVisual.cs:49-83 | Themes/Gum.Themes.Neon.MonoGame/ToggleButtonVisual.cs:43-73 — These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (31 corresponding lines) Runtimes/SkiaGum/GueDeriving/ArcRuntime.cs:1040 — Runtimes/SkiaGum/GueDeriving/ArcRuntime.cs:1040-1089 | Runtimes/SkiaGum/GueDeriving/ColoredCircleRuntime.cs:41-71 — These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (31 corresponding lines) Tools/Gum.Presentation/Reflection/LateBinder.cs:358 — Tools/Gum.Presentation/Reflection/LateBinder.cs:358-388 | DataUi.Core/LateBinder.cs:484-528 — These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (31 corresponding lines) Tools/Gum.Presentation/Dialogs/AddComponentDialogViewModel.cs:35 — Tools/Gum.Presentation/Dialogs/AddComponentDialogViewModel.cs:35-65 | Tools/Gum.Presentation/Dialogs/AddScreenDialogViewModel.cs:42-81 — These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (26 corresponding lines) · ×8
  • Edited copy of a member (26 corresponding lines) Themes/Gum.Themes.Bubblegum.MonoGame/SliderThumbVisual.cs:82 — Themes/Gum.Themes.Bubblegum.MonoGame/SliderThumbVisual.cs:82-107 | Themes/Gum.Themes.Neon.MonoGame/SliderThumbVisual.cs:117-145 — 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) Tool/EditorTabPlugin.Core/Services/BackgroundManager.cs:44 — Tool/EditorTabPlugin.Core/Services/BackgroundManager.cs:44-69 | Tool/TextureCoordinatePlugin.Core/Logic/BackgroundManager.cs:46-72 — 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) MonoGameGum/GumService.XnaLike.cs:652 — MonoGameGum/GumService.XnaLike.cs:652-677 | Runtimes/RaylibGum/GumService.Raylib.cs:269-301 — 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) DataUi.Core/Controls/TextBoxDisplayLogic.cs:716 — DataUi.Core/Controls/TextBoxDisplayLogic.cs:716-741 | DataUi.Core/Controls/TextBoxDisplayLogic.cs:744-770 — 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) Gum/Controls/GumTreeView.DragDrop.cs:79 — Gum/Controls/GumTreeView.DragDrop.cs:79-104 | Tool/Gum.Avalonia/Plugins/TreeView/AvaloniaGumTreeView.cs:616-641 — 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) WpfDataUi/Controls/InlineChannelsDisplay.xaml.cs:157 — WpfDataUi/Controls/InlineChannelsDisplay.xaml.cs:157-182 | Gum/Controls/CornerRadiusDisplay.xaml.cs:136-162 — 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) Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Screens/DrawStringScreen.cs:31 — Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Screens/DrawStringScreen.cs:31-56 | Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Screens/DrawStringScreen.cs:21-49 — 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) Tools/Gum.Presentation/Logic/ReferenceFinder.cs:21 — Tools/Gum.Presentation/Logic/ReferenceFinder.cs:21-46 | Tools/Gum.Presentation/Logic/ReferenceFinder.cs:356-386 — 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 (19 corresponding lines) · ×8
  • Edited copy of a member (19 corresponding lines) Gum/Plugins/InternalPlugins/VariableGrid/WpfVariableGridHead.cs:29 — Gum/Plugins/InternalPlugins/VariableGrid/WpfVariableGridHead.cs:29-47 | Tool/Gum.Avalonia/Plugins/VariableGrid/AvaloniaVariableGridHead.cs:55-76 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (19 corresponding lines) Gum/Plugins/InternalPlugins/TreeView/StandardsPaletteView.cs:343 — Gum/Plugins/InternalPlugins/TreeView/StandardsPaletteView.cs:343-367 | Tool/Gum.Avalonia/Plugins/TreeView/AvaloniaStandardsPalette.cs:238-256 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (19 corresponding lines) Themes/Gum.Themes.Meadow.MonoGame/ListBoxItemVisual.cs:53 — Themes/Gum.Themes.Meadow.MonoGame/ListBoxItemVisual.cs:53-71 | Themes/Gum.Themes.Meadow.MonoGame/ListBoxItemVisual.cs:74-96 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (19 corresponding lines) GumRuntime/GraphicalUiElement.Suspension.cs:76 — GumRuntime/GraphicalUiElement.Suspension.cs:76-99 | GumRuntime/GraphicalUiElement.Suspension.cs:288-306 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (19 corresponding lines) DataUi.Core/DataUiGridModel.cs:244 — DataUi.Core/DataUiGridModel.cs:244-262 | DataUi.Core/DataUiGridModel.cs:433-452 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (19 corresponding lines) WpfDataUi/Controls/ToggleButtonOptionDisplay.xaml.cs:406 — WpfDataUi/Controls/ToggleButtonOptionDisplay.xaml.cs:406-424 | AvaloniaDataUi/Controls/CompositeDisplays.cs:435-456 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (19 corresponding lines) REDACTED:62 — REDACTED:62-82 | REDACTED:112-130 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (19 corresponding lines) Samples/MonoGameGumInCode/MonoGameGumInCode/Game1.cs:97 — Samples/MonoGameGumInCode/MonoGameGumInCode/Game1.cs:97-118 | Samples/KniSkiaGumInCode/KniSkiaGumInCode/Game1.cs:77-95 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (17 corresponding lines) · ×8
  • Edited copy of a member (17 corresponding lines) Tools/Gum.Presentation/Reflection/LateBinder.cs:478 — Tools/Gum.Presentation/Reflection/LateBinder.cs:478-494 | DataUi.Core/LateBinder.cs:612-628 — 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) GumDataTypes/Behaviors/BehaviorSave.cs:91 — GumDataTypes/Behaviors/BehaviorSave.cs:91-107 | GumDataTypes/ElementSave.cs:225-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.
  • Edited copy of a member (17 corresponding lines) Gum/DataTypes/StateSaveExtensionMethods.cs:1229 — Gum/DataTypes/StateSaveExtensionMethods.cs:1229-1245 | Gum/DataTypes/StateSaveExtensionMethods.cs:1248-1264 — 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) Themes/Gum.Themes.Neon.MonoGame/ScrollViewerVisual.cs:34 — Themes/Gum.Themes.Neon.MonoGame/ScrollViewerVisual.cs:34-57 | Themes/Gum.Themes.Meadow.MonoGame/ScrollViewerVisual.cs:33-49 — 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) GumRuntime/GraphicalUiElement.cs:572 — GumRuntime/GraphicalUiElement.cs:572-591 | GumRuntime/ElementSaveExtensions.GumRuntime.cs:2483-2499 — 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) MonoGameGum/GueDeriving/PolygonRuntime.cs:380 — MonoGameGum/GueDeriving/PolygonRuntime.cs:380-396 | Runtimes/SkiaGum/GueDeriving/ArcRuntime.cs:688-709 — 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) Tools/Gum.ProjectServices/CodeGeneration/ICodeFileWriter.cs:34 — Tools/Gum.ProjectServices/CodeGeneration/ICodeFileWriter.cs:34-50 | Tools/Gum.Presentation/CodeOutputPlugin/Manager/RetryingCodeFileWriter.cs:24-44 — 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) Tools/Gum.Presentation/Logic/InheritanceLogic.cs:71 — Tools/Gum.Presentation/Logic/InheritanceLogic.cs:71-88 | Tools/Gum.Presentation/Logic/InheritanceLogic.cs:119-135 — 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 (9 corresponding lines) · ×8
  • Edited copy of a member (9 corresponding lines) Tool/Gum.Avalonia/Dialogs/Views/NewProjectDialogView.cs:283 — Tool/Gum.Avalonia/Dialogs/Views/NewProjectDialogView.cs:283-291 | Tool/Gum.Avalonia/Dialogs/Views/NewProjectDialogView.cs:295-303 — 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) Themes/Gum.Themes.Template.MonoGame/TemplateTextInputDecoration.cs:82 — Themes/Gum.Themes.Template.MonoGame/TemplateTextInputDecoration.cs:82-90 | Themes/Gum.Themes.Template.MonoGame/Variants/TemplateTextInputDecoration.cs:83-91 — 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) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:56 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:56-64 | Themes/Gum.Themes.Template.MonoGame/TemplateShapes.cs:56-64 — 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) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:114 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:114-122 | Themes/Gum.Themes.Template.MonoGame/TemplateShapes.cs:115-123 — 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) RenderingLibrary/IGumService.cs:227 — RenderingLibrary/IGumService.cs:227-235 | Runtimes/SkiaGum/GumServiceSkiaBase.cs:284-292 — 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) MonoGameGum/Forms/Controls/ComboBox.cs:1618 — MonoGameGum/Forms/Controls/ComboBox.cs:1618-1626 | MonoGameGum/Forms/Controls/Primitives/ButtonBase.cs:380-391 — 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) Tool/TreeViewPlugin.Core/ElementTreeViewManager.cs:1530 — Tool/TreeViewPlugin.Core/ElementTreeViewManager.cs:1530-1538 | Tool/TreeViewPlugin.Core/TreeSelection/TreeSelectionModel.cs:519-527 — 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) Samples/GameUiSamples/Screens/FrbClicker/FrbScreenViewModel.cs:50 — Samples/GameUiSamples/Screens/FrbClicker/FrbScreenViewModel.cs:50-58 | Samples/GameUiSamplesSkia/Screens/FrbClicker/FrbScreenViewModel.cs:50-58 — 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 (5 corresponding lines) · ×8
  • Edited copy of a member (5 corresponding lines) Themes/Gum.Themes.Bubblegum.MonoGame/ComboBoxVisual.cs:143 — Themes/Gum.Themes.Bubblegum.MonoGame/ComboBoxVisual.cs:143-149 | Themes/Gum.Themes.Bubblegum.MonoGame/ListBoxVisual.cs:98-102 — 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) Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs:213 — Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs:213-219 | Themes/Gum.Themes.DarkPro.MonoGame/ListBoxVisual.cs:164-168 — 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) Themes/Gum.Themes.Hazard.MonoGame/ComboBoxVisual.cs:148 — Themes/Gum.Themes.Hazard.MonoGame/ComboBoxVisual.cs:148-154 | Themes/Gum.Themes.Hazard.MonoGame/ListBoxVisual.cs:96-100 — 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) Themes/Gum.Themes.Neon.MonoGame/ComboBoxVisual.cs:200 — Themes/Gum.Themes.Neon.MonoGame/ComboBoxVisual.cs:200-206 | Themes/Gum.Themes.Neon.MonoGame/ListBoxVisual.cs:152-156 — 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) WpfDataUi/Converters/AddDoubleConverter.cs:10 — WpfDataUi/Converters/AddDoubleConverter.cs:10-18 | Gum/Controls/MultiplyConverter.cs:10-14 — 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) Runtimes/RaylibGum/Renderables/Sprite.cs:509 — Runtimes/RaylibGum/Renderables/Sprite.cs:509-513 | Runtimes/SokolGum/Renderables/Sprite.cs:60-64 — 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) Runtimes/SkiaGum/Renderables/NineSlice.cs:165 — Runtimes/SkiaGum/Renderables/NineSlice.cs:165-169 | Runtimes/SkiaGum/Renderables/Sprite.cs:33-37 — 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) Runtimes/RaylibGum/Renderables/LineCircle.cs:231 — Runtimes/RaylibGum/Renderables/LineCircle.cs:231-235 | Runtimes/RaylibGum/Renderables/LineRectangle.cs:223-227 — 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 (20 lines × 2) · ×8
  • Duplicated block (20 lines × 2) GumRuntime/GraphicalUiElement.Dimensions.cs:389 — GumRuntime/GraphicalUiElement.Dimensions.cs:389-408 | GumRuntime/GraphicalUiElement.Dimensions.cs:488-507 — 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 `GumRuntime/GraphicalUiElement.Dimensions.cs:389` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (20 lines × 2) Tool/EditorTabPlugin.Core/EditorTabPluginBase.cs:1432 — Tool/EditorTabPlugin.Core/EditorTabPluginBase.cs:1432-1451 | Tool/EditorTabPlugin.Core/EditorTabPluginBase.cs:1536-1555 — 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 `Tool/EditorTabPlugin.Core/EditorTabPluginBase.cs:1432` 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 (20 lines × 2) Gum/CsvLibrary/StringFunctions.cs:385 — Gum/CsvLibrary/StringFunctions.cs:385-404 | ToolsUtilities/StringFunctions.cs:383-402 — before extracting anything, compare `Gum/CsvLibrary/StringFunctions.cs` and `ToolsUtilities/StringFunctions.cs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 256 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) Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:182 — Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:182-201 | Themes/Gum.Themes.Template.MonoGame/Variants/CheckBoxVisual.cs:186-205 — before extracting anything, compare `Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs` and `Themes/Gum.Themes.Template.MonoGame/Variants/CheckBoxVisual.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 304 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) Themes/Gum.Themes.Template.MonoGame/TemplateTextInputDecoration.cs:42 — Themes/Gum.Themes.Template.MonoGame/TemplateTextInputDecoration.cs:42-61 | Themes/Gum.Themes.Template.MonoGame/Variants/TemplateTextInputDecoration.cs:43-62 — before extracting anything, compare `Themes/Gum.Themes.Template.MonoGame/TemplateTextInputDecoration.cs` and `Themes/Gum.Themes.Template.MonoGame/Variants/TemplateTextInputDecoration.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.Template.MonoGame/TemplateTextInputDecoration.cs:42` 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 (20 lines × 2) Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:199 — Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:199-218 | Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs:200-219 — before extracting anything, compare `Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs` and `Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 335 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 `Samples/GameUiSamples/Screens/HyTaleInventoryScreen.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.
  • Duplicated block (20 lines × 2) Samples/MonoGameGumThemesShowcase/Game1.cs:320 — Samples/MonoGameGumThemesShowcase/Game1.cs:320-339 | Samples/RaylibGumThemesShowcase/Program.cs:259-278 — before extracting anything, compare `Samples/MonoGameGumThemesShowcase/Game1.cs` and `Samples/RaylibGumThemesShowcase/Program.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 201 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 `Samples/MonoGameGumThemesShowcase/Game1.cs:320` 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 (20 lines × 2) Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:338 — Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:338-357 | Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs:339-358 — before extracting anything, compare `Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs` and `Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 335 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 (23 lines × 2) · ×8
  • Duplicated block (23 lines × 2) Tool/EditorTabPlugin.Core/EditorTabPluginBase.cs:1460 — Tool/EditorTabPlugin.Core/EditorTabPluginBase.cs:1460-1482 | Tool/EditorTabPlugin.Core/EditorTabPluginBase.cs:1564-1586 — 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 `Tool/EditorTabPlugin.Core/EditorTabPluginBase.cs:1460` 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 (23 lines × 2) Themes/Gum.Themes.Template.MonoGame/RadioButtonVisual.cs:65 — Themes/Gum.Themes.Template.MonoGame/RadioButtonVisual.cs:65-87 | Themes/Gum.Themes.Template.MonoGame/Variants/RadioButtonVisual.cs:75-97 — before extracting anything, compare `Themes/Gum.Themes.Template.MonoGame/RadioButtonVisual.cs` and `Themes/Gum.Themes.Template.MonoGame/Variants/RadioButtonVisual.cs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 205 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) Gum/Managers/StandardElementsManager.cs:408 — Gum/Managers/StandardElementsManager.cs:408-443 | Gum/Managers/StandardElementsManager.cs:462-484 — 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 `Gum/Managers/StandardElementsManager.cs:408` 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 (23 lines × 2) MonoGameGum/GueDeriving/TextRuntime.cs:1437 — MonoGameGum/GueDeriving/TextRuntime.cs:1437-1459 | MonoGameGum/GueDeriving/TextRuntime.cs:1516-1538 — 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 `MonoGameGum/GueDeriving/TextRuntime.cs:1437` 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. Note first that the copies are not typed on the same thing: the declarations holding them bind `font` to `BitmapFont` in one and `ref Font` 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) Themes/Gum.Themes.Hazard.MonoGame/HazardStyling.cs:91 — Themes/Gum.Themes.Hazard.MonoGame/HazardStyling.cs:91-113 | Themes/Gum.Themes.Template.MonoGame/TemplateStyling.cs:118-140 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Themes/Gum.Themes.Hazard.MonoGame/HazardStyling.cs:117` calls `Color` and `Themes/Gum.Themes.Template.MonoGame/TemplateStyling.cs:147` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (23 lines × 2) Samples/GameUiSamples/Screens/StardewInventoryScreen.cs:149 — Samples/GameUiSamples/Screens/StardewInventoryScreen.cs:149-171 | Samples/GameUiSamplesSkia/Screens/StardewInventoryScreen.cs:149-171 — before extracting anything, compare `Samples/GameUiSamples/Screens/StardewInventoryScreen.cs` and `Samples/GameUiSamplesSkia/Screens/StardewInventoryScreen.cs` as WHOLE FILES: this scan already matched 9 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) Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Screens/ParentChildScreen.cs:24 — Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Screens/ParentChildScreen.cs:24-46 | Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Screens/ParentChildScreen.cs:24-46 — 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 `Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Screens/ParentChildScreen.cs:24` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (23 lines × 2) Samples/GameUiSamples/Data/HyTaleItem.cs:21 — Samples/GameUiSamples/Data/HyTaleItem.cs:21-43 | Samples/GameUiSamplesSkia/Data/HyTaleItem.cs:21-43 — before extracting anything, compare `Samples/GameUiSamples/Data/HyTaleItem.cs` and `Samples/GameUiSamplesSkia/Data/HyTaleItem.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. Read the line range as the matched WINDOW rather than a finished unit: at `Samples/GameUiSamples/Data/HyTaleItem.cs:21` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (9 lines × 4) · ×8
  • Duplicated block (9 lines × 4) Themes/Gum.Themes.DarkPro.MonoGame/SliderThumbVisual.cs:82 — Themes/Gum.Themes.DarkPro.MonoGame/SliderThumbVisual.cs:82-90 | Themes/Gum.Themes.ForestGlade.MonoGame/SliderThumbVisual.cs:104-112 | Themes/Gum.Themes.Meadow.MonoGame/SliderThumbVisual.cs:89-97 | Themes/Gum.Themes.Neon.MonoGame/SliderThumbVisual.cs:100-108 — `Themes/Gum.Themes.DarkPro.MonoGame/SliderThumbVisual.cs` and `Themes/Gum.Themes.ForestGlade.MonoGame/SliderThumbVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 69 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (9 lines × 4) Themes/Gum.Themes.DarkPro.MonoGame/SliderVisual.cs:203 — Themes/Gum.Themes.DarkPro.MonoGame/SliderVisual.cs:203-215 | Themes/Gum.Themes.Hazard.MonoGame/SliderVisual.cs:152-160 | Themes/Gum.Themes.Template.MonoGame/SliderVisual.cs:150-158 | Themes/Gum.Themes.Template.MonoGame/Variants/SliderVisual.cs:156-164 — `Themes/Gum.Themes.DarkPro.MonoGame/SliderVisual.cs` and `Themes/Gum.Themes.Hazard.MonoGame/SliderVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 87 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (9 lines × 4) MonoGameGum/Forms/Controls/ListBoxItem.cs:208 — MonoGameGum/Forms/Controls/ListBoxItem.cs:208-216 | MonoGameGum/Forms/Controls/ListBoxItem.cs:221-229 | MonoGameGum/Forms/Controls/MenuItem.cs:470-478 | MonoGameGum/Forms/Controls/MenuItem.cs:483-491 — 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. 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 × 4) Themes/Gum.Themes.DarkPro.MonoGame/TabItemVisual.cs:62 — Themes/Gum.Themes.DarkPro.MonoGame/TabItemVisual.cs:62-70 | Themes/Gum.Themes.ForestGlade.MonoGame/TabItemVisual.cs:62-70 | Themes/Gum.Themes.Meadow.MonoGame/TabItemVisual.cs:62-70 | Themes/Gum.Themes.Neon.MonoGame/TabItemVisual.cs:62-70 — 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. 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 × 4) Samples/MonoGameGumThemesShowcase/Game1.cs:333 — Samples/MonoGameGumThemesShowcase/Game1.cs:333-341 | Samples/MonoGameGumThemesShowcase/Game1.cs:567-575 | Samples/RaylibGumThemesShowcase/Program.cs:272-280 | Samples/RaylibGumThemesShowcase/Program.cs:506-514 — before extracting anything, compare `Samples/MonoGameGumThemesShowcase/Game1.cs` and `Samples/RaylibGumThemesShowcase/Program.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 201 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 `Samples/MonoGameGumThemesShowcase/Game1.cs:333` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (9 lines × 4) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:60 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:60-68 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:66-74 | Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:25-33 | Samples/raylib/Screens/ArcsScreen.cs:33-41 — before extracting anything, compare `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 251 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 (9 lines × 4) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:83 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:83-91 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs:73-81 | Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:79-87 | Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:72-80 — 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. 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 × 4) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:455 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:455-463 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:506-514 | Samples/raylib/Screens/ArcsScreen.cs:86-94 | Samples/raylib/Screens/PolygonsScreen.cs:75-83 — before extracting anything, compare `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 251 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 (8 lines × 3) · ×8
  • Duplicated block (8 lines × 3) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTextInputDecoration.cs:97 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTextInputDecoration.cs:97-104 | Themes/Gum.Themes.DarkPro.MonoGame/DarkProTextInputDecoration.cs:164-171 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTextInputDecoration.cs:156-163 — before extracting anything, compare `Themes/Gum.Themes.DarkPro.MonoGame/DarkProTextInputDecoration.cs` and `Themes/Gum.Themes.Meadow.MonoGame/MeadowTextInputDecoration.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:41 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:41-48 | Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs:38-45 | Themes/Gum.Themes.Template.MonoGame/TemplateShapes.cs:37-44 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs` and `Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 144 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) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:127 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:127-134 | Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs:93-100 | Themes/Gum.Themes.Template.MonoGame/TemplateShapes.cs:128-135 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs` and `Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 144 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) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTextInputDecoration.cs:97 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTextInputDecoration.cs:97-104 | Themes/Gum.Themes.DarkPro.MonoGame/DarkProTextInputDecoration.cs:164-171 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTextInputDecoration.cs:156-163 — before extracting anything, compare `Themes/Gum.Themes.DarkPro.MonoGame/DarkProTextInputDecoration.cs` and `Themes/Gum.Themes.Meadow.MonoGame/MeadowTextInputDecoration.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTextInputDecoration.cs:97 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTextInputDecoration.cs:97-104 | Themes/Gum.Themes.DarkPro.MonoGame/DarkProTextInputDecoration.cs:164-171 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTextInputDecoration.cs:156-163 — before extracting anything, compare `Themes/Gum.Themes.DarkPro.MonoGame/DarkProTextInputDecoration.cs` and `Themes/Gum.Themes.Meadow.MonoGame/MeadowTextInputDecoration.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:41 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:41-48 | Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs:38-45 | Themes/Gum.Themes.Template.MonoGame/TemplateShapes.cs:37-44 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs` and `Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 144 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) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:127 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:127-134 | Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs:93-100 | Themes/Gum.Themes.Template.MonoGame/TemplateShapes.cs:128-135 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs` and `Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 144 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:540 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:540-547 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:608-615 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:563-570 — before extracting anything, compare `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 251 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. 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 (26 lines × 2) · ×7
  • Duplicated block (26 lines × 2) Themes/Gum.Themes.Template.MonoGame/ListBoxVisual.cs:66 — Themes/Gum.Themes.Template.MonoGame/ListBoxVisual.cs:66-91 | Themes/Gum.Themes.Template.MonoGame/Variants/ListBoxVisual.cs:80-105 — before extracting anything, compare `Themes/Gum.Themes.Template.MonoGame/ListBoxVisual.cs` and `Themes/Gum.Themes.Template.MonoGame/Variants/ListBoxVisual.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 58 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) Tool/EditorTabPlugin.Core/Services/BackgroundManager.cs:73 — Tool/EditorTabPlugin.Core/Services/BackgroundManager.cs:73-98 | Tool/TextureCoordinatePlugin.Core/Logic/BackgroundManager.cs:76-101 — before extracting anything, compare `Tool/EditorTabPlugin.Core/Services/BackgroundManager.cs` and `Tool/TextureCoordinatePlugin.Core/Logic/BackgroundManager.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 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) Gum/Managers/ObjectFinder.cs:1163 — Gum/Managers/ObjectFinder.cs:1163-1188 | Gum/Managers/ObjectFinder.cs:1195-1220 — 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 `Gum/Managers/ObjectFinder.cs:1163` 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 (26 lines × 2) Gum/CsvLibrary/CsvFileManager.cs:55 — Gum/CsvLibrary/CsvFileManager.cs:55-80 | REDACTED:508-533 — 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 `Gum/CsvLibrary/CsvFileManager.cs:55` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. 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 (26 lines × 2) Runtimes/RaylibGum/Renderables/NineSlice.cs:290 — Runtimes/RaylibGum/Renderables/NineSlice.cs:290-315 | Runtimes/SkiaGum/Renderables/NineSlice.cs:267-292 — 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 (26 lines × 2) Themes/Gum.Themes.Meadow.MonoGame/ScrollBarThumbVisual.cs:68 — Themes/Gum.Themes.Meadow.MonoGame/ScrollBarThumbVisual.cs:68-93 | Themes/Gum.Themes.Neon.MonoGame/ScrollBarThumbVisual.cs:69-96 — `Themes/Gum.Themes.Meadow.MonoGame/ScrollBarThumbVisual.cs` and `Themes/Gum.Themes.Neon.MonoGame/ScrollBarThumbVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 65 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (26 lines × 2) Samples/MonoGameGumThemesShowcase/Game1.cs:414 — Samples/MonoGameGumThemesShowcase/Game1.cs:414-439 | Samples/RaylibGumThemesShowcase/Program.cs:353-378 — before extracting anything, compare `Samples/MonoGameGumThemesShowcase/Game1.cs` and `Samples/RaylibGumThemesShowcase/Program.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 201 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 × 2) · ×7
  • Duplicated block (17 lines × 2) Runtimes/GumShapes/Renderables/Circle.cs:111 — Runtimes/GumShapes/Renderables/Circle.cs:111-137 | Runtimes/GumShapes/Renderables/RoundedRectangle.cs:202-218 — 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 `Runtimes/GumShapes/Renderables/Circle.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. 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 (17 lines × 2) Runtimes/GumExpressions/EvaluatedSyntax.cs:225 — Runtimes/GumExpressions/EvaluatedSyntax.cs:225-242 | Runtimes/GumExpressions/EvaluatedSyntax.cs:388-404 — 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 `Runtimes/GumExpressions/EvaluatedSyntax.cs:225` 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 (17 lines × 2) Tools/Gum.Presentation/Logic/ReferenceTypes.cs:62 — Tools/Gum.Presentation/Logic/ReferenceTypes.cs:62-78 | Tools/Gum.Presentation/Logic/ReferenceTypes.cs:196-212 — 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 `Tools/Gum.Presentation/Logic/ReferenceTypes.cs:62` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. 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) Tools/Gum.Presentation/Logic/ReferenceTypes.cs:121 — Tools/Gum.Presentation/Logic/ReferenceTypes.cs:121-137 | Tools/Gum.Presentation/Logic/ReferenceTypes.cs:239-255 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Tools/Gum.Presentation/Logic/ReferenceTypes.cs:121` 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) Samples/MonoGameGumThemesShowcase/Game1.cs:557 — Samples/MonoGameGumThemesShowcase/Game1.cs:557-573 | Samples/RaylibGumThemesShowcase/Program.cs:496-512 — before extracting anything, compare `Samples/MonoGameGumThemesShowcase/Game1.cs` and `Samples/RaylibGumThemesShowcase/Program.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 201 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 `Samples/MonoGameGumThemesShowcase/Game1.cs:557` 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) Samples/GameUiSamples/Screens/StardewHotbarScreen.cs:28 — Samples/GameUiSamples/Screens/StardewHotbarScreen.cs:28-44 | Samples/GameUiSamplesSkia/Screens/StardewHotbarScreen.cs:28-44 — before extracting anything, compare `Samples/GameUiSamples/Screens/StardewHotbarScreen.cs` and `Samples/GameUiSamplesSkia/Screens/StardewHotbarScreen.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 (17 lines × 2) Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Game1.cs:112 — Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Game1.cs:112-128 | Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Game1.cs:121-137 — before extracting anything, compare `Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Game1.cs` and `Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Game1.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 `Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Game1.cs:112` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (11 lines × 3) · ×7
  • Duplicated block (11 lines × 3) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:159 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:159-169 | Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs:125-135 | Themes/Gum.Themes.Template.MonoGame/TemplateShapes.cs:160-170 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs` and `Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 144 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) Runtimes/StrideGum/Gpu/StrideDirect3D11Target.cs:18 — Runtimes/StrideGum/Gpu/StrideDirect3D11Target.cs:18-28 | Runtimes/StrideGum/Gpu/StrideDirect3D12Target.cs:18-28 | Runtimes/StrideGum/Gpu/StrideVulkanTarget.cs:18-28 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
  • Duplicated block (11 lines × 3) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:174 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:174-184 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:187-197 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:214-225 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (11 lines × 3) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:337 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:337-347 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:349-359 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:361-371 — 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. 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, `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:349` calls `Color` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:337` 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 (11 lines × 3) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/DrawCallStressScreen.cs:49 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/DrawCallStressScreen.cs:49-59 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/NineSliceScreen.cs:31-41 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/SpriteScreen.cs:31-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 all 3 call sites, so a change lands once.
  • Duplicated block (11 lines × 3) Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:170 — Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:170-180 | Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:183-193 | Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:210-221 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (11 lines × 3) Samples/raylib/Screens/ArcsScreen.cs:176 — Samples/raylib/Screens/ArcsScreen.cs:176-186 | Samples/raylib/Screens/ArcsScreen.cs:189-199 | Samples/raylib/Screens/ArcsScreen.cs:216-227 — 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.
IC1 · Incompleteness & stubs · Unfinished branch · ×7
  • Unfinished branch — throws NotImplementedException Gum/CsvLibrary/CsvFileManager.cs:139 — The branch `if (IsRelative(fileName))` 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.
  • Unfinished branch — throws NotImplementedException Gum/CsvLibrary/Reflection/PropertyValuePair.cs:459 — The branch `if (!handled)` 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.
  • Unfinished branch — throws NotImplementedException Gum/Graphics/Animation/Content/AnimationChainListSave.cs:91 — The branch `if (ManualDeserialization)` 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.
  • Unfinished branch — throws NotImplementedException RenderingLibrary/Content/ContentLoader.cs:87 — The branch `if (!knownType)` 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.
  • Unfinished branch — throws NotImplementedException RenderingLibrary/Graphics/Animation/AnimationChain.cs:283 — The branch `if (!string.IsNullOrEmpty(animationChainSave.ParentFile))` 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.
  • Unfinished branch — throws NotImplementedException RenderingLibrary/Graphics/ImageData.cs:133 — The `default:` section (reached by `Bgr565`, `Bgra5551`, `Bgra4444`, `Dxt1` and 37 more) 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.
  • Unfinished branch — throws NotImplementedException Runtimes/RaylibGum/RenderingLibrary/ContentLoader.cs:273 — The branch `if (FileManager.IsUrl(fileName))` 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.
R10 · Code Duplication · Duplicated block (7 lines × 2 locations) · ×7
  • Duplicated block (7 lines × 2 locations) Tool/HtmlToGum/converter/map.ts:546 — Tool/HtmlToGum/converter/map.ts:546 · Tool/HtmlToGum/converter/map.ts:554 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (7 lines × 2 locations) Tool/HtmlToGum/converter/map.ts:1139 — Tool/HtmlToGum/converter/map.ts:1139 · Tool/HtmlToGum/converter/map.ts:1146 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (7 lines × 2 locations) Tool/HtmlToGum/converter/map.ts:1767 — Tool/HtmlToGum/converter/map.ts:1767 · Tool/HtmlToGum/converter/map.ts:2029 — 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 locations) Tool/HtmlToGum/converter/map.ts:1801 — Tool/HtmlToGum/converter/map.ts:1801 · Tool/HtmlToGum/converter/map.ts:1810 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (7 lines × 2 locations) Tool/HtmlToGum/converter/map.ts:1968 — Tool/HtmlToGum/converter/map.ts:1968 · Tool/HtmlToGum/converter/map.ts:1975 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (7 lines × 2 locations) Tool/HtmlToGum/converter/map.ts:2022 — Tool/HtmlToGum/converter/map.ts:2022 · Tool/HtmlToGum/converter/map.ts:2047 — 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 locations) Tool/HtmlToGum/fidelity/canaries.ts:67 — Tool/HtmlToGum/fidelity/canaries.ts:67 · Tool/HtmlToGum/fidelity/site-fidelity.ts:93 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
D1 · Cyclomatic Complexity · extract.extractBoxTree · ×6
  • extract.extractBoxTree::walk (cyclomatic 85) Tool/HtmlToGum/converter/extract.ts:705 — extract.extractBoxTree::walk has cyclomatic complexity 85 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: 5 other methods here (extract.extractBoxTree::applyHtmlTableBorderPaint, extract.extractBoxTree::formControlFromDom, extract.extractBoxTree::shouldRasterTextHeavyCell, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 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.
  • extract.extractBoxTree::needsRasterPaint (cyclomatic 64) Tool/HtmlToGum/converter/extract.ts:373 — extract.extractBoxTree::needsRasterPaint has cyclomatic complexity 64 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: 5 other methods here (extract.extractBoxTree::applyHtmlTableBorderPaint, extract.extractBoxTree::formControlFromDom, extract.extractBoxTree::shouldRasterTextHeavyCell, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 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.
  • extract.extractBoxTree::shouldRasterTextHeavyCell (cyclomatic 49) Tool/HtmlToGum/converter/extract.ts:226 — extract.extractBoxTree::shouldRasterTextHeavyCell 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. This shape REPEATS in the file: 5 other methods here (extract.extractBoxTree::applyHtmlTableBorderPaint, extract.extractBoxTree::formControlFromDom, extract.extractBoxTree::needsRasterPaint, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 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.
  • extract.extractBoxTree::formControlFromDom (cyclomatic 39) Tool/HtmlToGum/converter/extract.ts:109 — extract.extractBoxTree::formControlFromDom has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 5 other methods here (extract.extractBoxTree::applyHtmlTableBorderPaint, extract.extractBoxTree::shouldRasterTextHeavyCell, extract.extractBoxTree::needsRasterPaint, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 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.
  • extract.extractBoxTree::walkTextNode (cyclomatic 24) Tool/HtmlToGum/converter/extract.ts:551 — extract.extractBoxTree::walkTextNode has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 5 other methods here (extract.extractBoxTree::applyHtmlTableBorderPaint, extract.extractBoxTree::formControlFromDom, extract.extractBoxTree::shouldRasterTextHeavyCell, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 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.
  • extract.extractBoxTree::applyHtmlTableBorderPaint (cyclomatic 18) Tool/HtmlToGum/converter/extract.ts:83 — extract.extractBoxTree::applyHtmlTableBorderPaint has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: 5 other methods here (extract.extractBoxTree::formControlFromDom, extract.extractBoxTree::shouldRasterTextHeavyCell, extract.extractBoxTree::needsRasterPaint, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 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.
D2 · Cognitive Complexity · map.mapTreeToScreen · ×6
  • map.mapTreeToScreen::walk (cognitive 255) Tool/HtmlToGum/converter/map.ts:1515 — map.mapTreeToScreen::walk has cognitive complexity 255 (threshold 15). Drivers by points: if/else 80 (176 pts), boolean chains 66, ternaries 7 (10 pts), loops 1 (3 pts) (nesting depth added 101). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This shape REPEATS in the file: 5 other methods here (map.mapTreeToScreen::applyChildrenLayout, map.mapTreeToScreen::emitStackCrossAxis, map.mapTreeToScreen::emitVisual, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 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.
  • map.mapTreeToScreen::applyChildrenLayout (cognitive 36) Tool/HtmlToGum/converter/map.ts:915 — map.mapTreeToScreen::applyChildrenLayout has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 11, ternaries 4 (8 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 5 other methods here (map.mapTreeToScreen::emitStackCrossAxis, map.mapTreeToScreen::emitVisual, map.mapTreeToScreen::emitSizeAxis, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 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.
  • map.mapTreeToScreen::emitVisual (cognitive 35) Tool/HtmlToGum/converter/map.ts:1241 — map.mapTreeToScreen::emitVisual has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (30 pts), boolean chains 5 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 5 other methods here (map.mapTreeToScreen::applyChildrenLayout, map.mapTreeToScreen::emitStackCrossAxis, map.mapTreeToScreen::emitSizeAxis, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 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.
  • map.mapTreeToScreen::emitStackCrossAxis (cognitive 24) Tool/HtmlToGum/converter/map.ts:1084 — map.mapTreeToScreen::emitStackCrossAxis has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 7, ternaries 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This shape REPEATS in the file: 5 other methods here (map.mapTreeToScreen::applyChildrenLayout, map.mapTreeToScreen::emitVisual, map.mapTreeToScreen::emitSizeAxis, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 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.
  • map.mapTreeToScreen::walk::walkFlowKids (cognitive 18) Tool/HtmlToGum/converter/map.ts:1918 — map.mapTreeToScreen::walk::walkFlowKids has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 6 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This shape REPEATS in the file: 5 other methods here (map.mapTreeToScreen::applyChildrenLayout, map.mapTreeToScreen::emitStackCrossAxis, map.mapTreeToScreen::emitVisual, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 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.
  • map.mapTreeToScreen::emitSizeAxis (cognitive 16) Tool/HtmlToGum/converter/map.ts:1477 — map.mapTreeToScreen::emitSizeAxis has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 5 other methods here (map.mapTreeToScreen::applyChildrenLayout, map.mapTreeToScreen::emitStackCrossAxis, map.mapTreeToScreen::emitVisual, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 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 (33 corresponding lines) · ×6
  • Edited copy of a member (33 corresponding lines) Runtimes/SkiaGum/Renderables/Polygon.cs:116 — Runtimes/SkiaGum/Renderables/Polygon.cs:116-154 | Runtimes/RaylibGum/Renderables/LinePolygon.cs:180-212 — These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (33 corresponding lines) Themes/Gum.Themes.Hazard.MonoGame/ComboBoxVisual.cs:51 — Themes/Gum.Themes.Hazard.MonoGame/ComboBoxVisual.cs:51-83 | Themes/Gum.Themes.Template.MonoGame/ComboBoxVisual.cs:49-82 — These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (33 corresponding lines) Themes/Gum.Themes.Template.MonoGame/ComboBoxVisual.cs:49 — Themes/Gum.Themes.Template.MonoGame/ComboBoxVisual.cs:49-82 | Themes/Gum.Themes.Hazard.MonoGame/ComboBoxVisual.cs:51-83 — These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (33 corresponding lines) Themes/Gum.Themes.Template.MonoGame/ListBoxVisual.cs:30 — Themes/Gum.Themes.Template.MonoGame/ListBoxVisual.cs:30-62 | Themes/Gum.Themes.Template.MonoGame/Variants/ListBoxVisual.cs:41-76 — These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (33 corresponding lines) MonoGameGum/Forms/Controls/Slider.cs:626 — MonoGameGum/Forms/Controls/Slider.cs:626-658 | MonoGameGum/Forms/Controls/TextBoxBase.cs:1289-1343 — These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (33 corresponding lines) MonoGameGum/GueDeriving/TextRuntime.cs:1938 — MonoGameGum/GueDeriving/TextRuntime.cs:1938-1997 | Runtimes/SokolGum/GueDeriving/TextRuntime.cs:363-395 — 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 (23 corresponding lines) · ×6
  • Edited copy of a member (23 corresponding lines) Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:130 — Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:130-152 | Themes/Gum.Themes.Template.MonoGame/Variants/CheckBoxVisual.cs:134-156 — 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) MonoGameGum/Forms/Controls/Grid.cs:408 — MonoGameGum/Forms/Controls/Grid.cs:408-430 | MonoGameGum/Forms/Controls/Grid.cs:433-456 — 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) Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs:447 — Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs:447-469 | Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs:476-498 — 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) Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Screens/TextRuntimeScreen.cs:20 — Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Screens/TextRuntimeScreen.cs:20-42 | Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Screens/TextRuntimeScreen.cs:17-39 — 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) Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Screens/MixedBatchScreen.cs:21 — Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Screens/MixedBatchScreen.cs:21-43 | Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Screens/MixedBatchScreen.cs:23-45 — 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) Tools/Gum.Presentation/Plugins/ImportPlugin/ViewModel/ImportBehaviorDialog.cs:72 — Tools/Gum.Presentation/Plugins/ImportPlugin/ViewModel/ImportBehaviorDialog.cs:72-94 | Tools/Gum.Presentation/Plugins/ImportPlugin/ViewModel/ImportComponentDialog.cs:72-96 — 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 (29 lines × 2) · ×6
  • Duplicated block (29 lines × 2) GumRuntime/GraphicalUiElement.Properties.cs:745 — GumRuntime/GraphicalUiElement.Properties.cs:745-773 | GumRuntime/GraphicalUiElement.Properties.cs:796-824 — 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 (29 lines × 2) Themes/Gum.Themes.Template.MonoGame/SliderVisual.cs:38 — Themes/Gum.Themes.Template.MonoGame/SliderVisual.cs:38-66 | Themes/Gum.Themes.Template.MonoGame/Variants/SliderVisual.cs:44-72 — before extracting anything, compare `Themes/Gum.Themes.Template.MonoGame/SliderVisual.cs` and `Themes/Gum.Themes.Template.MonoGame/Variants/SliderVisual.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 116 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 (29 lines × 2) Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:56 — Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:56-84 | Themes/Gum.Themes.Template.MonoGame/Variants/CheckBoxVisual.cs:60-88 — before extracting anything, compare `Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs` and `Themes/Gum.Themes.Template.MonoGame/Variants/CheckBoxVisual.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 304 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 `Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:56` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (29 lines × 2) Samples/GameUiSamples/Screens/FrbClicker/FrbClickerCodeOnly.cs:69 — Samples/GameUiSamples/Screens/FrbClicker/FrbClickerCodeOnly.cs:69-97 | Samples/GameUiSamplesSkia/Screens/FrbClicker/FrbClickerCodeOnly.cs:69-97 — before extracting anything, compare `Samples/GameUiSamples/Screens/FrbClicker/FrbClickerCodeOnly.cs` and `Samples/GameUiSamplesSkia/Screens/FrbClicker/FrbClickerCodeOnly.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 159 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 (29 lines × 2) Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:306 — Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:306-334 | Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs:307-335 — before extracting anything, compare `Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs` and `Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 335 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 (29 lines × 2) Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:28 — Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:28-56 | Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs:29-57 — before extracting anything, compare `Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs` and `Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 335 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 (9 lines × 3) · ×6
  • Duplicated block (9 lines × 3) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:69 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:69-77 | Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs:50-58 | Themes/Gum.Themes.Template.MonoGame/TemplateShapes.cs:69-77 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs` and `Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 144 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) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:142 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:142-150 | Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs:108-116 | Themes/Gum.Themes.Template.MonoGame/TemplateShapes.cs:143-151 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs` and `Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 144 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) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:69 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:69-77 | Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs:50-58 | Themes/Gum.Themes.Template.MonoGame/TemplateShapes.cs:69-77 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs` and `Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 144 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) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:142 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:142-150 | Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs:108-116 | Themes/Gum.Themes.Template.MonoGame/TemplateShapes.cs:143-151 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs` and `Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 144 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) Tools/Gum.Presentation/Logic/ReferenceFinder.cs:71 — Tools/Gum.Presentation/Logic/ReferenceFinder.cs:71-79 | Tools/Gum.Presentation/Logic/ReferenceFinder.cs:177-185 | Tools/Gum.Presentation/Logic/ReferenceFinder.cs:245-253 — 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 `Tools/Gum.Presentation/Logic/ReferenceFinder.cs:71` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 3) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:129 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:129-137 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:149-157 | Samples/raylib/Screens/ArcsScreen.cs:54-62 — before extracting anything, compare `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 251 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.
D1 · Cyclomatic Complexity · map.mapTreeToScreen · ×5
  • map.mapTreeToScreen::walk (cyclomatic 152) Tool/HtmlToGum/converter/map.ts:1515 — map.mapTreeToScreen::walk has cyclomatic complexity 152 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 4 other methods here (map.mapTreeToScreen::applyChildrenLayout, map.mapTreeToScreen::emitStackCrossAxis, map.mapTreeToScreen::emitVisual, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 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.
  • map.mapTreeToScreen::applyChildrenLayout (cyclomatic 29) Tool/HtmlToGum/converter/map.ts:915 — map.mapTreeToScreen::applyChildrenLayout 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. This shape REPEATS in the file: 4 other methods here (map.mapTreeToScreen::emitStackCrossAxis, map.mapTreeToScreen::emitVisual, map.mapTreeToScreen::walk, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 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.
  • map.mapTreeToScreen::emitStackCrossAxis (cyclomatic 25) Tool/HtmlToGum/converter/map.ts:1084 — map.mapTreeToScreen::emitStackCrossAxis has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: 4 other methods here (map.mapTreeToScreen::applyChildrenLayout, map.mapTreeToScreen::emitVisual, map.mapTreeToScreen::walk, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 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.
  • map.mapTreeToScreen::emitVisual (cyclomatic 20) Tool/HtmlToGum/converter/map.ts:1241 — map.mapTreeToScreen::emitVisual has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 4 other methods here (map.mapTreeToScreen::applyChildrenLayout, map.mapTreeToScreen::emitStackCrossAxis, map.mapTreeToScreen::walk, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 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.
  • map.mapTreeToScreen::walk::walkFlowKids (cyclomatic 16) Tool/HtmlToGum/converter/map.ts:1918 — map.mapTreeToScreen::walk::walkFlowKids has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: 4 other methods here (map.mapTreeToScreen::applyChildrenLayout, map.mapTreeToScreen::emitStackCrossAxis, map.mapTreeToScreen::emitVisual, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 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.
D2 · Cognitive Complexity · extract.extractBoxTree · ×5
  • extract.extractBoxTree::walk (cognitive 87) Tool/HtmlToGum/converter/extract.ts:705 — extract.extractBoxTree::walk has cognitive complexity 87 (threshold 15). Drivers by points: boolean chains 51, if/else 20 (32 pts), loops 1 (2 pts), ternaries 2 (nesting depth added 13). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: 4 other methods here (extract.extractBoxTree::formControlFromDom, extract.extractBoxTree::shouldRasterTextHeavyCell, extract.extractBoxTree::needsRasterPaint, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 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.
  • extract.extractBoxTree::shouldRasterTextHeavyCell (cognitive 66) Tool/HtmlToGum/converter/extract.ts:226 — extract.extractBoxTree::shouldRasterTextHeavyCell has cognitive complexity 66 (threshold 15). Drivers by points: if/else 23 (40 pts), boolean chains 20, loops 1 (3 pts), ternaries 2 (3 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 4 other methods here (extract.extractBoxTree::formControlFromDom, extract.extractBoxTree::needsRasterPaint, extract.extractBoxTree::walkTextNode, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 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.
  • extract.extractBoxTree::needsRasterPaint (cognitive 50) Tool/HtmlToGum/converter/extract.ts:373 — extract.extractBoxTree::needsRasterPaint has cognitive complexity 50 (threshold 15). Drivers by points: boolean chains 34, if/else 3 (7 pts), error handling 2 (6 pts), loops 1 (2 pts), ternaries 1 (nesting depth added 9). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: 4 other methods here (extract.extractBoxTree::formControlFromDom, extract.extractBoxTree::shouldRasterTextHeavyCell, extract.extractBoxTree::walkTextNode, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 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.
  • extract.extractBoxTree::walkTextNode (cognitive 49) Tool/HtmlToGum/converter/extract.ts:551 — extract.extractBoxTree::walkTextNode has cognitive complexity 49 (threshold 15). Drivers by points: if/else 14 (37 pts), boolean chains 5, loops 2 (5 pts), ternaries 2 (nesting depth added 26). To reduce it, split the body into named stages: move each independent 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: 4 other methods here (extract.extractBoxTree::formControlFromDom, extract.extractBoxTree::shouldRasterTextHeavyCell, extract.extractBoxTree::needsRasterPaint, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 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.
  • extract.extractBoxTree::formControlFromDom (cognitive 40) Tool/HtmlToGum/converter/extract.ts:109 — extract.extractBoxTree::formControlFromDom has cognitive complexity 40 (threshold 15). Drivers by points: boolean chains 17, if/else 10 (16 pts), ternaries 3 (7 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 4 other methods here (extract.extractBoxTree::shouldRasterTextHeavyCell, extract.extractBoxTree::needsRasterPaint, extract.extractBoxTree::walkTextNode, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 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.
D3 · God Classes · FunctionTooLong · ×5
  • FunctionTooLong: extract.extractBoxTree Tool/HtmlToGum/converter/extract.ts:11 — FunctionTooLong — extractBoxTree runs 702 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 602 over it, 7.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.
  • FunctionTooLong: site-fidelity.main Tool/HtmlToGum/fidelity/site-fidelity.ts:150 — FunctionTooLong — main runs 169 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 69 over it, 1.69× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: convert.main Tool/HtmlToGum/converter/convert.ts:442 — FunctionTooLong — main runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: dom-quiescence.stabilizeDynamicMedia Tool/HtmlToGum/converter/dom-quiescence.ts:76 — FunctionTooLong — stabilizeDynamicMedia runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: convert.rasterizeEffects Tool/HtmlToGum/converter/convert.ts:251 — FunctionTooLong — rasterizeEffects runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
D4 · Code Duplication · Members sharing a duplicated core (7 members, 50+ identical tokens) · ×5
  • Members sharing a duplicated core (7 members, 50+ identical tokens) Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:293 — Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:293-304 | Themes/Gum.Themes.DarkPro.MonoGame/CheckBoxVisual.cs:308-319 | Themes/Gum.Themes.ForestGlade.MonoGame/CheckBoxVisual.cs:306-317 | Themes/Gum.Themes.Hazard.MonoGame/CheckBoxVisual.cs:314-325 | Themes/Gum.Themes.Neon.MonoGame/CheckBoxVisual.cs:296-307 | Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:311-322 | Themes/Gum.Themes.Template.MonoGame/Variants/CheckBoxVisual.cs:315-326 — These 7 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 7 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 7 times.
  • Members sharing a duplicated core (7 members, 50+ identical tokens) Themes/Gum.Themes.Bubblegum.MonoGame/ComboBoxVisual.cs:86 — Themes/Gum.Themes.Bubblegum.MonoGame/ComboBoxVisual.cs:86-109 | Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs:151-174 | Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:148-167 | Themes/Gum.Themes.Hazard.MonoGame/ComboBoxVisual.cs:86-109 | Themes/Gum.Themes.Meadow.MonoGame/ComboBoxVisual.cs:141-163 | Themes/Gum.Themes.Neon.MonoGame/ComboBoxVisual.cs:140-163 | Themes/Gum.Themes.Template.MonoGame/ComboBoxVisual.cs:85-108 — These 7 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 7 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 7 times.
  • Members sharing a duplicated core (7 members, 50+ identical tokens) Themes/Gum.Themes.Bubblegum.MonoGame/MenuItemVisual.cs:33 — Themes/Gum.Themes.Bubblegum.MonoGame/MenuItemVisual.cs:33-57 | Themes/Gum.Themes.DarkPro.MonoGame/MenuItemVisual.cs:43-71 | Themes/Gum.Themes.ForestGlade.MonoGame/MenuItemVisual.cs:33-55 | Themes/Gum.Themes.Hazard.MonoGame/MenuItemVisual.cs:41-70 | Themes/Gum.Themes.Meadow.MonoGame/MenuItemVisual.cs:32-56 | Themes/Gum.Themes.Neon.MonoGame/MenuItemVisual.cs:33-55 | Themes/Gum.Themes.Retro95.MonoGame/MenuItemVisual.cs:32-54 — These 7 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 7 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 7 times.
  • Members sharing a duplicated core (7 members, 50+ identical tokens) Themes/Gum.Themes.Bubblegum.MonoGame/ScrollBarVisual.cs:134 — Themes/Gum.Themes.Bubblegum.MonoGame/ScrollBarVisual.cs:134-147 | Themes/Gum.Themes.DarkPro.MonoGame/ScrollBarVisual.cs:177-190 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollBarVisual.cs:125-138 | Themes/Gum.Themes.Hazard.MonoGame/ScrollBarVisual.cs:176-189 | Themes/Gum.Themes.Meadow.MonoGame/ScrollBarVisual.cs:127-140 | Themes/Gum.Themes.Neon.MonoGame/ScrollBarVisual.cs:127-140 | Themes/Gum.Themes.Template.MonoGame/ScrollBarVisual.cs:176-189 — These 7 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 7 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 7 times.
  • Members sharing a duplicated core (7 members, 50+ identical tokens) Themes/Gum.Themes.Bubblegum.MonoGame/WindowVisual.cs:108 — Themes/Gum.Themes.Bubblegum.MonoGame/WindowVisual.cs:108-125 | Themes/Gum.Themes.DarkPro.MonoGame/WindowVisual.cs:158-175 | Themes/Gum.Themes.ForestGlade.MonoGame/WindowVisual.cs:155-171 | Themes/Gum.Themes.Hazard.MonoGame/WindowVisual.cs:88-105 | Themes/Gum.Themes.Meadow.MonoGame/WindowVisual.cs:163-180 | Themes/Gum.Themes.Neon.MonoGame/WindowVisual.cs:166-183 | Themes/Gum.Themes.Template.MonoGame/WindowVisual.cs:88-105 — These 7 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 7 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 7 times.
D4 · Code Duplication · Edited copy of a member (29 corresponding lines) · ×5
  • Edited copy of a member (29 corresponding lines) Themes/Gum.Themes.Bubblegum.MonoGame/ComboBoxVisual.cs:112 — Themes/Gum.Themes.Bubblegum.MonoGame/ComboBoxVisual.cs:112-140 | Themes/Gum.Themes.Neon.MonoGame/ComboBoxVisual.cs:166-197 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (29 corresponding lines) Themes/Gum.Themes.Template.MonoGame/TemplateTextInputDecoration.cs:33 — Themes/Gum.Themes.Template.MonoGame/TemplateTextInputDecoration.cs:33-61 | Themes/Gum.Themes.Template.MonoGame/Variants/TemplateTextInputDecoration.cs:34-62 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (29 corresponding lines) Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Screens/ParentChildScreen.cs:18 — Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Screens/ParentChildScreen.cs:18-46 | Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Screens/ParentChildScreen.cs:18-46 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (29 corresponding lines) Samples/MonoGameGumThemesShowcase/Screens/AllControlsScreen.cs:142 — Samples/MonoGameGumThemesShowcase/Screens/AllControlsScreen.cs:142-175 | Samples/MonoGameGumThemesShowcase/Screens/AllControlsScreen.cs:178-206 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (29 corresponding lines) Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Game1.cs:109 — Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Game1.cs:109-137 | Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Game1.cs:100-128 — 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 (22 corresponding lines) · ×5
  • Edited copy of a member (22 corresponding lines) Themes/Gum.Themes.Bubblegum.MonoGame/ListBoxVisual.cs:74 — Themes/Gum.Themes.Bubblegum.MonoGame/ListBoxVisual.cs:74-95 | Themes/Gum.Themes.Neon.MonoGame/ListBoxVisual.cs:128-149 — 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) MonoGameGum/GueDeriving/TextRuntime.cs:1571 — MonoGameGum/GueDeriving/TextRuntime.cs:1571-1592 | MonoGameGum/GueDeriving/TextRuntime.cs:1600-1621 — 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) Tool/TreeViewPlugin.Core/ElementTreeViewManager.RightClick.cs:482 — Tool/TreeViewPlugin.Core/ElementTreeViewManager.RightClick.cs:482-526 | Tool/TreeViewPlugin.Core/ElementTreeViewManager.RightClick.cs:529-550 — 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) MonoGameGum/Forms/Controls/ListBoxItem.cs:110 — MonoGameGum/Forms/Controls/ListBoxItem.cs:110-134 | MonoGameGum/Forms/Controls/MenuItem.cs:263-284 — 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) Tools/Gum.Presentation/ImportFromGumx/Services/GumxImportService.cs:992 — Tools/Gum.Presentation/ImportFromGumx/Services/GumxImportService.cs:992-1015 | Tools/Gum.Presentation/ImportFromGumx/Services/GumxImportService.cs:1290-1311 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 8+ corresponding lines) · ×5
  • Edited copies of one member (3 members, 8+ corresponding lines) Gum/StateAnimationPlugin/Views/Timeline.Resources.cs:32 — Gum/StateAnimationPlugin/Views/Timeline.Resources.cs:32-39 | Gum/StateAnimationPlugin/Views/Timeline.Resources.cs:50-57 | Gum/StateAnimationPlugin/Views/Timeline.Resources.cs:68-76 — 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs:152 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs:152-159 | Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:149-156 | Samples/raylib/Screens/PolygonsScreen.cs:158-165 — 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs:122 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs:122-129 | Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:119-126 | Samples/raylib/Screens/PolygonsScreen.cs:121-128 — 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs:142 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs:142-149 | Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:139-146 | Samples/raylib/Screens/PolygonsScreen.cs:141-155 — 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) Samples/GumFormsSample/KniGumFormsSample.BlazorGL/Pages/Index.razor.cs:12 — Samples/GumFormsSample/KniGumFormsSample.BlazorGL/Pages/Index.razor.cs:12-19 | Samples/KniGumFromFile/KniGumFromFile.BlazorGL/Pages/Index.razor.cs:12-19 | Samples/KniGumInCode/KniGumInCode.BlazorGL/Pages/Index.razor.cs:12-19 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (4 corresponding lines) · ×5
  • Edited copy of a member (4 corresponding lines) MonoGameGum/GueDeriving/CircleRuntime.cs:1157 — MonoGameGum/GueDeriving/CircleRuntime.cs:1157-1160 | MonoGameGum/GueDeriving/RectangleRuntime.cs:1510-1513 — 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) MonoGameGum/GueDeriving/CircleRuntime.cs:1167 — MonoGameGum/GueDeriving/CircleRuntime.cs:1167-1170 | MonoGameGum/GueDeriving/RectangleRuntime.cs:1520-1523 — 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) MonoGameGum/GueDeriving/CircleRuntime.cs:1177 — MonoGameGum/GueDeriving/CircleRuntime.cs:1177-1180 | MonoGameGum/GueDeriving/RectangleRuntime.cs:1530-1533 — 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) MonoGameGum/GueDeriving/CircleRuntime.cs:1187 — MonoGameGum/GueDeriving/CircleRuntime.cs:1187-1190 | MonoGameGum/GueDeriving/RectangleRuntime.cs:1540-1543 — 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) Samples/KniSkiaGumFromFile/KniSkiaGumFromFile/Game1.cs:247 — Samples/KniSkiaGumFromFile/KniSkiaGumFromFile/Game1.cs:247-250 | Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs:363-366 — 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 (22 lines × 2) · ×5
  • Duplicated block (22 lines × 2) Themes/Gum.Themes.Template.MonoGame/RadioButtonVisual.cs:116 — Themes/Gum.Themes.Template.MonoGame/RadioButtonVisual.cs:116-137 | Themes/Gum.Themes.Template.MonoGame/Variants/RadioButtonVisual.cs:126-147 — before extracting anything, compare `Themes/Gum.Themes.Template.MonoGame/RadioButtonVisual.cs` and `Themes/Gum.Themes.Template.MonoGame/Variants/RadioButtonVisual.cs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 205 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) DataUi.Core/LateBinder.cs:174 — DataUi.Core/LateBinder.cs:174-195 | Tools/Gum.Presentation/Reflection/LateBinder.cs:147-168 — before extracting anything, compare `DataUi.Core/LateBinder.cs` and `Tools/Gum.Presentation/Reflection/LateBinder.cs` as WHOLE FILES: this scan already matched 12 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 (22 lines × 2) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:657 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:657-678 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:611-632 — before extracting anything, compare `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 251 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 `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:657` 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 (22 lines × 2) Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:362 — Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:362-383 | Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs:363-384 — before extracting anything, compare `Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs` and `Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 335 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) Samples/SokolGum/Program.cs:36 — Samples/SokolGum/Program.cs:36-66 | Samples/SokolGumFromFile/Program.cs:78-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.
D4 · Code Duplication · Duplicated block (21 lines × 2) · ×5
  • Duplicated block (21 lines × 2) Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs:56 — Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs:56-76 | Themes/Gum.Themes.Neon.MonoGame/ListBoxVisual.cs:34-54 — 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 `Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs:56` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (21 lines × 2) Tool/EditorTabPlugin.Core/Services/BackgroundManager.cs:45 — Tool/EditorTabPlugin.Core/Services/BackgroundManager.cs:45-65 | Tool/TextureCoordinatePlugin.Core/Logic/BackgroundManager.cs:47-67 — before extracting anything, compare `Tool/EditorTabPlugin.Core/Services/BackgroundManager.cs` and `Tool/TextureCoordinatePlugin.Core/Logic/BackgroundManager.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 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 (21 lines × 2) Samples/MonoGameGumThemesShowcase/Game1.cs:345 — Samples/MonoGameGumThemesShowcase/Game1.cs:345-365 | Samples/RaylibGumThemesShowcase/Program.cs:284-304 — before extracting anything, compare `Samples/MonoGameGumThemesShowcase/Game1.cs` and `Samples/RaylibGumThemesShowcase/Program.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 201 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 `Samples/MonoGameGumThemesShowcase/Game1.cs:345` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (21 lines × 2) Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:254 — Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:254-274 | Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs:255-275 — before extracting anything, compare `Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs` and `Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 335 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 (21 lines × 2) Samples/GameUiSamples/Screens/StardewInventoryScreen.cs:69 — Samples/GameUiSamples/Screens/StardewInventoryScreen.cs:69-89 | Samples/GameUiSamplesSkia/Screens/StardewInventoryScreen.cs:69-89 — before extracting anything, compare `Samples/GameUiSamples/Screens/StardewInventoryScreen.cs` and `Samples/GameUiSamplesSkia/Screens/StardewInventoryScreen.cs` as WHOLE FILES: this scan already matched 9 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.
D4 · Code Duplication · Duplicated block (19 lines × 2) · ×5
  • Duplicated block (19 lines × 2) Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:109 — Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:109-127 | Themes/Gum.Themes.Template.MonoGame/Variants/CheckBoxVisual.cs:113-131 — before extracting anything, compare `Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs` and `Themes/Gum.Themes.Template.MonoGame/Variants/CheckBoxVisual.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 304 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) Gum/Managers/StandardElementsManager.cs:443 — Gum/Managers/StandardElementsManager.cs:443-462 | Gum/Managers/StandardElementsManager.cs:495-513 — 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) Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs:137 — Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs:137-155 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollViewerVisual.cs:131-149 — before extracting anything, compare `Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs` and `Themes/Gum.Themes.ForestGlade.MonoGame/ScrollViewerVisual.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 79 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 `Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.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. 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 (19 lines × 2) Gum/CodeOutputPlugin/MainCodeOutputPlugin.cs:44 — Gum/CodeOutputPlugin/MainCodeOutputPlugin.cs:44-62 | Tool/Gum.Avalonia/Plugins/CodeOutput/CodeOutputView.cs:310-328 — 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) Samples/GameUiSamples/Screens/HollowKnightHudScreen.cs:37 — Samples/GameUiSamples/Screens/HollowKnightHudScreen.cs:37-55 | Samples/GameUiSamplesSkia/Screens/HollowKnightHudScreen.cs:37-55 — before extracting anything, compare `Samples/GameUiSamples/Screens/HollowKnightHudScreen.cs` and `Samples/GameUiSamplesSkia/Screens/HollowKnightHudScreen.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 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 (13 lines × 3) · ×5
  • Duplicated block (13 lines × 3) MonoGameGum/Forms/DefaultVisuals/V3/ButtonVisual.cs:131 — MonoGameGum/Forms/DefaultVisuals/V3/ButtonVisual.cs:131-143 | MonoGameGum/Forms/DefaultVisuals/V3/ToggleButtonVisual.cs:136-148 | MonoGameGum/Forms/DefaultVisuals/V3/TooltipVisual.cs:99-111 — before extracting anything, compare `MonoGameGum/Forms/DefaultVisuals/V3/ButtonVisual.cs` and `MonoGameGum/Forms/DefaultVisuals/V3/ToggleButtonVisual.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 80 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 (13 lines × 3) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumStyling.cs:61 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumStyling.cs:61-73 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeStyling.cs:67-79 | Themes/Gum.Themes.Neon.MonoGame/NeonStyling.cs:65-77 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumStyling.cs:76` calls `Color` and `Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeStyling.cs:82` 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 (13 lines × 3) Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:107 — Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:107-119 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs:99-111 | Themes/Gum.Themes.ForestGlade.MonoGame/TooltipVisual.cs:69-81 — before extracting anything, compare `Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs` and `Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs` as WHOLE FILES: this scan already matched 10 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. 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 `Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:107` 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 (13 lines × 3) RenderingLibrary/Content/ContentLoader.cs:313 — RenderingLibrary/Content/ContentLoader.cs:313-325 | Runtimes/RaylibGum/RenderingLibrary/ContentLoader.cs:702-714 | Runtimes/SkiaGum/Content/ContentLoader.cs:108-120 — 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 (13 lines × 3) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetShaderScreen.cs:123 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetShaderScreen.cs:123-135 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetShaderScreen.cs:143-156 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetShaderScreen.cs:162-174 — 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 `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetShaderScreen.cs:143` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (10 lines × 4) · ×5
  • Duplicated block (10 lines × 4) Themes/Gum.Themes.Bubblegum.MonoGame/ComboBoxVisual.cs:33 — Themes/Gum.Themes.Bubblegum.MonoGame/ComboBoxVisual.cs:33-42 | Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:29-38 | Themes/Gum.Themes.Meadow.MonoGame/ComboBoxVisual.cs:33-42 | Themes/Gum.Themes.Neon.MonoGame/ComboBoxVisual.cs:33-42 — `Themes/Gum.Themes.Bubblegum.MonoGame/ComboBoxVisual.cs` and `Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 38 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (10 lines × 4) Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs:96 — Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs:96-105 | Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs:115-124 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollViewerVisual.cs:90-99 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollViewerVisual.cs:109-118 — before extracting anything, compare `Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs` and `Themes/Gum.Themes.ForestGlade.MonoGame/ScrollViewerVisual.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 79 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 × 4) Themes/Gum.Themes.Template.MonoGame/ButtonVisual.cs:46 — Themes/Gum.Themes.Template.MonoGame/ButtonVisual.cs:46-56 | Themes/Gum.Themes.Template.MonoGame/ListBoxVisual.cs:39-50 | Themes/Gum.Themes.Template.MonoGame/ScrollViewerVisual.cs:38-47 | Themes/Gum.Themes.Template.MonoGame/ToggleButtonVisual.cs:47-56 — before extracting anything, compare `Themes/Gum.Themes.Template.MonoGame/ButtonVisual.cs` and `Themes/Gum.Themes.Template.MonoGame/ToggleButtonVisual.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (10 lines × 4) Samples/GameUiSamples/Screens/HyTaleHotbarScreen.cs:60 — Samples/GameUiSamples/Screens/HyTaleHotbarScreen.cs:60-69 | Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:132-141 | Samples/GameUiSamplesSkia/Screens/HyTaleHotbarScreen.cs:60-69 | Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs:133-142 — 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. 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 × 4) Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:386 — Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:386-398 | Samples/GameUiSamples/Screens/StardewInventoryScreen.cs:190-199 | Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs:387-399 | Samples/GameUiSamplesSkia/Screens/StardewInventoryScreen.cs:190-199 — before extracting anything, compare `Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs` and `Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 335 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 (11–13 lines × 2) · ×5
  • Duplicated block (11–13 lines × 2) Tool/TreeViewPlugin.Core/ElementTreeViewManager.RightClick.cs:232 — Tool/TreeViewPlugin.Core/ElementTreeViewManager.RightClick.cs:232-242 | Tools/Gum.Presentation/Managers/DeleteLogic.cs:77-89 — 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 `Tool/TreeViewPlugin.Core/ElementTreeViewManager.RightClick.cs:232` 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, `Tools/Gum.Presentation/Managers/DeleteLogic.cs:94` calls `Where`, `IsScreensFolderTreeNode`, `IsComponentsFolderTreeNode` and `Tool/TreeViewPlugin.Core/ElementTreeViewManager.RightClick.cs:244` 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 (11–13 lines × 2) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:422 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:422-434 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:509-519 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11–13 lines × 2) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:473 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:473-483 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:496-508 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11–13 lines × 2) Samples/KniGumInCode/KniGumInCodeCommon/KniGumInCodeGame.cs:219 — Samples/KniGumInCode/KniGumInCodeCommon/KniGumInCodeGame.cs:219-229 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/MixedScreen.cs:76-88 — 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 (11–13 lines × 2) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:215 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:215-225 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:465-477 — 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 (5 lines × 3) · ×5
  • Duplicated block (5 lines × 3) Runtimes/SkiaGum/Renderables/Sprite.cs:249 — Runtimes/SkiaGum/Renderables/Sprite.cs:249-253 | Runtimes/SokolGum/Renderables/NineSlice.cs:111-115 | Runtimes/SokolGum/Renderables/Sprite.cs:117-121 — 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. Note first that the copies are not typed on the same thing: the declarations holding them bind `frame` to `Gum.Graphics.Animation.AnimationFrame` in one and `AnimationFrame` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (5 lines × 3) Themes/Gum.Themes.Neon.MonoGame/NeonTextInputDecoration.cs:102 — Themes/Gum.Themes.Neon.MonoGame/NeonTextInputDecoration.cs:102-106 | Themes/Gum.Themes.Neon.MonoGame/NeonTextInputDecoration.cs:107-111 | Themes/Gum.Themes.Neon.MonoGame/NeonTextInputDecoration.cs:112-116 — 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 `Themes/Gum.Themes.Neon.MonoGame/NeonTextInputDecoration.cs:102` 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 (5 lines × 3) Gum/Controls/ColorDisplay.xaml.cs:215 — Gum/Controls/ColorDisplay.xaml.cs:215-221 | Gum/Controls/CornerRadiusDisplay.xaml.cs:342-346 | WpfDataUi/Controls/InlineChannelsDisplay.xaml.cs:185-189 — 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs:112 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs:112-116 | Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:110-114 | Samples/raylib/Screens/PolygonsScreen.cs:112-116 — before extracting anything, compare `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs` and `Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs:117` calls `Add` and `Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:115` 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 (5 lines × 3) Samples/KniGumFromFile/KniGumFromFileCommon/ComponentRuntimes/ClickableButton.cs:15 — Samples/KniGumFromFile/KniGumFromFileCommon/ComponentRuntimes/ClickableButton.cs:15-19 | Samples/MonoGameGumFromFile/MonoGameGumFromFileAndroid/ComponentRuntimes/ClickableButton.cs:15-19 | Samples/MonoGameGumFromFile/MonoGameGumFromFileDX/ComponentRuntimes/ClickableButton.cs:15-19 — before extracting anything, compare `Samples/KniGumFromFile/KniGumFromFileCommon/ComponentRuntimes/ClickableButton.cs` and `Samples/MonoGameGumFromFile/MonoGameGumFromFileAndroid/ComponentRuntimes/ClickableButton.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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 (6 lines × 4) · ×5
  • Duplicated block (6 lines × 4) Themes/Gum.Themes.DarkPro.MonoGame/TabItemVisual.cs:43 — Themes/Gum.Themes.DarkPro.MonoGame/TabItemVisual.cs:43-48 | Themes/Gum.Themes.ForestGlade.MonoGame/TabItemVisual.cs:43-48 | Themes/Gum.Themes.Meadow.MonoGame/TabItemVisual.cs:43-48 | Themes/Gum.Themes.Neon.MonoGame/TabItemVisual.cs:43-48 — 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. 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 × 4) Themes/Gum.Themes.Bubblegum.MonoGame/ToggleButtonVisual.cs:152 — Themes/Gum.Themes.Bubblegum.MonoGame/ToggleButtonVisual.cs:152-157 | Themes/Gum.Themes.Meadow.MonoGame/ToggleButtonVisual.cs:200-205 | Themes/Gum.Themes.Neon.MonoGame/ToggleButtonVisual.cs:214-219 | Themes/Gum.Themes.Template.MonoGame/Variants/ButtonVisual.cs:113-118 — `Themes/Gum.Themes.Meadow.MonoGame/ToggleButtonVisual.cs` and `Themes/Gum.Themes.Neon.MonoGame/ToggleButtonVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 87 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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 × 4) Themes/Gum.Themes.DarkPro.MonoGame/TabItemVisual.cs:43 — Themes/Gum.Themes.DarkPro.MonoGame/TabItemVisual.cs:43-48 | Themes/Gum.Themes.ForestGlade.MonoGame/TabItemVisual.cs:43-48 | Themes/Gum.Themes.Meadow.MonoGame/TabItemVisual.cs:43-48 | Themes/Gum.Themes.Neon.MonoGame/TabItemVisual.cs:43-48 — 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. 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 × 4) Themes/Gum.Themes.DarkPro.MonoGame/TabItemVisual.cs:43 — Themes/Gum.Themes.DarkPro.MonoGame/TabItemVisual.cs:43-48 | Themes/Gum.Themes.ForestGlade.MonoGame/TabItemVisual.cs:43-48 | Themes/Gum.Themes.Meadow.MonoGame/TabItemVisual.cs:43-48 | Themes/Gum.Themes.Neon.MonoGame/TabItemVisual.cs:43-48 — 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. 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 × 4) Themes/Gum.Themes.Bubblegum.MonoGame/ToggleButtonVisual.cs:152 — Themes/Gum.Themes.Bubblegum.MonoGame/ToggleButtonVisual.cs:152-157 | Themes/Gum.Themes.Meadow.MonoGame/ToggleButtonVisual.cs:200-205 | Themes/Gum.Themes.Neon.MonoGame/ToggleButtonVisual.cs:214-219 | Themes/Gum.Themes.Template.MonoGame/Variants/ButtonVisual.cs:113-118 — `Themes/Gum.Themes.Meadow.MonoGame/ToggleButtonVisual.cs` and `Themes/Gum.Themes.Neon.MonoGame/ToggleButtonVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 87 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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 · ×5
  • Outbound HTTP without resilience Runtimes/SkiaGum/Content/SkiaResourceManager.cs:168 — `new System.Net.Http.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. This codebase ships libraries/tools rather than a service it operates, so the failure lands as a hung caller — a build step, a CLI run, a UI thread — with no way out.
  • Outbound HTTP without resilience Samples/GumFormsSample/KniGumFormsSample.BlazorGL/Program.cs:19 — `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. This codebase ships libraries/tools rather than a service it operates, so the failure lands as a hung caller — a build step, a CLI run, a UI thread — with no way out.
  • Outbound HTTP without resilience Samples/KniGumFromFile/KniGumFromFile.BlazorGL/Program.cs:19 — `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. This codebase ships libraries/tools rather than a service it operates, so the failure lands as a hung caller — a build step, a CLI run, a UI thread — with no way out.
  • Outbound HTTP without resilience Samples/KniGumInCode/KniGumInCode.BlazorGL/Program.cs:19 — `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. This codebase ships libraries/tools rather than a service it operates, so the failure lands as a hung caller — a build step, a CLI run, a UI thread — with no way out.
  • Outbound HTTP without resilience REDACTED:16 — `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. This codebase ships libraries/tools rather than a service it operates, so the failure lands as a hung caller — a build step, a CLI run, a UI thread — with no way out.
R10 · Code Duplication · Duplicated block (8 lines × 2 locations) · ×5
  • Duplicated block (8 lines × 2 locations) Tool/HtmlToGum/converter/extract.ts:891 — Tool/HtmlToGum/converter/extract.ts:891 · Tool/HtmlToGum/converter/extract.ts:900 — all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct — the members of a type, or the entries of an object or array literal — with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal's entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or — where the copies are a literal's entries rather than a type's members — one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared — a decorator and its options, an annotation, a registration table's keys — the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases.
  • Duplicated block (8 lines × 2 locations) Tool/HtmlToGum/converter/map.ts:1661 — Tool/HtmlToGum/converter/map.ts:1661 · Tool/HtmlToGum/converter/map.ts: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.
  • Duplicated block (8 lines × 2 locations) Tool/HtmlToGum/fidelity/canaries.ts:24 — Tool/HtmlToGum/fidelity/canaries.ts:24 · Tool/HtmlToGum/fidelity/site-fidelity.ts:26 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
  • Duplicated block (8 lines × 2 locations) Tool/HtmlToGum/fidelity/canaries.ts:78 — Tool/HtmlToGum/fidelity/canaries.ts:78 · Tool/HtmlToGum/fidelity/site-fidelity.ts:108 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (8 lines × 2 locations) Tool/HtmlToGum/fidelity/canaries.ts:152 — Tool/HtmlToGum/fidelity/canaries.ts:152 · Tool/HtmlToGum/fidelity/site-fidelity.ts:308 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
D36 · Supply-chain Provenance & Signing · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D4 · Code Duplication · Members sharing a duplicated core (9 members, 50+ identical tokens) · ×4
  • Members sharing a duplicated core (9 members, 50+ identical tokens) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:125 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:125-157 | Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs:124-158 | Themes/Gum.Themes.Editor.MonoGame/EditorTheme.cs:52-84 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTheme.cs:145-177 | Themes/Gum.Themes.Hazard.MonoGame/HazardTheme.cs:133-166 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTheme.cs:154-188 | Themes/Gum.Themes.Neon.MonoGame/NeonTheme.cs:144-183 | Themes/Gum.Themes.Retro95.MonoGame/Retro95Theme.cs:115-149 | Themes/Gum.Themes.Template.MonoGame/TemplateTheme.cs:160-193 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
  • Members sharing a duplicated core (9 members, 50+ identical tokens) Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs:103 — Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs:103-122 | Themes/Gum.Themes.DarkPro.MonoGame/RadioButtonVisual.cs:112-134 | Themes/Gum.Themes.ForestGlade.MonoGame/RadioButtonVisual.cs:106-125 | Themes/Gum.Themes.Hazard.MonoGame/RadioButtonVisual.cs:117-139 | Themes/Gum.Themes.Meadow.MonoGame/RadioButtonVisual.cs:103-122 | Themes/Gum.Themes.Neon.MonoGame/RadioButtonVisual.cs:103-122 | Themes/Gum.Themes.Retro95.MonoGame/RadioButtonVisual.cs:102-120 | Themes/Gum.Themes.Template.MonoGame/RadioButtonVisual.cs:115-137 | Themes/Gum.Themes.Template.MonoGame/Variants/RadioButtonVisual.cs:125-147 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
  • Members sharing a duplicated core (9 members, 50+ identical tokens) Themes/Gum.Themes.Bubblegum.MonoGame/ScrollBarVisual.cs:29 — Themes/Gum.Themes.Bubblegum.MonoGame/ScrollBarVisual.cs:29-113 | Themes/Gum.Themes.DarkPro.MonoGame/ScrollBarVisual.cs:52-149 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollBarVisual.cs:29-105 | Themes/Gum.Themes.Hazard.MonoGame/ScrollBarVisual.cs:51-148 | Themes/Gum.Themes.Meadow.MonoGame/ScrollBarVisual.cs:29-106 | Themes/Gum.Themes.Neon.MonoGame/ScrollBarVisual.cs:29-106 | Themes/Gum.Themes.Retro95.MonoGame/ScrollBarVisual.cs:98-139 | Themes/Gum.Themes.Retro95.MonoGame/ScrollBarVisual.cs:142-183 | Themes/Gum.Themes.Template.MonoGame/ScrollBarVisual.cs:51-148 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
  • Members sharing a duplicated core (9 members, 50+ identical tokens) Themes/Gum.Themes.Bubblegum.MonoGame/SliderVisual.cs:35 — Themes/Gum.Themes.Bubblegum.MonoGame/SliderVisual.cs:35-62 | Themes/Gum.Themes.DarkPro.MonoGame/SliderVisual.cs:46-83 | Themes/Gum.Themes.ForestGlade.MonoGame/SliderVisual.cs:34-61 | Themes/Gum.Themes.Hazard.MonoGame/SliderVisual.cs:39-80 | Themes/Gum.Themes.Meadow.MonoGame/SliderVisual.cs:34-61 | Themes/Gum.Themes.Neon.MonoGame/SliderVisual.cs:35-62 | Themes/Gum.Themes.Retro95.MonoGame/SliderVisual.cs:32-71 | Themes/Gum.Themes.Template.MonoGame/SliderVisual.cs:37-78 | Themes/Gum.Themes.Template.MonoGame/Variants/SliderVisual.cs:43-84 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
D4 · Code Duplication · Edited copy of a member (34 corresponding lines) · ×4
  • Edited copy of a member (34 corresponding lines) Themes/Gum.Themes.Retro95.MonoGame/TooltipVisual.cs:72 — Themes/Gum.Themes.Retro95.MonoGame/TooltipVisual.cs:72-105 | Themes/Gum.Themes.Retro95.MonoGame/WindowVisual.cs:86-119 — 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) RenderingLibrary/Math/Geometry/LinePolygon.cs:272 — RenderingLibrary/Math/Geometry/LinePolygon.cs:272-314 | RenderingLibrary/Math/Geometry/LineRectangle.cs:304-337 — 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) Runtimes/SkiaGum/GueDeriving/ArcRuntime.cs:1040 — Runtimes/SkiaGum/GueDeriving/ArcRuntime.cs:1040-1089 | Runtimes/GumShapes/GueDeriving/ColoredCircleRuntime.cs:46-79 — 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) Samples/MonoGameGumThemesShowcase/Game1.cs:377 — Samples/MonoGameGumThemesShowcase/Game1.cs:377-410 | Samples/RaylibGumThemesShowcase/Program.cs:316-349 — These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (24 corresponding lines) · ×4
  • Edited copy of a member (24 corresponding lines) Tool/Gum.Avalonia/Plugins/StateAnimation/AnimationsView.cs:195 — Tool/Gum.Avalonia/Plugins/StateAnimation/AnimationsView.cs:195-218 | Tool/Gum.Avalonia/Plugins/StateAnimation/AnimationsView.cs:276-316 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (24 corresponding lines) Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs:35 — Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs:35-58 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTextInputDecoration.cs:37-62 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (24 corresponding lines) Tools/Gum.Presentation/Reflection/LateBinder.cs:318 — Tools/Gum.Presentation/Reflection/LateBinder.cs:318-341 | DataUi.Core/LateBinder.cs:444-467 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (24 corresponding lines) Tools/Gum.Presentation/Logic/ReorderLogic.cs:115 — Tools/Gum.Presentation/Logic/ReorderLogic.cs:115-139 | Tools/Gum.Presentation/Logic/ReorderLogic.cs:142-165 — 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 (30 corresponding lines) · ×4
  • Edited copy of a member (30 corresponding lines) Themes/Gum.Themes.Hazard.MonoGame/ButtonVisual.cs:33 — Themes/Gum.Themes.Hazard.MonoGame/ButtonVisual.cs:33-62 | Themes/Gum.Themes.Hazard.MonoGame/ToggleButtonVisual.cs:33-62 — 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) WpfDataUi/Controls/WpfDataUiTextBox.cs:25 — WpfDataUi/Controls/WpfDataUiTextBox.cs:25-54 | AvaloniaDataUi/Controls/AvaloniaDataUiTextBox.cs:29-58 — 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) RenderingLibrary/Graphics/Fonts/BmfcSave.cs:196 — RenderingLibrary/Graphics/Fonts/BmfcSave.cs:196-225 | RenderingLibrary/Graphics/Fonts/BmfcSave.cs:401-432 — 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) Tools/Gum.Analyzers/NamespaceMigrationCodeFixProvider.cs:28 — Tools/Gum.Analyzers/NamespaceMigrationCodeFixProvider.cs:28-73 | Tools/Gum.Analyzers/ObsoleteShapeRuntimeCodeFixProvider.cs:32-61 — 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 copies of one member (3 members, 6+ corresponding lines) · ×4
  • Edited copies of one member (3 members, 6+ corresponding lines) Gum/SvgPlugin/SkiaInGumShared/Renderables/RenderableSvg.cs:152 — Gum/SvgPlugin/SkiaInGumShared/Renderables/RenderableSvg.cs:152-158 | Runtimes/GumShapes/Content/ShapeSvgLoader.cs:144-150 | Runtimes/SkiaGum/Content/SkiaResourceManager.cs:167-172 — 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) Samples/GumFormsSample/KniGumFormsSample.Android/GumFormsSampleActivity.cs:19 — Samples/GumFormsSample/KniGumFormsSample.Android/GumFormsSampleActivity.cs:19-24 | Samples/KniGumFromFile/KniGumFromFile.Android/KniGumFromFileActivity.cs:19-24 | Samples/KniGumInCode/KniGumInCode.Android/KniGumInCodeActivity.cs:19-24 — 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) Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Game1.cs:85 — Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Game1.cs:85-90 | Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Game1.cs:94-99 | Samples/Shared/GumGallery.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 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs:241 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs:241-246 | Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:230-235 | Samples/raylib/Screens/PolygonsScreen.cs:239-244 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (7 members, 6+ corresponding lines) · ×4
  • Edited copies of one member (7 members, 6+ corresponding lines) Runtimes/RaylibGum/Renderables/LineArc.cs:171 — Runtimes/RaylibGum/Renderables/LineArc.cs:171-176 | Runtimes/RaylibGum/Renderables/LineCircle.cs:151-156 | Runtimes/RaylibGum/Renderables/LinePolygon.cs:60-65 | Runtimes/RaylibGum/Renderables/LineRectangle.cs:153-158 | Runtimes/RaylibGum/Renderables/NineSlice.cs:220-225 | Runtimes/RaylibGum/Renderables/Sprite.cs:91-96 | Runtimes/RaylibGum/Renderables/Text.cs:644-649 — These 7 members are one piece of code written 7 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 7 times and the copies will drift further apart.
  • Edited copies of one member (7 members, 6+ corresponding lines) Runtimes/RaylibGum/Renderables/LineArc.cs:184 — Runtimes/RaylibGum/Renderables/LineArc.cs:184-189 | Runtimes/RaylibGum/Renderables/LineCircle.cs:164-169 | Runtimes/RaylibGum/Renderables/LinePolygon.cs:72-77 | Runtimes/RaylibGum/Renderables/LineRectangle.cs:165-170 | Runtimes/RaylibGum/Renderables/NineSlice.cs:235-240 | Runtimes/RaylibGum/Renderables/Sprite.cs:106-111 | Runtimes/RaylibGum/Renderables/Text.cs:659-664 — These 7 members are one piece of code written 7 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 7 times and the copies will drift further apart.
  • Edited copies of one member (7 members, 6+ corresponding lines) Runtimes/RaylibGum/Renderables/LineArc.cs:197 — Runtimes/RaylibGum/Renderables/LineArc.cs:197-202 | Runtimes/RaylibGum/Renderables/LineCircle.cs:177-182 | Runtimes/RaylibGum/Renderables/LinePolygon.cs:84-89 | Runtimes/RaylibGum/Renderables/LineRectangle.cs:177-182 | Runtimes/RaylibGum/Renderables/NineSlice.cs:250-255 | Runtimes/RaylibGum/Renderables/Sprite.cs:121-126 | Runtimes/RaylibGum/Renderables/Text.cs:674-679 — These 7 members are one piece of code written 7 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 7 times and the copies will drift further apart.
  • Edited copies of one member (7 members, 6+ corresponding lines) Runtimes/RaylibGum/Renderables/LineArc.cs:210 — Runtimes/RaylibGum/Renderables/LineArc.cs:210-215 | Runtimes/RaylibGum/Renderables/LineCircle.cs:190-195 | Runtimes/RaylibGum/Renderables/LinePolygon.cs:96-101 | Runtimes/RaylibGum/Renderables/LineRectangle.cs:189-194 | Runtimes/RaylibGum/Renderables/NineSlice.cs:265-270 | Runtimes/RaylibGum/Renderables/Sprite.cs:136-141 | Runtimes/RaylibGum/Renderables/Text.cs:689-694 — These 7 members are one piece of code written 7 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 7 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 3+ corresponding lines) · ×4
  • Edited copies of one member (3 members, 3+ corresponding lines) Runtimes/SkiaGum/Renderables/RenderableShapeBase.cs:61 — Runtimes/SkiaGum/Renderables/RenderableShapeBase.cs:61-63 | Runtimes/SkiaGum/Renderables/Text.cs:279-282 | Runtimes/SkiaGum/Renderables/VectorSprite.cs:192-194 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 3+ corresponding lines) Runtimes/SkiaGum/Renderables/RenderableShapeBase.cs:70 — Runtimes/SkiaGum/Renderables/RenderableShapeBase.cs:70-72 | Runtimes/SkiaGum/Renderables/Text.cs:252-254 | Runtimes/SkiaGum/Renderables/VectorSprite.cs:201-203 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 3+ corresponding lines) Runtimes/SkiaGum/Renderables/RenderableShapeBase.cs:79 — Runtimes/SkiaGum/Renderables/RenderableShapeBase.cs:79-81 | Runtimes/SkiaGum/Renderables/Text.cs:261-263 | Runtimes/SkiaGum/Renderables/VectorSprite.cs:210-212 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 3+ corresponding lines) Runtimes/SkiaGum/Renderables/RenderableShapeBase.cs:88 — Runtimes/SkiaGum/Renderables/RenderableShapeBase.cs:88-90 | Runtimes/SkiaGum/Renderables/Text.cs:270-272 | Runtimes/SkiaGum/Renderables/VectorSprite.cs:219-221 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Duplicated block (24 lines × 2) · ×4
  • Duplicated block (24 lines × 2) Gum/CsvLibrary/StringFunctions.cs:408 — Gum/CsvLibrary/StringFunctions.cs:408-431 | ToolsUtilities/StringFunctions.cs:406-429 — before extracting anything, compare `Gum/CsvLibrary/StringFunctions.cs` and `ToolsUtilities/StringFunctions.cs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 256 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) DataUi.Core/LateBinder.cs:281 — DataUi.Core/LateBinder.cs:281-304 | Tools/Gum.Presentation/Reflection/LateBinder.cs:172-195 — before extracting anything, compare `DataUi.Core/LateBinder.cs` and `Tools/Gum.Presentation/Reflection/LateBinder.cs` as WHOLE FILES: this scan already matched 12 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. Note first that the copies are not typed on the same thing: the declarations holding them bind `target` 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.
  • Duplicated block (24 lines × 2) Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Screens/RenderTargetScreen.cs:126 — Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Screens/RenderTargetScreen.cs:126-149 | Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Screens/RenderTargetScreen.cs:132-155 — before extracting anything, compare `Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Screens/RenderTargetScreen.cs` and `Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Screens/RenderTargetScreen.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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 `Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Screens/RenderTargetScreen.cs:126` 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, `Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Screens/RenderTargetScreen.cs:124` calls `Clear` and `Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Screens/RenderTargetScreen.cs:130` 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 (24 lines × 2) Samples/GameUiSamples/Screens/FrbClicker/FrbClickerCodeOnly.cs:101 — Samples/GameUiSamples/Screens/FrbClicker/FrbClickerCodeOnly.cs:101-124 | Samples/GameUiSamplesSkia/Screens/FrbClicker/FrbClickerCodeOnly.cs:101-124 — before extracting anything, compare `Samples/GameUiSamples/Screens/FrbClicker/FrbClickerCodeOnly.cs` and `Samples/GameUiSamplesSkia/Screens/FrbClicker/FrbClickerCodeOnly.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 159 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 (7 lines × 3) · ×4
  • Duplicated block (7 lines × 3) MonoGameGum/Forms/DefaultVisuals/V3/ComboBoxVisual.cs:167 — MonoGameGum/Forms/DefaultVisuals/V3/ComboBoxVisual.cs:167-173 | MonoGameGum/Forms/DefaultVisuals/V3/ListBoxVisual.cs:78-84 | MonoGameGum/Forms/DefaultVisuals/V3/SliderVisual.cs:60-66 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
  • Duplicated block (7 lines × 3) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:101 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:101-107 | Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs:82-88 | Themes/Gum.Themes.Template.MonoGame/TemplateShapes.cs:101-107 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs` and `Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 144 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) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:101 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:101-107 | Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs:82-88 | Themes/Gum.Themes.Template.MonoGame/TemplateShapes.cs:101-107 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs` and `Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 144 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) Samples/GumFormsSample/KniGumFormsSample.BlazorGL/Pages/Index.razor.cs:13 — Samples/GumFormsSample/KniGumFormsSample.BlazorGL/Pages/Index.razor.cs:13-19 | Samples/KniGumFromFile/KniGumFromFile.BlazorGL/Pages/Index.razor.cs:13-19 | Samples/KniGumInCode/KniGumInCode.BlazorGL/Pages/Index.razor.cs:13-19 — before extracting anything, compare `Samples/GumFormsSample/KniGumFormsSample.BlazorGL/Pages/Index.razor.cs` and `Samples/KniGumFromFile/KniGumFromFile.BlazorGL/Pages/Index.razor.cs` as WHOLE FILES: 88% 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 (5 lines × 7) · ×4
  • Duplicated block (5 lines × 7) Runtimes/RaylibGum/Renderables/LineArc.cs:172 — Runtimes/RaylibGum/Renderables/LineArc.cs:172-176 | Runtimes/RaylibGum/Renderables/LineCircle.cs:152-156 | Runtimes/RaylibGum/Renderables/LinePolygon.cs:61-65 | Runtimes/RaylibGum/Renderables/LineRectangle.cs:154-158 | Runtimes/RaylibGum/Renderables/NineSlice.cs:221-225 | Runtimes/RaylibGum/Renderables/Sprite.cs:92-96 | Runtimes/RaylibGum/Renderables/Text.cs:645-649 — 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 7 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 × 7) Runtimes/RaylibGum/Renderables/LineArc.cs:185 — Runtimes/RaylibGum/Renderables/LineArc.cs:185-189 | Runtimes/RaylibGum/Renderables/LineCircle.cs:165-169 | Runtimes/RaylibGum/Renderables/LinePolygon.cs:73-77 | Runtimes/RaylibGum/Renderables/LineRectangle.cs:166-170 | Runtimes/RaylibGum/Renderables/NineSlice.cs:236-240 | Runtimes/RaylibGum/Renderables/Sprite.cs:107-111 | Runtimes/RaylibGum/Renderables/Text.cs:660-664 — 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 7 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 × 7) Runtimes/RaylibGum/Renderables/LineArc.cs:198 — Runtimes/RaylibGum/Renderables/LineArc.cs:198-202 | Runtimes/RaylibGum/Renderables/LineCircle.cs:178-182 | Runtimes/RaylibGum/Renderables/LinePolygon.cs:85-89 | Runtimes/RaylibGum/Renderables/LineRectangle.cs:178-182 | Runtimes/RaylibGum/Renderables/NineSlice.cs:251-255 | Runtimes/RaylibGum/Renderables/Sprite.cs:122-126 | Runtimes/RaylibGum/Renderables/Text.cs:675-679 — 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 7 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 × 7) Runtimes/RaylibGum/Renderables/LineArc.cs:211 — Runtimes/RaylibGum/Renderables/LineArc.cs:211-215 | Runtimes/RaylibGum/Renderables/LineCircle.cs:191-195 | Runtimes/RaylibGum/Renderables/LinePolygon.cs:97-101 | Runtimes/RaylibGum/Renderables/LineRectangle.cs:190-194 | Runtimes/RaylibGum/Renderables/NineSlice.cs:266-270 | Runtimes/RaylibGum/Renderables/Sprite.cs:137-141 | Runtimes/RaylibGum/Renderables/Text.cs:690-694 — 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 7 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 (6 lines × 3) · ×4
  • Duplicated block (6 lines × 3) Themes/Gum.Themes.Bubblegum.MonoGame/ToggleButtonVisual.cs:152 — Themes/Gum.Themes.Bubblegum.MonoGame/ToggleButtonVisual.cs:152-157 | Themes/Gum.Themes.Meadow.MonoGame/ToggleButtonVisual.cs:200-205 | Themes/Gum.Themes.Neon.MonoGame/ToggleButtonVisual.cs:214-219 — `Themes/Gum.Themes.Meadow.MonoGame/ToggleButtonVisual.cs` and `Themes/Gum.Themes.Neon.MonoGame/ToggleButtonVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 87 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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) WpfDataUi/Controls/ListBoxDisplay.xaml.cs:281 — WpfDataUi/Controls/ListBoxDisplay.xaml.cs:281-286 | WpfDataUi/Controls/MultiFileDisplay.xaml.cs:150-155 | WpfDataUi/Controls/StringListTextBoxDisplay.xaml.cs:133-138 — 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. 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs:170 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs:170-175 | Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:164-169 | Samples/raylib/Screens/PolygonsScreen.cs:173-178 — before extracting anything, compare `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs` and `Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs:176` calls `Add` and `Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:170` 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 (6 lines × 3) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetScreen.cs:130 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetScreen.cs:130-135 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetScreen.cs:148-153 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetScreen.cs:166-171 — 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 `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RenderTargetScreen.cs:130` 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.
R11 · Import Boundaries · Boundary violation [package · ×4
  • Boundary violation [package:relative-cross-package] Tool/HtmlToGum/fidelity/canaries.ts:22 — Tool/HtmlToGum/fidelity/canaries.ts:22 reaches into another package with a relative path (../converter/tsx-run.js) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] Tool/HtmlToGum/fidelity/crawl.ts:4 — Tool/HtmlToGum/fidelity/crawl.ts:4 reaches into another package with a relative path (../converter/tsx-evaluate-shim.js) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] Tool/HtmlToGum/fidelity/freeze-page.ts:14 — Tool/HtmlToGum/fidelity/freeze-page.ts:14 reaches into another package with a relative path (../converter/tsx-evaluate-shim.js) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] Tool/HtmlToGum/fidelity/site-fidelity.ts:24 — Tool/HtmlToGum/fidelity/site-fidelity.ts:24 reaches into another package with a relative path (../converter/tsx-run.js) — import the package by name instead.
X12 · Unreachable branch · Branch is unreachable · ×4
  • Branch is unreachable — its condition cannot hold here RenderingLibrary/Graphics/Sprite.cs:976 — `textureToUse == null` can never be true where it stands: the guard on line 898 (`textureToUse == null`) left this block when it was true. No value of `textureToUse` satisfies all of that, so this arm never runs. Reorder the tests, drop the dead branch, or fix the bound that was meant.
  • Branch is unreachable — its condition cannot hold here Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:3349 — `yOrigin == VerticalAlignment.Top` can never be true where it stands: the arm on line 3330 (`yOrigin == VerticalAlignment.Center`) was false; the arm on line 3341 (`yOrigin == VerticalAlignment.Top`) was false. No value of `yOrigin` satisfies all of that, so this arm never runs. Reorder the tests, drop the dead branch, or fix the bound that was meant.
  • Branch is unreachable — its condition cannot hold here Tool/TextureCoordinatePlugin.Core/RegionSelection/RectangleSelector.cs:914 — `case ResizeSide.None:` can never be true where it stands: the enclosing `if` on line 873 (`sideToUse != ResizeSide.None`) holds. No value of `sideToUse` satisfies all of that, so this case label never runs. Reorder the tests, drop the dead branch, or fix the bound that was meant.
  • Branch is unreachable — its condition cannot hold here Gum/Controls/ThemedScrollbar.cs:273 — `movable == 0` can never be true where it stands: `movable` was set from `Math.Max(1, trackLen - thumbLen)` on line 270. No value of `movable` satisfies all of that, so the true arm of this conditional expression never runs. Reorder the tests, drop the dead branch, or fix the bound that was meant.
X18 · Disposal-pattern correctness · Disposes a dependency it does not own · ×4
  • Disposes a dependency it does not own Runtimes/BrutalHost/QueueLockedBackend.cs:65 — `Inner` is never created by `QueueLockedBackend` — every assignment to it takes a constructor parameter — yet this type disposes it here (line 65). Its declared type `IBrutalGpuBackend` is an interface, so the instance came from whoever chose and created it, and that owner decides when it ends. Disposing it from here reaches outside this object's lifetime: a dependency shared with the rest of the process is torn down when THIS instance goes away, and the real owner's later `Dispose()` runs a second time on an object already disposed. Drop the call — a type disposes what it constructed, and only that. If this dependency genuinely is exclusive to this instance, construct it here (or take an owned factory) so the ownership is stated in the code rather than assumed.
  • Disposes a dependency it does not own Runtimes/BrutalHost/QueueLockedBackend.cs:94 — `Inner` is never created by `LockedTarget` — every assignment to it takes a constructor parameter — yet this type disposes it here (line 94). Its declared type `IBrutalTarget` is an interface, so the instance came from whoever chose and created it, and that owner decides when it ends. Disposing it from here reaches outside this object's lifetime: a dependency shared with the rest of the process is torn down when THIS instance goes away, and the real owner's later `Dispose()` runs a second time on an object already disposed. Drop the call — a type disposes what it constructed, and only that. If this dependency genuinely is exclusive to this instance, construct it here (or take an owned factory) so the ownership is stated in the code rather than assumed.
  • Disposes a dependency it does not own Gum/CsvLibrary/CsvReader.cs:2040 — `_reader` is never created by `CsvReader` — every assignment to it takes a constructor parameter — yet this type disposes it here (line 2040). Its declared type `TextReader` is an abstract class, so the instance came from whoever chose and created it, and that owner decides when it ends. Disposing it from here reaches outside this object's lifetime: a dependency shared with the rest of the process is torn down when THIS instance goes away, and the real owner's later `Dispose()` runs a second time on an object already disposed. Drop the call — a type disposes what it constructed, and only that. If this dependency genuinely is exclusive to this instance, construct it here (or take an owned factory) so the ownership is stated in the code rather than assumed.
  • Disposes a dependency it does not own XnaAndWinforms.Wpf/WpfGraphicsDeviceControl.cs:273 — `_surfaceHost` is never created by `WpfGraphicsDeviceControl` — every assignment to it takes a constructor parameter — yet this type disposes it here (line 273). Its declared type `IWpfRenderSurfaceHost` is an interface, so the instance came from whoever chose and created it, and that owner decides when it ends. Disposing it from here reaches outside this object's lifetime: a dependency shared with the rest of the process is torn down when THIS instance goes away, and the real owner's later `Dispose()` runs a second time on an object already disposed. Drop the call — a type disposes what it constructed, and only that. If this dependency genuinely is exclusive to this instance, construct it here (or take an owned factory) so the ownership is stated in the code rather than assumed.
AC6 · Visual & motion safety · Focus outline removed in CSS without a · ×3
  • Focus outline removed in CSS without a :focus replacement Tool/HtmlToGum/samples/assets/rpgui/rpgui.css:59 — `.rpgui-button` 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 Tool/HtmlToGum/samples/assets/rpgui/rpgui.css:98 — `.rpgui-button.golden` 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 Tool/HtmlToGum/samples/assets/rpgui/rpgui.css:218 — `.rpgui-content *` 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.
D4 · Code Duplication · Members sharing a duplicated core (6 members, 50+ identical tokens) · ×3
  • Members sharing a duplicated core (6 members, 50+ identical tokens) RenderingLibrary/Graphics/NineSlice.cs:1346 — RenderingLibrary/Graphics/NineSlice.cs:1346-1372 | RenderingLibrary/Graphics/Sprite.cs:460-487 | Runtimes/RaylibGum/Renderables/NineSlice.cs:97-123 | Runtimes/RaylibGum/Renderables/Sprite.cs:594-620 | Runtimes/SkiaGum/Renderables/NineSlice.cs:97-123 | Runtimes/SkiaGum/Renderables/Sprite.cs:285-311 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) Themes/Gum.Themes.Bubblegum.MonoGame/SliderVisual.cs:104 — Themes/Gum.Themes.Bubblegum.MonoGame/SliderVisual.cs:104-122 | Themes/Gum.Themes.DarkPro.MonoGame/SliderVisual.cs:138-156 | Themes/Gum.Themes.DarkPro.MonoGame/SliderVisual.cs:181-200 | Themes/Gum.Themes.ForestGlade.MonoGame/SliderVisual.cs:103-119 | Themes/Gum.Themes.Meadow.MonoGame/SliderVisual.cs:103-121 | Themes/Gum.Themes.Neon.MonoGame/SliderVisual.cs:104-122 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
  • Members sharing a duplicated core (6 members, 50+ identical tokens) Samples/GameUiSamples/Screens/HyTaleHotbarScreen.cs:59 — Samples/GameUiSamples/Screens/HyTaleHotbarScreen.cs:59-108 | Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:131-149 | Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:153-218 | Samples/GameUiSamplesSkia/Screens/HyTaleHotbarScreen.cs:59-108 | Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs:132-150 | Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs:154-219 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
D4 · Code Duplication · Edited copy of a member (37 corresponding lines) · ×3
  • Edited copy of a member (37 corresponding lines) Runtimes/RaylibGum/Renderables/LineArc.cs:769 — Runtimes/RaylibGum/Renderables/LineArc.cs:769-805 | Runtimes/RaylibGum/Renderables/LineCircle.cs:569-619 — These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (37 corresponding lines) GumRuntime/GraphicalUiElement.Properties.cs:742 — GumRuntime/GraphicalUiElement.Properties.cs:742-778 | GumRuntime/GraphicalUiElement.Properties.cs:793-829 — These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (37 corresponding lines) Samples/MonoGameGumThemesShowcase/Game1.cs:476 — Samples/MonoGameGumThemesShowcase/Game1.cs:476-512 | Samples/RaylibGumThemesShowcase/Program.cs:415-451 — These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (39 corresponding lines) · ×3
  • Edited copy of a member (39 corresponding lines) RenderingLibrary/SystemManagers.cs:497 — RenderingLibrary/SystemManagers.cs:497-535 | Runtimes/RaylibGum/RenderingLibrary/SystemManagers.cs:310-351 — 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) Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:233 — Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:233-271 | Samples/raylib/Screens/ArcsScreen.cs:239-277 — 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) Samples/MonoGameGumFromFile/MonoGameGumFromFile/Game1.cs:308 — Samples/MonoGameGumFromFile/MonoGameGumFromFile/Game1.cs:308-346 | Samples/SokolGumFromFile/Program.cs:378-422 — 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 (28 corresponding lines) · ×3
  • Edited copy of a member (28 corresponding lines) Runtimes/SkiaGum/Renderables/NineSlice.cs:331 — Runtimes/SkiaGum/Renderables/NineSlice.cs:331-379 | Runtimes/SkiaGum/Renderables/Sprite.cs:369-396 — These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (28 corresponding lines) Gum/Managers/ObjectFinder.cs:617 — Gum/Managers/ObjectFinder.cs:617-644 | Gum/Managers/ObjectFinder.cs:1531-1560 — These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (28 corresponding lines) Tools/Gum.Presentation/StateAnimationPlugin/AnimationTabController.cs:711 — Tools/Gum.Presentation/StateAnimationPlugin/AnimationTabController.cs:711-738 | Tools/Gum.Presentation/StateAnimationPlugin/AnimationTabController.cs:745-777 — 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 (32 corresponding lines) · ×3
  • Edited copy of a member (32 corresponding lines) GumCommon/Runtime/AnimationRuntime.cs:50 — GumCommon/Runtime/AnimationRuntime.cs:50-86 | GumCommon/Runtime/AnimationRuntime.cs:89-120 — These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (32 corresponding lines) Tools/Gum.Cli/Commands/DiffScreenshotsCommand.cs:79 — Tools/Gum.Cli/Commands/DiffScreenshotsCommand.cs:79-121 | Tools/Gum.Cli/Commands/DiffStandardsCommand.cs:57-88 — These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (32 corresponding lines) Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Screens/RenderTargetScreen.cs:124 — Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Screens/RenderTargetScreen.cs:124-155 | Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Screens/RenderTargetScreen.cs:115-149 — 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 (1 corresponding lines) · ×3
  • Edited copy of a member (1 corresponding lines) MonoGameGum/Forms/Controls/ComboBox.cs:115 — MonoGameGum/Forms/Controls/ComboBox.cs:115-115 | MonoGameGum/Forms/Controls/MenuItem.cs:226-226 — These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (1 corresponding lines) MonoGameGum/Forms/Controls/MenuItem.cs:806 — MonoGameGum/Forms/Controls/MenuItem.cs:806-806 | MonoGameGum/Forms/Controls/ComboBox.cs:115-115 — These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (1 corresponding lines) WpfDataUi/Converters/DataUiBindingConverters.cs:16 — WpfDataUi/Converters/DataUiBindingConverters.cs:16-22 | Tool/Gum.Avalonia/Plugins/VariableGrid/VariablesTabView.cs:264-264 — These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 7+ corresponding lines) · ×3
  • Edited copies of one member (3 members, 7+ corresponding lines) RenderingLibrary/Graphics/Text.cs:66 — RenderingLibrary/Graphics/Text.cs:66-72 | Runtimes/RaylibGum/Renderables/Text.cs:115-121 | Runtimes/SkiaGum/Renderables/Text.cs:62-68 — 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) RenderingLibrary/Graphics/Text.cs:78 — RenderingLibrary/Graphics/Text.cs:78-84 | Runtimes/RaylibGum/Renderables/Text.cs:127-133 | Runtimes/SkiaGum/Renderables/Text.cs:74-80 — 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) Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs:372 — Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs:372-378 | Samples/KniSkiaGumFromFile/KniSkiaGumFromFile/Game1.cs:253-259 | Samples/MonoGameGumFromFile/MonoGameGumFromFile/Game1.cs:400-406 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Duplicated block (26–27 lines × 2) · ×3
  • Duplicated block (26–27 lines × 2) Gum/DataTypes/StateSaveExtensionMethods.cs:326 — Gum/DataTypes/StateSaveExtensionMethods.cs:326-351 | Gum/DataTypes/StateSaveExtensionMethods.cs:470-496 — 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 `Gum/DataTypes/StateSaveExtensionMethods.cs:326` 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 (26–27 lines × 2) Tool/TextureCoordinatePlugin.Core/Logic/ControlLogic.cs:519 — Tool/TextureCoordinatePlugin.Core/Logic/ControlLogic.cs:519-545 | Tool/TextureCoordinatePlugin.Core/Logic/ControlLogic.cs:552-577 — 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 `Tool/TextureCoordinatePlugin.Core/Logic/ControlLogic.cs:519` 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 (26–27 lines × 2) Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/MoveInputHandler.cs:326 — Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/MoveInputHandler.cs:326-352 | Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/MoveInputHandler.cs:360-385 — 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 `Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/MoveInputHandler.cs:326` 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 (21–22 lines × 2) · ×3
  • Duplicated block (21–22 lines × 2) GumRuntime/GraphicalUiElement.Position.cs:688 — GumRuntime/GraphicalUiElement.Position.cs:688-708 | RenderingLibrary/Graphics/NineSlice.cs:696-717 — 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 `GumRuntime/GraphicalUiElement.Position.cs:688` 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–22 lines × 2) MonoGameGum/Forms/Controls/Primitives/RangeBase.cs:562 — MonoGameGum/Forms/Controls/Primitives/RangeBase.cs:562-583 | MonoGameGum/Forms/Controls/Slider.cs:266-286 — 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 `MonoGameGum/Forms/Controls/Primitives/RangeBase.cs:562` 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–22 lines × 2) RenderingLibrary/SystemManagers.cs:293 — RenderingLibrary/SystemManagers.cs:293-313 | Runtimes/RaylibGum/RenderingLibrary/SystemManagers.cs:156-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. 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–17 lines × 2) · ×3
  • Duplicated block (16–17 lines × 2) GumRuntime/GraphicalUiElement.Dimensions.cs:443 — GumRuntime/GraphicalUiElement.Dimensions.cs:443-459 | GumRuntime/GraphicalUiElement.Dimensions.cs:542-557 — 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 `GumRuntime/GraphicalUiElement.Dimensions.cs:443` 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–17 lines × 2) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:448 — Gum/Wireframe/CustomSetPropertyOnRenderable.cs:448-464 | Gum/Wireframe/CustomSetPropertyOnRenderable.cs:689-704 — 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 `Gum/Wireframe/CustomSetPropertyOnRenderable.cs:448` 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 (16–17 lines × 2) Themes/Gum.Themes.Template.MonoGame/ListBoxItemVisual.cs:53 — Themes/Gum.Themes.Template.MonoGame/ListBoxItemVisual.cs:53-69 | Themes/Gum.Themes.Template.MonoGame/MenuItemVisual.cs:72-87 — 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 `Themes/Gum.Themes.Template.MonoGame/ListBoxItemVisual.cs:53` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (15–16 lines × 2) · ×3
  • Duplicated block (15–16 lines × 2) GumRuntime/GraphicalUiElement.Stacking.cs:272 — GumRuntime/GraphicalUiElement.Stacking.cs:272-287 | GumRuntime/GraphicalUiElement.Stacking.cs:323-337 — 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 `GumRuntime/GraphicalUiElement.Stacking.cs:323` 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 (15–16 lines × 2) Gum/DataTypes/StateSaveExtensionMethods.cs:432 — Gum/DataTypes/StateSaveExtensionMethods.cs:432-447 | Gum/DataTypes/StateSaveExtensionMethods.cs:545-559 — 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 `Gum/DataTypes/StateSaveExtensionMethods.cs:432` 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–16 lines × 2) MonoGameGum/GueDeriving/RectangleRuntime.cs:1957 — MonoGameGum/GueDeriving/RectangleRuntime.cs:1957-1971 | Runtimes/SkiaGum/GueDeriving/RoundedRectangleRuntime.cs:248-263 — 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 lines × 7) · ×3
  • Duplicated block (11 lines × 7) Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:110 — Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:110-120 | Themes/Gum.Themes.DarkPro.MonoGame/CheckBoxVisual.cs:111-121 | Themes/Gum.Themes.Hazard.MonoGame/CheckBoxVisual.cs:116-126 | Themes/Gum.Themes.Meadow.MonoGame/CheckBoxVisual.cs:106-116 | Themes/Gum.Themes.Neon.MonoGame/CheckBoxVisual.cs:110-120 | Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:114-124 | Themes/Gum.Themes.Template.MonoGame/Variants/CheckBoxVisual.cs:118-128 — `Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/CheckBoxVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 99 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Note what the matched lines are: every one of them assigns one field to another, so the block is a hand-written mapper between two data shapes rather than behaviour with a helper inside it. Extracting one shared function only works if both sites map the SAME pair of types in the same direction — check that first, because inverse or differently-typed mappers have no single function they can both call. Where they do not, the moves that exist are a generated or reflective mapper, a common embedded/base type the fields live on once, or accepting the run and covering it with a test that fails when a field is added to one side only.
  • Duplicated block (11 lines × 7) Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:294 — Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:294-304 | Themes/Gum.Themes.DarkPro.MonoGame/CheckBoxVisual.cs:309-319 | Themes/Gum.Themes.ForestGlade.MonoGame/CheckBoxVisual.cs:307-317 | Themes/Gum.Themes.Hazard.MonoGame/CheckBoxVisual.cs:315-325 | Themes/Gum.Themes.Neon.MonoGame/CheckBoxVisual.cs:297-307 | Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:312-322 | Themes/Gum.Themes.Template.MonoGame/Variants/CheckBoxVisual.cs:316-326 — `Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/CheckBoxVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 99 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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 × 7) Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:314 — Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:314-324 | Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:326-336 | Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:338-348 | Samples/raylib/Screens/ArcsScreen.cs:301-311 | Samples/raylib/Screens/ArcsScreen.cs:313-323 | Samples/raylib/Screens/ArcsScreen.cs:325-335 | Samples/raylib/Screens/ArcsScreen.cs:336-351 — before extracting anything, compare `Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs` and `Samples/raylib/Screens/ArcsScreen.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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.
D4 · Code Duplication · Duplicated block (10 lines × 3) · ×3
  • Duplicated block (10 lines × 3) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:87 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs:87-96 | Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs:68-77 | Themes/Gum.Themes.Template.MonoGame/TemplateShapes.cs:87-96 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumShapes.cs` and `Themes/Gum.Themes.Hazard.MonoGame/HazardShapes.cs` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 144 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:601 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:601-610 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:643-652 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:681-696 — 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 `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:601` 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, `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:697` calls `Color` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:653` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (10 lines × 3) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/NineSliceScreen.cs:62 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/NineSliceScreen.cs:62-71 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/SpriteScreen.cs:72-81 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/SpriteScreen.cs:311-320 — 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. 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, `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/SpriteScreen.cs:308` calls `AddRow`, `foreach` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/SpriteScreen.cs:71` 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 (10–11 lines × 2) · ×3
  • Duplicated block (10–11 lines × 2) Tool/Gum.Avalonia/Services/SecondaryClickHook.cs:57 — Tool/Gum.Avalonia/Services/SecondaryClickHook.cs:57-67 | Tool/Gum.Avalonia/Services/SecondaryClickHook.cs:74-83 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Tool/Gum.Avalonia/Services/SecondaryClickHook.cs: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. Note first that the copies are not typed on the same thing: the declarations holding them bind `e` to `PointerPressedEventArgs` in one and `PointerReleasedEventArgs` 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 (10–11 lines × 2) Tools/Gum.Presentation/Logic/ReferenceFinder.cs:177 — Tools/Gum.Presentation/Logic/ReferenceFinder.cs:177-187 | Tools/Gum.Presentation/Logic/ReferenceFinder.cs:245-254 — 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 `Tools/Gum.Presentation/Logic/ReferenceFinder.cs:177` 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 (10–11 lines × 2) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:469 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:469-479 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:525-534 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:524` calls `Color` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:469` 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 × 8) · ×3
  • Duplicated block (10 lines × 8) Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:73 — Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:73-82 | Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:105-114 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs:64-73 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs:97-106 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollBarVisual.cs:144-153 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollBarVisual.cs:163-172 | Themes/Gum.Themes.ForestGlade.MonoGame/TooltipVisual.cs:48-57 | Themes/Gum.Themes.ForestGlade.MonoGame/TooltipVisual.cs:67-76 — before extracting anything, compare `Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs` and `Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs` as WHOLE FILES: this scan already matched 10 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. 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 × 8) Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs:193 — Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs:193-202 | Themes/Gum.Themes.DarkPro.MonoGame/RadioButtonVisual.cs:214-223 | Themes/Gum.Themes.ForestGlade.MonoGame/RadioButtonVisual.cs:205-214 | Themes/Gum.Themes.Hazard.MonoGame/RadioButtonVisual.cs:220-229 | Themes/Gum.Themes.Meadow.MonoGame/RadioButtonVisual.cs:194-203 | Themes/Gum.Themes.Neon.MonoGame/RadioButtonVisual.cs:193-202 | Themes/Gum.Themes.Template.MonoGame/RadioButtonVisual.cs:217-226 | Themes/Gum.Themes.Template.MonoGame/Variants/RadioButtonVisual.cs:227-236 — `Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/RadioButtonVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 88 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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 × 8) Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs:193 — Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs:193-202 | Themes/Gum.Themes.DarkPro.MonoGame/RadioButtonVisual.cs:214-223 | Themes/Gum.Themes.ForestGlade.MonoGame/RadioButtonVisual.cs:205-214 | Themes/Gum.Themes.Hazard.MonoGame/RadioButtonVisual.cs:220-229 | Themes/Gum.Themes.Meadow.MonoGame/RadioButtonVisual.cs:194-203 | Themes/Gum.Themes.Neon.MonoGame/RadioButtonVisual.cs:193-202 | Themes/Gum.Themes.Template.MonoGame/RadioButtonVisual.cs:217-226 | Themes/Gum.Themes.Template.MonoGame/Variants/RadioButtonVisual.cs:227-236 — `Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/RadioButtonVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 88 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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 × 6) · ×3
  • Duplicated block (7 lines × 6) Themes/Gum.Themes.Template.MonoGame/ButtonVisual.cs:46 — Themes/Gum.Themes.Template.MonoGame/ButtonVisual.cs:46-52 | Themes/Gum.Themes.Template.MonoGame/ComboBoxVisual.cs:58-64 | Themes/Gum.Themes.Template.MonoGame/ListBoxVisual.cs:39-45 | Themes/Gum.Themes.Template.MonoGame/ScrollViewerVisual.cs:38-44 | Themes/Gum.Themes.Template.MonoGame/ToggleButtonVisual.cs:47-53 | Themes/Gum.Themes.Template.MonoGame/Variants/ListBoxVisual.cs:50-56 — before extracting anything, compare `Themes/Gum.Themes.Template.MonoGame/ButtonVisual.cs` and `Themes/Gum.Themes.Template.MonoGame/ToggleButtonVisual.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (7 lines × 6) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:420 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:420-427 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:431-438 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:441-448 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:475-481 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:484-490 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:493-499 — before extracting anything, compare `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 251 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:415` calls `Color` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:425` 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 × 6) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:471 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:471-477 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:494-500 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:505-511 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:516-522 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:540-546 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:608-614 — all 6 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. 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, `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:478` calls `Add` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:523` 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 · Edited copies of one member (3 members, 9+ corresponding lines) · ×3
  • Edited copies of one member (3 members, 9+ corresponding lines) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs:110 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs:110-119 | Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:108-116 | Samples/raylib/Screens/PolygonsScreen.cs:110-118 — 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs:87 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs:87-95 | Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:83-91 | Samples/raylib/Screens/PolygonsScreen.cs:86-94 — 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) Samples/KniSkiaGumCodeGeneration/KniSkiaGumCodeGeneration/Game1.cs:26 — Samples/KniSkiaGumCodeGeneration/KniSkiaGumCodeGeneration/Game1.cs:26-37 | Samples/KniSkiaGumFontLoading/KniSkiaGumFontLoading/Game1.cs:29-37 | Samples/KniSkiaGumInCode/KniSkiaGumInCode/Game1.cs:29-41 — 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 · Duplicated block (30 lines × 2) · ×3
  • Duplicated block (30 lines × 2) Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:154 — Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:154-183 | Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs:155-184 — before extracting anything, compare `Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs` and `Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 335 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 `Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:154` 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 (30 lines × 2) Samples/GameUiSamples/Screens/StardewInventoryScreen.cs:93 — Samples/GameUiSamples/Screens/StardewInventoryScreen.cs:93-122 | Samples/GameUiSamplesSkia/Screens/StardewInventoryScreen.cs:93-122 — before extracting anything, compare `Samples/GameUiSamples/Screens/StardewInventoryScreen.cs` and `Samples/GameUiSamplesSkia/Screens/StardewInventoryScreen.cs` as WHOLE FILES: this scan already matched 9 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 (30 lines × 2) Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs:425 — Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs:425-454 | Samples/MonoGameGumFromFile/MonoGameGumFromFile/Game1.cs:453-482 — before extracting anything, compare `Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs` and `Samples/MonoGameGumFromFile/MonoGameGumFromFile/Game1.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 97 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 (11–12 lines × 2) · ×3
  • Duplicated block (11–12 lines × 2) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:874 — Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:874-884 | Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:891-902 — 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 `Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:874` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11–12 lines × 2) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:414 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:414-425 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:475-485 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:474` calls `Color` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:413` 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 (11–12 lines × 2) Samples/SokolGumFromFile/Program.cs:394 — Samples/SokolGumFromFile/Program.cs:394-405 | Samples/SokolGumFromFile/Program.cs:407-417 — 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 (7 lines × 4) · ×3
  • Duplicated block (7 lines × 4) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:221 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:221-228 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:290-296 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:520-527 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:561-569 — 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. 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, `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:221` calls `Add` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:561` 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 × 4) Samples/FontPlayground/FontPlayground.MonoGame/Game1.cs:53 — Samples/FontPlayground/FontPlayground.MonoGame/Game1.cs:53-62 | Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Game1.cs:42-48 | Samples/MonoGameGumThemesShowcase/Game1.cs:65-79 | Samples/TextureFilterDemo/TextureFilterDemo.MonoGame/Game1.cs:29-35 — 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.
  • Duplicated block (7 lines × 4) Samples/GameUiSamples/Components/HyTaleComponents/HyTaleHotBar.cs:26 — Samples/GameUiSamples/Components/HyTaleComponents/HyTaleHotBar.cs:26-32 | Samples/GameUiSamples/Components/StardewComponents/Hotbar.cs:30-36 | Samples/GameUiSamplesSkia/Components/HyTaleComponents/HyTaleHotBar.cs:26-32 | Samples/GameUiSamplesSkia/Components/StardewComponents/Hotbar.cs:30-36 — before extracting anything, compare `Samples/GameUiSamples/Components/HyTaleComponents/HyTaleHotBar.cs` and `Samples/GameUiSamplesSkia/Components/HyTaleComponents/HyTaleHotBar.cs` as WHOLE FILES: this scan already matched 5 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.
R10 · Code Duplication · Duplicated block (5 lines × 2 locations) · ×3
  • Duplicated block (5 lines × 2 locations) Tool/HtmlToGum/converter/regress.ts:113 — Tool/HtmlToGum/converter/regress.ts:113 · Tool/HtmlToGum/converter/regress.ts:133 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2 locations) Tool/HtmlToGum/converter/regress.ts:177 — Tool/HtmlToGum/converter/regress.ts:177 · Tool/HtmlToGum/converter/regress.ts:197 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (5 lines × 2 locations) Tool/HtmlToGum/fidelity/freeze-page.ts:38 — Tool/HtmlToGum/fidelity/freeze-page.ts:38 · Tool/HtmlToGum/fidelity/site-fidelity.ts:66 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
D17 · Explicit Debt · HackComment · ×2
  • HackComment GumRuntime/GraphicalUiElement.cs:235 — // hack for FRB: — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
  • HackComment Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/PropertyGridManager.cs:1137 — // Hack! I would like to have this set by variables, but that's going to require a ton — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
D18 · Solution Shape · Solution references a project that does not exist · ×2
  • Solution references a project that does not exist AllLibraries.sln — `AllLibraries.sln` declares 1 project file(s) that are missing from the tree (`fna/FNA.Core.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 Samples/FnaGum/FnaSample.sln — `Samples/FnaGum/FnaSample.sln` declares 1 project file(s) that are missing from the tree (`fna/FNA.Core.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 · convert.rasterizeEffects · ×2
  • convert.rasterizeEffects::walk (cognitive 30) Tool/HtmlToGum/converter/convert.ts:317 — convert.rasterizeEffects::walk has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 4, error handling 1 (4 pts), ternaries 1 (3 pts), loops 1 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This shape REPEATS in the file: one other method here (convert.rasterizeEffects::walk::shot) 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.
  • convert.rasterizeEffects::walk::shot (cognitive 18) Tool/HtmlToGum/converter/convert.ts:335 — convert.rasterizeEffects::walk::shot has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 5, error handling 2 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (convert.rasterizeEffects::walk) 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.
D2 · Cognitive Complexity · StringFunctions.GetIntAfter (cognitive 25) · ×2
  • StringFunctions.GetIntAfter (cognitive 25) ToolsUtilities/StringFunctions.cs:48 — StringFunctions.GetIntAfter 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.
  • StringFunctions.GetIntAfter (cognitive 25) Gum/CsvLibrary/StringFunctions.cs:48 — StringFunctions.GetIntAfter 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 · HyTaleInventoryScreen.AssignIcon (cognitive 20) · ×2
  • HyTaleInventoryScreen.AssignIcon (cognitive 20) Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:152 — HyTaleInventoryScreen.AssignIcon 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.
  • HyTaleInventoryScreen.AssignIcon (cognitive 20) Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs:153 — HyTaleInventoryScreen.AssignIcon 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 · GumProjectSave.Save (cognitive 19) · ×2
  • GumProjectSave.Save (cognitive 19) GumDataTypes/GumProjectSave.cs:1193 — GumProjectSave.Save has cognitive complexity 19 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (GumProjectSave.Save) 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.
  • GumProjectSave.Save (cognitive 19) GumDataTypes/GumProjectSave.cs:1198 — GumProjectSave.Save has cognitive complexity 19 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (GumProjectSave.Save) 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.
D29 · Static Analysis (SAST) · REDACTED · ×2
  • REDACTED
  • REDACTED
D4 · Code Duplication · Edited copy of a member (64 corresponding lines) · ×2
  • Edited copy of a member (64 corresponding lines) Themes/Gum.Themes.Neon.MonoGame/RadioButtonVisual.cs:125 — Themes/Gum.Themes.Neon.MonoGame/RadioButtonVisual.cs:125-188 | Themes/Gum.Themes.Neon.MonoGame/ToggleButtonVisual.cs:147-210 — These two members are one piece of code written twice and then edited apart: 64 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (64 corresponding lines) MonoGameGum/GueDeriving/TextRuntime.cs:1416 — MonoGameGum/GueDeriving/TextRuntime.cs:1416-1479 | MonoGameGum/GueDeriving/TextRuntime.cs:1488-1561 — These two members are one piece of code written twice and then edited apart: 64 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (91 corresponding lines) · ×2
  • Edited copy of a member (91 corresponding lines) GumRuntime/GraphicalUiElement.Dimensions.cs:383 — GumRuntime/GraphicalUiElement.Dimensions.cs:383-475 | GumRuntime/GraphicalUiElement.Dimensions.cs:482-572 — These two members are one piece of code written twice and then edited apart: 91 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (91 corresponding lines) Tool/EditorTabPlugin.Core/EditorTabPluginBase.cs:1410 — Tool/EditorTabPlugin.Core/EditorTabPluginBase.cs:1410-1507 | Tool/EditorTabPlugin.Core/EditorTabPluginBase.cs:1521-1611 — These two members are one piece of code written twice and then edited apart: 91 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (36 corresponding lines) · ×2
  • Edited copy of a member (36 corresponding lines) Tool/EditorTabPlugin.Core/Editors/Visuals/DimensionDisplayVisual.cs:216 — Tool/EditorTabPlugin.Core/Editors/Visuals/DimensionDisplayVisual.cs:216-251 | Tool/EditorTabPlugin.Core/Editors/Visuals/DimensionDisplayVisual.cs:256-291 — These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (36 corresponding lines) Tools/Gum.Presentation/Wireframe/SelectionManager.cs:355 — Tools/Gum.Presentation/Wireframe/SelectionManager.cs:355-390 | Tools/Gum.Presentation/Wireframe/SelectionManager.cs:400-437 — These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (65 corresponding lines) · ×2
  • Edited copy of a member (65 corresponding lines) Tools/Gum.Presentation/Reflection/LateBinder.cs:249 — Tools/Gum.Presentation/Reflection/LateBinder.cs:249-313 | DataUi.Core/LateBinder.cs:373-439 — These two members are one piece of code written twice and then edited apart: 65 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (65 corresponding lines) Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Screens/RenderTargetScreen.cs:51 — Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Screens/RenderTargetScreen.cs:51-116 | Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Screens/RenderTargetScreen.cs:46-110 — These two members are one piece of code written twice and then edited apart: 65 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 18+ corresponding lines) · ×2
  • Edited copies of one member (3 members, 18+ corresponding lines) Runtimes/RaylibGum/Renderables/LinePolygon.cs:343 — Runtimes/RaylibGum/Renderables/LinePolygon.cs:343-366 | Runtimes/RaylibGum/Renderables/LineRectangle.cs:545-564 | Runtimes/SokolGum/Renderables/LineRectangle.cs:61-78 — 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:24 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:24-47 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs:32-49 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/SvgScreen.cs:38-66 — 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, 16+ corresponding lines) · ×2
  • Edited copies of one member (3 members, 16+ corresponding lines) AvaloniaDataUi/Controls/DataUiDisplayBase.cs:556 — AvaloniaDataUi/Controls/DataUiDisplayBase.cs:556-571 | AvaloniaDataUi/Controls/DataUiDisplayBase.cs:578-596 | Tool/Gum.Avalonia/Plugins/VariableGrid/VariablesTabView.cs:235-253 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 16+ corresponding lines) Themes/Gum.Themes.Retro95.MonoGame/ListBoxVisual.cs:27 — Themes/Gum.Themes.Retro95.MonoGame/ListBoxVisual.cs:27-51 | Themes/Gum.Themes.Retro95.MonoGame/Retro95MenuPopupVisual.cs:20-35 | Themes/Gum.Themes.Retro95.MonoGame/ScrollViewerVisual.cs:22-41 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 17+ corresponding lines) · ×2
  • Edited copies of one member (3 members, 17+ corresponding lines) DataUi.Core/LateBinder.cs:670 — DataUi.Core/LateBinder.cs:670-688 | Tools/Gum.Presentation/Reflection/LateBinder.cs:498-514 | Tools/Gum.Presentation/Reflection/LateBinder.cs:536-554 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 17+ corresponding lines) Tools/Gum.Presentation/CodeOutputPlugin/CodeOutputSettingsMembers.cs:644 — Tools/Gum.Presentation/CodeOutputPlugin/CodeOutputSettingsMembers.cs:644-662 | Tools/Gum.Presentation/CodeOutputPlugin/CodeOutputSettingsMembers.cs:665-682 | Tools/Gum.Presentation/CodeOutputPlugin/CodeOutputSettingsMembers.cs:685-701 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 14+ corresponding lines) · ×2
  • Edited copies of one member (3 members, 14+ corresponding lines) DataUi.Core/DataUiGridModel.cs:709 — DataUi.Core/DataUiGridModel.cs:709-726 | GumCommon/HostServices/ReloadReferenceScope.cs:326-339 | Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/StateValueComparer.cs:25-38 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
  • Edited copies of one member (3 members, 14+ corresponding lines) Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs:242 — Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs:242-256 | Samples/KniSkiaGumFromFile/KniSkiaGumFromFile/Game1.cs:148-161 | Samples/MonoGameGumFromFile/MonoGameGumFromFile/Game1.cs:264-278 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Duplicated block (58 lines × 2) · ×2
  • Duplicated block (58 lines × 2) Gum/CsvLibrary/StringFunctions.cs:120 — Gum/CsvLibrary/StringFunctions.cs:120-177 | ToolsUtilities/StringFunctions.cs:120-177 — before extracting anything, compare `Gum/CsvLibrary/StringFunctions.cs` and `ToolsUtilities/StringFunctions.cs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 256 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 (58 lines × 2) DataUi.Core/DataTypes/StandardDisplayers.cs:12 — DataUi.Core/DataTypes/StandardDisplayers.cs:12-69 | Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/GumDisplayers.cs:12-69 — 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 (31–38 lines × 2) · ×2
  • Duplicated block (31–38 lines × 2) GumCommon/Mvvm/PropertyPathObserver.cs:90 — GumCommon/Mvvm/PropertyPathObserver.cs:90-127 | GumCommon/Mvvm/PropertyPathObserver.cs:192-222 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (31–38 lines × 2) Themes/Gum.Themes.Hazard.MonoGame/HazardTheme.cs:181 — Themes/Gum.Themes.Hazard.MonoGame/HazardTheme.cs:181-211 | Themes/Gum.Themes.Template.MonoGame/TemplateTheme.cs:220-257 — before extracting anything, compare `Themes/Gum.Themes.Hazard.MonoGame/HazardTheme.cs` and `Themes/Gum.Themes.Template.MonoGame/TemplateTheme.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 264 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 (35 lines × 2) · ×2
  • Duplicated block (35 lines × 2) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:3782 — Gum/Wireframe/CustomSetPropertyOnRenderable.cs:3782-3816 | Gum/Wireframe/CustomSetPropertyOnRenderable.cs:3932-3966 — 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 `Gum/Wireframe/CustomSetPropertyOnRenderable.cs:3782` 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 (35 lines × 2) Samples/MonoGameGumFromFile/MonoGameGumFromFile/Game1.cs:162 — Samples/MonoGameGumFromFile/MonoGameGumFromFile/Game1.cs:162-196 | Samples/SokolGumFromFile/Program.cs:252-286 — 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.
D4 · Code Duplication · Duplicated block (23–26 lines × 2) · ×2
  • Duplicated block (23–26 lines × 2) Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeStyling.cs:138 — Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeStyling.cs:138-160 | Themes/Gum.Themes.Neon.MonoGame/NeonStyling.cs:175-200 — 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 (23–26 lines × 2) Gum/DataTypes/ElementSaveExtensionMethods.GumTool.cs:26 — Gum/DataTypes/ElementSaveExtensionMethods.GumTool.cs:26-51 | Tools/Gum.Presentation/Commands/FileCommands.cs:521-543 — 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.
D4 · Code Duplication · Duplicated block (25–26 lines × 2) · ×2
  • Duplicated block (25–26 lines × 2) Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:75 — Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:75-99 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs:66-91 — before extracting anything, compare `Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs` and `Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs` as WHOLE FILES: this scan already matched 10 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. 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 `Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:75` 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 (25–26 lines × 2) Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/MoveInputHandler.cs:139 — Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/MoveInputHandler.cs:139-164 | Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/ResizeInputHandler.cs:133-157 — 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 `Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/MoveInputHandler.cs:139` 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 (24–25 lines × 2) · ×2
  • Duplicated block (24–25 lines × 2) Runtimes/GumShapes/Renderables/Arc.cs:124 — Runtimes/GumShapes/Renderables/Arc.cs:124-148 | Runtimes/GumShapes/Renderables/Circle.cs:116-139 — 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 (24–25 lines × 2) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2691 — Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2691-2715 | Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:3083-3106 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (19–20 lines × 2) · ×2
  • Duplicated block (19–20 lines × 2) Runtimes/RaylibGum/Renderables/Text.cs:1675 — Runtimes/RaylibGum/Renderables/Text.cs:1675-1694 | Runtimes/SkiaGum/Renderables/Text.cs:3021-3039 — 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 `Runtimes/RaylibGum/Renderables/Text.cs:1675` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (19–20 lines × 2) DataUi.Core/LateBinder.cs:531 — DataUi.Core/LateBinder.cs:531-549 | Tools/Gum.Presentation/Reflection/LateBinder.cs:391-410 — before extracting anything, compare `DataUi.Core/LateBinder.cs` and `Tools/Gum.Presentation/Reflection/LateBinder.cs` as WHOLE FILES: this scan already matched 12 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (19 lines × 3) · ×2
  • Duplicated block (19 lines × 3) Themes/Gum.Themes.DarkPro.MonoGame/CheckBoxVisual.cs:23 — Themes/Gum.Themes.DarkPro.MonoGame/CheckBoxVisual.cs:23-41 | Themes/Gum.Themes.Hazard.MonoGame/CheckBoxVisual.cs:28-46 | Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:26-44 — `Themes/Gum.Themes.DarkPro.MonoGame/CheckBoxVisual.cs` and `Themes/Gum.Themes.Hazard.MonoGame/CheckBoxVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 118 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.DarkPro.MonoGame/CheckBoxVisual.cs:23` 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) Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs:28 — Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs:28-46 | Themes/Gum.Themes.Hazard.MonoGame/ComboBoxVisual.cs:29-47 | Themes/Gum.Themes.Template.MonoGame/ComboBoxVisual.cs:27-45 — `Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs` and `Themes/Gum.Themes.Hazard.MonoGame/ComboBoxVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 80 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs:28` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (14–18 lines × 5) · ×2
  • Duplicated block (14–18 lines × 5) Themes/Gum.Themes.Bubblegum.MonoGame/ComboBoxVisual.cs:70 — Themes/Gum.Themes.Bubblegum.MonoGame/ComboBoxVisual.cs:70-83 | Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs:65-82 | Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:54-67 | Themes/Gum.Themes.Hazard.MonoGame/ComboBoxVisual.cs:66-83 | Themes/Gum.Themes.Neon.MonoGame/ComboBoxVisual.cs:58-71 — `Themes/Gum.Themes.Bubblegum.MonoGame/ComboBoxVisual.cs` and `Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 38 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.Bubblegum.MonoGame/ComboBoxVisual.cs:70` 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–18 lines × 5) Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:29 — Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:29-44 | Themes/Gum.Themes.ForestGlade.MonoGame/CheckBoxVisual.cs:25-38 | Themes/Gum.Themes.Meadow.MonoGame/CheckBoxVisual.cs:26-41 | Themes/Gum.Themes.Neon.MonoGame/CheckBoxVisual.cs:29-44 | Themes/Gum.Themes.Template.MonoGame/Variants/CheckBoxVisual.cs:31-48 — `Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs` and `Themes/Gum.Themes.ForestGlade.MonoGame/CheckBoxVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 106 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (16–18 lines × 2) · ×2
  • Duplicated block (16–18 lines × 2) Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxItemVisual.cs:67 — Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxItemVisual.cs:67-84 | Themes/Gum.Themes.ForestGlade.MonoGame/SliderVisual.cs:134-149 — 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 `Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxItemVisual.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. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (16–18 lines × 2) Runtimes/SokolGum/Renderables/NineSlice.cs:108 — Runtimes/SokolGum/Renderables/NineSlice.cs:108-125 | Runtimes/SokolGum/Renderables/Sprite.cs:114-129 — 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 `Runtimes/SokolGum/Renderables/NineSlice.cs:108` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (15 lines × 8) · ×2
  • Duplicated block (15 lines × 8) Themes/Gum.Themes.Bubblegum.MonoGame/SliderVisual.cs:87 — Themes/Gum.Themes.Bubblegum.MonoGame/SliderVisual.cs:87-101 | Themes/Gum.Themes.DarkPro.MonoGame/SliderVisual.cs:121-135 | Themes/Gum.Themes.ForestGlade.MonoGame/SliderVisual.cs:86-100 | Themes/Gum.Themes.Hazard.MonoGame/SliderVisual.cs:112-126 | Themes/Gum.Themes.Meadow.MonoGame/SliderVisual.cs:86-100 | Themes/Gum.Themes.Neon.MonoGame/SliderVisual.cs:87-101 | Themes/Gum.Themes.Template.MonoGame/SliderVisual.cs:110-124 | Themes/Gum.Themes.Template.MonoGame/Variants/SliderVisual.cs:116-130 — `Themes/Gum.Themes.Bubblegum.MonoGame/SliderVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/SliderVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 85 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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 × 8) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:221 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:221-235 | Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs:222-236 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTheme.cs:238-252 | Themes/Gum.Themes.Hazard.MonoGame/HazardTheme.cs:228-242 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTheme.cs:252-266 | Themes/Gum.Themes.Neon.MonoGame/NeonTheme.cs:245-259 | Themes/Gum.Themes.Retro95.MonoGame/Retro95Theme.cs:216-230 | Themes/Gum.Themes.Template.MonoGame/TemplateTheme.cs:263-277 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 271 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:236` calls `VisualTemplate`, `ToggleButtonVisual` and `Themes/Gum.Themes.Hazard.MonoGame/HazardTheme.cs:243` 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 (11–16 lines × 2) · ×2
  • Duplicated block (11–16 lines × 2) Themes/Gum.Themes.Neon.MonoGame/SplitterVisual.cs:35 — Themes/Gum.Themes.Neon.MonoGame/SplitterVisual.cs:35-45 | Themes/Gum.Themes.Neon.MonoGame/WindowVisual.cs:148-163 — before extracting anything, compare `Themes/Gum.Themes.Neon.MonoGame/SplitterVisual.cs` and `Themes/Gum.Themes.Neon.MonoGame/WindowVisual.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.Neon.MonoGame/SplitterVisual.cs:35` 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–16 lines × 2) Samples/raylib/Screens/ArcsScreen.cs:326 — Samples/raylib/Screens/ArcsScreen.cs:326-336 | Samples/raylib/Screens/ArcsScreen.cs:337-352 — 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 (13–15 lines × 2) · ×2
  • Duplicated block (13–15 lines × 2) MonoGameGum/GueDeriving/CircleRuntime.cs:737 — MonoGameGum/GueDeriving/CircleRuntime.cs:737-751 | MonoGameGum/GueDeriving/RectangleRuntime.cs:1037-1049 — before extracting anything, compare `MonoGameGum/GueDeriving/CircleRuntime.cs` and `MonoGameGum/GueDeriving/RectangleRuntime.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 119 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 (13–15 lines × 2) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:196 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:196-208 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:409-423 — 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.
D4 · Code Duplication · Duplicated block (10–14 lines × 8) · ×2
  • Duplicated block (10–14 lines × 8) Themes/Gum.Themes.Bubblegum.MonoGame/ScrollBarVisual.cs:69 — Themes/Gum.Themes.Bubblegum.MonoGame/ScrollBarVisual.cs:69-82 | Themes/Gum.Themes.DarkPro.MonoGame/ScrollBarVisual.cs:105-118 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollBarVisual.cs:61-74 | Themes/Gum.Themes.Hazard.MonoGame/ScrollBarVisual.cs:104-117 | Themes/Gum.Themes.Meadow.MonoGame/ScrollBarVisual.cs:62-75 | Themes/Gum.Themes.Neon.MonoGame/ScrollBarVisual.cs:62-75 | Themes/Gum.Themes.Retro95.MonoGame/ScrollBarVisual.cs:130-139 | Themes/Gum.Themes.Template.MonoGame/ScrollBarVisual.cs:104-117 — `Themes/Gum.Themes.Bubblegum.MonoGame/ScrollBarVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/ScrollBarVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 137 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.Bubblegum.MonoGame/ScrollBarVisual.cs:69` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (10–14 lines × 8) Themes/Gum.Themes.Bubblegum.MonoGame/ScrollBarVisual.cs:94 — Themes/Gum.Themes.Bubblegum.MonoGame/ScrollBarVisual.cs:94-107 | Themes/Gum.Themes.DarkPro.MonoGame/ScrollBarVisual.cs:130-143 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollBarVisual.cs:86-99 | Themes/Gum.Themes.Hazard.MonoGame/ScrollBarVisual.cs:129-142 | Themes/Gum.Themes.Meadow.MonoGame/ScrollBarVisual.cs:87-100 | Themes/Gum.Themes.Neon.MonoGame/ScrollBarVisual.cs:87-100 | Themes/Gum.Themes.Retro95.MonoGame/ScrollBarVisual.cs:174-183 | Themes/Gum.Themes.Template.MonoGame/ScrollBarVisual.cs:129-142 — `Themes/Gum.Themes.Bubblegum.MonoGame/ScrollBarVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/ScrollBarVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 137 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.Bubblegum.MonoGame/ScrollBarVisual.cs:94` 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 (14 lines × 6) · ×2
  • Duplicated block (14 lines × 6) Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs:121 — Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs:121-134 | Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs:135-148 | Themes/Gum.Themes.DarkPro.MonoGame/DarkProTextInputDecoration.cs:114-127 | Themes/Gum.Themes.DarkPro.MonoGame/ListBoxVisual.cs:119-132 | Themes/Gum.Themes.DarkPro.MonoGame/ScrollViewerVisual.cs:117-130 | Themes/Gum.Themes.DarkPro.MonoGame/ToggleButtonVisual.cs:116-129 — before extracting anything, compare `Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 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 `Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs:121` 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 × 6) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:144 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:144-157 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:164-177 | Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:62-75 | Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:55-68 | Samples/raylib/Screens/ArcsScreen.cs:69-82 | Samples/raylib/Screens/PolygonsScreen.cs:58-71 — before extracting anything, compare `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 251 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 `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:144` 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 lines × 8) · ×2
  • Duplicated block (13 lines × 8) Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs:61 — Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs:61-73 | Themes/Gum.Themes.DarkPro.MonoGame/RadioButtonVisual.cs:67-79 | Themes/Gum.Themes.ForestGlade.MonoGame/RadioButtonVisual.cs:64-76 | Themes/Gum.Themes.Hazard.MonoGame/RadioButtonVisual.cs:72-84 | Themes/Gum.Themes.Meadow.MonoGame/RadioButtonVisual.cs:61-73 | Themes/Gum.Themes.Neon.MonoGame/RadioButtonVisual.cs:61-73 | Themes/Gum.Themes.Template.MonoGame/RadioButtonVisual.cs:70-82 | Themes/Gum.Themes.Template.MonoGame/Variants/RadioButtonVisual.cs:80-92 — `Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/RadioButtonVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 88 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Note 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 (13 lines × 8) Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs:83 — Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs:83-95 | Themes/Gum.Themes.DarkPro.MonoGame/RadioButtonVisual.cs:92-104 | Themes/Gum.Themes.ForestGlade.MonoGame/RadioButtonVisual.cs:86-98 | Themes/Gum.Themes.Hazard.MonoGame/RadioButtonVisual.cs:97-109 | Themes/Gum.Themes.Meadow.MonoGame/RadioButtonVisual.cs:83-95 | Themes/Gum.Themes.Neon.MonoGame/RadioButtonVisual.cs:83-95 | Themes/Gum.Themes.Template.MonoGame/RadioButtonVisual.cs:95-107 | Themes/Gum.Themes.Template.MonoGame/Variants/RadioButtonVisual.cs:105-117 — `Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/RadioButtonVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 88 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (9 lines × 6) · ×2
  • Duplicated block (9 lines × 6) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:243 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:243-251 | Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs:244-252 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTheme.cs:263-271 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTheme.cs:274-282 | Themes/Gum.Themes.Neon.MonoGame/NeonTheme.cs:267-275 | Themes/Gum.Themes.Retro95.MonoGame/Retro95Theme.cs:238-246 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 271 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 `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:243` 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, `Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTheme.cs:259` calls `VisualTemplate`, `LabelVisual` and `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:239` 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 × 6) Themes/Gum.Themes.Bubblegum.MonoGame/TabControlVisual.cs:28 — Themes/Gum.Themes.Bubblegum.MonoGame/TabControlVisual.cs:28-36 | Themes/Gum.Themes.DarkPro.MonoGame/TabControlVisual.cs:28-36 | Themes/Gum.Themes.ForestGlade.MonoGame/TabControlVisual.cs:28-36 | Themes/Gum.Themes.Hazard.MonoGame/TabControlVisual.cs:28-36 | Themes/Gum.Themes.Meadow.MonoGame/TabControlVisual.cs:28-36 | Themes/Gum.Themes.Neon.MonoGame/TabControlVisual.cs:28-36 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 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 6 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 (10 lines × 6) · ×2
  • Duplicated block (10 lines × 6) MonoGameGum/Forms/DefaultVisuals/V3/ButtonVisual.cs:132 — MonoGameGum/Forms/DefaultVisuals/V3/ButtonVisual.cs:132-141 | MonoGameGum/Forms/DefaultVisuals/V3/DialogBoxVisual.cs:81-90 | MonoGameGum/Forms/DefaultVisuals/V3/MenuItemVisual.cs:172-181 | MonoGameGum/Forms/DefaultVisuals/V3/ToggleButtonVisual.cs:137-146 | MonoGameGum/Forms/DefaultVisuals/V3/TooltipVisual.cs:100-109 | MonoGameGum/Forms/DefaultVisuals/V3/WindowVisual.cs:130-139 — before extracting anything, compare `MonoGameGum/Forms/DefaultVisuals/V3/ButtonVisual.cs` and `MonoGameGum/Forms/DefaultVisuals/V3/ToggleButtonVisual.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 80 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 × 6) Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs:193 — Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs:193-202 | Themes/Gum.Themes.DarkPro.MonoGame/RadioButtonVisual.cs:214-223 | Themes/Gum.Themes.ForestGlade.MonoGame/RadioButtonVisual.cs:205-214 | Themes/Gum.Themes.Hazard.MonoGame/RadioButtonVisual.cs:220-229 | Themes/Gum.Themes.Meadow.MonoGame/RadioButtonVisual.cs:194-203 | Themes/Gum.Themes.Neon.MonoGame/RadioButtonVisual.cs:193-202 — `Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/RadioButtonVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 88 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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–12 lines × 2) · ×2
  • Duplicated block (9–12 lines × 2) Gum/Plugins/InternalPlugins/TreeView/StandardsPaletteView.cs:354 — Gum/Plugins/InternalPlugins/TreeView/StandardsPaletteView.cs:354-365 | Tool/Gum.Avalonia/Plugins/TreeView/AvaloniaStandardsPalette.cs:246-254 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (9–12 lines × 2) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/NineSliceScreen.cs:239 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/NineSliceScreen.cs:239-250 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/SpriteScreen.cs:449-457 — 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 `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/NineSliceScreen.cs:239` 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 (9–10 lines × 4) · ×2
  • Duplicated block (9–10 lines × 4) GumCommon/Runtime/VariableReferenceGraph.cs:228 — GumCommon/Runtime/VariableReferenceGraph.cs:228-237 | GumCommon/Runtime/VariableReferenceGraph.cs:284-292 | Tools/Gum.Presentation/Wireframe/ReDrivenReferenceRowTracker.cs:113-121 | Tools/Gum.Presentation/Wireframe/WireframeObjectManager.cs:289-297 — there are 4 copies across 3 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.
  • Duplicated block (9–10 lines × 4) Samples/KniGumInCode/KniGumInCodeCommon/KniGumInCodeGame.cs:98 — Samples/KniGumInCode/KniGumInCodeCommon/KniGumInCodeGame.cs:98-107 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/DrawCallStressScreen.cs:51-59 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/NineSliceScreen.cs:33-41 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/SpriteScreen.cs:33-41 — 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.
D4 · Code Duplication · Duplicated block (8 lines × 4) · ×2
  • Duplicated block (8 lines × 4) Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:126 — Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:126-133 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs:120-127 | Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs:136-143 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollViewerVisual.cs:130-137 — before extracting anything, compare `Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs` and `Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs` as WHOLE FILES: this scan already matched 10 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 4) Samples/GameUiSamples/Screens/HyTaleHotbarScreen.cs:25 — Samples/GameUiSamples/Screens/HyTaleHotbarScreen.cs:25-32 | Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:28-35 | Samples/GameUiSamplesSkia/Screens/HyTaleHotbarScreen.cs:25-32 | Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs:29-36 — 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.
D4 · Code Duplication · Duplicated block (5 lines × 4) · ×2
  • Duplicated block (5 lines × 4) MonoGameGum/Forms/DefaultVisuals/V3/ComboBoxVisual.cs:166 — MonoGameGum/Forms/DefaultVisuals/V3/ComboBoxVisual.cs:166-170 | MonoGameGum/Forms/DefaultVisuals/V3/ListBoxVisual.cs:77-81 | MonoGameGum/Forms/DefaultVisuals/V3/MenuVisual.cs:44-48 | MonoGameGum/Forms/DefaultVisuals/V3/SliderVisual.cs:59-63 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `MonoGameGum/Forms/DefaultVisuals/V3/ComboBoxVisual.cs:166` 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, `MonoGameGum/Forms/DefaultVisuals/V3/ComboBoxVisual.cs:171` calls `StateSave` and `MonoGameGum/Forms/DefaultVisuals/V3/MenuVisual.cs:49` 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 × 4) Samples/GameUiSamples/Screens/StardewHotbarScreen.cs:73 — Samples/GameUiSamples/Screens/StardewHotbarScreen.cs:73-77 | Samples/GameUiSamples/Screens/StardewInventoryScreen.cs:183-187 | Samples/GameUiSamplesSkia/Screens/StardewHotbarScreen.cs:73-77 | Samples/GameUiSamplesSkia/Screens/StardewInventoryScreen.cs:183-187 — before extracting anything, compare `Samples/GameUiSamples/Screens/StardewHotbarScreen.cs` and `Samples/GameUiSamplesSkia/Screens/StardewHotbarScreen.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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) Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs:137 — Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs:137-183 | Themes/Gum.Themes.Template.MonoGame/ButtonVisual.cs:63-87 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (25 lines × 2) Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:278 — Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:278-302 | Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs:279-303 — before extracting anything, compare `Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs` and `Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs` as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 335 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 (25 lines × 3) · ×2
  • Duplicated block (25 lines × 3) Themes/Gum.Themes.DarkPro.MonoGame/SliderThumbVisual.cs:100 — Themes/Gum.Themes.DarkPro.MonoGame/SliderThumbVisual.cs:100-124 | Themes/Gum.Themes.Hazard.MonoGame/SliderThumbVisual.cs:58-82 | Themes/Gum.Themes.Template.MonoGame/SliderThumbVisual.cs:56-80 — 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 (25 lines × 3) Samples/KniSkiaGumFromFile/KniSkiaGumFromFile/Game1.cs:121 — Samples/KniSkiaGumFromFile/KniSkiaGumFromFile/Game1.cs:121-145 | Samples/MonoGameGumFromFile/MonoGameGumFromFile/Game1.cs:171-195 | Samples/SokolGumFromFile/Program.cs:261-285 — 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 `Samples/KniSkiaGumFromFile/KniSkiaGumFromFile/Game1.cs:121` 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 (12 lines × 4) · ×2
  • Duplicated block (12 lines × 4) Themes/Gum.Themes.DarkPro.MonoGame/ScrollBarThumbVisual.cs:37 — Themes/Gum.Themes.DarkPro.MonoGame/ScrollBarThumbVisual.cs:37-50 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollBarThumbVisual.cs:31-42 | Themes/Gum.Themes.Meadow.MonoGame/ScrollBarThumbVisual.cs:33-44 | Themes/Gum.Themes.Neon.MonoGame/ScrollBarThumbVisual.cs:34-45 — `Themes/Gum.Themes.DarkPro.MonoGame/ScrollBarThumbVisual.cs` and `Themes/Gum.Themes.Meadow.MonoGame/ScrollBarThumbVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 37 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (12 lines × 4) Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:324 — Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:324-335 | Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:336-347 | Samples/raylib/Screens/ArcsScreen.cs:311-322 | Samples/raylib/Screens/ArcsScreen.cs:323-334 — before extracting anything, compare `Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs` and `Samples/raylib/Screens/ArcsScreen.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 (11 lines × 8) · ×2
  • Duplicated block (11 lines × 8) Themes/Gum.Themes.Bubblegum.MonoGame/SliderVisual.cs:70 — Themes/Gum.Themes.Bubblegum.MonoGame/SliderVisual.cs:70-80 | Themes/Gum.Themes.DarkPro.MonoGame/SliderVisual.cs:104-114 | Themes/Gum.Themes.ForestGlade.MonoGame/SliderVisual.cs:69-79 | Themes/Gum.Themes.Hazard.MonoGame/SliderVisual.cs:95-105 | Themes/Gum.Themes.Meadow.MonoGame/SliderVisual.cs:69-79 | Themes/Gum.Themes.Neon.MonoGame/SliderVisual.cs:70-80 | Themes/Gum.Themes.Template.MonoGame/SliderVisual.cs:93-103 | Themes/Gum.Themes.Template.MonoGame/Variants/SliderVisual.cs:99-109 — `Themes/Gum.Themes.Bubblegum.MonoGame/SliderVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/SliderVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 85 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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 × 8) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:65 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:65-75 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:143-153 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/PolygonsScreen.cs:55-65 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:163-173 | Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:61-71 | Samples/SilkNetGum/SilkNetGumSample/Screens/PolygonsScreen.cs:54-64 | Samples/raylib/Screens/ArcsScreen.cs:68-78 | Samples/raylib/Screens/PolygonsScreen.cs:57-67 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times.
D4 · Code Duplication · Edited copy of a member (35 corresponding lines) · ×2
  • Edited copy of a member (35 corresponding lines) Samples/MonoGameGumThemesShowcase/Game1.cs:282 — Samples/MonoGameGumThemesShowcase/Game1.cs:282-316 | Samples/RaylibGumThemesShowcase/Program.cs:221-255 — 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) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/InvisibleScreen.cs:18 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/InvisibleScreen.cs:18-60 | Samples/KniGumInCode/KniGumInCodeCommon/KniGumInCodeGame.cs:60-94 — 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 (38 corresponding lines) · ×2
  • Edited copy of a member (38 corresponding lines) Tools/Gum.Presentation/Plugins/PluginManager.cs:622 — Tools/Gum.Presentation/Plugins/PluginManager.cs:622-659 | Tools/Gum.Presentation/Plugins/PluginManager.cs:662-699 — These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (38 corresponding lines) Tools/Gum.Presentation/ToolStates/SelectedState.cs:111 — Tools/Gum.Presentation/ToolStates/SelectedState.cs:111-160 | Tools/Gum.Presentation/ToolStates/SelectedState.cs:264-301 — 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 · Duplicated block (36 lines × 2) · ×2
  • Duplicated block (36 lines × 2) Samples/GameUiSamples/Screens/FrbClicker/BuildingDefs.cs:10 — Samples/GameUiSamples/Screens/FrbClicker/BuildingDefs.cs:10-45 | Samples/GameUiSamplesSkia/Screens/FrbClicker/BuildingDefs.cs:10-45 — before extracting anything, compare `Samples/GameUiSamples/Screens/FrbClicker/BuildingDefs.cs` and `Samples/GameUiSamplesSkia/Screens/FrbClicker/BuildingDefs.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. Read the line range as the matched WINDOW rather than a finished unit: at `Samples/GameUiSamples/Screens/FrbClicker/BuildingDefs.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.
  • Duplicated block (36 lines × 2) Samples/GameUiSamples/Screens/FrbClicker/FrbClickerCodeOnly.cs:128 — Samples/GameUiSamples/Screens/FrbClicker/FrbClickerCodeOnly.cs:128-163 | Samples/GameUiSamplesSkia/Screens/FrbClicker/FrbClickerCodeOnly.cs:128-163 — before extracting anything, compare `Samples/GameUiSamples/Screens/FrbClicker/FrbClickerCodeOnly.cs` and `Samples/GameUiSamplesSkia/Screens/FrbClicker/FrbClickerCodeOnly.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 159 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 (14–15 lines × 2) · ×2
  • Duplicated block (14–15 lines × 2) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:285 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:285-299 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:349-362 — before extracting anything, compare `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 251 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 `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:285` 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–15 lines × 2) Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Screens/RenderTargetScreen.cs:56 — Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Screens/RenderTargetScreen.cs:56-69 | Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Screens/RenderTargetScreen.cs:61-75 — before extracting anything, compare `Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Screens/RenderTargetScreen.cs` and `Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Screens/RenderTargetScreen.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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 (12 lines × 3) · ×2
  • Duplicated block (12 lines × 3) Samples/GumFormsSample/KniGumFormsSample.BlazorGL/Program.cs:16 — Samples/GumFormsSample/KniGumFormsSample.BlazorGL/Program.cs:16-27 | Samples/KniGumFromFile/KniGumFromFile.BlazorGL/Program.cs:16-27 | Samples/KniGumInCode/KniGumInCode.BlazorGL/Program.cs:16-27 — before extracting anything, compare `Samples/GumFormsSample/KniGumFormsSample.BlazorGL/Program.cs` and `Samples/KniGumFromFile/KniGumFromFile.BlazorGL/Program.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.
  • Duplicated block (12 lines × 3) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:172 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:172-183 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:185-196 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:198-209 — 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.
D4 · Code Duplication · Duplicated block (7–9 lines × 3) · ×2
  • Duplicated block (7–9 lines × 3) Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:241 — Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:241-249 | Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:250-258 | Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:259-265 — 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. 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–9 lines × 3) Samples/raylib/Screens/ArcsScreen.cs:247 — Samples/raylib/Screens/ArcsScreen.cs:247-255 | Samples/raylib/Screens/ArcsScreen.cs:256-264 | Samples/raylib/Screens/ArcsScreen.cs:265-271 — 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. 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, `Samples/raylib/Screens/ArcsScreen.cs:271` calls `Color` and `Samples/raylib/Screens/ArcsScreen.cs:264` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
IC1 · Incompleteness & stubs · Both branches open with the same statements · ×2
  • Both branches open with the same statements — the condition does not decide them Themes/Gum.Themes.Retro95.MonoGame/TooltipVisual.cs:78 — The first 2 statements of the `if` and of the `else` are identical, so they run on both paths regardless of the condition. Lift them above the `if` — leaving them duplicated inside makes the branches read as though they handled this differently.
  • Both branches open with the same statements — the condition does not decide them Themes/Gum.Themes.Retro95.MonoGame/WindowVisual.cs:92 — The first 2 statements of the `if` and of the `else` are identical, so they run on both paths regardless of the condition. Lift them above the `if` — leaving them duplicated inside makes the branches read as though they handled this differently.
R10 · Code Duplication · Duplicated block (11 lines × 2 locations) · ×2
  • Duplicated block (11 lines × 2 locations) Tool/HtmlToGum/converter/convert.ts:349 — Tool/HtmlToGum/converter/convert.ts:349 · Tool/HtmlToGum/converter/convert.ts:367 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (11 lines × 2 locations) Tool/HtmlToGum/converter/map.ts:2084 — Tool/HtmlToGum/converter/map.ts:2084 · Tool/HtmlToGum/converter/map.ts:2099 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
R10 · Code Duplication · Duplicated block (9 lines × 2 locations) · ×2
  • Duplicated block (9 lines × 2 locations) Tool/HtmlToGum/converter/extract.ts:814 — Tool/HtmlToGum/converter/extract.ts:814 · Tool/HtmlToGum/converter/extract.ts:830 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2 locations) Tool/HtmlToGum/fidelity/canaries.ts:57 — Tool/HtmlToGum/fidelity/canaries.ts:57 · Tool/HtmlToGum/fidelity/site-fidelity.ts:82 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block (6 lines × 2 locations) · ×2
  • Duplicated block (6 lines × 2 locations) Tool/HtmlToGum/converter/map.ts:537 — Tool/HtmlToGum/converter/map.ts:537 · Tool/HtmlToGum/converter/map.ts:550 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (6 lines × 2 locations) Tool/HtmlToGum/fidelity/freeze-page.ts:45 — Tool/HtmlToGum/fidelity/freeze-page.ts:45 · Tool/HtmlToGum/fidelity/site-fidelity.ts:151 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it.
X18 · Disposal-pattern correctness · Disposable created and abandoned in the method that made it · ×2
  • Disposable created and abandoned in the method that made it REDACTED:1611 — `writer` is a `StreamWriter`, which implements `IDisposable`, and it is created here (line 1611). Every use of it in `SaveText` 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 writer = …;`), 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 Gum/CsvLibrary/RuntimeCsvRepresentation.cs:885 — `writer` is a `StreamWriter`, which implements `IDisposable`, and it is created here (line 885). Every use of it in `SaveText` 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 writer = …;`), which releases it at the end of the scope on every path including a throw.
X27 · Collection changed while being enumerated · Collection is structurally changed while it is being enumerated · ×2
  • Collection is structurally changed while it is being enumerated GumRuntime/GraphicalUiElement.Binding.cs:107 — The loop walks `sourceBindings.Values`, and line 109 calls `SetBinding(…)`, which reaches `vmPropsToUiProps.Remove(vmProperty)` in `GraphicalUiElement.SetBinding` — a structural change to that same `Dictionary` while the loop's enumerator is live. The next `MoveNext` throws `InvalidOperationException: Collection was modified; enumeration operation may not execute`, so every pass that reaches this call ends the loop by exception instead of by running out of items, and the remaining items are never seen.
  • Collection is structurally changed while it is being enumerated Tools/Gum.Presentation/Commands/FileCommands.cs:218 — The loop walks `pending`, and line 220 calls `TryAutoSaveElement(…)`, which reaches `_deferredAutoSaves.Add(elementSave)` in `FileCommands.TryAutoSaveElement` — a structural change to that same `HashSet` while the loop's enumerator is live. The next `MoveNext` throws `InvalidOperationException: Collection was modified; enumeration operation may not execute`, so every pass that reaches this call ends the loop by exception instead of by running out of items, and the remaining items are never seen.
AC3 · Page structure · Page without a main landmark · ×1
  • Page without a main landmark Direction/settings-design/mock-settings.html:2 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
AC3 · Page structure · Heading level jumps from h1 to h3 · ×1
  • Heading level jumps from h1 to h3 Direction/settings-design/mock-settings.html:92 — Skipping heading levels breaks the document outline assistive tech relies on. Don't jump levels — increase by at most one.
AC3 · Page structure · Multiple navigation landmarks without distinguishing labels · ×1
  • Multiple navigation landmarks without distinguishing labels Tool/HtmlToGum/fidelity/frozen/mdn-background-size/index.html:1 — With more than one navigation landmark, each needs an aria-label/aria-labelledby (e.g. "Primary", "Footer") so assistive tech can tell them apart. At least one nav here is unlabelled.
AC6 · Visual & motion safety · Low contrast colour pair in CSS (4.4 · ×1
  • Low contrast colour pair in CSS (4.4:1) Direction/settings-design/mock-settings.html:25 — `.btn` sets color: #fff on background-color: #2f7fb0 — 4.4:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them.
AC6 · Visual & motion safety · Low contrast colour pair (4.0 · ×1
  • Low contrast colour pair (4.0:1) Direction/settings-design/mock-settings.html:53 — The inline foreground/background colours fall below the 4.5:1 WCAG AA minimum for normal text. Darken/lighten one of them.
D1 · Cyclomatic Complexity · CustomSetPropertyOnRenderable.SetPropertyOnRenderableFunc (cyclomatic 163) · ×1
  • CustomSetPropertyOnRenderable.SetPropertyOnRenderableFunc (cyclomatic 163) Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs:507 — CustomSetPropertyOnRenderable.SetPropertyOnRenderableFunc has cyclomatic complexity 163 (threshold 15). To reduce it, separate the cases: extract each independent 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 · GraphicalUiElement.UpdateLayoutWithinSession (cyclomatic 123) · ×1
  • GraphicalUiElement.UpdateLayoutWithinSession (cyclomatic 123) GumRuntime/GraphicalUiElement.UpdateLayout.cs:212 — GraphicalUiElement.UpdateLayoutWithinSession has cyclomatic complexity 123 (threshold 15). To reduce it, separate the cases: extract each independent 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 · CodeGenerator.SetXamarinFormsLayoutPosition (cyclomatic 117) · ×1
  • CodeGenerator.SetXamarinFormsLayoutPosition (cyclomatic 117) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:3049 — CodeGenerator.SetXamarinFormsLayoutPosition 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 · CustomSetPropertyOnRenderable.TrySetPropertyOnText (cyclomatic 82) · ×1
  • CustomSetPropertyOnRenderable.TrySetPropertyOnText (cyclomatic 82) Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs:1740 — CustomSetPropertyOnRenderable.TrySetPropertyOnText has cyclomatic complexity 82 (threshold 15). To reduce it, separate the cases: extract each independent 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 · CopyPasteLogic.PasteInstanceSaves (cyclomatic 80) · ×1
  • CopyPasteLogic.PasteInstanceSaves (cyclomatic 80) Tools/Gum.Presentation/Logic/CopyPasteLogic.cs:676 — CopyPasteLogic.PasteInstanceSaves has cyclomatic complexity 80 (threshold 15). Of this number, 73 points are the body's own statements and 7 belong to 5 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 · CsvReader.ReadField (cyclomatic 78) · ×1
  • CsvReader.ReadField (cyclomatic 78) Gum/CsvLibrary/CsvReader.cs:1104 — CsvReader.ReadField has cyclomatic complexity 78 (threshold 15). To reduce it, separate the cases: extract each independent 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 · CodeGenerator.SetNonAbsoluteLayoutPosition (cyclomatic 75) · ×1
  • CodeGenerator.SetNonAbsoluteLayoutPosition (cyclomatic 75) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2667 — CodeGenerator.SetNonAbsoluteLayoutPosition has cyclomatic complexity 75 (threshold 15). To reduce it, separate the cases: extract each independent 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 · InteractiveGue.DoUiActivityRecursively (cyclomatic 73) · ×1
  • InteractiveGue.DoUiActivityRecursively (cyclomatic 73) GumRuntime/InteractiveGue.cs:455 — InteractiveGue.DoUiActivityRecursively 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 · CustomSetPropertyOnRenderable.TrySetPropertyOnText (cyclomatic 73) · ×1
  • CustomSetPropertyOnRenderable.TrySetPropertyOnText (cyclomatic 73) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:1322 — CustomSetPropertyOnRenderable.TrySetPropertyOnText 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 · GraphicalUiElement.TrySetValueOnThis (cyclomatic 68) · ×1
  • GraphicalUiElement.TrySetValueOnThis (cyclomatic 68) GumRuntime/GraphicalUiElement.SetValuesAndStates.cs:1139 — GraphicalUiElement.TrySetValueOnThis has cyclomatic complexity 68 (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 · ShapeVariableExclusionLogic.GetIfShapeVariableIsExcluded (cyclomatic 64) · ×1
  • ShapeVariableExclusionLogic.GetIfShapeVariableIsExcluded (cyclomatic 64) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/ShapeVariableExclusionLogic.cs:18 — ShapeVariableExclusionLogic.GetIfShapeVariableIsExcluded has cyclomatic complexity 64 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · GraphicalUiElementPropertyReadExtensions.TryGetProperty (cyclomatic 63) · ×1
  • GraphicalUiElementPropertyReadExtensions.TryGetProperty (cyclomatic 63) GumRuntime/GraphicalUiElementPropertyReadExtensions.cs:84 — GraphicalUiElementPropertyReadExtensions.TryGetProperty has cyclomatic complexity 63 (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 · GraphicalUiElement.GetAnchor (cyclomatic 61) · ×1
  • GraphicalUiElement.GetAnchor (cyclomatic 61) GumRuntime/GraphicalUiElement.DockAndAnchor.cs:503 — GraphicalUiElement.GetAnchor has cyclomatic complexity 61 (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 · StandardElementsManagerGumTool.SetPreferredDisplayers (cyclomatic 60) · ×1
  • StandardElementsManagerGumTool.SetPreferredDisplayers (cyclomatic 60) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/StandardElementsManager.GumTool.cs:51 — StandardElementsManagerGumTool.SetPreferredDisplayers has cyclomatic complexity 60 (threshold 15). To reduce it, separate the cases: extract each independent 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 · GraphicalUiElement.UpdateChildren (cyclomatic 58) · ×1
  • GraphicalUiElement.UpdateChildren (cyclomatic 58) GumRuntime/GraphicalUiElement.ChildUpdates.cs:212 — GraphicalUiElement.UpdateChildren 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 · GraphicalUiElement.GetDock (cyclomatic 57) · ×1
  • GraphicalUiElement.GetDock (cyclomatic 57) GumRuntime/GraphicalUiElement.DockAndAnchor.cs:205 — GraphicalUiElement.GetDock has cyclomatic complexity 57 (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 · NineSlice.TryDrawLattice (cyclomatic 57) · ×1
  • NineSlice.TryDrawLattice (cyclomatic 57) Runtimes/SkiaGum/Renderables/NineSlice.cs:593 — NineSlice.TryDrawLattice has cyclomatic complexity 57 (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 · dom-quiescence.stabilizeDynamicMedia (cyclomatic 55) · ×1
  • dom-quiescence.stabilizeDynamicMedia (cyclomatic 55) Tool/HtmlToGum/converter/dom-quiescence.ts:76 — dom-quiescence.stabilizeDynamicMedia has cyclomatic complexity 55 (threshold 15). Most of this is not in the body itself: 5 of the 55 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 77, 97, 153). 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 · IWrappedTextExtensions.UpdateLines (cyclomatic 50) · ×1
  • IWrappedTextExtensions.UpdateLines (cyclomatic 50) RenderingLibrary/Graphics/IWrappedText.cs:132 — IWrappedTextExtensions.UpdateLines 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 · ReferenceFinder.GetReferencesToInstance (cyclomatic 49) · ×1
  • ReferenceFinder.GetReferencesToInstance (cyclomatic 49) Tools/Gum.Presentation/Logic/ReferenceFinder.cs:102 — ReferenceFinder.GetReferencesToInstance has cyclomatic complexity 49 (threshold 15). Of this number, 48 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 · site-fidelity.main (cyclomatic 49) · ×1
  • site-fidelity.main (cyclomatic 49) Tool/HtmlToGum/fidelity/site-fidelity.ts:150 — site-fidelity.main 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 · EvaluatedSyntax.Evaluate (cyclomatic 48) · ×1
  • EvaluatedSyntax.Evaluate (cyclomatic 48) Runtimes/GumExpressions/EvaluatedSyntax.cs:209 — EvaluatedSyntax.Evaluate has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent 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 · GumxImportService.AddMissingReferencedInstances (cyclomatic 48) · ×1
  • GumxImportService.AddMissingReferencedInstances (cyclomatic 48) Tools/Gum.Presentation/ImportFromGumx/Services/GumxImportService.cs:1032 — GumxImportService.AddMissingReferencedInstances has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent 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 · convert.rasterizeEffects (cyclomatic 48) · ×1
  • convert.rasterizeEffects (cyclomatic 48) Tool/HtmlToGum/converter/convert.ts:251 — convert.rasterizeEffects has cyclomatic complexity 48 (threshold 15). Most of this is not in the body itself: 2 of the 48 points are its own statements and the rest belongs to 5 function items inside it that branch (walk, walk::shot, a function literal at line 262, …). 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 · CodeGenerator.GenerateConstructors (cyclomatic 47) · ×1
  • CodeGenerator.GenerateConstructors (cyclomatic 47) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:3957 — CodeGenerator.GenerateConstructors 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 · StateSaveExtensionMethods.GetValueRecursive (cyclomatic 46) · ×1
  • StateSaveExtensionMethods.GetValueRecursive (cyclomatic 46) Gum/DataTypes/StateSaveExtensionMethods.cs:62 — StateSaveExtensionMethods.GetValueRecursive 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 · Splitter.ApplyResizeChangeInPixels (cyclomatic 46) · ×1
  • Splitter.ApplyResizeChangeInPixels (cyclomatic 46) MonoGameGum/Forms/Controls/Splitter.cs:182 — Splitter.ApplyResizeChangeInPixels 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 · CodeGenerator.FillWithExposedVariable (cyclomatic 46) · ×1
  • CodeGenerator.FillWithExposedVariable (cyclomatic 46) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:1362 — CodeGenerator.FillWithExposedVariable 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 · ReferenceFinder.GetReferencesToVariable (cyclomatic 46) · ×1
  • ReferenceFinder.GetReferencesToVariable (cyclomatic 46) Tools/Gum.Presentation/Logic/ReferenceFinder.cs:437 — ReferenceFinder.GetReferencesToVariable 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 · GraphicalUiElement.AdjustParentOriginOffsetsByUnits (cyclomatic 44) · ×1
  • GraphicalUiElement.AdjustParentOriginOffsetsByUnits (cyclomatic 44) GumRuntime/GraphicalUiElement.Position.cs:49 — GraphicalUiElement.AdjustParentOriginOffsetsByUnits has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TextBoxBase.HandleKeyDown (cyclomatic 44) · ×1
  • TextBoxBase.HandleKeyDown (cyclomatic 44) MonoGameGum/Forms/Controls/TextBoxBase.cs:921 — TextBoxBase.HandleKeyDown has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CustomSetPropertyOnRenderable.TrySetPropertiesOnRenderableBase (cyclomatic 44) · ×1
  • CustomSetPropertyOnRenderable.TrySetPropertiesOnRenderableBase (cyclomatic 44) Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs:224 — CustomSetPropertyOnRenderable.TrySetPropertiesOnRenderableBase has cyclomatic complexity 44 (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 · EvaluatedSyntax.CastTo (cyclomatic 44) · ×1
  • EvaluatedSyntax.CastTo (cyclomatic 44) Runtimes/GumExpressions/EvaluatedSyntax.cs:1209 — EvaluatedSyntax.CastTo has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PreviewOptions.Parse (cyclomatic 44) · ×1
  • PreviewOptions.Parse (cyclomatic 44) Tool/GumPreview/PreviewOptions.cs:71 — PreviewOptions.Parse has cyclomatic complexity 44 (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 · GraphicalUiElement.UpdateHeight (cyclomatic 43) · ×1
  • GraphicalUiElement.UpdateHeight (cyclomatic 43) GumRuntime/GraphicalUiElement.Dimensions.cs:106 — GraphicalUiElement.UpdateHeight 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 · FrameworkElement.HandleTabCore (cyclomatic 41) · ×1
  • FrameworkElement.HandleTabCore (cyclomatic 41) MonoGameGum/Forms/Controls/FrameworkElement.cs:1878 — FrameworkElement.HandleTabCore 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 · GumxImportService.ImportAsync (cyclomatic 41) · ×1
  • GumxImportService.ImportAsync (cyclomatic 41) Tools/Gum.Presentation/ImportFromGumx/Services/GumxImportService.cs:119 — GumxImportService.ImportAsync has cyclomatic complexity 41 (threshold 15). Of this number, 33 points are the body's own statements and 8 belong to 6 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 · ElementTreeViewManager.BuildContextMenuItems (cyclomatic 41) · ×1
  • ElementTreeViewManager.BuildContextMenuItems (cyclomatic 41) Tool/TreeViewPlugin.Core/ElementTreeViewManager.RightClick.cs:227 — ElementTreeViewManager.BuildContextMenuItems 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 · FormsUtilities.RegisterFromFileFormRuntimeDefaults (cyclomatic 40) · ×1
  • FormsUtilities.RegisterFromFileFormRuntimeDefaults (cyclomatic 40) MonoGameGum/Forms/FormsUtilities.cs:639 — FormsUtilities.RegisterFromFileFormRuntimeDefaults has cyclomatic complexity 40 (threshold 15). Of this number, 34 points are the body's own statements and 6 belong to 3 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · PropertyValuePair.ConvertStringValueToValueOfType (cyclomatic 40) · ×1
  • PropertyValuePair.ConvertStringValueToValueOfType (cyclomatic 40) Gum/CsvLibrary/Reflection/PropertyValuePair.cs:140 — PropertyValuePair.ConvertStringValueToValueOfType has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · forms.formControlFromDom (cyclomatic 40) · ×1
  • forms.formControlFromDom (cyclomatic 40) Tool/HtmlToGum/converter/forms.ts:24 — forms.formControlFromDom has cyclomatic complexity 40 (threshold 15). Of this number, 38 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 · GraphicalUiElement.ConvertValue (cyclomatic 39) · ×1
  • GraphicalUiElement.ConvertValue (cyclomatic 39) GumRuntime/GraphicalUiElement.Binding.cs:782 — GraphicalUiElement.ConvertValue has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GraphicalUiElement.GetChildLayoutType (cyclomatic 39) · ×1
  • GraphicalUiElement.GetChildLayoutType (cyclomatic 39) GumRuntime/GraphicalUiElement.ChildUpdates.cs:47 — GraphicalUiElement.GetChildLayoutType has cyclomatic complexity 39 (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 · CustomSetPropertyOnRenderable.TrySetPropertyOnText (cyclomatic 39) · ×1
  • CustomSetPropertyOnRenderable.TrySetPropertyOnText (cyclomatic 39) Runtimes/SokolGum/CustomSetPropertyOnRenderable.cs:103 — CustomSetPropertyOnRenderable.TrySetPropertyOnText has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · StateSaveExtensionMethods.GetVariableListRecursive (cyclomatic 38) · ×1
  • StateSaveExtensionMethods.GetVariableListRecursive (cyclomatic 38) Gum/DataTypes/StateSaveExtensionMethods.cs:407 — StateSaveExtensionMethods.GetVariableListRecursive 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 · Text.Render (cyclomatic 38) · ×1
  • Text.Render (cyclomatic 38) Runtimes/SkiaGum/Renderables/Text.cs:1079 — Text.Render 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 · map.resolveBackgroundImageLayout (cyclomatic 38) · ×1
  • map.resolveBackgroundImageLayout (cyclomatic 38) Tool/HtmlToGum/converter/map.ts:748 — map.resolveBackgroundImageLayout has cyclomatic complexity 38 (threshold 15). Of this number, 26 points are the body's own statements and 12 belong to 2 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · LineRectangle.Render (cyclomatic 37) · ×1
  • LineRectangle.Render (cyclomatic 37) Runtimes/RaylibGum/Renderables/LineRectangle.cs:234 — LineRectangle.Render has cyclomatic complexity 37 (threshold 15). Of this number, 34 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 · UndoComparison.ToString (cyclomatic 37) · ×1
  • UndoComparison.ToString (cyclomatic 37) Tools/Gum.Presentation/Undo/UndoSnapshot.cs:38 — UndoComparison.ToString has cyclomatic complexity 37 (threshold 15). Of this number, 36 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 · GraphicalUiElement.UpdateWidth (cyclomatic 36) · ×1
  • GraphicalUiElement.UpdateWidth (cyclomatic 36) GumRuntime/GraphicalUiElement.Dimensions.cs:659 — GraphicalUiElement.UpdateWidth 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 · CodeGenerator.TryGetFullXamarinFormsLineReplacement (cyclomatic 36) · ×1
  • CodeGenerator.TryGetFullXamarinFormsLineReplacement (cyclomatic 36) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:5901 — CodeGenerator.TryGetFullXamarinFormsLineReplacement 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 · CodeGenerator.TryGetFullGumLineReplacement (cyclomatic 36) · ×1
  • CodeGenerator.TryGetFullGumLineReplacement (cyclomatic 36) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:6412 — CodeGenerator.TryGetFullGumLineReplacement 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 · ElementSaveDisplayer.FillPropertyList (cyclomatic 36) · ×1
  • ElementSaveDisplayer.FillPropertyList (cyclomatic 36) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/ElementSaveDisplayer.cs:166 — ElementSaveDisplayer.FillPropertyList 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 · fonts.materializeWebFonts (cyclomatic 36) · ×1
  • fonts.materializeWebFonts (cyclomatic 36) Tool/HtmlToGum/converter/fonts.ts:363 — fonts.materializeWebFonts has cyclomatic complexity 36 (threshold 15). Of this number, 26 points are the body's own statements and 10 belong to 3 function items 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 · TypeManager.GetTypeFromString (cyclomatic 35) · ×1
  • TypeManager.GetTypeFromString (cyclomatic 35) Gum/Reflection/TypeManager.cs:38 — TypeManager.GetTypeFromString 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 · GraphicalUiElement.GetChildLayoutType (cyclomatic 35) · ×1
  • GraphicalUiElement.GetChildLayoutType (cyclomatic 35) GumRuntime/GraphicalUiElement.ChildUpdates.cs:100 — GraphicalUiElement.GetChildLayoutType has cyclomatic complexity 35 (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 · CursorExtensions.GetEventFailureReason (cyclomatic 35) · ×1
  • CursorExtensions.GetEventFailureReason (cyclomatic 35) MonoGameGum/Input/CursorExtensions.cs:86 — CursorExtensions.GetEventFailureReason 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 · CustomSetPropertyOnRenderable.TrySetPropertyOnRectangleRuntime (cyclomatic 35) · ×1
  • CustomSetPropertyOnRenderable.TrySetPropertyOnRectangleRuntime (cyclomatic 35) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:3929 — CustomSetPropertyOnRenderable.TrySetPropertyOnRectangleRuntime has cyclomatic complexity 35 (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 · FormsUtilities.Update (cyclomatic 34) · ×1
  • FormsUtilities.Update (cyclomatic 34) MonoGameGum/Forms/FormsUtilities.cs:348 — FormsUtilities.Update 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 · EvaluatedSyntax.Combine (cyclomatic 34) · ×1
  • EvaluatedSyntax.Combine (cyclomatic 34) Runtimes/GumExpressions/EvaluatedSyntax.cs:675 — EvaluatedSyntax.Combine has cyclomatic complexity 34 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · DragDropManager.ValidateDrop (cyclomatic 34) · ×1
  • DragDropManager.ValidateDrop (cyclomatic 34) Tools/Gum.Presentation/Managers/DragDropManager.cs:594 — DragDropManager.ValidateDrop 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 · TextBoxDisplayLogic.TryParseNumeric (cyclomatic 34) · ×1
  • TextBoxDisplayLogic.TryParseNumeric (cyclomatic 34) DataUi.Core/Controls/TextBoxDisplayLogic.cs:579 — TextBoxDisplayLogic.TryParseNumeric 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 · FormsUtilities.Update (cyclomatic 33) · ×1
  • FormsUtilities.Update (cyclomatic 33) MonoGameGum/Forms/FormsUtilities.cs:350 — FormsUtilities.Update 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 · map.computeBackgroundSpriteCrop (cyclomatic 33) · ×1
  • map.computeBackgroundSpriteCrop (cyclomatic 33) Tool/HtmlToGum/converter/map.ts:417 — map.computeBackgroundSpriteCrop has cyclomatic complexity 33 (threshold 15). Of this number, 26 points are the body's own statements and 7 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 · GraphicalUiElement.HandleCollectionChanged (cyclomatic 32) · ×1
  • GraphicalUiElement.HandleCollectionChanged (cyclomatic 32) GumRuntime/GraphicalUiElement.Managers.cs:168 — GraphicalUiElement.HandleCollectionChanged has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Text.BuildInlineVariables (cyclomatic 32) · ×1
  • Text.BuildInlineVariables (cyclomatic 32) Runtimes/SkiaGum/Renderables/Text.cs:3183 — Text.BuildInlineVariables has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · VariableSaveExtensionMethods.FixEnumerations (cyclomatic 31) · ×1
  • VariableSaveExtensionMethods.FixEnumerations (cyclomatic 31) Gum/DataTypes/VariableSaveExtensionMethods.cs:240 — VariableSaveExtensionMethods.FixEnumerations has cyclomatic complexity 31 (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 · CustomSetPropertyOnRenderable.TrySetPropertyOnCircleRuntime (cyclomatic 31) · ×1
  • CustomSetPropertyOnRenderable.TrySetPropertyOnCircleRuntime (cyclomatic 31) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:3779 — CustomSetPropertyOnRenderable.TrySetPropertyOnCircleRuntime has cyclomatic complexity 31 (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 · PackCommand.Execute (cyclomatic 31) · ×1
  • PackCommand.Execute (cyclomatic 31) Tools/Gum.Cli/Commands/PackCommand.cs:103 — PackCommand.Execute 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 · ElementSaveDisplayer.CreatePropertyData (cyclomatic 31) · ×1
  • ElementSaveDisplayer.CreatePropertyData (cyclomatic 31) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/ElementSaveDisplayer.cs:1070 — ElementSaveDisplayer.CreatePropertyData 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 · VariableGridEntry.ResetToDefault (cyclomatic 31) · ×1
  • VariableGridEntry.ResetToDefault (cyclomatic 31) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/VariableGridEntry.cs:861 — VariableGridEntry.ResetToDefault 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 · ElementTreeViewManager.RefreshElementTreeNode (cyclomatic 31) · ×1
  • ElementTreeViewManager.RefreshElementTreeNode (cyclomatic 31) Tool/TreeViewPlugin.Core/ElementTreeViewManager.cs:1728 — ElementTreeViewManager.RefreshElementTreeNode 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 · ReloadReferenceScope.Apply (cyclomatic 30) · ×1
  • ReloadReferenceScope.Apply (cyclomatic 30) GumCommon/HostServices/ReloadReferenceScope.cs:53 — ReloadReferenceScope.Apply 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 · GumProjectSaveExtensionMethods.Initialize (cyclomatic 30) · ×1
  • GumProjectSaveExtensionMethods.Initialize (cyclomatic 30) Gum/DataTypes/GumProjectSaveExtensionMethods.cs:30 — GumProjectSaveExtensionMethods.Initialize 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 · Text.DrawWithInlineVariables (cyclomatic 30) · ×1
  • Text.DrawWithInlineVariables (cyclomatic 30) RenderingLibrary/Graphics/Text.cs:1472 — Text.DrawWithInlineVariables 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 · CustomSetPropertyOnRenderable.TrySetPropertyOnNineSlice (cyclomatic 30) · ×1
  • CustomSetPropertyOnRenderable.TrySetPropertyOnNineSlice (cyclomatic 30) Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs:1447 — CustomSetPropertyOnRenderable.TrySetPropertyOnNineSlice 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 · Text.DrawStyledLine (cyclomatic 30) · ×1
  • Text.DrawStyledLine (cyclomatic 30) Runtimes/RaylibGum/Renderables/Text.cs:1616 — Text.DrawStyledLine 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 · NewProjectDialogViewModel.RefreshDerived (cyclomatic 30) · ×1
  • NewProjectDialogViewModel.RefreshDerived (cyclomatic 30) Tools/Gum.Presentation/Dialogs/NewProjectDialogViewModel.cs:1079 — NewProjectDialogViewModel.RefreshDerived has cyclomatic complexity 30 (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 · MovedInstanceReferenceDropper.FindReferencesTo (cyclomatic 30) · ×1
  • MovedInstanceReferenceDropper.FindReferencesTo (cyclomatic 30) Tools/Gum.Presentation/Logic/MovedInstanceReferenceDropper.cs:88 — MovedInstanceReferenceDropper.FindReferencesTo has cyclomatic complexity 30 (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 · ResizeInputHandler.ApplySizeChangeForInstance (cyclomatic 30) · ×1
  • ResizeInputHandler.ApplySizeChangeForInstance (cyclomatic 30) Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/ResizeInputHandler.cs:496 — ResizeInputHandler.ApplySizeChangeForInstance has cyclomatic complexity 30 (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 · EditorTabPluginBase.HandleVariableSetLate (cyclomatic 30) · ×1
  • EditorTabPluginBase.HandleVariableSetLate (cyclomatic 30) Tool/EditorTabPlugin.Core/EditorTabPluginBase.cs:839 — EditorTabPluginBase.HandleVariableSetLate 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 · assets.downloadImages (cyclomatic 30) · ×1
  • assets.downloadImages (cyclomatic 30) Tool/HtmlToGum/converter/assets.ts:223 — assets.downloadImages has cyclomatic complexity 30 (threshold 15). Of this number, 26 points are the body's own statements and 4 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 · convert.main (cyclomatic 30) · ×1
  • convert.main (cyclomatic 30) Tool/HtmlToGum/converter/convert.ts:442 — convert.main has cyclomatic complexity 30 (threshold 15). Of this number, 16 points are the body's own statements and 14 belong to 7 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · GraphicalUiElement.GetRatioWidth (cyclomatic 29) · ×1
  • GraphicalUiElement.GetRatioWidth (cyclomatic 29) GumRuntime/GraphicalUiElement.Dimensions.cs:382 — GraphicalUiElement.GetRatioWidth 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. This shape REPEATS in the file: one other method here (GraphicalUiElement.GetRatioHeight) 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.
D1 · Cyclomatic Complexity · GraphicalUiElement.GetRatioHeight (cyclomatic 29) · ×1
  • GraphicalUiElement.GetRatioHeight (cyclomatic 29) GumRuntime/GraphicalUiElement.Dimensions.cs:481 — GraphicalUiElement.GetRatioHeight 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. This shape REPEATS in the file: one other method here (GraphicalUiElement.GetRatioWidth) 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.
D1 · Cyclomatic Complexity · Keyboard.KeyToStringAtCurrentState (cyclomatic 29) · ×1
  • Keyboard.KeyToStringAtCurrentState (cyclomatic 29) MonoGameGum/Input/Keyboard.cs:548 — Keyboard.KeyToStringAtCurrentState has cyclomatic complexity 29 (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 · CustomSetPropertyOnRenderable.TrySetPropertyOnNineSlice (cyclomatic 29) · ×1
  • CustomSetPropertyOnRenderable.TrySetPropertyOnNineSlice (cyclomatic 29) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:658 — CustomSetPropertyOnRenderable.TrySetPropertyOnNineSlice 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 · ElementUndoStrategy.ApplyUndoSnapshotToElement (cyclomatic 29) · ×1
  • ElementUndoStrategy.ApplyUndoSnapshotToElement (cyclomatic 29) Tools/Gum.Presentation/Undo/ElementUndoStrategy.cs:946 — ElementUndoStrategy.ApplyUndoSnapshotToElement 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 · Text.EnsureWrapped (cyclomatic 29) · ×1
  • Text.EnsureWrapped (cyclomatic 29) Runtimes/SokolGum/Renderables/Text.cs:351 — Text.EnsureWrapped 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 · AnimationRuntime.GetStateToSetFromStateKeyframes (cyclomatic 28) · ×1
  • AnimationRuntime.GetStateToSetFromStateKeyframes (cyclomatic 28) GumCommon/Runtime/AnimationRuntime.cs:296 — AnimationRuntime.GetStateToSetFromStateKeyframes 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 · CustomSetPropertyOnRenderable.TrySetPropertyOnSprite (cyclomatic 28) · ×1
  • CustomSetPropertyOnRenderable.TrySetPropertyOnSprite (cyclomatic 28) Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs:1610 — CustomSetPropertyOnRenderable.TrySetPropertyOnSprite 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 · CodeGenerator.VariableValueToXamarinFormsCodeValue (cyclomatic 28) · ×1
  • CodeGenerator.VariableValueToXamarinFormsCodeValue (cyclomatic 28) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:5767 — CodeGenerator.VariableValueToXamarinFormsCodeValue 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 · HeadlessErrorChecker.VariableExists (cyclomatic 28) · ×1
  • HeadlessErrorChecker.VariableExists (cyclomatic 28) Tools/Gum.ProjectServices/HeadlessErrorChecker.cs:686 — HeadlessErrorChecker.VariableExists has cyclomatic complexity 28 (threshold 15). Of this number, 25 points are the body's own statements and 3 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Ruler.PerformGuidesActivity (cyclomatic 28) · ×1
  • Ruler.PerformGuidesActivity (cyclomatic 28) Tool/EditorTabPlugin.Core/Views/Ruler.cs:379 — Ruler.PerformGuidesActivity 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 · Ruler.UpdateDistanceArrows (cyclomatic 28) · ×1
  • Ruler.UpdateDistanceArrows (cyclomatic 28) Tool/EditorTabPlugin.Core/Views/Ruler.cs:479 — Ruler.UpdateDistanceArrows has cyclomatic complexity 28 (threshold 15). Of this number, 24 points are the body's own statements and 4 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 · GueInteractiveExtensionMethods.DoUiActivityRecursively (cyclomatic 27) · ×1
  • GueInteractiveExtensionMethods.DoUiActivityRecursively (cyclomatic 27) GumRuntime/InteractiveGue.cs:1705 — GueInteractiveExtensionMethods.DoUiActivityRecursively 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 · HeadlessCodegenRunner.RunCore (cyclomatic 27) · ×1
  • HeadlessCodegenRunner.RunCore (cyclomatic 27) Tools/Gum.ProjectServices/CodeGeneration/HeadlessCodegenRunner.cs:43 — HeadlessCodegenRunner.RunCore has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · ProjectPropertiesChangeLogic.HandlePropertyChanged (cyclomatic 27) · ×1
  • ProjectPropertiesChangeLogic.HandlePropertyChanged (cyclomatic 27) Tools/Gum.Presentation/Plugins/InternalPlugins/ProjectPropertiesWindowPlugin/ProjectPropertiesChangeLogic.cs:60 — ProjectPropertiesChangeLogic.HandlePropertyChanged 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 · VariableInCategoryPropagationLogic.PropagateVariablesInCategory (cyclomatic 27) · ×1
  • VariableInCategoryPropagationLogic.PropagateVariablesInCategory (cyclomatic 27) Tools/Gum.Presentation/PropertyGridHelpers/VariableInCategoryPropagationLogic.cs:76 — VariableInCategoryPropagationLogic.PropagateVariablesInCategory 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 · UndoSnapshot.AddVariableModifications (cyclomatic 27) · ×1
  • UndoSnapshot.AddVariableModifications (cyclomatic 27) Tools/Gum.Presentation/Undo/UndoSnapshot.cs:427 — UndoSnapshot.AddVariableModifications 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 · GumElementReachability.Compute (cyclomatic 26) · ×1
  • GumElementReachability.Compute (cyclomatic 26) GumCommon/Bundle/GumElementReachability.cs:111 — GumElementReachability.Compute has cyclomatic 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, 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 · VariableReferenceGraph.Order (cyclomatic 26) · ×1
  • VariableReferenceGraph.Order (cyclomatic 26) GumCommon/Runtime/VariableReferenceGraph.cs:673 — VariableReferenceGraph.Order 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 · SpatialNavigationService.FindBestCandidate (cyclomatic 26) · ×1
  • SpatialNavigationService.FindBestCandidate (cyclomatic 26) MonoGameGum/Forms/SpatialNavigationService.cs:59 — SpatialNavigationService.FindBestCandidate 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 · ListBox.HandleItemSelected (cyclomatic 26) · ×1
  • ListBox.HandleItemSelected (cyclomatic 26) MonoGameGum/Forms/Controls/ListBox.cs:818 — ListBox.HandleItemSelected 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 · ListBox.HandleSelectedItemsCollectionChanged (cyclomatic 26) · ×1
  • ListBox.HandleSelectedItemsCollectionChanged (cyclomatic 26) MonoGameGum/Forms/Controls/ListBox.cs:1285 — ListBox.HandleSelectedItemsCollectionChanged 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 · TabControl.PairPagesFromContentPanel (cyclomatic 26) · ×1
  • TabControl.PairPagesFromContentPanel (cyclomatic 26) MonoGameGum/Forms/Controls/TabControl.cs:666 — TabControl.PairPagesFromContentPanel has cyclomatic complexity 26 (threshold 15). Of this number, 16 points are the body's own statements and 10 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CustomSetPropertyOnRenderable.ApplyFontVariables (cyclomatic 26) · ×1
  • CustomSetPropertyOnRenderable.ApplyFontVariables (cyclomatic 26) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:2145 — CustomSetPropertyOnRenderable.ApplyFontVariables 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 · BitmapFont.DrawTextLines (cyclomatic 26) · ×1
  • BitmapFont.DrawTextLines (cyclomatic 26) RenderingLibrary/Graphics/Fonts/BitmapFont.cs:1013 — BitmapFont.DrawTextLines 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 · Text.BuildRunStyle (cyclomatic 26) · ×1
  • Text.BuildRunStyle (cyclomatic 26) Runtimes/SkiaGum/Renderables/Text.cs:2965 — Text.BuildRunStyle 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 · VariableGridEntry.VariableGridEntry.ctor (cyclomatic 26) · ×1
  • VariableGridEntry.VariableGridEntry.ctor (cyclomatic 26) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/VariableGridEntry.cs:317 — VariableGridEntry.VariableGridEntry.ctor 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 · ElementTreeViewManager.AddAndRemoveScreensComponentsStandardsAndBehaviors (cyclomatic 26) · ×1
  • ElementTreeViewManager.AddAndRemoveScreensComponentsStandardsAndBehaviors (cyclomatic 26) Tool/TreeViewPlugin.Core/ElementTreeViewManager.cs:964 — ElementTreeViewManager.AddAndRemoveScreensComponentsStandardsAndBehaviors has cyclomatic complexity 26 (threshold 15). Of this number, 23 points are the body's own statements and 3 belong to 3 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 · GraphicalUiElementCollection.InnerCollection_CollectionChanged (cyclomatic 25) · ×1
  • GraphicalUiElementCollection.InnerCollection_CollectionChanged (cyclomatic 25) GumCommon/Collections/GraphicalUiElementCollection.cs:68 — GraphicalUiElementCollection.InnerCollection_CollectionChanged 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 · ElementSaveExtensions.TryReadReference (cyclomatic 25) · ×1
  • ElementSaveExtensions.TryReadReference (cyclomatic 25) GumRuntime/ElementSaveExtensions.GumRuntime.cs:1747 — ElementSaveExtensions.TryReadReference has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · ShaderParameterVariables.TryAssemble (cyclomatic 25) · ×1
  • ShaderParameterVariables.TryAssemble (cyclomatic 25) RenderingLibrary/Graphics/ShaderParameterVariables.cs:242 — ShaderParameterVariables.TryAssemble 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 · GraphicalUiElement.Visible.set (cyclomatic 25) · ×1
  • GraphicalUiElement.Visible.set (cyclomatic 25) GumRuntime/GraphicalUiElement.Properties.cs:141 — GraphicalUiElement.Visible.set 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 · CustomSetPropertyOnRenderable.TrySetPropertyOnSprite (cyclomatic 25) · ×1
  • CustomSetPropertyOnRenderable.TrySetPropertyOnSprite (cyclomatic 25) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:919 — CustomSetPropertyOnRenderable.TrySetPropertyOnSprite 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 · NineSlice.IsMiddleUniform (cyclomatic 25) · ×1
  • NineSlice.IsMiddleUniform (cyclomatic 25) Runtimes/SkiaGum/Renderables/NineSlice.cs:782 — NineSlice.IsMiddleUniform has cyclomatic complexity 25 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · DeleteLogic.DoDeletingLogic (cyclomatic 25) · ×1
  • DeleteLogic.DoDeletingLogic (cyclomatic 25) Tools/Gum.Presentation/Managers/DeleteLogic.cs:76 — DeleteLogic.DoDeletingLogic has cyclomatic complexity 25 (threshold 15). Of this number, 24 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent 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 · VariableGridEntry.SetValue (cyclomatic 25) · ×1
  • VariableGridEntry.SetValue (cyclomatic 25) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/VariableGridEntry.cs:680 — VariableGridEntry.SetValue 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 · SelectionManager.HighlightActivity (cyclomatic 25) · ×1
  • SelectionManager.HighlightActivity (cyclomatic 25) Tools/Gum.Presentation/Wireframe/SelectionManager.cs:444 — SelectionManager.HighlightActivity 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 · TextureCoordinateDisplayController.GetTextureToAssign (cyclomatic 25) · ×1
  • TextureCoordinateDisplayController.GetTextureToAssign (cyclomatic 25) Tool/TextureCoordinatePlugin.Core/Logic/ControlLogic.cs:512 — TextureCoordinateDisplayController.GetTextureToAssign 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 · crawl.crawlSite (cyclomatic 25) · ×1
  • crawl.crawlSite (cyclomatic 25) Tool/HtmlToGum/fidelity/crawl.ts:26 — crawl.crawlSite has cyclomatic complexity 25 (threshold 15). Of this number, 17 points are the body's own statements and 8 belong to 2 function items 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 · VariableReferenceGraph.Create (cyclomatic 24) · ×1
  • VariableReferenceGraph.Create (cyclomatic 24) GumCommon/Runtime/VariableReferenceGraph.cs:310 — VariableReferenceGraph.Create 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 · Sprite.DrawBoundAtOrigin (cyclomatic 24) · ×1
  • Sprite.DrawBoundAtOrigin (cyclomatic 24) Runtimes/SkiaGum/Renderables/Sprite.cs:563 — Sprite.DrawBoundAtOrigin 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 · CodeGenerationService.GenerateCodeForElement (cyclomatic 24) · ×1
  • CodeGenerationService.GenerateCodeForElement (cyclomatic 24) Tools/Gum.Presentation/CodeOutputPlugin/Manager/CodeGenerationService.cs:88 — CodeGenerationService.GenerateCodeForElement 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 · ProjectManager.LoadProjectUnguardedAsync (cyclomatic 24) · ×1
  • ProjectManager.LoadProjectUnguardedAsync (cyclomatic 24) Tools/Gum.Presentation/Managers/ProjectManager.cs:369 — ProjectManager.LoadProjectUnguardedAsync 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 · ElementSaveDisplayer.GetCategories (cyclomatic 24) · ×1
  • ElementSaveDisplayer.GetCategories (cyclomatic 24) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/ElementSaveDisplayer.cs:485 — ElementSaveDisplayer.GetCategories 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 · SetVariableLogic.ReactIfChangedMemberIsSourceFile (cyclomatic 24) · ×1
  • SetVariableLogic.ReactIfChangedMemberIsSourceFile (cyclomatic 24) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/SetVariableLogic.cs:760 — SetVariableLogic.ReactIfChangedMemberIsSourceFile 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 · ElementCommands.ConvertAmountToPixelAccordingToUnitType (cyclomatic 24) · ×1
  • ElementCommands.ConvertAmountToPixelAccordingToUnitType (cyclomatic 24) Tools/Gum.Presentation/ToolCommands/ElementCommands.cs:554 — ElementCommands.ConvertAmountToPixelAccordingToUnitType 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 · TextBoxDisplayLogic.TryGetValueOnUi (cyclomatic 24) · ×1
  • TextBoxDisplayLogic.TryGetValueOnUi (cyclomatic 24) DataUi.Core/Controls/TextBoxDisplayLogic.cs:318 — TextBoxDisplayLogic.TryGetValueOnUi 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 · CsvReader.ReadNextRecord (cyclomatic 24) · ×1
  • CsvReader.ReadNextRecord (cyclomatic 24) Gum/CsvLibrary/CsvReader.cs:1440 — CsvReader.ReadNextRecord 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 · RenderableSkiaObject.SetGradientOnPaint (cyclomatic 24) · ×1
  • RenderableSkiaObject.SetGradientOnPaint (cyclomatic 24) Gum/SvgPlugin/SkiaInGumShared/Renderables/RenderableSkiaObject.cs:517 — RenderableSkiaObject.SetGradientOnPaint has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
D1 · Cyclomatic Complexity · top-level statements (cyclomatic 24) · ×1
  • top-level statements (cyclomatic 24) Samples/BrutalGum/BrutalGumSample/Program.cs:22 — top-level statements 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 · Program.FlattenTwoTone · ×1
  • Program.FlattenTwoTone::Walk (cyclomatic 24) Gum/GumFigmaIconRipper/Program.cs:145 — Program.FlattenTwoTone::Walk 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 · bookmark_fidelity_batch.summarize_site (cyclomatic 24) · ×1
  • bookmark_fidelity_batch.summarize_site (cyclomatic 24) REDACTED:67 — bookmark_fidelity_batch.summarize_site 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 · UnitConverter.ConvertToUnitTypeCoordinates (cyclomatic 23) · ×1
  • UnitConverter.ConvertToUnitTypeCoordinates (cyclomatic 23) GumDataTypes/UnitConverter.cs:236 — UnitConverter.ConvertToUnitTypeCoordinates has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · InstanceSaveExtensionMethods.GetVariableFromThisOrBase (cyclomatic 23) · ×1
  • InstanceSaveExtensionMethods.GetVariableFromThisOrBase (cyclomatic 23) Gum/DataTypes/InstanceSaveExtensionMethods.cs:145 — InstanceSaveExtensionMethods.GetVariableFromThisOrBase has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · GraphicalUiElement.ApplyAnchor (cyclomatic 23) · ×1
  • GraphicalUiElement.ApplyAnchor (cyclomatic 23) GumRuntime/GraphicalUiElement.DockAndAnchor.cs:354 — GraphicalUiElement.ApplyAnchor 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 · StateSaveExtensionMethods.AssignVariableSave (cyclomatic 23) · ×1
  • StateSaveExtensionMethods.AssignVariableSave (cyclomatic 23) Gum/DataTypes/StateSaveExtensionMethods.cs:837 — StateSaveExtensionMethods.AssignVariableSave has cyclomatic complexity 23 (threshold 15). Of this number, 22 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 · ListBox.DoListItemFocusUpdate (cyclomatic 23) · ×1
  • ListBox.DoListItemFocusUpdate (cyclomatic 23) MonoGameGum/Forms/Controls/ListBox.cs:1990 — ListBox.DoListItemFocusUpdate 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 · BatchKeyGroupedOrderer.BuildPrecedenceEdges (cyclomatic 23) · ×1
  • BatchKeyGroupedOrderer.BuildPrecedenceEdges (cyclomatic 23) RenderingLibrary/Graphics/BatchKeyGroupedOrderer.cs:827 — BatchKeyGroupedOrderer.BuildPrecedenceEdges 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 · Sprite.Render (cyclomatic 23) · ×1
  • Sprite.Render (cyclomatic 23) RenderingLibrary/Graphics/Sprite.cs:878 — Sprite.Render 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 · CodeGenerator.FormsPropertyValueToCode (cyclomatic 23) · ×1
  • CodeGenerator.FormsPropertyValueToCode (cyclomatic 23) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:6981 — CodeGenerator.FormsPropertyValueToCode has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · NewProjectService.Validate (cyclomatic 23) · ×1
  • NewProjectService.Validate (cyclomatic 23) Tools/Gum.ProjectServices/NewProject/NewProjectService.cs:81 — NewProjectService.Validate 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 · GumProjectRepairLogic.FixSlashesInNames (cyclomatic 23) · ×1
  • GumProjectRepairLogic.FixSlashesInNames (cyclomatic 23) Tools/Gum.Presentation/Logic/GumProjectRepairLogic.cs:97 — GumProjectRepairLogic.FixSlashesInNames 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 · HotkeyManager.HandleNudge (cyclomatic 23) · ×1
  • HotkeyManager.HandleNudge (cyclomatic 23) Tools/Gum.Presentation/Managers/HotkeyManager.cs:420 — HotkeyManager.HandleNudge 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 · TextureCoordinateDisplayController.ApplyRegionGesture (cyclomatic 23) · ×1
  • TextureCoordinateDisplayController.ApplyRegionGesture (cyclomatic 23) Tool/TextureCoordinatePlugin.Core/Logic/ControlLogic.cs:615 — TextureCoordinateDisplayController.ApplyRegionGesture 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 · RectangleSelector.GetCursorToSet (cyclomatic 23) · ×1
  • RectangleSelector.GetCursorToSet (cyclomatic 23) Tool/TextureCoordinatePlugin.Core/RegionSelection/RectangleSelector.cs:843 — RectangleSelector.GetCursorToSet 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 · VariableReferenceGraph.BuildCrossLoopIndex (cyclomatic 22) · ×1
  • VariableReferenceGraph.BuildCrossLoopIndex (cyclomatic 22) GumCommon/Runtime/VariableReferenceGraph.cs:952 — VariableReferenceGraph.BuildCrossLoopIndex 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 · VariableReferenceGraph.ScanReads (cyclomatic 22) · ×1
  • VariableReferenceGraph.ScanReads (cyclomatic 22) GumCommon/Runtime/VariableReferenceGraph.cs:1257 — VariableReferenceGraph.ScanReads 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 · ObjectFinder.GetElementReferencesToThis (cyclomatic 22) · ×1
  • ObjectFinder.GetElementReferencesToThis (cyclomatic 22) Gum/Managers/ObjectFinder.cs:1151 — ObjectFinder.GetElementReferencesToThis has cyclomatic complexity 22 (threshold 15). Of this number, 20 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · FileManager.RemoveDotDotSlash (cyclomatic 22) · ×1
  • FileManager.RemoveDotDotSlash (cyclomatic 22) REDACTED:718 — FileManager.RemoveDotDotSlash 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 · FrameworkElement.GetDesiredState (cyclomatic 22) · ×1
  • FrameworkElement.GetDesiredState (cyclomatic 22) MonoGameGum/Forms/Controls/FrameworkElement.cs:2789 — FrameworkElement.GetDesiredState 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 · Menu.HandleNavigation (cyclomatic 22) · ×1
  • Menu.HandleNavigation (cyclomatic 22) MonoGameGum/Forms/Controls/Menu.cs:391 — Menu.HandleNavigation 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 · HeadlessErrorChecker.GetTextOutsideFontRangeErrorsFor (cyclomatic 22) · ×1
  • HeadlessErrorChecker.GetTextOutsideFontRangeErrorsFor (cyclomatic 22) Tools/Gum.ProjectServices/HeadlessErrorChecker.cs:1425 — HeadlessErrorChecker.GetTextOutsideFontRangeErrorsFor 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 · map.parseHardTextShadows (cyclomatic 22) · ×1
  • map.parseHardTextShadows (cyclomatic 22) Tool/HtmlToGum/converter/map.ts:322 — map.parseHardTextShadows 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 · canaries.main (cyclomatic 22) · ×1
  • canaries.main (cyclomatic 22) Tool/HtmlToGum/fidelity/canaries.ts:216 — canaries.main 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 · ListBox.HandleListBoxItemDragging (cyclomatic 21) · ×1
  • ListBox.HandleListBoxItemDragging (cyclomatic 21) MonoGameGum/Forms/Controls/ListBox.cs:989 — ListBox.HandleListBoxItemDragging 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 · CustomSetPropertyOnRenderable.GetOrCreateBakedFont (cyclomatic 21) · ×1
  • CustomSetPropertyOnRenderable.GetOrCreateBakedFont (cyclomatic 21) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:2563 — CustomSetPropertyOnRenderable.GetOrCreateBakedFont 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 · RenderableShapeBase.ApplyGradientToPaint (cyclomatic 21) · ×1
  • RenderableShapeBase.ApplyGradientToPaint (cyclomatic 21) Runtimes/SkiaGum/Renderables/RenderableShapeBase.cs:1425 — RenderableShapeBase.ApplyGradientToPaint has cyclomatic complexity 21 (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 · CodeGenerator.GetInheritance (cyclomatic 21) · ×1
  • CodeGenerator.GetInheritance (cyclomatic 21) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:935 — CodeGenerator.GetInheritance 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 · CodeGenerator.FillWithInstanceInstantiation (cyclomatic 21) · ×1
  • CodeGenerator.FillWithInstanceInstantiation (cyclomatic 21) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2203 — CodeGenerator.FillWithInstanceInstantiation has cyclomatic complexity 21 (threshold 15). Of this number, 20 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 · HeadlessFontGenerationService.EstimateBlocksNeeded (cyclomatic 21) · ×1
  • HeadlessFontGenerationService.EstimateBlocksNeeded (cyclomatic 21) Tools/Gum.ProjectServices/FontGeneration/HeadlessFontGenerationService.cs:642 — HeadlessFontGenerationService.EstimateBlocksNeeded 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 · ResizeInputHandler.AdjustCursorChangeValuesForAxisLockedDrag (cyclomatic 21) · ×1
  • ResizeInputHandler.AdjustCursorChangeValuesForAxisLockedDrag (cyclomatic 21) Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/ResizeInputHandler.cs:874 — ResizeInputHandler.AdjustCursorChangeValuesForAxisLockedDrag has cyclomatic complexity 21 (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 · PropertyGridManager.RefreshDataGrid (cyclomatic 21) · ×1
  • PropertyGridManager.RefreshDataGrid (cyclomatic 21) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/PropertyGridManager.cs:367 — PropertyGridManager.RefreshDataGrid 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 · SetVariableLogic.ReactIfChangedMemberIsFontFile (cyclomatic 21) · ×1
  • SetVariableLogic.ReactIfChangedMemberIsFontFile (cyclomatic 21) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/SetVariableLogic.cs:558 — SetVariableLogic.ReactIfChangedMemberIsFontFile 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 · SetVariableLogic.ReactIfChangedMemberIsUnitType (cyclomatic 21) · ×1
  • SetVariableLogic.ReactIfChangedMemberIsUnitType (cyclomatic 21) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/SetVariableLogic.cs:648 — SetVariableLogic.ReactIfChangedMemberIsUnitType 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 · SelectionManager.GetRepresentationAt (cyclomatic 21) · ×1
  • SelectionManager.GetRepresentationAt (cyclomatic 21) Tools/Gum.Presentation/Wireframe/SelectionManager.cs:573 — SelectionManager.GetRepresentationAt 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 · TreeSelectionModel.HandleKeyDown (cyclomatic 21) · ×1
  • TreeSelectionModel.HandleKeyDown (cyclomatic 21) Tool/TreeViewPlugin.Core/TreeSelection/TreeSelectionModel.cs:278 — TreeSelectionModel.HandleKeyDown has cyclomatic complexity 21 (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 · ExposedTextureCoordinateLogic.GetExposedSets (cyclomatic 21) · ×1
  • ExposedTextureCoordinateLogic.GetExposedSets (cyclomatic 21) Tool/TextureCoordinatePlugin.Core/Logic/ExposedTextureCoordinateLogic.cs:30 — ExposedTextureCoordinateLogic.GetExposedSets has cyclomatic complexity 21 (threshold 15). Of this number, 19 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 · FrbThemeResources.ControlBrushAliases (cyclomatic 21) · ×1
  • FrbThemeResources.ControlBrushAliases (cyclomatic 21) Tool/Gum.Avalonia/Themes/FrbThemeResources.cs:181 — FrbThemeResources.ControlBrushAliases has cyclomatic complexity 21 (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 · Text.Render (cyclomatic 21) · ×1
  • Text.Render (cyclomatic 21) Runtimes/SokolGum/Renderables/Text.cs:183 — Text.Render has cyclomatic complexity 21 (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 · SkiaRenderer.Draw (cyclomatic 21) · ×1
  • SkiaRenderer.Draw (cyclomatic 21) Gum/SvgPlugin/SkiaInGumShared/Rendering/SkiaRenderer.cs:119 — SkiaRenderer.Draw 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 · forms.emitFormsControlVars (cyclomatic 21) · ×1
  • forms.emitFormsControlVars (cyclomatic 21) Tool/HtmlToGum/converter/forms.ts:130 — forms.emitFormsControlVars 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 · AnimationRuntime.CombineStateFromAnimations (cyclomatic 20) · ×1
  • AnimationRuntime.CombineStateFromAnimations (cyclomatic 20) GumCommon/Runtime/AnimationRuntime.cs:424 — AnimationRuntime.CombineStateFromAnimations 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 · ElementSaveExtensions.GetItemNamesOwnedByReachableCategorizedStates (cyclomatic 20) · ×1
  • ElementSaveExtensions.GetItemNamesOwnedByReachableCategorizedStates (cyclomatic 20) GumRuntime/ElementSaveExtensions.GumRuntime.cs:910 — ElementSaveExtensions.GetItemNamesOwnedByReachableCategorizedStates 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 · ElementSaveExtensions.ResolveOwnerPrefix (cyclomatic 20) · ×1
  • ElementSaveExtensions.ResolveOwnerPrefix (cyclomatic 20) GumRuntime/ElementSaveExtensions.GumRuntime.cs:1407 — ElementSaveExtensions.ResolveOwnerPrefix 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 · StateSaveExtensionMethods.GetVariableRecursive (cyclomatic 20) · ×1
  • StateSaveExtensionMethods.GetVariableRecursive (cyclomatic 20) Gum/DataTypes/StateSaveExtensionMethods.cs:310 — StateSaveExtensionMethods.GetVariableRecursive 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 · VariableSaveExtensionMethods.IsState (cyclomatic 20) · ×1
  • VariableSaveExtensionMethods.IsState (cyclomatic 20) Gum/DataTypes/VariableSaveExtensionMethods.cs:58 — VariableSaveExtensionMethods.IsState has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: VariableSaveExtensionMethods.ConvertEnumerationValuesToInts (cyclomatic 24) 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 · Layer.SortByZ (cyclomatic 20) · ×1
  • Layer.SortByZ (cyclomatic 20) RenderingLibrary/Graphics/Layer.cs:110 — Layer.SortByZ 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 · MenuItem.ReconcilePopupRows (cyclomatic 20) · ×1
  • MenuItem.ReconcilePopupRows (cyclomatic 20) MonoGameGum/Forms/Controls/MenuItem.cs:1174 — MenuItem.ReconcilePopupRows 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 · Window.HandleVisualDragging (cyclomatic 20) · ×1
  • Window.HandleVisualDragging (cyclomatic 20) MonoGameGum/Forms/Window.cs:280 — Window.HandleVisualDragging has cyclomatic complexity 20 (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 · SpriteRenderer.BeginSpriteBatch (cyclomatic 20) · ×1
  • SpriteRenderer.BeginSpriteBatch (cyclomatic 20) RenderingLibrary/Graphics/SpriteRenderer.cs:269 — SpriteRenderer.BeginSpriteBatch 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 · CodeGenerator.CollectUsingNamespaces (cyclomatic 20) · ×1
  • CodeGenerator.CollectUsingNamespaces (cyclomatic 20) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:547 — CodeGenerator.CollectUsingNamespaces 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 · ImportFromGumxViewModel.RecomputeTransitiveDependencies (cyclomatic 20) · ×1
  • ImportFromGumxViewModel.RecomputeTransitiveDependencies (cyclomatic 20) Tools/Gum.Presentation/ImportFromGumx/ImportFromGumxViewModel.cs:641 — ImportFromGumxViewModel.RecomputeTransitiveDependencies has cyclomatic complexity 20 (threshold 15). Of this number, 16 points are the body's own statements and 4 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 · CopyPasteLogic.StoreCopiedInstances (cyclomatic 20) · ×1
  • CopyPasteLogic.StoreCopiedInstances (cyclomatic 20) Tools/Gum.Presentation/Logic/CopyPasteLogic.cs:233 — CopyPasteLogic.StoreCopiedInstances 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 · CopyPasteLogic.CreateComponentFromInstance (cyclomatic 20) · ×1
  • CopyPasteLogic.CreateComponentFromInstance (cyclomatic 20) Tools/Gum.Presentation/Logic/CopyPasteLogic.cs:1414 — CopyPasteLogic.CreateComponentFromInstance 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 · RenameLogic.HandleRename (cyclomatic 20) · ×1
  • RenameLogic.HandleRename (cyclomatic 20) Tools/Gum.Presentation/Logic/RenameLogic.cs:438 — RenameLogic.HandleRename 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 · MoveInputHandler.SnapSelectedToUnitValues (cyclomatic 20) · ×1
  • MoveInputHandler.SnapSelectedToUnitValues (cyclomatic 20) Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/MoveInputHandler.cs:318 — MoveInputHandler.SnapSelectedToUnitValues 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 · ExposeVariableService.RemoveUnnamedShaderPlaceholder (cyclomatic 20) · ×1
  • ExposeVariableService.RemoveUnnamedShaderPlaceholder (cyclomatic 20) Tools/Gum.Presentation/Services/ExposeVariableService.cs:320 — ExposeVariableService.RemoveUnnamedShaderPlaceholder 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 · FilePickingLogic.RemoveDotDotSlash (cyclomatic 20) · ×1
  • FilePickingLogic.RemoveDotDotSlash (cyclomatic 20) DataUi.Core/Controls/FilePickingLogic.cs:89 — FilePickingLogic.RemoveDotDotSlash 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 · StandardWireframeEditor.UpdateLockedVariables (cyclomatic 20) · ×1
  • StandardWireframeEditor.UpdateLockedVariables (cyclomatic 20) Tool/EditorTabPlugin.Core/Editors/StandardWireframeEditor.cs:179 — StandardWireframeEditor.UpdateLockedVariables 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 · RuntimeCsvRepresentation.AsssignValuesOnElement (cyclomatic 20) · ×1
  • RuntimeCsvRepresentation.AsssignValuesOnElement (cyclomatic 20) Gum/CsvLibrary/RuntimeCsvRepresentation.cs:1163 — RuntimeCsvRepresentation.AsssignValuesOnElement 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 · HeadOptions.Parse (cyclomatic 20) · ×1
  • HeadOptions.Parse (cyclomatic 20) Tool/Gum.Avalonia/HeadOptions.cs:112 — HeadOptions.Parse 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 · diff_screenshots.main (cyclomatic 20) · ×1
  • diff_screenshots.main (cyclomatic 20) Tool/HtmlToGum/fidelity/diff_screenshots.py:30 — diff_screenshots.main 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 · GumHotReloadManager.DiffDesignTimeChildren (cyclomatic 19) · ×1
  • GumHotReloadManager.DiffDesignTimeChildren (cyclomatic 19) GumCommon/HostServices/GumHotReloadManager.cs:2466 — GumHotReloadManager.DiffDesignTimeChildren 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 · StateSave.GetValue (cyclomatic 19) · ×1
  • StateSave.GetValue (cyclomatic 19) GumDataTypes/Variables/StateSave.cs:154 — StateSave.GetValue 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 · GraphicalUiElement.UpdateToVmProperty (cyclomatic 19) · ×1
  • GraphicalUiElement.UpdateToVmProperty (cyclomatic 19) GumRuntime/GraphicalUiElement.Binding.cs:495 — GraphicalUiElement.UpdateToVmProperty 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 · GraphicalUiElement.GetWhatToStackAfter (cyclomatic 19) · ×1
  • GraphicalUiElement.GetWhatToStackAfter (cyclomatic 19) GumRuntime/GraphicalUiElement.Stacking.cs:388 — GraphicalUiElement.GetWhatToStackAfter 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 · ComboBox.HandlePendingItemsChanged (cyclomatic 19) · ×1
  • ComboBox.HandlePendingItemsChanged (cyclomatic 19) MonoGameGum/Forms/Controls/ComboBox.cs:351 — ComboBox.HandlePendingItemsChanged 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 · ButtonBase.OnFocusUpdate (cyclomatic 19) · ×1
  • ButtonBase.OnFocusUpdate (cyclomatic 19) MonoGameGum/Forms/Controls/Primitives/ButtonBase.cs:216 — ButtonBase.OnFocusUpdate 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 · Slider.OnFocusUpdate (cyclomatic 19) · ×1
  • Slider.OnFocusUpdate (cyclomatic 19) MonoGameGum/Forms/Controls/Slider.cs:484 — Slider.OnFocusUpdate 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 · ToolTipService.Update (cyclomatic 19) · ×1
  • ToolTipService.Update (cyclomatic 19) MonoGameGum/Forms/Controls/ToolTipService.cs:254 — ToolTipService.Update 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 · Window.HandleVisualPush (cyclomatic 19) · ×1
  • Window.HandleVisualPush (cyclomatic 19) MonoGameGum/Forms/Window.cs:535 — Window.HandleVisualPush 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 · CustomSetPropertyOnRenderable.AssignSourceShaderFileOnContainer (cyclomatic 19) · ×1
  • CustomSetPropertyOnRenderable.AssignSourceShaderFileOnContainer (cyclomatic 19) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:547 — CustomSetPropertyOnRenderable.AssignSourceShaderFileOnContainer 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 · CustomSetPropertyOnRenderable.SetBbCodeText (cyclomatic 19) · ×1
  • CustomSetPropertyOnRenderable.SetBbCodeText (cyclomatic 19) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:1950 — CustomSetPropertyOnRenderable.SetBbCodeText 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 · NineSlice.RenderTiled (cyclomatic 19) · ×1
  • NineSlice.RenderTiled (cyclomatic 19) RenderingLibrary/Graphics/NineSlice.cs:1171 — NineSlice.RenderTiled 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 · NineSlice.DrawMiddleSection (cyclomatic 19) · ×1
  • NineSlice.DrawMiddleSection (cyclomatic 19) Runtimes/SkiaGum/Renderables/NineSlice.cs:920 — NineSlice.DrawMiddleSection 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 · CodeGenerator.GetClassNameForType (cyclomatic 19) · ×1
  • CodeGenerator.GetClassNameForType (cyclomatic 19) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:853 — CodeGenerator.GetClassNameForType 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 · CodeGenerator.FillWithParentAssignments (cyclomatic 19) · ×1
  • CodeGenerator.FillWithParentAssignments (cyclomatic 19) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:3724 — CodeGenerator.FillWithParentAssignments 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 · CodeGenerator.FillWithFormsPropertyAssignments (cyclomatic 19) · ×1
  • CodeGenerator.FillWithFormsPropertyAssignments (cyclomatic 19) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:6834 — CodeGenerator.FillWithFormsPropertyAssignments has cyclomatic complexity 19 (threshold 15). Of this number, 14 points are the body's own statements and 5 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 · VariableSaveLogic.GetIfVariableIsActive (cyclomatic 19) · ×1
  • VariableSaveLogic.GetIfVariableIsActive (cyclomatic 19) Tools/Gum.Presentation/Logic/VariableSaveLogic.cs:38 — VariableSaveLogic.GetIfVariableIsActive 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 · DeleteLogic.PerformConfirmedMixedTypeDelete (cyclomatic 19) · ×1
  • DeleteLogic.PerformConfirmedMixedTypeDelete (cyclomatic 19) Tools/Gum.Presentation/Managers/DeleteLogic.cs:335 — DeleteLogic.PerformConfirmedMixedTypeDelete has cyclomatic complexity 19 (threshold 15). Of this number, 16 points are the body's own statements and 3 belong to 3 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 · AvailableBaseTypeConverter.CreateStandardValuesCollection (cyclomatic 19) · ×1
  • AvailableBaseTypeConverter.CreateStandardValuesCollection (cyclomatic 19) Tools/Gum.Presentation/PropertyGridHelpers/Converters/AvailableBaseTypeConverter.cs:39 — AvailableBaseTypeConverter.CreateStandardValuesCollection 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 · ElementUndoStrategy.TryGetUndoSnapshotToAdd (cyclomatic 19) · ×1
  • ElementUndoStrategy.TryGetUndoSnapshotToAdd (cyclomatic 19) Tools/Gum.Presentation/Undo/ElementUndoStrategy.cs:331 — ElementUndoStrategy.TryGetUndoSnapshotToAdd 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 · IDataUiExtensionMethods.AreEqual (cyclomatic 19) · ×1
  • IDataUiExtensionMethods.AreEqual (cyclomatic 19) DataUi.Core/IDataUiExtensionMethods.cs:145 — IDataUiExtensionMethods.AreEqual 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 · TextureCoordinateDisplayController.RefreshSelector (cyclomatic 19) · ×1
  • TextureCoordinateDisplayController.RefreshSelector (cyclomatic 19) Tool/TextureCoordinatePlugin.Core/Logic/ControlLogic.cs:880 — TextureCoordinateDisplayController.RefreshSelector 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 · ImageRegionSelectionCore.BringSpriteInView (cyclomatic 19) · ×1
  • ImageRegionSelectionCore.BringSpriteInView (cyclomatic 19) Tool/TextureCoordinatePlugin.Core/RegionSelection/ImageRegionSelectionCore.cs:745 — ImageRegionSelectionCore.BringSpriteInView 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 · RectangleSelector.KeyboardActivity (cyclomatic 19) · ×1
  • RectangleSelector.KeyboardActivity (cyclomatic 19) Tool/TextureCoordinatePlugin.Core/RegionSelection/RectangleSelector.cs:482 — RectangleSelector.KeyboardActivity 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 · fonts.collectFontFaceRules (cyclomatic 19) · ×1
  • fonts.collectFontFaceRules (cyclomatic 19) Tool/HtmlToGum/converter/fonts.ts:173 — fonts.collectFontFaceRules has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 6 of the 19 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 176, 174, 228). 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 · fonts.extFor (cyclomatic 19) · ×1
  • fonts.extFor (cyclomatic 19) Tool/HtmlToGum/converter/fonts.ts:305 — fonts.extFor 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 · raster-isolation.isolateElementForTransparentScreenshot (cyclomatic 19) · ×1
  • raster-isolation.isolateElementForTransparentScreenshot (cyclomatic 19) Tool/HtmlToGum/converter/raster-isolation.ts:25 — raster-isolation.isolateElementForTransparentScreenshot has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 9 of the 19 points are its own statements and the rest belongs to 2 function items inside it that branch (isVisible, remember). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · InteractiveGue.IsOverChildren (cyclomatic 18) · ×1
  • InteractiveGue.IsOverChildren (cyclomatic 18) GumRuntime/InteractiveGue.cs:916 — InteractiveGue.IsOverChildren 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 · GraphicalUiElement.AdjustOffsetsByUnits (cyclomatic 18) · ×1
  • GraphicalUiElement.AdjustOffsetsByUnits (cyclomatic 18) GumRuntime/GraphicalUiElement.Position.cs:196 — GraphicalUiElement.AdjustOffsetsByUnits 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 · GraphicalUiElement.RestoreTextureVariables (cyclomatic 18) · ×1
  • GraphicalUiElement.RestoreTextureVariables (cyclomatic 18) GumRuntime/GraphicalUiElement.SetValuesAndStates.cs:386 — GraphicalUiElement.RestoreTextureVariables 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 · GraphicalUiElement.GetReferenceAudience (cyclomatic 18) · ×1
  • GraphicalUiElement.GetReferenceAudience (cyclomatic 18) GumRuntime/GraphicalUiElement.SetValuesAndStates.cs:914 — GraphicalUiElement.GetReferenceAudience has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · StateSaveExtensionMethods.SetValue (cyclomatic 18) · ×1
  • StateSaveExtensionMethods.SetValue (cyclomatic 18) Gum/DataTypes/StateSaveExtensionMethods.cs:591 — StateSaveExtensionMethods.SetValue 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 · GumService.UninitializeCore (cyclomatic 18) · ×1
  • GumService.UninitializeCore (cyclomatic 18) MonoGameGum/GumService.cs:850 — GumService.UninitializeCore 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 · CustomSetPropertyOnRenderable.UpdateToFontValuesInContext (cyclomatic 18) · ×1
  • CustomSetPropertyOnRenderable.UpdateToFontValuesInContext (cyclomatic 18) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:2872 — CustomSetPropertyOnRenderable.UpdateToFontValuesInContext 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 · NineSlice.Render (cyclomatic 18) · ×1
  • NineSlice.Render (cyclomatic 18) RenderingLibrary/Graphics/NineSlice.cs:616 — NineSlice.Render 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 · Text.BuildTextBlockFromRuns (cyclomatic 18) · ×1
  • Text.BuildTextBlockFromRuns (cyclomatic 18) Runtimes/SkiaGum/Renderables/Text.cs:1600 — Text.BuildTextBlockFromRuns 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 · LineCircle.Render (cyclomatic 18) · ×1
  • LineCircle.Render (cyclomatic 18) Runtimes/RaylibGum/Renderables/LineCircle.cs:271 — LineCircle.Render 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.
D1 · Cyclomatic Complexity · EvaluatedSyntax.SplitOnLiterals (cyclomatic 18) · ×1
  • EvaluatedSyntax.SplitOnLiterals (cyclomatic 18) Runtimes/GumExpressions/EvaluatedSyntax.cs:954 — EvaluatedSyntax.SplitOnLiterals 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 · HeadlessErrorChecker.CheckInheritedCategorizedReferenceConflicts (cyclomatic 18) · ×1
  • HeadlessErrorChecker.CheckInheritedCategorizedReferenceConflicts (cyclomatic 18) Tools/Gum.ProjectServices/HeadlessErrorChecker.cs:262 — HeadlessErrorChecker.CheckInheritedCategorizedReferenceConflicts 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.
D1 · Cyclomatic Complexity · HeadlessErrorChecker.GetUnknownStateValueErrorsFor (cyclomatic 18) · ×1
  • HeadlessErrorChecker.GetUnknownStateValueErrorsFor (cyclomatic 18) Tools/Gum.ProjectServices/HeadlessErrorChecker.HandWrittenFiles.cs:310 — HeadlessErrorChecker.GetUnknownStateValueErrorsFor 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.
D1 · Cyclomatic Complexity · FileWatchManager.Flush (cyclomatic 18) · ×1
  • FileWatchManager.Flush (cyclomatic 18) Tools/Gum.Presentation/FileWatchPlugin/FileWatchManager.cs:482 — FileWatchManager.Flush 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 · GumxImportService.ResolveChainTexturesAsync (cyclomatic 18) · ×1
  • GumxImportService.ResolveChainTexturesAsync (cyclomatic 18) Tools/Gum.Presentation/ImportFromGumx/Services/GumxImportService.cs:450 — GumxImportService.ResolveChainTexturesAsync 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.
D1 · Cyclomatic Complexity · StateTreeKeyboardHandler.HandleKeyDown (cyclomatic 18) · ×1
  • StateTreeKeyboardHandler.HandleKeyDown (cyclomatic 18) Tools/Gum.Presentation/Plugins/InternalPlugins/StatePlugin/StateTreeKeyboardHandler.cs:34 — StateTreeKeyboardHandler.HandleKeyDown 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 · ElementSaveDisplayer.AddBehaviorFormsPropertyMembers (cyclomatic 18) · ×1
  • ElementSaveDisplayer.AddBehaviorFormsPropertyMembers (cyclomatic 18) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/ElementSaveDisplayer.cs:651 — ElementSaveDisplayer.AddBehaviorFormsPropertyMembers has cyclomatic 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, separate the cases: extract each independent 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 · AnimationTabController.HandleDataChange (cyclomatic 18) · ×1
  • AnimationTabController.HandleDataChange (cyclomatic 18) Tools/Gum.Presentation/StateAnimationPlugin/AnimationTabController.cs:542 — AnimationTabController.HandleDataChange has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · DialogWindow.DialogWindow.ctor (cyclomatic 18) · ×1
  • DialogWindow.DialogWindow.ctor (cyclomatic 18) Tool/Gum.Avalonia/Dialogs/DialogWindow.cs:129 — DialogWindow.DialogWindow.ctor has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 5 of the 18 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 254, 235, 211, …). 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 · map.layoutModeOf (cyclomatic 18) · ×1
  • map.layoutModeOf (cyclomatic 18) Tool/HtmlToGum/converter/map.ts:154 — map.layoutModeOf 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 · GumHotReloadManager.ApplyDiffRecursive (cyclomatic 17) · ×1
  • GumHotReloadManager.ApplyDiffRecursive (cyclomatic 17) GumCommon/HostServices/GumHotReloadManager.cs:1806 — GumHotReloadManager.ApplyDiffRecursive 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 · GumHotReloadManager.ResetRemovedVariables (cyclomatic 17) · ×1
  • GumHotReloadManager.ResetRemovedVariables (cyclomatic 17) GumCommon/HostServices/GumHotReloadManager.cs:2341 — GumHotReloadManager.ResetRemovedVariables has cyclomatic 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, separate the cases: extract each independent 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 · GumProjectSave.Load (cyclomatic 17) · ×1
  • GumProjectSave.Load (cyclomatic 17) GumDataTypes/GumProjectSave.cs:759 — GumProjectSave.Load 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 · GumProjectSave.PopulateElementSavesFromReferences (cyclomatic 17) · ×1
  • GumProjectSave.PopulateElementSavesFromReferences (cyclomatic 17) GumDataTypes/GumProjectSave.cs:959 — GumProjectSave.PopulateElementSavesFromReferences 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 · BbCodeParser.ReplaceGlyphTags (cyclomatic 17) · ×1
  • BbCodeParser.ReplaceGlyphTags (cyclomatic 17) GumRuntime/BbCodeParser.cs:150 — BbCodeParser.ReplaceGlyphTags 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 · ElementSaveExtensions.ReportedMismatch (cyclomatic 17) · ×1
  • ElementSaveExtensions.ReportedMismatch (cyclomatic 17) GumRuntime/ElementSaveExtensions.GumRuntime.cs:1972 — ElementSaveExtensions.ReportedMismatch 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 · ParsedFontLine.Parse (cyclomatic 17) · ×1
  • ParsedFontLine.Parse (cyclomatic 17) RenderingLibrary/Graphics/Fonts/ParsedFontFile.cs:319 — ParsedFontLine.Parse has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ElementSaveExtensionMethods.AddAndModifyVariablesAccordingToDefault (cyclomatic 17) · ×1
  • ElementSaveExtensionMethods.AddAndModifyVariablesAccordingToDefault (cyclomatic 17) Gum/DataTypes/ElementSaveExtensionMethods.cs:126 — ElementSaveExtensionMethods.AddAndModifyVariablesAccordingToDefault 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 · GraphicalUiElement.TryPlaceInsteadOfLayingOutAgain (cyclomatic 17) · ×1
  • GraphicalUiElement.TryPlaceInsteadOfLayingOutAgain (cyclomatic 17) GumRuntime/GraphicalUiElement.ChildUpdates.cs:552 — GraphicalUiElement.TryPlaceInsteadOfLayingOutAgain 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 · GraphicalUiElement.UpdateDimensions (cyclomatic 17) · ×1
  • GraphicalUiElement.UpdateDimensions (cyclomatic 17) GumRuntime/GraphicalUiElement.Dimensions.cs:45 — GraphicalUiElement.UpdateDimensions 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 · NpcBindingExpression.UpdateTarget (cyclomatic 17) · ×1
  • NpcBindingExpression.UpdateTarget (cyclomatic 17) MonoGameGum/Forms/Data/NpcBindingExpression.cs:134 — NpcBindingExpression.UpdateTarget 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 · Menu.OnFocusUpdate (cyclomatic 17) · ×1
  • Menu.OnFocusUpdate (cyclomatic 17) MonoGameGum/Forms/Controls/Menu.cs:308 — Menu.OnFocusUpdate 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 · BatchKeyGroupedOrderer.ProcessRenderable (cyclomatic 17) · ×1
  • BatchKeyGroupedOrderer.ProcessRenderable (cyclomatic 17) RenderingLibrary/Graphics/BatchKeyGroupedOrderer.cs:611 — BatchKeyGroupedOrderer.ProcessRenderable 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 · SpriteRenderer.Draw (cyclomatic 17) · ×1
  • SpriteRenderer.Draw (cyclomatic 17) RenderingLibrary/Graphics/SpriteRenderer.cs:747 — SpriteRenderer.Draw 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 · StyledSubstringSplitter.Split (cyclomatic 17) · ×1
  • StyledSubstringSplitter.Split (cyclomatic 17) RenderingLibrary/Graphics/StyledSubstringSplitter.cs:294 — StyledSubstringSplitter.Split 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 · CustomSetPropertyOnRenderable.AssignSourceShaderFileOnContainer (cyclomatic 17) · ×1
  • CustomSetPropertyOnRenderable.AssignSourceShaderFileOnContainer (cyclomatic 17) Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs:1325 — CustomSetPropertyOnRenderable.AssignSourceShaderFileOnContainer 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 · NineSlice.AddMiddleSections (cyclomatic 17) · ×1
  • NineSlice.AddMiddleSections (cyclomatic 17) Runtimes/RaylibGum/Renderables/NineSlice.cs:698 — NineSlice.AddMiddleSections 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 · ObsoleteShapeRuntimeCodeFixProvider.ApplyMigrationAsync (cyclomatic 17) · ×1
  • ObsoleteShapeRuntimeCodeFixProvider.ApplyMigrationAsync (cyclomatic 17) Tools/Gum.Analyzers/ObsoleteShapeRuntimeCodeFixProvider.cs:63 — ObsoleteShapeRuntimeCodeFixProvider.ApplyMigrationAsync 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 · CodeGenerator.GenerateApplyDefaultVariables (cyclomatic 17) · ×1
  • CodeGenerator.GenerateApplyDefaultVariables (cyclomatic 17) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:6194 — CodeGenerator.GenerateApplyDefaultVariables 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 · CodeOutputTabController.RefreshCodeDisplay (cyclomatic 17) · ×1
  • CodeOutputTabController.RefreshCodeDisplay (cyclomatic 17) Tools/Gum.Presentation/CodeOutputPlugin/CodeOutputTabController.cs:94 — CodeOutputTabController.RefreshCodeDisplay 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 · RenameFolderDialogViewModel.OnAffirmative (cyclomatic 17) · ×1
  • RenameFolderDialogViewModel.OnAffirmative (cyclomatic 17) Tools/Gum.Presentation/Dialogs/RenameFolderDialogViewModel.cs:56 — RenameFolderDialogViewModel.OnAffirmative 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 · GumxDependencyResolver.ComputeTransitive (cyclomatic 17) · ×1
  • GumxDependencyResolver.ComputeTransitive (cyclomatic 17) Tools/Gum.Presentation/ImportFromGumx/Services/GumxDependencyResolver.cs:23 — GumxDependencyResolver.ComputeTransitive 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 · RenameLogic.ApplyInstanceReferences (cyclomatic 17) · ×1
  • RenameLogic.ApplyInstanceReferences (cyclomatic 17) Tools/Gum.Presentation/Logic/RenameLogic.cs:298 — RenameLogic.ApplyInstanceReferences has cyclomatic complexity 17 (threshold 15). Of this number, 12 points are the body's own statements and 5 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · VariableSaveLogic.GetShouldIncludeBasedOnBaseType (cyclomatic 17) · ×1
  • VariableSaveLogic.GetShouldIncludeBasedOnBaseType (cyclomatic 17) Tools/Gum.Presentation/Logic/VariableSaveLogic.cs:232 — VariableSaveLogic.GetShouldIncludeBasedOnBaseType 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 · MoveInputHandler.SnapSelectedToGrid (cyclomatic 17) · ×1
  • MoveInputHandler.SnapSelectedToGrid (cyclomatic 17) Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/MoveInputHandler.cs:395 — MoveInputHandler.SnapSelectedToGrid 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 · ResizeInputHandler.CalculateMultipliers (cyclomatic 17) · ×1
  • ResizeInputHandler.CalculateMultipliers (cyclomatic 17) Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/ResizeInputHandler.cs:687 — ResizeInputHandler.CalculateMultipliers 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 · ElementSaveDisplayer.GetVariablesSetThroughReferences (cyclomatic 17) · ×1
  • ElementSaveDisplayer.GetVariablesSetThroughReferences (cyclomatic 17) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/ElementSaveDisplayer.cs:363 — ElementSaveDisplayer.GetVariablesSetThroughReferences 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 · VariableReferenceLogic.AddFailureForLine (cyclomatic 17) · ×1
  • VariableReferenceLogic.AddFailureForLine (cyclomatic 17) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/VariableReferenceLogic.cs:110 — VariableReferenceLogic.AddFailureForLine 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 · VariableReferenceLogic.CheckIfVariableTypesMatch (cyclomatic 17) · ×1
  • VariableReferenceLogic.CheckIfVariableTypesMatch (cyclomatic 17) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/VariableReferenceLogic.cs:354 — VariableReferenceLogic.CheckIfVariableTypesMatch 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 · RenameManager.HandleRename (cyclomatic 17) · ×1
  • RenameManager.HandleRename (cyclomatic 17) Tools/Gum.Presentation/StateAnimationPlugin/Managers/RenameManager.cs:36 — RenameManager.HandleRename 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 · SelectionManager.ProcessInputForSelection (cyclomatic 17) · ×1
  • SelectionManager.ProcessInputForSelection (cyclomatic 17) Tools/Gum.Presentation/Wireframe/SelectionManager.cs:880 — SelectionManager.ProcessInputForSelection 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 · PolygonScaler.Scale (cyclomatic 17) · ×1
  • PolygonScaler.Scale (cyclomatic 17) Tool/EditorTabPlugin.Core/Editors/Handlers/PolygonScaler.cs:39 — PolygonScaler.Scale 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 · Game1.LogInput (cyclomatic 17) · ×1
  • Game1.LogInput (cyclomatic 17) Tool/GumPreview/Game1.cs:302 — Game1.LogInput has cyclomatic 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, separate the cases: extract each independent 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 · Program.Main (cyclomatic 17) · ×1
  • Program.Main (cyclomatic 17) Samples/SilkNetGum/SilkNetGumSample/Program.cs:26 — Program.Main 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 · map.wantsTiledBackground (cyclomatic 17) · ×1
  • map.wantsTiledBackground (cyclomatic 17) Tool/HtmlToGum/converter/map.ts:824 — map.wantsTiledBackground 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, 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 · GumBundleLoader.Resolve (cyclomatic 16) · ×1
  • GumBundleLoader.Resolve (cyclomatic 16) GumCommon/Bundle/GumBundleLoader.cs:31 — GumBundleLoader.Resolve 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 · GumProjectDependencyWalker.CollectForSingleElement (cyclomatic 16) · ×1
  • GumProjectDependencyWalker.CollectForSingleElement (cyclomatic 16) GumCommon/Bundle/GumProjectDependencyWalker.cs:416 — GumProjectDependencyWalker.CollectForSingleElement 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 · GumProjectDependencyWalker.CollectFromState (cyclomatic 16) · ×1
  • GumProjectDependencyWalker.CollectFromState (cyclomatic 16) GumCommon/Bundle/GumProjectDependencyWalker.cs:484 — GumProjectDependencyWalker.CollectFromState 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 · RgbaPixels.BleedTransparentEdges (cyclomatic 16) · ×1
  • RgbaPixels.BleedTransparentEdges (cyclomatic 16) GumCommon/Content/RgbaPixels.cs:61 — RgbaPixels.BleedTransparentEdges 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 · GumHotReloadManager.FindChangedReferences (cyclomatic 16) · ×1
  • GumHotReloadManager.FindChangedReferences (cyclomatic 16) GumCommon/HostServices/GumHotReloadManager.cs:1140 — GumHotReloadManager.FindChangedReferences 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 · GumHotReloadManager.SetChangedVariablesRecursively (cyclomatic 16) · ×1
  • GumHotReloadManager.SetChangedVariablesRecursively (cyclomatic 16) GumCommon/HostServices/GumHotReloadManager.cs:2021 — GumHotReloadManager.SetChangedVariablesRecursively has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body's own statements and 1 belongs 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 · VariableReferenceGraph.SearchLoop (cyclomatic 16) · ×1
  • VariableReferenceGraph.SearchLoop (cyclomatic 16) GumCommon/Runtime/VariableReferenceGraph.cs:1166 — VariableReferenceGraph.SearchLoop 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 · RuntimeSnapshotSerializer.EmitOverridesRecursive (cyclomatic 16) · ×1
  • RuntimeSnapshotSerializer.EmitOverridesRecursive (cyclomatic 16) GumCommon/Wireframe/RuntimeSnapshotSerializer.cs:606 — RuntimeSnapshotSerializer.EmitOverridesRecursive 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 · ShaderParameterText.TryParseValue (cyclomatic 16) · ×1
  • ShaderParameterText.TryParseValue (cyclomatic 16) RenderingLibrary/Graphics/ShaderParameterText.cs:127 — ShaderParameterText.TryParseValue 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 · FileManager.MakeRelative (cyclomatic 16) · ×1
  • FileManager.MakeRelative (cyclomatic 16) REDACTED:635 — FileManager.MakeRelative 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 · InstanceSaveExtensionMethods.Initialize (cyclomatic 16) · ×1
  • InstanceSaveExtensionMethods.Initialize (cyclomatic 16) Gum/DataTypes/InstanceSaveExtensionMethods.cs:35 — InstanceSaveExtensionMethods.Initialize 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 · GumProjectSaveExtensionMethods.RepairMissingBaseInstances (cyclomatic 16) · ×1
  • GumProjectSaveExtensionMethods.RepairMissingBaseInstances (cyclomatic 16) Gum/DataTypes/GumProjectSaveExtensionMethods.cs:396 — GumProjectSaveExtensionMethods.RepairMissingBaseInstances 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 · GraphicalUiElement.ApplyDock (cyclomatic 16) · ×1
  • GraphicalUiElement.ApplyDock (cyclomatic 16) GumRuntime/GraphicalUiElement.DockAndAnchor.cs:77 — GraphicalUiElement.ApplyDock 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 · GraphicalUiElement.TryAdjustOffsetsByParentLayoutType (cyclomatic 16) · ×1
  • GraphicalUiElement.TryAdjustOffsetsByParentLayoutType (cyclomatic 16) GumRuntime/GraphicalUiElement.Position.cs:568 — GraphicalUiElement.TryAdjustOffsetsByParentLayoutType 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 · GraphicalUiElement.DoesLayoutReadChangedMeasurement (cyclomatic 16) · ×1
  • GraphicalUiElement.DoesLayoutReadChangedMeasurement (cyclomatic 16) GumRuntime/GraphicalUiElement.RenderableMeasurement.cs:152 — GraphicalUiElement.DoesLayoutReadChangedMeasurement 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 · ComboBox.DoClosedDropDownFocusUpdate (cyclomatic 16) · ×1
  • ComboBox.DoClosedDropDownFocusUpdate (cyclomatic 16) MonoGameGum/Forms/Controls/ComboBox.cs:1473 — ComboBox.DoClosedDropDownFocusUpdate 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 · Grid.RefreshLayoutCore (cyclomatic 16) · ×1
  • Grid.RefreshLayoutCore (cyclomatic 16) MonoGameGum/Forms/Controls/Grid.cs:246 — Grid.RefreshLayoutCore 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 · ListBox.DoListItemFocusUpdate (cyclomatic 16) · ×1
  • ListBox.DoListItemFocusUpdate (cyclomatic 16) MonoGameGum/Forms/Controls/ListBox.cs:2292 — ListBox.DoListItemFocusUpdate 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 · TextBoxBase.UpdateToSelection (cyclomatic 16) · ×1
  • TextBoxBase.UpdateToSelection (cyclomatic 16) MonoGameGum/Forms/Controls/TextBoxBase.cs:2147 — TextBoxBase.UpdateToSelection 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 · HierarchicalOrderer.AppendRenderables (cyclomatic 16) · ×1
  • HierarchicalOrderer.AppendRenderables (cyclomatic 16) RenderingLibrary/Graphics/HierarchicalOrderer.cs:43 — HierarchicalOrderer.AppendRenderables 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 · RenderableShapeBase.GetGradient (cyclomatic 16) · ×1
  • RenderableShapeBase.GetGradient (cyclomatic 16) Runtimes/GumShapes/Renderables/RenderableShapeBase.cs:846 — RenderableShapeBase.GetGradient has cyclomatic complexity 16 (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 · RoundedRectangle.RenderInternal (cyclomatic 16) · ×1
  • RoundedRectangle.RenderInternal (cyclomatic 16) Runtimes/GumShapes/Renderables/RoundedRectangle.cs:265 — RoundedRectangle.RenderInternal 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 · LinePolygon.Render (cyclomatic 16) · ×1
  • LinePolygon.Render (cyclomatic 16) Runtimes/RaylibGum/Renderables/LinePolygon.cs:214 — LinePolygon.Render 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 · CodeGenerator.GenerateInitializeInstancesMethod (cyclomatic 16) · ×1
  • CodeGenerator.GenerateInitializeInstancesMethod (cyclomatic 16) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:1969 — CodeGenerator.GenerateInitializeInstancesMethod 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 · CodeGenerator.ProcessXamarinFormsPositionAndSize (cyclomatic 16) · ×1
  • CodeGenerator.ProcessXamarinFormsPositionAndSize (cyclomatic 16) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2593 — CodeGenerator.ProcessXamarinFormsPositionAndSize 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 · CodeGenerator.VariableValueToGumCode (cyclomatic 16) · ×1
  • CodeGenerator.VariableValueToGumCode (cyclomatic 16) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:5666 — CodeGenerator.VariableValueToGumCode 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 · NewProjectService.ResolveOptions (cyclomatic 16) · ×1
  • NewProjectService.ResolveOptions (cyclomatic 16) Tools/Gum.ProjectServices/NewProject/NewProjectService.cs:207 — NewProjectService.ResolveOptions 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 · FileChangeReactionLogic.ReactToElementSaveChanged (cyclomatic 16) · ×1
  • FileChangeReactionLogic.ReactToElementSaveChanged (cyclomatic 16) Tools/Gum.Presentation/Managers/FileChangeReactionLogic.cs:785 — FileChangeReactionLogic.ReactToElementSaveChanged has cyclomatic complexity 16 (threshold 15). Of this number, 15 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 · NameVerifier.IsVariableNameValid (cyclomatic 16) · ×1
  • NameVerifier.IsVariableNameValid (cyclomatic 16) Tools/Gum.Presentation/Managers/NameVerifier.cs:217 — NameVerifier.IsVariableNameValid 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 · ProjectManager.SaveProject (cyclomatic 16) · ×1
  • ProjectManager.SaveProject (cyclomatic 16) Tools/Gum.Presentation/Managers/ProjectManager.cs:693 — ProjectManager.SaveProject 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 · BehaviorToolOnlyReferencesApplier.CollectValuesThroughExposedVariables (cyclomatic 16) · ×1
  • BehaviorToolOnlyReferencesApplier.CollectValuesThroughExposedVariables (cyclomatic 16) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/BehaviorToolOnlyReferencesApplier.cs:183 — BehaviorToolOnlyReferencesApplier.CollectValuesThroughExposedVariables has cyclomatic complexity 16 (threshold 15). Of this number, 14 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 · SetVariableLogic.ReactIfChangedBaseType (cyclomatic 16) · ×1
  • SetVariableLogic.ReactIfChangedBaseType (cyclomatic 16) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/SetVariableLogic.cs:419 — SetVariableLogic.ReactIfChangedBaseType 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 · VariableReferenceLogic.ReapplyToolOnlyReferencesAround (cyclomatic 16) · ×1
  • VariableReferenceLogic.ReapplyToolOnlyReferencesAround (cyclomatic 16) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/VariableReferenceLogic.cs:1050 — VariableReferenceLogic.ReapplyToolOnlyReferencesAround has cyclomatic complexity 16 (threshold 15). Of this number, 15 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 · VariableReferenceSuggestions.GetSuggestions (cyclomatic 16) · ×1
  • VariableReferenceSuggestions.GetSuggestions (cyclomatic 16) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/VariableReferenceSuggestions.cs:96 — VariableReferenceSuggestions.GetSuggestions has cyclomatic complexity 16 (threshold 15). Of this number, 12 points are the body's own statements and 4 belong to 3 function literals 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 · VariableReferenceSuggestions.AddMembers (cyclomatic 16) · ×1
  • VariableReferenceSuggestions.AddMembers (cyclomatic 16) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/VariableReferenceSuggestions.cs:252 — VariableReferenceSuggestions.AddMembers 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 · ElementCommands.MoveSelectedObjectsBy (cyclomatic 16) · ×1
  • ElementCommands.MoveSelectedObjectsBy (cyclomatic 16) Tools/Gum.Presentation/ToolCommands/ElementCommands.cs:255 — ElementCommands.MoveSelectedObjectsBy 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 · SelectionManager.PushAndDoubleClickSelectionActivity (cyclomatic 16) · ×1
  • SelectionManager.PushAndDoubleClickSelectionActivity (cyclomatic 16) Tools/Gum.Presentation/Wireframe/SelectionManager.cs:1193 — SelectionManager.PushAndDoubleClickSelectionActivity 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 · TreeNodeFilePathExtensions.GetTreeNodeFullFilePath (cyclomatic 16) · ×1
  • TreeNodeFilePathExtensions.GetTreeNodeFullFilePath (cyclomatic 16) Tool/TreeViewPlugin.Core/TreeNodeFilePathExtensions.cs:22 — TreeNodeFilePathExtensions.GetTreeNodeFullFilePath 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 · Game1.DoSwapScreenLogic (cyclomatic 16) · ×1
  • Game1.DoSwapScreenLogic (cyclomatic 16) Samples/MonoGameGumFromFile/MonoGameGumFromFile/Game1.cs:152 — Game1.DoSwapScreenLogic 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 · top-level statements (cyclomatic 16) · ×1
  • top-level statements (cyclomatic 16) Samples/BrutalGum/BrutalGumSampleOgl/Program.cs:20 — top-level statements 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 · CustomSetPropertyOnRenderable.GetOrCreateBakedFont (cyclomatic 16) · ×1
  • CustomSetPropertyOnRenderable.GetOrCreateBakedFont (cyclomatic 16) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:2560 — CustomSetPropertyOnRenderable.GetOrCreateBakedFont 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: CustomSetPropertyOnRenderable.UpdateRecordFromOwner (cyclomatic 18) 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 · make-icon-bmp.decode_rgba_png (cyclomatic 16) · ×1
  • make-icon-bmp.decode_rgba_png (cyclomatic 16) Tool/Gum.Avalonia/Packaging/make-icon-bmp.py:30 — make-icon-bmp.decode_rgba_png 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 · fonts.unicodeRangeCoversBasicLatin (cyclomatic 16) · ×1
  • fonts.unicodeRangeCoversBasicLatin (cyclomatic 16) Tool/HtmlToGum/converter/fonts.ts:77 — fonts.unicodeRangeCoversBasicLatin 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 · nineslice.generateNineSliceAssets · ×1
  • nineslice.generateNineSliceAssets::walk (cyclomatic 16) Tool/HtmlToGum/converter/nineslice.ts:65 — nineslice.generateNineSliceAssets::walk 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.
D10 · Test Quality · Test project verifies nothing · ×1
  • Test project verifies nothing: AutomatedTests Tool/Tests/AutomatedTests/UnitTest1.cs:15 — No conventional assertion call was detected in 1 of 1 tests in `AutomatedTests` — the project as a whole, not one method. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a suite that genuinely checks nothing. If it is the latter, this project passes unconditionally and cannot fail.
D17 · Explicit Debt · BarePragmaDisable repeated across 25 files · ×1
  • BarePragmaDisable repeated across 25 files Gum/Wireframe/CustomSetPropertyOnRenderable.cs:3931 — The identical BarePragmaDisable (`#pragma warning disable CS0618`) appears in 25 files (49 occurrences) — a single repo-wide policy (e.g. a Directory.Build.props decision or an idiomatic suppression), not 49 independent debts. Decide it once centrally rather than file-by-file. (Every occurrence still counts toward the score and metrics.)
D17 · Explicit Debt · BarePragmaDisable · ×1
  • BarePragmaDisable Tests/Gum.Presentation.Tests/Plugins/ImportFromGumxPlugin/GumxImportAnimationChainTextureTests.cs:254 — #pragma warning disable CS0067 — 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.
D17 · Explicit Debt · FixmeComment · ×1
  • FixmeComment Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/SetVariableLogic.cs:645 — // FIXME: This react needs a proper if condition — 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.
D18 · Solution Shape · Build failed · ×1
  • Build failed — The target solution did not build cleanly (errors: 9), which caps Solution Shape at 3/10 — the most basic shape signal is that it compiles. First errors: MSB3073: The command "dotnet "/tmp/nuget-packages/stride.assetcompiler/4.4.0/buildTransitive/../tools/net10.0-windows7.0/Stride.AssetCompiler.dll" build --disable-auto-compile --project-configuration "Debug" --platform=Windows --project-configuration=Debug --compile-property:StrideGraphicsApi=Vulkan --output-path="Samples/StrideGum/StrideGumSample/bin/Debug/net10.0-windows7.0/data" --build-path="Samples/StrideGum/StrideGumSample/obj//stride/assetbuild/data" --msbuild-uptodatecheck-filebase="Samples/StrideGum/StrideGumSample/obj/Debug/net10.0-windows7.0/stride/assetcompiler-uptodatecheck" "Samples/StrideGum/StrideGumSample/obj/Debug/net10.0-windows7.0/StrideGumSample.sdbuild"" exited with code 150.; CS2001: Source file 'Runtimes/SokolGum/../../MonoGameGum/Forms/DefaultVisuals/V3/ScrollViewerVisualSizedToChildren.cs' could not be found.; CS0246: The type or namespace name 'Gum' could not be found (are you missing a using directive or an assembly reference?); CS0246: The type or namespace name 'RenderingLibrary' could not be found (are you missing a using directive or an assembly reference?); CS0246: The type or namespace name 'IRenderableIpso' could not be found (are you missing a using directive or an assembly reference?); CS0246: The type or namespace name 'GraphicalUiElement' could not be found (are you missing a using directive or an assembly reference?).
D2 · Cognitive Complexity · CsvReader.ReadField (cognitive 254) · ×1
  • CsvReader.ReadField (cognitive 254) Gum/CsvLibrary/CsvReader.cs:1104 — CsvReader.ReadField has cognitive complexity 254 (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 · CustomSetPropertyOnRenderable.SetPropertyOnRenderableFunc (cognitive 251) · ×1
  • CustomSetPropertyOnRenderable.SetPropertyOnRenderableFunc (cognitive 251) Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs:507 — CustomSetPropertyOnRenderable.SetPropertyOnRenderableFunc has cognitive complexity 251 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CopyPasteLogic.PasteInstanceSaves (cognitive 189) · ×1
  • CopyPasteLogic.PasteInstanceSaves (cognitive 189) Tools/Gum.Presentation/Logic/CopyPasteLogic.cs:676 — CopyPasteLogic.PasteInstanceSaves has cognitive complexity 189 (threshold 15). Of this number, 180 points are the body's own statements and 9 belong to 5 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 · CodeGenerator.SetXamarinFormsLayoutPosition (cognitive 180) · ×1
  • CodeGenerator.SetXamarinFormsLayoutPosition (cognitive 180) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:3049 — CodeGenerator.SetXamarinFormsLayoutPosition has cognitive complexity 180 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · InteractiveGue.DoUiActivityRecursively (cognitive 167) · ×1
  • InteractiveGue.DoUiActivityRecursively (cognitive 167) GumRuntime/InteractiveGue.cs:455 — InteractiveGue.DoUiActivityRecursively has cognitive complexity 167 (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 · GraphicalUiElement.UpdateLayoutWithinSession (cognitive 164) · ×1
  • GraphicalUiElement.UpdateLayoutWithinSession (cognitive 164) GumRuntime/GraphicalUiElement.UpdateLayout.cs:212 — GraphicalUiElement.UpdateLayoutWithinSession has cognitive complexity 164 (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 · CodeGenerator.FillWithExposedVariable (cognitive 137) · ×1
  • CodeGenerator.FillWithExposedVariable (cognitive 137) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:1362 — CodeGenerator.FillWithExposedVariable has cognitive complexity 137 (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 · ReferenceFinder.GetReferencesToInstance (cognitive 132) · ×1
  • ReferenceFinder.GetReferencesToInstance (cognitive 132) Tools/Gum.Presentation/Logic/ReferenceFinder.cs:102 — ReferenceFinder.GetReferencesToInstance has cognitive complexity 132 (threshold 15). Of this number, 131 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 · CustomSetPropertyOnRenderable.TrySetPropertyOnText (cognitive 126) · ×1
  • CustomSetPropertyOnRenderable.TrySetPropertyOnText (cognitive 126) Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs:1740 — CustomSetPropertyOnRenderable.TrySetPropertyOnText has cognitive complexity 126 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · StateSaveExtensionMethods.GetVariableListRecursive (cognitive 119) · ×1
  • StateSaveExtensionMethods.GetVariableListRecursive (cognitive 119) Gum/DataTypes/StateSaveExtensionMethods.cs:407 — StateSaveExtensionMethods.GetVariableListRecursive has cognitive complexity 119 (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 · Text.DrawWithInlineVariables (cognitive 119) · ×1
  • Text.DrawWithInlineVariables (cognitive 119) RenderingLibrary/Graphics/Text.cs:1472 — Text.DrawWithInlineVariables has cognitive complexity 119 (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 · ReferenceFinder.GetReferencesToVariable (cognitive 119) · ×1
  • ReferenceFinder.GetReferencesToVariable (cognitive 119) Tools/Gum.Presentation/Logic/ReferenceFinder.cs:437 — ReferenceFinder.GetReferencesToVariable has cognitive complexity 119 (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 · CustomSetPropertyOnRenderable.TrySetPropertyOnText (cognitive 112) · ×1
  • CustomSetPropertyOnRenderable.TrySetPropertyOnText (cognitive 112) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:1322 — CustomSetPropertyOnRenderable.TrySetPropertyOnText has cognitive complexity 112 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · IWrappedTextExtensions.UpdateLines (cognitive 103) · ×1
  • IWrappedTextExtensions.UpdateLines (cognitive 103) RenderingLibrary/Graphics/IWrappedText.cs:132 — IWrappedTextExtensions.UpdateLines has cognitive complexity 103 (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 · FrameworkElement.HandleTabCore (cognitive 102) · ×1
  • FrameworkElement.HandleTabCore (cognitive 102) MonoGameGum/Forms/Controls/FrameworkElement.cs:1878 — FrameworkElement.HandleTabCore 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 · CodeGenerator.SetNonAbsoluteLayoutPosition (cognitive 102) · ×1
  • CodeGenerator.SetNonAbsoluteLayoutPosition (cognitive 102) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2667 — CodeGenerator.SetNonAbsoluteLayoutPosition 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 · StateSaveExtensionMethods.GetValueRecursive (cognitive 100) · ×1
  • StateSaveExtensionMethods.GetValueRecursive (cognitive 100) Gum/DataTypes/StateSaveExtensionMethods.cs:62 — StateSaveExtensionMethods.GetValueRecursive has cognitive complexity 100 (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 · GraphicalUiElement.UpdateChildren (cognitive 99) · ×1
  • GraphicalUiElement.UpdateChildren (cognitive 99) GumRuntime/GraphicalUiElement.ChildUpdates.cs:212 — GraphicalUiElement.UpdateChildren 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 · GumxImportService.AddMissingReferencedInstances (cognitive 93) · ×1
  • GumxImportService.AddMissingReferencedInstances (cognitive 93) Tools/Gum.Presentation/ImportFromGumx/Services/GumxImportService.cs:1032 — GumxImportService.AddMissingReferencedInstances has cognitive complexity 93 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ElementTreeViewManager.BuildContextMenuItems (cognitive 87) · ×1
  • ElementTreeViewManager.BuildContextMenuItems (cognitive 87) Tool/TreeViewPlugin.Core/ElementTreeViewManager.RightClick.cs:227 — ElementTreeViewManager.BuildContextMenuItems 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 · EvaluatedSyntax.Evaluate (cognitive 86) · ×1
  • EvaluatedSyntax.Evaluate (cognitive 86) Runtimes/GumExpressions/EvaluatedSyntax.cs:209 — EvaluatedSyntax.Evaluate has cognitive complexity 86 (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 · CodeGenerator.GenerateConstructors (cognitive 86) · ×1
  • CodeGenerator.GenerateConstructors (cognitive 86) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:3957 — CodeGenerator.GenerateConstructors has cognitive complexity 86 (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 · fonts.materializeWebFonts (cognitive 86) · ×1
  • fonts.materializeWebFonts (cognitive 86) Tool/HtmlToGum/converter/fonts.ts:363 — fonts.materializeWebFonts has cognitive complexity 86 (threshold 15). Drivers by points: if/else 18 (48 pts), error handling 4 (15 pts), loops 5 (11 pts), boolean chains 6, ternaries 2 (6 pts) (nesting depth added 51). Of this number, 68 points are the body's own statements and 18 belong to 3 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 · GraphicalUiElement.UpdateHeight (cognitive 81) · ×1
  • GraphicalUiElement.UpdateHeight (cognitive 81) GumRuntime/GraphicalUiElement.Dimensions.cs:106 — GraphicalUiElement.UpdateHeight 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 · Text.DrawStyledLine (cognitive 80) · ×1
  • Text.DrawStyledLine (cognitive 80) Runtimes/RaylibGum/Renderables/Text.cs:1616 — Text.DrawStyledLine 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 · GraphicalUiElement.HandleCollectionChanged (cognitive 77) · ×1
  • GraphicalUiElement.HandleCollectionChanged (cognitive 77) GumRuntime/GraphicalUiElement.Managers.cs:168 — GraphicalUiElement.HandleCollectionChanged 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 · site-fidelity.main (cognitive 74) · ×1
  • site-fidelity.main (cognitive 74) Tool/HtmlToGum/fidelity/site-fidelity.ts:150 — site-fidelity.main has cognitive complexity 74 (threshold 15). Drivers by points: if/else 18 (34 pts), boolean chains 17, ternaries 8 (13 pts), loops 4 (6 pts), error handling 2 (4 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Splitter.ApplyResizeChangeInPixels (cognitive 73) · ×1
  • Splitter.ApplyResizeChangeInPixels (cognitive 73) MonoGameGum/Forms/Controls/Splitter.cs:182 — Splitter.ApplyResizeChangeInPixels has cognitive complexity 73 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · dom-quiescence.stabilizeDynamicMedia (cognitive 73) · ×1
  • dom-quiescence.stabilizeDynamicMedia (cognitive 73) Tool/HtmlToGum/converter/dom-quiescence.ts:76 — dom-quiescence.stabilizeDynamicMedia has cognitive complexity 73 (threshold 15). Drivers by points: if/else 17 (37 pts), boolean chains 18, loops 9 (10 pts), error handling 6 (8 pts) (nesting depth added 23). Most of this is not in the body itself: 4 of the 73 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 77, 153, 97). 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 · PropertyValuePair.ConvertStringValueToValueOfType (cognitive 71) · ×1
  • PropertyValuePair.ConvertStringValueToValueOfType (cognitive 71) Gum/CsvLibrary/Reflection/PropertyValuePair.cs:140 — PropertyValuePair.ConvertStringValueToValueOfType has cognitive complexity 71 (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 · TypeManager.GetTypeFromString (cognitive 69) · ×1
  • TypeManager.GetTypeFromString (cognitive 69) Gum/Reflection/TypeManager.cs:38 — TypeManager.GetTypeFromString 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 · ElementSaveDisplayer.FillPropertyList (cognitive 69) · ×1
  • ElementSaveDisplayer.FillPropertyList (cognitive 69) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/ElementSaveDisplayer.cs:166 — ElementSaveDisplayer.FillPropertyList 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 · TextBoxDisplayLogic.TryGetValueOnUi (cognitive 67) · ×1
  • TextBoxDisplayLogic.TryGetValueOnUi (cognitive 67) DataUi.Core/Controls/TextBoxDisplayLogic.cs:318 — TextBoxDisplayLogic.TryGetValueOnUi 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 · InstanceSaveExtensionMethods.Initialize (cognitive 65) · ×1
  • InstanceSaveExtensionMethods.Initialize (cognitive 65) Gum/DataTypes/InstanceSaveExtensionMethods.cs:35 — InstanceSaveExtensionMethods.Initialize has cognitive complexity 65 (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 · FormsUtilities.Update (cognitive 64) · ×1
  • FormsUtilities.Update (cognitive 64) MonoGameGum/Forms/FormsUtilities.cs:348 — FormsUtilities.Update 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 · CustomSetPropertyOnRenderable.ApplyFontVariables (cognitive 63) · ×1
  • CustomSetPropertyOnRenderable.ApplyFontVariables (cognitive 63) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:2145 — CustomSetPropertyOnRenderable.ApplyFontVariables has cognitive complexity 63 (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 · BitmapFont.DrawTextLines (cognitive 63) · ×1
  • BitmapFont.DrawTextLines (cognitive 63) RenderingLibrary/Graphics/Fonts/BitmapFont.cs:1013 — BitmapFont.DrawTextLines has cognitive complexity 63 (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 · FormsUtilities.Update (cognitive 63) · ×1
  • FormsUtilities.Update (cognitive 63) MonoGameGum/Forms/FormsUtilities.cs:350 — FormsUtilities.Update 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 · RuntimeCsvRepresentation.AsssignValuesOnElement (cognitive 63) · ×1
  • RuntimeCsvRepresentation.AsssignValuesOnElement (cognitive 63) Gum/CsvLibrary/RuntimeCsvRepresentation.cs:1163 — RuntimeCsvRepresentation.AsssignValuesOnElement has cognitive complexity 63 (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 · GumProjectSaveExtensionMethods.Initialize (cognitive 62) · ×1
  • GumProjectSaveExtensionMethods.Initialize (cognitive 62) Gum/DataTypes/GumProjectSaveExtensionMethods.cs:30 — GumProjectSaveExtensionMethods.Initialize has cognitive complexity 62 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GraphicalUiElement.AdjustParentOriginOffsetsByUnits (cognitive 61) · ×1
  • GraphicalUiElement.AdjustParentOriginOffsetsByUnits (cognitive 61) GumRuntime/GraphicalUiElement.Position.cs:49 — GraphicalUiElement.AdjustParentOriginOffsetsByUnits has cognitive complexity 61 (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 · LineRectangle.Render (cognitive 61) · ×1
  • LineRectangle.Render (cognitive 61) Runtimes/RaylibGum/Renderables/LineRectangle.cs:234 — LineRectangle.Render has cognitive complexity 61 (threshold 15). Of this number, 51 points are the body's own statements and 10 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 · GraphicalUiElement.UpdateWidth (cognitive 60) · ×1
  • GraphicalUiElement.UpdateWidth (cognitive 60) GumRuntime/GraphicalUiElement.Dimensions.cs:659 — GraphicalUiElement.UpdateWidth has cognitive complexity 60 (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 · UndoComparison.ToString (cognitive 59) · ×1
  • UndoComparison.ToString (cognitive 59) Tools/Gum.Presentation/Undo/UndoSnapshot.cs:38 — UndoComparison.ToString has cognitive complexity 59 (threshold 15). Of this number, 56 points are the body's own statements and 3 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 · UndoSnapshot.AddVariableModifications (cognitive 58) · ×1
  • UndoSnapshot.AddVariableModifications (cognitive 58) Tools/Gum.Presentation/Undo/UndoSnapshot.cs:427 — UndoSnapshot.AddVariableModifications has cognitive complexity 58 (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 · EditorTabPluginBase.HandleVariableSetLate (cognitive 58) · ×1
  • EditorTabPluginBase.HandleVariableSetLate (cognitive 58) Tool/EditorTabPlugin.Core/EditorTabPluginBase.cs:839 — EditorTabPluginBase.HandleVariableSetLate has cognitive complexity 58 (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 · assets.downloadImages (cognitive 58) · ×1
  • assets.downloadImages (cognitive 58) Tool/HtmlToGum/converter/assets.ts:223 — assets.downloadImages has cognitive complexity 58 (threshold 15). Drivers by points: if/else 18 (30 pts), error handling 5 (15 pts), ternaries 3 (9 pts), boolean chains 2, loops 2 (nesting depth added 28). Of this number, 54 points are the body's own statements and 4 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 · CodeGenerator.TryGetFullXamarinFormsLineReplacement (cognitive 57) · ×1
  • CodeGenerator.TryGetFullXamarinFormsLineReplacement (cognitive 57) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:5901 — CodeGenerator.TryGetFullXamarinFormsLineReplacement has cognitive complexity 57 (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 · ElementSaveExtensions.ApplyVariableReferences (cognitive 56) · ×1
  • ElementSaveExtensions.ApplyVariableReferences (cognitive 56) GumRuntime/ElementSaveExtensions.GumRuntime.cs:1035 — ElementSaveExtensions.ApplyVariableReferences 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 · Text.BuildInlineVariables (cognitive 56) · ×1
  • Text.BuildInlineVariables (cognitive 56) Runtimes/SkiaGum/Renderables/Text.cs:3183 — Text.BuildInlineVariables 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 · EvaluatedSyntax.CastTo (cognitive 56) · ×1
  • EvaluatedSyntax.CastTo (cognitive 56) Runtimes/GumExpressions/EvaluatedSyntax.cs:1209 — EvaluatedSyntax.CastTo 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 · AnimationRuntime.CombineStateFromAnimations (cognitive 55) · ×1
  • AnimationRuntime.CombineStateFromAnimations (cognitive 55) GumCommon/Runtime/AnimationRuntime.cs:424 — AnimationRuntime.CombineStateFromAnimations 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 · SelectionManager.HighlightActivity (cognitive 54) · ×1
  • SelectionManager.HighlightActivity (cognitive 54) Tools/Gum.Presentation/Wireframe/SelectionManager.cs:444 — SelectionManager.HighlightActivity has cognitive complexity 54 (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 · CsvReader.ReadNextRecord (cognitive 54) · ×1
  • CsvReader.ReadNextRecord (cognitive 54) Gum/CsvLibrary/CsvReader.cs:1440 — CsvReader.ReadNextRecord has cognitive complexity 54 (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 · Ruler.UpdateDistanceArrows (cognitive 53) · ×1
  • Ruler.UpdateDistanceArrows (cognitive 53) Tool/EditorTabPlugin.Core/Views/Ruler.cs:479 — Ruler.UpdateDistanceArrows has cognitive complexity 53 (threshold 15). Of this number, 49 points are the body's own statements and 4 belong to 4 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 · GraphicalUiElement.ConvertValue (cognitive 52) · ×1
  • GraphicalUiElement.ConvertValue (cognitive 52) GumRuntime/GraphicalUiElement.Binding.cs:782 — GraphicalUiElement.ConvertValue has cognitive complexity 52 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GraphicalUiElement.GetWhatToStackAfter (cognitive 52) · ×1
  • GraphicalUiElement.GetWhatToStackAfter (cognitive 52) GumRuntime/GraphicalUiElement.Stacking.cs:388 — GraphicalUiElement.GetWhatToStackAfter 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 · TextBoxBase.HandleKeyDown (cognitive 52) · ×1
  • TextBoxBase.HandleKeyDown (cognitive 52) MonoGameGum/Forms/Controls/TextBoxBase.cs:921 — TextBoxBase.HandleKeyDown has cognitive complexity 52 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CodeGenerator.TryGetFullGumLineReplacement (cognitive 52) · ×1
  • CodeGenerator.TryGetFullGumLineReplacement (cognitive 52) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:6412 — CodeGenerator.TryGetFullGumLineReplacement 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 · VariableGridEntry.SetValue (cognitive 52) · ×1
  • VariableGridEntry.SetValue (cognitive 52) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/VariableGridEntry.cs:680 — VariableGridEntry.SetValue 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 · TextBoxDisplayLogic.TryParseNumeric (cognitive 52) · ×1
  • TextBoxDisplayLogic.TryParseNumeric (cognitive 52) DataUi.Core/Controls/TextBoxDisplayLogic.cs:579 — TextBoxDisplayLogic.TryParseNumeric has cognitive complexity 52 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ElementSaveDisplayer.GetCategories (cognitive 51) · ×1
  • ElementSaveDisplayer.GetCategories (cognitive 51) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/ElementSaveDisplayer.cs:485 — ElementSaveDisplayer.GetCategories 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 · ElementSaveDisplayer.CreatePropertyData (cognitive 51) · ×1
  • ElementSaveDisplayer.CreatePropertyData (cognitive 51) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/ElementSaveDisplayer.cs:1070 — ElementSaveDisplayer.CreatePropertyData 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 · VariableGridEntry.VariableGridEntry.ctor (cognitive 51) · ×1
  • VariableGridEntry.VariableGridEntry.ctor (cognitive 51) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/VariableGridEntry.cs:317 — VariableGridEntry.VariableGridEntry.ctor 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 · ElementTreeViewManager.RefreshElementTreeNode (cognitive 51) · ×1
  • ElementTreeViewManager.RefreshElementTreeNode (cognitive 51) Tool/TreeViewPlugin.Core/ElementTreeViewManager.cs:1728 — ElementTreeViewManager.RefreshElementTreeNode 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 · ListBox.HandleItemSelected (cognitive 50) · ×1
  • ListBox.HandleItemSelected (cognitive 50) MonoGameGum/Forms/Controls/ListBox.cs:818 — ListBox.HandleItemSelected 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 · GraphicalUiElementCollection.InnerCollection_CollectionChanged (cognitive 49) · ×1
  • GraphicalUiElementCollection.InnerCollection_CollectionChanged (cognitive 49) GumCommon/Collections/GraphicalUiElementCollection.cs:68 — GraphicalUiElementCollection.InnerCollection_CollectionChanged 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 · VariableReferenceGraph.Order (cognitive 49) · ×1
  • VariableReferenceGraph.Order (cognitive 49) GumCommon/Runtime/VariableReferenceGraph.cs:673 — VariableReferenceGraph.Order 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 · ListBox.HandleSelectedItemsCollectionChanged (cognitive 49) · ×1
  • ListBox.HandleSelectedItemsCollectionChanged (cognitive 49) MonoGameGum/Forms/Controls/ListBox.cs:1285 — ListBox.HandleSelectedItemsCollectionChanged 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 · CodeGenerator.VariableValueToXamarinFormsCodeValue (cognitive 49) · ×1
  • CodeGenerator.VariableValueToXamarinFormsCodeValue (cognitive 49) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:5767 — CodeGenerator.VariableValueToXamarinFormsCodeValue 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 · GumxImportService.ImportAsync (cognitive 49) · ×1
  • GumxImportService.ImportAsync (cognitive 49) Tools/Gum.Presentation/ImportFromGumx/Services/GumxImportService.cs:119 — GumxImportService.ImportAsync has cognitive complexity 49 (threshold 15). Of this number, 42 points are the body's own statements and 7 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 · StandardWireframeEditor.UpdateLockedVariables (cognitive 49) · ×1
  • StandardWireframeEditor.UpdateLockedVariables (cognitive 49) Tool/EditorTabPlugin.Core/Editors/StandardWireframeEditor.cs:179 — StandardWireframeEditor.UpdateLockedVariables 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 · PreviewOptions.Parse (cognitive 49) · ×1
  • PreviewOptions.Parse (cognitive 49) Tool/GumPreview/PreviewOptions.cs:71 — PreviewOptions.Parse has cognitive complexity 49 (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 · Program.FlattenTwoTone · ×1
  • Program.FlattenTwoTone::Walk (cognitive 49) Gum/GumFigmaIconRipper/Program.cs:145 — Program.FlattenTwoTone::Walk has cognitive complexity 49 (threshold 15). Drivers by points: if/else 12 (32 pts), ternaries 2 (9 pts), boolean chains 5, loops 1 (2 pts), match/switch 1 (nesting depth added 28). 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 · VariableReferenceGraph.Create (cognitive 48) · ×1
  • VariableReferenceGraph.Create (cognitive 48) GumCommon/Runtime/VariableReferenceGraph.cs:310 — VariableReferenceGraph.Create 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 · Text.Render (cognitive 48) · ×1
  • Text.Render (cognitive 48) Runtimes/SkiaGum/Renderables/Text.cs:1079 — Text.Render 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 · HeadlessErrorChecker.GetTextOutsideFontRangeErrorsFor (cognitive 48) · ×1
  • HeadlessErrorChecker.GetTextOutsideFontRangeErrorsFor (cognitive 48) Tools/Gum.ProjectServices/HeadlessErrorChecker.cs:1425 — HeadlessErrorChecker.GetTextOutsideFontRangeErrorsFor 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 · CodeGenerationService.GenerateCodeForElement (cognitive 48) · ×1
  • CodeGenerationService.GenerateCodeForElement (cognitive 48) Tools/Gum.Presentation/CodeOutputPlugin/Manager/CodeGenerationService.cs:88 — CodeGenerationService.GenerateCodeForElement has cognitive complexity 48 (threshold 15). Of this number, 44 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 · StateSaveExtensionMethods.GetVariableRecursive (cognitive 47) · ×1
  • StateSaveExtensionMethods.GetVariableRecursive (cognitive 47) Gum/DataTypes/StateSaveExtensionMethods.cs:310 — StateSaveExtensionMethods.GetVariableRecursive 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 · CursorExtensions.GetEventFailureReason (cognitive 47) · ×1
  • CursorExtensions.GetEventFailureReason (cognitive 47) MonoGameGum/Input/CursorExtensions.cs:86 — CursorExtensions.GetEventFailureReason has cognitive complexity 47 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · NineSlice.Render (cognitive 47) · ×1
  • NineSlice.Render (cognitive 47) RenderingLibrary/Graphics/NineSlice.cs:616 — NineSlice.Render 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 · Text.BuildRunStyle (cognitive 47) · ×1
  • Text.BuildRunStyle (cognitive 47) Runtimes/SkiaGum/Renderables/Text.cs:2965 — Text.BuildRunStyle 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 · CopyPasteLogic.StoreCopiedInstances (cognitive 47) · ×1
  • CopyPasteLogic.StoreCopiedInstances (cognitive 47) Tools/Gum.Presentation/Logic/CopyPasteLogic.cs:233 — CopyPasteLogic.StoreCopiedInstances 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 · StandardElementsManagerGumTool.SetPreferredDisplayers (cognitive 47) · ×1
  • StandardElementsManagerGumTool.SetPreferredDisplayers (cognitive 47) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/StandardElementsManager.GumTool.cs:51 — StandardElementsManagerGumTool.SetPreferredDisplayers has cognitive complexity 47 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VariableReferenceLogic.DoVariableReferenceReactionOnInstanceVariableSet (cognitive 47) · ×1
  • VariableReferenceLogic.DoVariableReferenceReactionOnInstanceVariableSet (cognitive 47) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/VariableReferenceLogic.cs:1209 — VariableReferenceLogic.DoVariableReferenceReactionOnInstanceVariableSet 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 · ElementSaveDisplayer.GetVariablesSetThroughReferences (cognitive 46) · ×1
  • ElementSaveDisplayer.GetVariablesSetThroughReferences (cognitive 46) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/ElementSaveDisplayer.cs:363 — ElementSaveDisplayer.GetVariablesSetThroughReferences 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 · FormsUtilities.RegisterFromFileFormRuntimeDefaults (cognitive 45) · ×1
  • FormsUtilities.RegisterFromFileFormRuntimeDefaults (cognitive 45) MonoGameGum/Forms/FormsUtilities.cs:639 — FormsUtilities.RegisterFromFileFormRuntimeDefaults has cognitive complexity 45 (threshold 15). Of this number, 37 points are the body's own statements and 8 belong to 3 function literals inside it that branch. 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 · PackCommand.Execute (cognitive 45) · ×1
  • PackCommand.Execute (cognitive 45) Tools/Gum.Cli/Commands/PackCommand.cs:103 — PackCommand.Execute has cognitive complexity 45 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MovedInstanceReferenceDropper.FindReferencesTo (cognitive 45) · ×1
  • MovedInstanceReferenceDropper.FindReferencesTo (cognitive 45) Tools/Gum.Presentation/Logic/MovedInstanceReferenceDropper.cs:88 — MovedInstanceReferenceDropper.FindReferencesTo has cognitive complexity 45 (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 · ElementSaveDisplayer.AddBehaviorFormsPropertyMembers (cognitive 45) · ×1
  • ElementSaveDisplayer.AddBehaviorFormsPropertyMembers (cognitive 45) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/ElementSaveDisplayer.cs:651 — ElementSaveDisplayer.AddBehaviorFormsPropertyMembers has cognitive complexity 45 (threshold 15). Of this number, 41 points are the body's own statements and 4 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 · SetVariableLogic.ReactIfChangedMemberIsTextureAddress (cognitive 45) · ×1
  • SetVariableLogic.ReactIfChangedMemberIsTextureAddress (cognitive 45) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/SetVariableLogic.cs:1123 — SetVariableLogic.ReactIfChangedMemberIsTextureAddress has cognitive complexity 45 (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 · SelectionManager.GetRepresentationAt (cognitive 45) · ×1
  • SelectionManager.GetRepresentationAt (cognitive 45) Tools/Gum.Presentation/Wireframe/SelectionManager.cs:573 — SelectionManager.GetRepresentationAt has cognitive complexity 45 (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 · ObjectFinder.GetElementReferencesToThis (cognitive 44) · ×1
  • ObjectFinder.GetElementReferencesToThis (cognitive 44) Gum/Managers/ObjectFinder.cs:1151 — ObjectFinder.GetElementReferencesToThis has cognitive complexity 44 (threshold 15). Of this number, 42 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VariableInCategoryPropagationLogic.PropagateVariablesInCategory (cognitive 44) · ×1
  • VariableInCategoryPropagationLogic.PropagateVariablesInCategory (cognitive 44) Tools/Gum.Presentation/PropertyGridHelpers/VariableInCategoryPropagationLogic.cs:76 — VariableInCategoryPropagationLogic.PropagateVariablesInCategory 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 · ElementUndoStrategy.ApplyUndoSnapshotToElement (cognitive 44) · ×1
  • ElementUndoStrategy.ApplyUndoSnapshotToElement (cognitive 44) Tools/Gum.Presentation/Undo/ElementUndoStrategy.cs:946 — ElementUndoStrategy.ApplyUndoSnapshotToElement 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 · Text.EnsureWrapped (cognitive 44) · ×1
  • Text.EnsureWrapped (cognitive 44) Runtimes/SokolGum/Renderables/Text.cs:351 — Text.EnsureWrapped 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 · ShaderParameterVariables.TryAssemble (cognitive 43) · ×1
  • ShaderParameterVariables.TryAssemble (cognitive 43) RenderingLibrary/Graphics/ShaderParameterVariables.cs:242 — ShaderParameterVariables.TryAssemble has cognitive complexity 43 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · StyledSubstringSplitter.Split (cognitive 43) · ×1
  • StyledSubstringSplitter.Split (cognitive 43) RenderingLibrary/Graphics/StyledSubstringSplitter.cs:294 — StyledSubstringSplitter.Split has cognitive complexity 43 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · FileCommands.ForceSaveBehavior (cognitive 43) · ×1
  • FileCommands.ForceSaveBehavior (cognitive 43) Tools/Gum.Presentation/Commands/FileCommands.cs:591 — FileCommands.ForceSaveBehavior has cognitive complexity 43 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · GumProjectRepairLogic.FixSlashesInNames (cognitive 43) · ×1
  • GumProjectRepairLogic.FixSlashesInNames (cognitive 43) Tools/Gum.Presentation/Logic/GumProjectRepairLogic.cs:97 — GumProjectRepairLogic.FixSlashesInNames has cognitive complexity 43 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ProjectManager.LoadProjectUnguardedAsync (cognitive 43) · ×1
  • ProjectManager.LoadProjectUnguardedAsync (cognitive 43) Tools/Gum.Presentation/Managers/ProjectManager.cs:369 — ProjectManager.LoadProjectUnguardedAsync has cognitive complexity 43 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ProjectManager.SaveProject (cognitive 43) · ×1
  • ProjectManager.SaveProject (cognitive 43) Tools/Gum.Presentation/Managers/ProjectManager.cs:693 — ProjectManager.SaveProject has cognitive complexity 43 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · VariableGridEntry.ResetToDefault (cognitive 43) · ×1
  • VariableGridEntry.ResetToDefault (cognitive 43) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/VariableGridEntry.cs:861 — VariableGridEntry.ResetToDefault has cognitive complexity 43 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · GumElementReachability.Compute (cognitive 42) · ×1
  • GumElementReachability.Compute (cognitive 42) GumCommon/Bundle/GumElementReachability.cs:111 — GumElementReachability.Compute has cognitive complexity 42 (threshold 15). Of this number, 41 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 · CustomSetPropertyOnRenderable.TrySetPropertyOnNineSlice (cognitive 42) · ×1
  • CustomSetPropertyOnRenderable.TrySetPropertyOnNineSlice (cognitive 42) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:658 — CustomSetPropertyOnRenderable.TrySetPropertyOnNineSlice 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 · DragDropManager.ValidateDrop (cognitive 42) · ×1
  • DragDropManager.ValidateDrop (cognitive 42) Tools/Gum.Presentation/Managers/DragDropManager.cs:594 — DragDropManager.ValidateDrop 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 · ResizeInputHandler.ApplySizeChangeForInstance (cognitive 42) · ×1
  • ResizeInputHandler.ApplySizeChangeForInstance (cognitive 42) Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/ResizeInputHandler.cs:496 — ResizeInputHandler.ApplySizeChangeForInstance has cognitive complexity 42 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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 · ShapeVariableExclusionLogic.GetIfShapeVariableIsExcluded (cognitive 42) · ×1
  • ShapeVariableExclusionLogic.GetIfShapeVariableIsExcluded (cognitive 42) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/ShapeVariableExclusionLogic.cs:18 — ShapeVariableExclusionLogic.GetIfShapeVariableIsExcluded has cognitive complexity 42 (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 · SelectionManager.PushAndDoubleClickSelectionActivity (cognitive 42) · ×1
  • SelectionManager.PushAndDoubleClickSelectionActivity (cognitive 42) Tools/Gum.Presentation/Wireframe/SelectionManager.cs:1193 — SelectionManager.PushAndDoubleClickSelectionActivity 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 · GraphicalUiElement.Visible.set (cognitive 41) · ×1
  • GraphicalUiElement.Visible.set (cognitive 41) GumRuntime/GraphicalUiElement.Properties.cs:141 — GraphicalUiElement.Visible.set 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 · CodeGenerator.GetInheritance (cognitive 41) · ×1
  • CodeGenerator.GetInheritance (cognitive 41) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:935 — CodeGenerator.GetInheritance 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 · map.resolveBackgroundImageLayout (cognitive 41) · ×1
  • map.resolveBackgroundImageLayout (cognitive 41) Tool/HtmlToGum/converter/map.ts:748 — map.resolveBackgroundImageLayout has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (27 pts), boolean chains 14 (nesting depth added 4). Of this number, 29 points are the body's own statements and 12 belong to 2 function items inside it that branch. 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 · RgbaPixels.BleedTransparentEdges (cognitive 40) · ×1
  • RgbaPixels.BleedTransparentEdges (cognitive 40) GumCommon/Content/RgbaPixels.cs:61 — RgbaPixels.BleedTransparentEdges has cognitive complexity 40 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VariableSaveExtensionMethods.IsState (cognitive 40) · ×1
  • VariableSaveExtensionMethods.IsState (cognitive 40) Gum/DataTypes/VariableSaveExtensionMethods.cs:58 — VariableSaveExtensionMethods.IsState has cognitive complexity 40 (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 · BatchKeyGroupedOrderer.BuildPrecedenceEdges (cognitive 40) · ×1
  • BatchKeyGroupedOrderer.BuildPrecedenceEdges (cognitive 40) RenderingLibrary/Graphics/BatchKeyGroupedOrderer.cs:827 — BatchKeyGroupedOrderer.BuildPrecedenceEdges has cognitive complexity 40 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DeleteLogic.DoDeletingLogic (cognitive 40) · ×1
  • DeleteLogic.DoDeletingLogic (cognitive 40) Tools/Gum.Presentation/Managers/DeleteLogic.cs:76 — DeleteLogic.DoDeletingLogic has cognitive complexity 40 (threshold 15). Of this number, 39 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 · PropertyGridManager.RefreshDataGrid (cognitive 40) · ×1
  • PropertyGridManager.RefreshDataGrid (cognitive 40) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/PropertyGridManager.cs:367 — PropertyGridManager.RefreshDataGrid has cognitive complexity 40 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · forms.formControlFromDom (cognitive 40) · ×1
  • forms.formControlFromDom (cognitive 40) Tool/HtmlToGum/converter/forms.ts:24 — forms.formControlFromDom has cognitive complexity 40 (threshold 15). Drivers by points: boolean chains 17, if/else 10 (16 pts), ternaries 3 (7 pts) (nesting depth added 10). Of this number, 39 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 · ReloadReferenceScope.Apply (cognitive 39) · ×1
  • ReloadReferenceScope.Apply (cognitive 39) GumCommon/HostServices/ReloadReferenceScope.cs:53 — ReloadReferenceScope.Apply has cognitive complexity 39 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AnimationRuntime.GetStateToSetFromStateKeyframes (cognitive 39) · ×1
  • AnimationRuntime.GetStateToSetFromStateKeyframes (cognitive 39) GumCommon/Runtime/AnimationRuntime.cs:296 — AnimationRuntime.GetStateToSetFromStateKeyframes has cognitive complexity 39 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VariableReferenceGraph.BuildCrossLoopIndex (cognitive 39) · ×1
  • VariableReferenceGraph.BuildCrossLoopIndex (cognitive 39) GumCommon/Runtime/VariableReferenceGraph.cs:952 — VariableReferenceGraph.BuildCrossLoopIndex has cognitive complexity 39 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VariableReferenceGraph.MarkLoops (cognitive 39) · ×1
  • VariableReferenceGraph.MarkLoops (cognitive 39) GumCommon/Runtime/VariableReferenceGraph.cs:1062 — VariableReferenceGraph.MarkLoops has cognitive complexity 39 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ElementSaveExtensionMethods.AddAndModifyVariablesAccordingToDefault (cognitive 39) · ×1
  • ElementSaveExtensionMethods.AddAndModifyVariablesAccordingToDefault (cognitive 39) Gum/DataTypes/ElementSaveExtensionMethods.cs:126 — ElementSaveExtensionMethods.AddAndModifyVariablesAccordingToDefault has cognitive complexity 39 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GraphicalUiElement.GetRatioWidth (cognitive 39) · ×1
  • GraphicalUiElement.GetRatioWidth (cognitive 39) GumRuntime/GraphicalUiElement.Dimensions.cs:382 — GraphicalUiElement.GetRatioWidth 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. This shape REPEATS in the file: one other method here (GraphicalUiElement.GetRatioHeight) 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.
D2 · Cognitive Complexity · GraphicalUiElement.GetRatioHeight (cognitive 39) · ×1
  • GraphicalUiElement.GetRatioHeight (cognitive 39) GumRuntime/GraphicalUiElement.Dimensions.cs:481 — GraphicalUiElement.GetRatioHeight 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. This shape REPEATS in the file: one other method here (GraphicalUiElement.GetRatioWidth) 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.
D2 · Cognitive Complexity · Layer.SortByZ (cognitive 39) · ×1
  • Layer.SortByZ (cognitive 39) RenderingLibrary/Graphics/Layer.cs:110 — Layer.SortByZ has cognitive complexity 39 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · EvaluatedSyntax.Combine (cognitive 39) · ×1
  • EvaluatedSyntax.Combine (cognitive 39) Runtimes/GumExpressions/EvaluatedSyntax.cs:675 — EvaluatedSyntax.Combine has cognitive complexity 39 (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 · RenameLogic.ApplyInstanceReferences (cognitive 39) · ×1
  • RenameLogic.ApplyInstanceReferences (cognitive 39) Tools/Gum.Presentation/Logic/RenameLogic.cs:298 — RenameLogic.ApplyInstanceReferences has cognitive complexity 39 (threshold 15). Of this number, 27 points are the body's own statements and 12 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ElementCommands.ConvertAmountToPixelAccordingToUnitType (cognitive 39) · ×1
  • ElementCommands.ConvertAmountToPixelAccordingToUnitType (cognitive 39) Tools/Gum.Presentation/ToolCommands/ElementCommands.cs:554 — ElementCommands.ConvertAmountToPixelAccordingToUnitType 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 · top-level statements (cognitive 39) · ×1
  • top-level statements (cognitive 39) Samples/BrutalGum/BrutalGumSample/Program.cs:22 — top-level statements 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 · bookmark_fidelity_batch.summarize_site (cognitive 39) · ×1
  • bookmark_fidelity_batch.summarize_site (cognitive 39) REDACTED:67 — bookmark_fidelity_batch.summarize_site has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (22 pts), ternaries 5 (8 pts), boolean chains 7, loops 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · crawl.crawlSite (cognitive 39) · ×1
  • crawl.crawlSite (cognitive 39) Tool/HtmlToGum/fidelity/crawl.ts:26 — crawl.crawlSite has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 9, loops 3 (6 pts), error handling 2 (3 pts) (nesting depth added 15). Of this number, 30 points are the body's own statements and 9 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 · FileManager.MakeRelative (cognitive 38) · ×1
  • FileManager.MakeRelative (cognitive 38) REDACTED:635 — FileManager.MakeRelative 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 · ListBox.HandleListBoxItemDragging (cognitive 38) · ×1
  • ListBox.HandleListBoxItemDragging (cognitive 38) MonoGameGum/Forms/Controls/ListBox.cs:989 — ListBox.HandleListBoxItemDragging 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 · ListBox.DoListItemFocusUpdate (cognitive 38) · ×1
  • ListBox.DoListItemFocusUpdate (cognitive 38) MonoGameGum/Forms/Controls/ListBox.cs:1990 — ListBox.DoListItemFocusUpdate 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 · Ruler.PerformGuidesActivity (cognitive 38) · ×1
  • Ruler.PerformGuidesActivity (cognitive 38) Tool/EditorTabPlugin.Core/Views/Ruler.cs:379 — Ruler.PerformGuidesActivity 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 · TextureCoordinateDisplayController.HandleRegionChanged (cognitive 38) · ×1
  • TextureCoordinateDisplayController.HandleRegionChanged (cognitive 38) Tool/TextureCoordinatePlugin.Core/Logic/ControlLogic.cs:769 — TextureCoordinateDisplayController.HandleRegionChanged 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 · CustomSetPropertyOnRenderable.TrySetPropertyOnText (cognitive 38) · ×1
  • CustomSetPropertyOnRenderable.TrySetPropertyOnText (cognitive 38) Runtimes/SokolGum/CustomSetPropertyOnRenderable.cs:103 — CustomSetPropertyOnRenderable.TrySetPropertyOnText has cognitive complexity 38 (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 · map.parseHardTextShadows (cognitive 38) · ×1
  • map.parseHardTextShadows (cognitive 38) Tool/HtmlToGum/converter/map.ts:322 — map.parseHardTextShadows has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (29 pts), boolean chains 5, loops 2 (4 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GraphicalUiElement.AdjustOffsetsByUnits (cognitive 37) · ×1
  • GraphicalUiElement.AdjustOffsetsByUnits (cognitive 37) GumRuntime/GraphicalUiElement.Position.cs:196 — GraphicalUiElement.AdjustOffsetsByUnits 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 · HeadlessErrorChecker.CheckInheritedCategorizedReferenceConflicts (cognitive 37) · ×1
  • HeadlessErrorChecker.CheckInheritedCategorizedReferenceConflicts (cognitive 37) Tools/Gum.ProjectServices/HeadlessErrorChecker.cs:262 — HeadlessErrorChecker.CheckInheritedCategorizedReferenceConflicts has cognitive complexity 37 (threshold 15). Of this number, 36 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 · InteractiveGue.IsOverChildren (cognitive 36) · ×1
  • InteractiveGue.IsOverChildren (cognitive 36) GumRuntime/InteractiveGue.cs:916 — InteractiveGue.IsOverChildren 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 · GueInteractiveExtensionMethods.DoUiActivityRecursively (cognitive 36) · ×1
  • GueInteractiveExtensionMethods.DoUiActivityRecursively (cognitive 36) GumRuntime/InteractiveGue.cs:1705 — GueInteractiveExtensionMethods.DoUiActivityRecursively 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 · StateSaveExtensionMethods.AssignVariableSave (cognitive 36) · ×1
  • StateSaveExtensionMethods.AssignVariableSave (cognitive 36) Gum/DataTypes/StateSaveExtensionMethods.cs:837 — StateSaveExtensionMethods.AssignVariableSave 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, 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 · CustomSetPropertyOnRenderable.AssignSourceFileOnSpriteInContext (cognitive 36) · ×1
  • CustomSetPropertyOnRenderable.AssignSourceFileOnSpriteInContext (cognitive 36) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:3413 — CustomSetPropertyOnRenderable.AssignSourceFileOnSpriteInContext 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 · CustomSetPropertyOnRenderable.TrySetPropertyOnSprite (cognitive 36) · ×1
  • CustomSetPropertyOnRenderable.TrySetPropertyOnSprite (cognitive 36) Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs:1610 — CustomSetPropertyOnRenderable.TrySetPropertyOnSprite 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 · CodeGenerator.FillWithInstanceInstantiation (cognitive 36) · ×1
  • CodeGenerator.FillWithInstanceInstantiation (cognitive 36) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2203 — CodeGenerator.FillWithInstanceInstantiation 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 · CodeGenerator.FillWithParentAssignments (cognitive 36) · ×1
  • CodeGenerator.FillWithParentAssignments (cognitive 36) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:3724 — CodeGenerator.FillWithParentAssignments 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 · CodeGenerator.VariableValueToGumCode (cognitive 36) · ×1
  • CodeGenerator.VariableValueToGumCode (cognitive 36) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:5666 — CodeGenerator.VariableValueToGumCode 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 · SetVariableLogic.ReactIfChangedMemberIsSourceFile (cognitive 36) · ×1
  • SetVariableLogic.ReactIfChangedMemberIsSourceFile (cognitive 36) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/SetVariableLogic.cs:760 — SetVariableLogic.ReactIfChangedMemberIsSourceFile 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 · diff_screenshots.main (cognitive 36) · ×1
  • diff_screenshots.main (cognitive 36) Tool/HtmlToGum/fidelity/diff_screenshots.py:30 — diff_screenshots.main has cognitive complexity 36 (threshold 15). Drivers by points: loops 9 (16 pts), if/else 7 (15 pts), ternaries 1 (3 pts), boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Sprite.Render (cognitive 35) · ×1
  • Sprite.Render (cognitive 35) RenderingLibrary/Graphics/Sprite.cs:878 — Sprite.Render 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 · HeadlessCodegenRunner.RunCore (cognitive 35) · ×1
  • HeadlessCodegenRunner.RunCore (cognitive 35) Tools/Gum.ProjectServices/CodeGeneration/HeadlessCodegenRunner.cs:43 — HeadlessCodegenRunner.RunCore 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 · GumxImportService.ResolveChainTexturesAsync (cognitive 35) · ×1
  • GumxImportService.ResolveChainTexturesAsync (cognitive 35) Tools/Gum.Presentation/ImportFromGumx/Services/GumxImportService.cs:450 — GumxImportService.ResolveChainTexturesAsync has cognitive complexity 35 (threshold 15). Of this number, 34 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 · MoveInputHandler.SnapSelectedToUnitValues (cognitive 35) · ×1
  • MoveInputHandler.SnapSelectedToUnitValues (cognitive 35) Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/MoveInputHandler.cs:318 — MoveInputHandler.SnapSelectedToUnitValues 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 · GumProjectDependencyWalker.CollectForSingleElement (cognitive 34) · ×1
  • GumProjectDependencyWalker.CollectForSingleElement (cognitive 34) GumCommon/Bundle/GumProjectDependencyWalker.cs:416 — GumProjectDependencyWalker.CollectForSingleElement 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 · ElementSaveExtensions.GetItemNamesOwnedByReachableCategorizedStates (cognitive 34) · ×1
  • ElementSaveExtensions.GetItemNamesOwnedByReachableCategorizedStates (cognitive 34) GumRuntime/ElementSaveExtensions.GumRuntime.cs:910 — ElementSaveExtensions.GetItemNamesOwnedByReachableCategorizedStates 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 · GraphicalUiElement.UpdateToVmProperty (cognitive 34) · ×1
  • GraphicalUiElement.UpdateToVmProperty (cognitive 34) GumRuntime/GraphicalUiElement.Binding.cs:495 — GraphicalUiElement.UpdateToVmProperty 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 · SpatialNavigationService.FindBestCandidate (cognitive 34) · ×1
  • SpatialNavigationService.FindBestCandidate (cognitive 34) MonoGameGum/Forms/SpatialNavigationService.cs:59 — SpatialNavigationService.FindBestCandidate 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 · MenuItem.ReconcilePopupRows (cognitive 34) · ×1
  • MenuItem.ReconcilePopupRows (cognitive 34) MonoGameGum/Forms/Controls/MenuItem.cs:1174 — MenuItem.ReconcilePopupRows 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 · NineSlice.IsMiddleUniform (cognitive 34) · ×1
  • NineSlice.IsMiddleUniform (cognitive 34) Runtimes/SkiaGum/Renderables/NineSlice.cs:782 — NineSlice.IsMiddleUniform 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 · GumProjectSaveExtensionMethods.RepairMissingBaseInstances (cognitive 33) · ×1
  • GumProjectSaveExtensionMethods.RepairMissingBaseInstances (cognitive 33) Gum/DataTypes/GumProjectSaveExtensionMethods.cs:396 — GumProjectSaveExtensionMethods.RepairMissingBaseInstances 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 · CodeGenerator.CollectUsingNamespaces (cognitive 33) · ×1
  • CodeGenerator.CollectUsingNamespaces (cognitive 33) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:547 — CodeGenerator.CollectUsingNamespaces has cognitive complexity 33 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · CodeGenerator.GenerateInitializeInstancesMethod (cognitive 33) · ×1
  • CodeGenerator.GenerateInitializeInstancesMethod (cognitive 33) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:1969 — CodeGenerator.GenerateInitializeInstancesMethod 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 · NewProjectDialogViewModel.RefreshDerived (cognitive 33) · ×1
  • NewProjectDialogViewModel.RefreshDerived (cognitive 33) Tools/Gum.Presentation/Dialogs/NewProjectDialogViewModel.cs:1079 — NewProjectDialogViewModel.RefreshDerived has cognitive complexity 33 (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 · GumxDependencyResolver.ComputeTransitive (cognitive 33) · ×1
  • GumxDependencyResolver.ComputeTransitive (cognitive 33) Tools/Gum.Presentation/ImportFromGumx/Services/GumxDependencyResolver.cs:23 — GumxDependencyResolver.ComputeTransitive 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 · ElementTreeViewManager.AddAndRemoveScreensComponentsStandardsAndBehaviors (cognitive 33) · ×1
  • ElementTreeViewManager.AddAndRemoveScreensComponentsStandardsAndBehaviors (cognitive 33) Tool/TreeViewPlugin.Core/ElementTreeViewManager.cs:964 — ElementTreeViewManager.AddAndRemoveScreensComponentsStandardsAndBehaviors has cognitive complexity 33 (threshold 15). Of this number, 30 points are the body's own statements and 3 belong to 3 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 · convert.main (cognitive 33) · ×1
  • convert.main (cognitive 33) Tool/HtmlToGum/converter/convert.ts:442 — convert.main has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (15 pts), loops 5 (8 pts), boolean chains 7, ternaries 2, error handling 1 (nesting depth added 5). Of this number, 21 points are the body's own statements and 12 belong to 7 function items inside it that branch. 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 · GumHotReloadManager.DiffDesignTimeChildren (cognitive 32) · ×1
  • GumHotReloadManager.DiffDesignTimeChildren (cognitive 32) GumCommon/HostServices/GumHotReloadManager.cs:2466 — GumHotReloadManager.DiffDesignTimeChildren 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 · FileManager.FileExists (cognitive 32) · ×1
  • FileManager.FileExists (cognitive 32) REDACTED:207 — FileManager.FileExists 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 · GraphicalUiElement.TryAdjustOffsetsByParentLayoutType (cognitive 32) · ×1
  • GraphicalUiElement.TryAdjustOffsetsByParentLayoutType (cognitive 32) GumRuntime/GraphicalUiElement.Position.cs:568 — GraphicalUiElement.TryAdjustOffsetsByParentLayoutType 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 · GraphicalUiElement.GetParentDimensions (cognitive 32) · ×1
  • GraphicalUiElement.GetParentDimensions (cognitive 32) GumRuntime/GraphicalUiElement.RequiredSize.cs:217 — GraphicalUiElement.GetParentDimensions 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 · Grid.RefreshLayoutCore (cognitive 32) · ×1
  • Grid.RefreshLayoutCore (cognitive 32) MonoGameGum/Forms/Controls/Grid.cs:246 — Grid.RefreshLayoutCore 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 · LineCircle.Render (cognitive 32) · ×1
  • LineCircle.Render (cognitive 32) Runtimes/RaylibGum/Renderables/LineCircle.cs:271 — LineCircle.Render has cognitive complexity 32 (threshold 15). Of this number, 28 points are the body's own statements and 4 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 · NewProjectService.Validate (cognitive 32) · ×1
  • NewProjectService.Validate (cognitive 32) Tools/Gum.ProjectServices/NewProject/NewProjectService.cs:81 — NewProjectService.Validate 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 · CopyPasteLogic.CreateComponentFromInstance (cognitive 32) · ×1
  • CopyPasteLogic.CreateComponentFromInstance (cognitive 32) Tools/Gum.Presentation/Logic/CopyPasteLogic.cs:1414 — CopyPasteLogic.CreateComponentFromInstance 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 · VariableReferenceLogic.ModifyLines (cognitive 32) · ×1
  • VariableReferenceLogic.ModifyLines (cognitive 32) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/VariableReferenceLogic.cs:1317 — VariableReferenceLogic.ModifyLines 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 · LinkedOverridesDisplay.LinkedOverridesDisplay.ctor (cognitive 32) · ×1
  • LinkedOverridesDisplay.LinkedOverridesDisplay.ctor (cognitive 32) Tool/Gum.Avalonia/Plugins/VariableGrid/GumDisplays.cs:560 — LinkedOverridesDisplay.LinkedOverridesDisplay.ctor 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 · SkiaRenderer.Draw (cognitive 32) · ×1
  • SkiaRenderer.Draw (cognitive 32) Gum/SvgPlugin/SkiaInGumShared/Rendering/SkiaRenderer.cs:119 — SkiaRenderer.Draw has cognitive complexity 32 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VariableReferenceGraph.ScanReads (cognitive 31) · ×1
  • VariableReferenceGraph.ScanReads (cognitive 31) GumCommon/Runtime/VariableReferenceGraph.cs:1257 — VariableReferenceGraph.ScanReads 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 · GumProjectSave.Load (cognitive 31) · ×1
  • GumProjectSave.Load (cognitive 31) GumDataTypes/GumProjectSave.cs:759 — GumProjectSave.Load 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 · FrameworkElement.GetDesiredState (cognitive 31) · ×1
  • FrameworkElement.GetDesiredState (cognitive 31) MonoGameGum/Forms/Controls/FrameworkElement.cs:2789 — FrameworkElement.GetDesiredState 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 · TabControl.PairPagesFromContentPanel (cognitive 31) · ×1
  • TabControl.PairPagesFromContentPanel (cognitive 31) MonoGameGum/Forms/Controls/TabControl.cs:666 — TabControl.PairPagesFromContentPanel has cognitive complexity 31 (threshold 15). Of this number, 16 points are the body's own statements and 15 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · NineSlice.RenderTiled (cognitive 31) · ×1
  • NineSlice.RenderTiled (cognitive 31) RenderingLibrary/Graphics/NineSlice.cs:1171 — NineSlice.RenderTiled 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 · CustomSetPropertyOnRenderable.TrySetPropertyOnNineSlice (cognitive 31) · ×1
  • CustomSetPropertyOnRenderable.TrySetPropertyOnNineSlice (cognitive 31) Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs:1447 — CustomSetPropertyOnRenderable.TrySetPropertyOnNineSlice has cognitive complexity 31 (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 · HeadlessErrorChecker.VariableExists (cognitive 31) · ×1
  • HeadlessErrorChecker.VariableExists (cognitive 31) Tools/Gum.ProjectServices/HeadlessErrorChecker.cs:686 — HeadlessErrorChecker.VariableExists has cognitive complexity 31 (threshold 15). Of this number, 29 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · StateTreeKeyboardHandler.HandleKeyDown (cognitive 31) · ×1
  • StateTreeKeyboardHandler.HandleKeyDown (cognitive 31) Tools/Gum.Presentation/Plugins/InternalPlugins/StatePlugin/StateTreeKeyboardHandler.cs:34 — StateTreeKeyboardHandler.HandleKeyDown 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 · SetVariableLogic.ReactIfChangedMemberIsUnitType (cognitive 31) · ×1
  • SetVariableLogic.ReactIfChangedMemberIsUnitType (cognitive 31) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/SetVariableLogic.cs:648 — SetVariableLogic.ReactIfChangedMemberIsUnitType has cognitive complexity 31 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · GumProjectSave.PopulateElementSavesFromReferences (cognitive 30) · ×1
  • GumProjectSave.PopulateElementSavesFromReferences (cognitive 30) GumDataTypes/GumProjectSave.cs:959 — GumProjectSave.PopulateElementSavesFromReferences 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 · BbCodeParser.Parse (cognitive 30) · ×1
  • BbCodeParser.Parse (cognitive 30) GumRuntime/BbCodeParser.cs:264 — BbCodeParser.Parse has cognitive complexity 30 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ElementSaveExtensions.ReportCyclicRows (cognitive 30) · ×1
  • ElementSaveExtensions.ReportCyclicRows (cognitive 30) GumRuntime/ElementSaveExtensions.GumRuntime.cs:1126 — ElementSaveExtensions.ReportCyclicRows 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 · GumProjectSave.Load (cognitive 30) · ×1
  • GumProjectSave.Load (cognitive 30) GumDataTypes/GumProjectSave.cs:764 — GumProjectSave.Load 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 · CustomSetPropertyOnRenderable.SetBbCodeText (cognitive 30) · ×1
  • CustomSetPropertyOnRenderable.SetBbCodeText (cognitive 30) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:1950 — CustomSetPropertyOnRenderable.SetBbCodeText 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 · BatchKeyGroupedOrderer.ProcessRenderable (cognitive 30) · ×1
  • BatchKeyGroupedOrderer.ProcessRenderable (cognitive 30) RenderingLibrary/Graphics/BatchKeyGroupedOrderer.cs:611 — BatchKeyGroupedOrderer.ProcessRenderable 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 · HotkeyManager.HandleNudge (cognitive 30) · ×1
  • HotkeyManager.HandleNudge (cognitive 30) Tools/Gum.Presentation/Managers/HotkeyManager.cs:420 — HotkeyManager.HandleNudge 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 · BehaviorToolOnlyReferencesApplier.CollectValuesThroughExposedVariables (cognitive 30) · ×1
  • BehaviorToolOnlyReferencesApplier.CollectValuesThroughExposedVariables (cognitive 30) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/BehaviorToolOnlyReferencesApplier.cs:183 — BehaviorToolOnlyReferencesApplier.CollectValuesThroughExposedVariables has cognitive 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, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ExposeVariableService.RemoveUnnamedShaderPlaceholder (cognitive 30) · ×1
  • ExposeVariableService.RemoveUnnamedShaderPlaceholder (cognitive 30) Tools/Gum.Presentation/Services/ExposeVariableService.cs:320 — ExposeVariableService.RemoveUnnamedShaderPlaceholder 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 · UndoSnapshot.AddInstanceModifiations (cognitive 30) · ×1
  • UndoSnapshot.AddInstanceModifiations (cognitive 30) Tools/Gum.Presentation/Undo/UndoSnapshot.cs:347 — UndoSnapshot.AddInstanceModifiations 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 · DataUiGridModel.HandleMembersToIgnoreChanged (cognitive 30) · ×1
  • DataUiGridModel.HandleMembersToIgnoreChanged (cognitive 30) DataUi.Core/DataUiGridModel.cs:370 — DataUiGridModel.HandleMembersToIgnoreChanged has cognitive complexity 30 (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 · GumHotReloadManager.FindChangedReferences (cognitive 29) · ×1
  • GumHotReloadManager.FindChangedReferences (cognitive 29) GumCommon/HostServices/GumHotReloadManager.cs:1140 — GumHotReloadManager.FindChangedReferences 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 · LocalizationServiceExtensions.BuildAndAddDatabase (cognitive 29) · ×1
  • LocalizationServiceExtensions.BuildAndAddDatabase (cognitive 29) GumCommon/Localization/LocalizationServiceExtensions.cs:294 — LocalizationServiceExtensions.BuildAndAddDatabase has cognitive complexity 29 (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 · BbCodeParser.ReplaceGlyphTags (cognitive 29) · ×1
  • BbCodeParser.ReplaceGlyphTags (cognitive 29) GumRuntime/BbCodeParser.cs:150 — BbCodeParser.ReplaceGlyphTags 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 · GraphicalUiElement.GetChildLayoutType (cognitive 29) · ×1
  • GraphicalUiElement.GetChildLayoutType (cognitive 29) GumRuntime/GraphicalUiElement.ChildUpdates.cs:100 — GraphicalUiElement.GetChildLayoutType has cognitive complexity 29 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · Menu.OnFocusUpdate (cognitive 29) · ×1
  • Menu.OnFocusUpdate (cognitive 29) MonoGameGum/Forms/Controls/Menu.cs:308 — Menu.OnFocusUpdate 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 · Menu.HandleNavigation (cognitive 29) · ×1
  • Menu.HandleNavigation (cognitive 29) MonoGameGum/Forms/Controls/Menu.cs:391 — Menu.HandleNavigation has cognitive complexity 29 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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 · ScrollViewer.ReactToVisualChanged (cognitive 29) · ×1
  • ScrollViewer.ReactToVisualChanged (cognitive 29) MonoGameGum/Forms/Controls/ScrollViewer.cs:438 — ScrollViewer.ReactToVisualChanged 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 · CustomSetPropertyOnRenderable.AssignSourceShaderFileOnContainer (cognitive 29) · ×1
  • CustomSetPropertyOnRenderable.AssignSourceShaderFileOnContainer (cognitive 29) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:547 — CustomSetPropertyOnRenderable.AssignSourceShaderFileOnContainer 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 · CustomSetPropertyOnRenderable.GetOrCreateBakedFont (cognitive 29) · ×1
  • CustomSetPropertyOnRenderable.GetOrCreateBakedFont (cognitive 29) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:2563 — CustomSetPropertyOnRenderable.GetOrCreateBakedFont 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 · CustomSetPropertyOnRenderable.UpdateToFontValuesInContext (cognitive 29) · ×1
  • CustomSetPropertyOnRenderable.UpdateToFontValuesInContext (cognitive 29) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:2872 — CustomSetPropertyOnRenderable.UpdateToFontValuesInContext 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 · Text.BuildTextBlockFromRuns (cognitive 29) · ×1
  • Text.BuildTextBlockFromRuns (cognitive 29) Runtimes/SkiaGum/Renderables/Text.cs:1600 — Text.BuildTextBlockFromRuns 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 · RoundedRectangle.RenderInternal (cognitive 29) · ×1
  • RoundedRectangle.RenderInternal (cognitive 29) Runtimes/GumShapes/Renderables/RoundedRectangle.cs:265 — RoundedRectangle.RenderInternal 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 · ObsoleteShapeRuntimeCodeFixProvider.ApplyMigrationAsync (cognitive 29) · ×1
  • ObsoleteShapeRuntimeCodeFixProvider.ApplyMigrationAsync (cognitive 29) Tools/Gum.Analyzers/ObsoleteShapeRuntimeCodeFixProvider.cs:63 — ObsoleteShapeRuntimeCodeFixProvider.ApplyMigrationAsync 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 · CodeGenerator.FillWithStatePropertiesForCategory (cognitive 29) · ×1
  • CodeGenerator.FillWithStatePropertiesForCategory (cognitive 29) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:4871 — CodeGenerator.FillWithStatePropertiesForCategory 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 · AvailableBaseTypeConverter.CreateStandardValuesCollection (cognitive 29) · ×1
  • AvailableBaseTypeConverter.CreateStandardValuesCollection (cognitive 29) Tools/Gum.Presentation/PropertyGridHelpers/Converters/AvailableBaseTypeConverter.cs:39 — AvailableBaseTypeConverter.CreateStandardValuesCollection 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 · WpfExtensions.ShiftWindowOntoScreen (cognitive 29) · ×1
  • WpfExtensions.ShiftWindowOntoScreen (cognitive 29) Gum/Extensions/WpfExtensions.cs:19 — WpfExtensions.ShiftWindowOntoScreen 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 · canaries.main (cognitive 29) · ×1
  • canaries.main (cognitive 29) Tool/HtmlToGum/fidelity/canaries.ts:216 — canaries.main has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 5 (10 pts), loops 3, error handling 1 (2 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · FileManager.RemoveDotDotSlash (cognitive 28) · ×1
  • FileManager.RemoveDotDotSlash (cognitive 28) REDACTED:718 — FileManager.RemoveDotDotSlash 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 · GraphicalUiElement.GetChildLayoutType (cognitive 28) · ×1
  • GraphicalUiElement.GetChildLayoutType (cognitive 28) GumRuntime/GraphicalUiElement.ChildUpdates.cs:47 — GraphicalUiElement.GetChildLayoutType has cognitive 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.
D2 · Cognitive Complexity · GraphicalUiElement.AddChildren (cognitive 28) · ×1
  • GraphicalUiElement.AddChildren (cognitive 28) GumRuntime/GraphicalUiElement.Managers.cs:301 — GraphicalUiElement.AddChildren 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 · FrameworkElement.Visual.set (cognitive 28) · ×1
  • FrameworkElement.Visual.set (cognitive 28) MonoGameGum/Forms/Controls/FrameworkElement.cs:698 — FrameworkElement.Visual.set 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 · DialogBox.OnFocusUpdate (cognitive 28) · ×1
  • DialogBox.OnFocusUpdate (cognitive 28) MonoGameGum/Forms/Controls/Games/DialogBox.cs:843 — DialogBox.OnFocusUpdate 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 · CustomSetPropertyOnRenderable.TrySetPropertyOnSprite (cognitive 28) · ×1
  • CustomSetPropertyOnRenderable.TrySetPropertyOnSprite (cognitive 28) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:919 — CustomSetPropertyOnRenderable.TrySetPropertyOnSprite has cognitive complexity 28 (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 · NineSlice.RefreshSourceRectangles (cognitive 28) · ×1
  • NineSlice.RefreshSourceRectangles (cognitive 28) RenderingLibrary/Graphics/NineSlice.cs:882 — NineSlice.RefreshSourceRectangles 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 · BatchKeyGroupedOrderer.EmitOrder (cognitive 28) · ×1
  • BatchKeyGroupedOrderer.EmitOrder (cognitive 28) RenderingLibrary/Graphics/BatchKeyGroupedOrderer.cs:1182 — BatchKeyGroupedOrderer.EmitOrder 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 · SpriteRenderer.Draw (cognitive 28) · ×1
  • SpriteRenderer.Draw (cognitive 28) RenderingLibrary/Graphics/SpriteRenderer.cs:747 — SpriteRenderer.Draw 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 · EvaluatedSyntax.GetSimpleTypeNameForValue (cognitive 28) · ×1
  • EvaluatedSyntax.GetSimpleTypeNameForValue (cognitive 28) Runtimes/GumExpressions/EvaluatedSyntax.cs:853 — EvaluatedSyntax.GetSimpleTypeNameForValue 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 · CheckReferencesCommand.ExecuteFix (cognitive 28) · ×1
  • CheckReferencesCommand.ExecuteFix (cognitive 28) Tools/Gum.Cli/Commands/CheckReferencesCommand.cs:134 — CheckReferencesCommand.ExecuteFix 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 · CodeGenerator.GetClassNameForType (cognitive 28) · ×1
  • CodeGenerator.GetClassNameForType (cognitive 28) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:853 — CodeGenerator.GetClassNameForType 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 · HeadlessErrorChecker.GetUnknownStateValueErrorsFor (cognitive 28) · ×1
  • HeadlessErrorChecker.GetUnknownStateValueErrorsFor (cognitive 28) Tools/Gum.ProjectServices/HeadlessErrorChecker.HandWrittenFiles.cs:310 — HeadlessErrorChecker.GetUnknownStateValueErrorsFor has cognitive 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, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · FileWatchManager.Flush (cognitive 28) · ×1
  • FileWatchManager.Flush (cognitive 28) Tools/Gum.Presentation/FileWatchPlugin/FileWatchManager.cs:482 — FileWatchManager.Flush 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 · ReferenceFinder.CollectCategoryReferencesInElement (cognitive 28) · ×1
  • ReferenceFinder.CollectCategoryReferencesInElement (cognitive 28) Tools/Gum.Presentation/Logic/ReferenceFinder.cs:388 — ReferenceFinder.CollectCategoryReferencesInElement 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 · SetVariableLogic.ReactIfChangedBaseType (cognitive 28) · ×1
  • SetVariableLogic.ReactIfChangedBaseType (cognitive 28) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/SetVariableLogic.cs:419 — SetVariableLogic.ReactIfChangedBaseType 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 · VariableReferenceSuggestions.AddMembers (cognitive 28) · ×1
  • VariableReferenceSuggestions.AddMembers (cognitive 28) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/VariableReferenceSuggestions.cs:252 — VariableReferenceSuggestions.AddMembers has cognitive complexity 28 (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 · RectangleSelector.GetCursorToSet (cognitive 28) · ×1
  • RectangleSelector.GetCursorToSet (cognitive 28) Tool/TextureCoordinatePlugin.Core/RegionSelection/RectangleSelector.cs:843 — RectangleSelector.GetCursorToSet 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 · DataUiDisplayBase.RefreshHint (cognitive 28) · ×1
  • DataUiDisplayBase.RefreshHint (cognitive 28) AvaloniaDataUi/Controls/DataUiDisplayBase.cs:477 — DataUiDisplayBase.RefreshHint 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 · fonts.collectFontFaceRules (cognitive 28) · ×1
  • fonts.collectFontFaceRules (cognitive 28) Tool/HtmlToGum/converter/fonts.ts:173 — fonts.collectFontFaceRules has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 5 (7 pts), boolean chains 4, error handling 2 (4 pts) (nesting depth added 10). Most of this is not in the body itself: 11 of the 28 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 174, 176, 228). 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 · map.computeBackgroundSpriteCrop (cognitive 28) · ×1
  • map.computeBackgroundSpriteCrop (cognitive 28) Tool/HtmlToGum/converter/map.ts:417 — map.computeBackgroundSpriteCrop has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16, boolean chains 12. Of this number, 21 points are the body's own statements and 7 belong to 2 function items inside it that branch. 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 · StateSave.GetValue (cognitive 27) · ×1
  • StateSave.GetValue (cognitive 27) GumDataTypes/Variables/StateSave.cs:154 — StateSave.GetValue 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 · GraphicalUiElement.RefreshParentRowColumnDimensionForThis (cognitive 27) · ×1
  • GraphicalUiElement.RefreshParentRowColumnDimensionForThis (cognitive 27) GumRuntime/GraphicalUiElement.Stacking.cs:45 — GraphicalUiElement.RefreshParentRowColumnDimensionForThis 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 · ButtonBase.OnFocusUpdate (cognitive 27) · ×1
  • ButtonBase.OnFocusUpdate (cognitive 27) MonoGameGum/Forms/Controls/Primitives/ButtonBase.cs:216 — ButtonBase.OnFocusUpdate 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 · CustomSetPropertyOnRenderable.ThrowExceptionsForMissingFiles (cognitive 27) · ×1
  • CustomSetPropertyOnRenderable.ThrowExceptionsForMissingFiles (cognitive 27) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:3654 — CustomSetPropertyOnRenderable.ThrowExceptionsForMissingFiles 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 · HierarchicalOrderer.AppendRenderables (cognitive 27) · ×1
  • HierarchicalOrderer.AppendRenderables (cognitive 27) RenderingLibrary/Graphics/HierarchicalOrderer.cs:43 — HierarchicalOrderer.AppendRenderables 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 · SpriteRenderer.BeginSpriteBatch (cognitive 27) · ×1
  • SpriteRenderer.BeginSpriteBatch (cognitive 27) RenderingLibrary/Graphics/SpriteRenderer.cs:269 — SpriteRenderer.BeginSpriteBatch 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 · GumxImportService.RemapVariableReferences (cognitive 27) · ×1
  • GumxImportService.RemapVariableReferences (cognitive 27) Tools/Gum.Presentation/ImportFromGumx/Services/GumxImportService.cs:1384 — GumxImportService.RemapVariableReferences 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 · VariableSaveLogic.GetIfVariableIsActive (cognitive 27) · ×1
  • VariableSaveLogic.GetIfVariableIsActive (cognitive 27) Tools/Gum.Presentation/Logic/VariableSaveLogic.cs:38 — VariableSaveLogic.GetIfVariableIsActive 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 · MoveInputHandler.SnapSelectedToGrid (cognitive 27) · ×1
  • MoveInputHandler.SnapSelectedToGrid (cognitive 27) Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/MoveInputHandler.cs:395 — MoveInputHandler.SnapSelectedToGrid 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 · FilePickingLogic.RemoveDotDotSlash (cognitive 27) · ×1
  • FilePickingLogic.RemoveDotDotSlash (cognitive 27) DataUi.Core/Controls/FilePickingLogic.cs:89 — FilePickingLogic.RemoveDotDotSlash 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 · TextureCoordinateDisplayController.ApplyRegionGesture (cognitive 27) · ×1
  • TextureCoordinateDisplayController.ApplyRegionGesture (cognitive 27) Tool/TextureCoordinatePlugin.Core/Logic/ControlLogic.cs:615 — TextureCoordinateDisplayController.ApplyRegionGesture 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 · RectangleSelector.KeyboardActivity (cognitive 27) · ×1
  • RectangleSelector.KeyboardActivity (cognitive 27) Tool/TextureCoordinatePlugin.Core/RegionSelection/RectangleSelector.cs:482 — RectangleSelector.KeyboardActivity 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 · FrbThemeResources.ControlBrushAliases (cognitive 27) · ×1
  • FrbThemeResources.ControlBrushAliases (cognitive 27) Tool/Gum.Avalonia/Themes/FrbThemeResources.cs:181 — FrbThemeResources.ControlBrushAliases has cognitive complexity 27 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · make-icon-bmp.decode_rgba_png (cognitive 27) · ×1
  • make-icon-bmp.decode_rgba_png (cognitive 27) Tool/Gum.Avalonia/Packaging/make-icon-bmp.py:30 — make-icon-bmp.decode_rgba_png has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 4 (14 pts), if/else 3 (8 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GumProjectDependencyWalker.CollectFromState (cognitive 26) · ×1
  • GumProjectDependencyWalker.CollectFromState (cognitive 26) GumCommon/Bundle/GumProjectDependencyWalker.cs:484 — GumProjectDependencyWalker.CollectFromState 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 · GumHotReloadManager.ApplyDiffRecursive (cognitive 26) · ×1
  • GumHotReloadManager.ApplyDiffRecursive (cognitive 26) GumCommon/HostServices/GumHotReloadManager.cs:1806 — GumHotReloadManager.ApplyDiffRecursive 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 · VariableReferenceGraph.SearchLoop (cognitive 26) · ×1
  • VariableReferenceGraph.SearchLoop (cognitive 26) GumCommon/Runtime/VariableReferenceGraph.cs:1166 — VariableReferenceGraph.SearchLoop 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 · RuntimeSnapshotSerializer.EmitOverridesRecursive (cognitive 26) · ×1
  • RuntimeSnapshotSerializer.EmitOverridesRecursive (cognitive 26) GumCommon/Wireframe/RuntimeSnapshotSerializer.cs:606 — RuntimeSnapshotSerializer.EmitOverridesRecursive 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 · UnitConverter.ConvertToUnitTypeCoordinates (cognitive 26) · ×1
  • UnitConverter.ConvertToUnitTypeCoordinates (cognitive 26) GumDataTypes/UnitConverter.cs:236 — UnitConverter.ConvertToUnitTypeCoordinates has cognitive complexity 26 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · ElementSaveExtensions.ResolveOwnerPrefix (cognitive 26) · ×1
  • ElementSaveExtensions.ResolveOwnerPrefix (cognitive 26) GumRuntime/ElementSaveExtensions.GumRuntime.cs:1407 — ElementSaveExtensions.ResolveOwnerPrefix 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 · ObjectFinder.GetElementsReferencing (cognitive 26) · ×1
  • ObjectFinder.GetElementsReferencing (cognitive 26) Gum/Managers/ObjectFinder.cs:494 — ObjectFinder.GetElementsReferencing 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 · ParsedFontLine.Parse (cognitive 26) · ×1
  • ParsedFontLine.Parse (cognitive 26) RenderingLibrary/Graphics/Fonts/ParsedFontFile.cs:319 — ParsedFontLine.Parse 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 · Sprite.DrawBoundAtOrigin (cognitive 26) · ×1
  • Sprite.DrawBoundAtOrigin (cognitive 26) Runtimes/SkiaGum/Renderables/Sprite.cs:563 — Sprite.DrawBoundAtOrigin has cognitive complexity 26 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · LinePolygon.Render (cognitive 26) · ×1
  • LinePolygon.Render (cognitive 26) Runtimes/RaylibGum/Renderables/LinePolygon.cs:214 — LinePolygon.Render 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 · CodeGenerationContext.CodePrefixNoTabs.get (cognitive 26) · ×1
  • CodeGenerationContext.CodePrefixNoTabs.get (cognitive 26) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:181 — CodeGenerationContext.CodePrefixNoTabs.get 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 · CodeOutputTabController.RefreshCodeDisplay (cognitive 26) · ×1
  • CodeOutputTabController.RefreshCodeDisplay (cognitive 26) Tools/Gum.Presentation/CodeOutputPlugin/CodeOutputTabController.cs:94 — CodeOutputTabController.RefreshCodeDisplay 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 · FileCommands.SaveElement (cognitive 26) · ×1
  • FileCommands.SaveElement (cognitive 26) Tools/Gum.Presentation/Commands/FileCommands.cs:399 — FileCommands.SaveElement 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 · VariableSaveLogic.GetShouldIncludeBasedOnBaseType (cognitive 26) · ×1
  • VariableSaveLogic.GetShouldIncludeBasedOnBaseType (cognitive 26) Tools/Gum.Presentation/Logic/VariableSaveLogic.cs:232 — VariableSaveLogic.GetShouldIncludeBasedOnBaseType 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 · ProjectManager.Initialize (cognitive 26) · ×1
  • ProjectManager.Initialize (cognitive 26) Tools/Gum.Presentation/Managers/ProjectManager.cs:205 — ProjectManager.Initialize 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 · SetVariableLogic.ReactIfChangedMemberIsParent (cognitive 26) · ×1
  • SetVariableLogic.ReactIfChangedMemberIsParent (cognitive 26) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/SetVariableLogic.cs:1033 — SetVariableLogic.ReactIfChangedMemberIsParent 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 · VariableReferenceLogic.ReapplyToolOnlyReferencesAround (cognitive 26) · ×1
  • VariableReferenceLogic.ReapplyToolOnlyReferencesAround (cognitive 26) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/VariableReferenceLogic.cs:1050 — VariableReferenceLogic.ReapplyToolOnlyReferencesAround 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 · ElementCommands.MoveSelectedObjectsBy (cognitive 26) · ×1
  • ElementCommands.MoveSelectedObjectsBy (cognitive 26) Tools/Gum.Presentation/ToolCommands/ElementCommands.cs:255 — ElementCommands.MoveSelectedObjectsBy 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 · ElementUndoStrategy.ReplayCrossElementVariableChanges (cognitive 26) · ×1
  • ElementUndoStrategy.ReplayCrossElementVariableChanges (cognitive 26) Tools/Gum.Presentation/Undo/ElementUndoStrategy.cs:795 — ElementUndoStrategy.ReplayCrossElementVariableChanges 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 · ExposedTextureCoordinateLogic.GetExposedSets (cognitive 26) · ×1
  • ExposedTextureCoordinateLogic.GetExposedSets (cognitive 26) Tool/TextureCoordinatePlugin.Core/Logic/ExposedTextureCoordinateLogic.cs:30 — ExposedTextureCoordinateLogic.GetExposedSets has cognitive complexity 26 (threshold 15). Of this number, 24 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 · ImageRegionSelectionCore.BringSpriteInView (cognitive 26) · ×1
  • ImageRegionSelectionCore.BringSpriteInView (cognitive 26) Tool/TextureCoordinatePlugin.Core/RegionSelection/ImageRegionSelectionCore.cs:745 — ImageRegionSelectionCore.BringSpriteInView has cognitive 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.
D2 · Cognitive Complexity · pylance_stubs.write_stub_for_namespace (cognitive 26) · ×1
  • pylance_stubs.write_stub_for_namespace (cognitive 26) Runtimes/Python/gumui/tools/pylance_stubs.py:73 — pylance_stubs.write_stub_for_namespace has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 4 (8 pts), ternaries 1 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · forms.emitFormsControlVars (cognitive 26) · ×1
  • forms.emitFormsControlVars (cognitive 26) Tool/HtmlToGum/converter/forms.ts:130 — forms.emitFormsControlVars has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 5 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · FontReferenceCollector.CollectAllBmfcSavesFor (cognitive 25) · ×1
  • FontReferenceCollector.CollectAllBmfcSavesFor (cognitive 25) GumCommon/Bundle/FontReferenceCollector.cs:447 — FontReferenceCollector.CollectAllBmfcSavesFor has cognitive complexity 25 (threshold 15). Of this number, 24 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GumHotReloadManager.ResetRemovedVariables (cognitive 25) · ×1
  • GumHotReloadManager.ResetRemovedVariables (cognitive 25) GumCommon/HostServices/GumHotReloadManager.cs:2341 — GumHotReloadManager.ResetRemovedVariables has cognitive complexity 25 (threshold 15). Of this number, 24 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VariableReferenceGraph.IsCurrent (cognitive 25) · ×1
  • VariableReferenceGraph.IsCurrent (cognitive 25) GumCommon/Runtime/VariableReferenceGraph.cs:1449 — VariableReferenceGraph.IsCurrent 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 · ElementSaveExtensions.StateHasUnpropagatedReferences (cognitive 25) · ×1
  • ElementSaveExtensions.StateHasUnpropagatedReferences (cognitive 25) GumRuntime/ElementSaveExtensions.GumRuntime.cs:826 — ElementSaveExtensions.StateHasUnpropagatedReferences 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 · InstanceExtensionMethods.GetSiblingsIncludingThis (cognitive 25) · ×1
  • InstanceExtensionMethods.GetSiblingsIncludingThis (cognitive 25) Gum/Managers/ObjectFinder.cs:1729 — InstanceExtensionMethods.GetSiblingsIncludingThis 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 · StateSaveExtensionMethods.SetValue (cognitive 25) · ×1
  • StateSaveExtensionMethods.SetValue (cognitive 25) Gum/DataTypes/StateSaveExtensionMethods.cs:591 — StateSaveExtensionMethods.SetValue 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 · ListBox.DoListItemFocusUpdate (cognitive 25) · ×1
  • ListBox.DoListItemFocusUpdate (cognitive 25) MonoGameGum/Forms/Controls/ListBox.cs:2292 — ListBox.DoListItemFocusUpdate 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 · CustomSetPropertyOnRenderable.AssignSourceShaderFileOnContainer (cognitive 25) · ×1
  • CustomSetPropertyOnRenderable.AssignSourceShaderFileOnContainer (cognitive 25) Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs:1325 — CustomSetPropertyOnRenderable.AssignSourceShaderFileOnContainer 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 · NineSlice.TryDrawLattice (cognitive 25) · ×1
  • NineSlice.TryDrawLattice (cognitive 25) Runtimes/SkiaGum/Renderables/NineSlice.cs:593 — NineSlice.TryDrawLattice has cognitive complexity 25 (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 · EvaluatedSyntax.SplitOnLiterals (cognitive 25) · ×1
  • EvaluatedSyntax.SplitOnLiterals (cognitive 25) Runtimes/GumExpressions/EvaluatedSyntax.cs:954 — EvaluatedSyntax.SplitOnLiterals 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 · CodeGenerator.RegisterRuntimeType (cognitive 25) · ×1
  • CodeGenerator.RegisterRuntimeType (cognitive 25) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2322 — CodeGenerator.RegisterRuntimeType 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 · StandardComparer.ComputeVariableDifferences (cognitive 25) · ×1
  • StandardComparer.ComputeVariableDifferences (cognitive 25) Tools/Gum.ProjectServices/StandardComparer.cs:69 — StandardComparer.ComputeVariableDifferences 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 · ImportFromGumxViewModel.RecomputeTransitiveDependencies (cognitive 25) · ×1
  • ImportFromGumxViewModel.RecomputeTransitiveDependencies (cognitive 25) Tools/Gum.Presentation/ImportFromGumx/ImportFromGumxViewModel.cs:641 — ImportFromGumxViewModel.RecomputeTransitiveDependencies has cognitive complexity 25 (threshold 15). Of this number, 21 points are the body's own statements and 4 belong to 4 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 · ExternalAssetPlan.Build (cognitive 25) · ×1
  • ExternalAssetPlan.Build (cognitive 25) Tools/Gum.Presentation/ImportFromGumx/Services/ExternalAssetPlan.cs:88 — ExternalAssetPlan.Build 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 · GumxDependencyResolver.GetComponentsReadByVariableReferences (cognitive 25) · ×1
  • GumxDependencyResolver.GetComponentsReadByVariableReferences (cognitive 25) Tools/Gum.Presentation/ImportFromGumx/Services/GumxDependencyResolver.cs:148 — GumxDependencyResolver.GetComponentsReadByVariableReferences 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 · ReferenceFinder.CollectChangesInElement (cognitive 25) · ×1
  • ReferenceFinder.CollectChangesInElement (cognitive 25) Tools/Gum.Presentation/Logic/ReferenceFinder.cs:48 — ReferenceFinder.CollectChangesInElement 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 · InstanceReferences.GetChangesDetails (cognitive 25) · ×1
  • InstanceReferences.GetChangesDetails (cognitive 25) Tools/Gum.Presentation/Logic/ReferenceTypes.cs:157 — InstanceReferences.GetChangesDetails 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 · ProjectPropertiesChangeLogic.HandlePropertyChanged (cognitive 25) · ×1
  • ProjectPropertiesChangeLogic.HandlePropertyChanged (cognitive 25) Tools/Gum.Presentation/Plugins/InternalPlugins/ProjectPropertiesWindowPlugin/ProjectPropertiesChangeLogic.cs:60 — ProjectPropertiesChangeLogic.HandlePropertyChanged 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 · VariableReferenceLogic.CheckIfVariableTypesMatch (cognitive 25) · ×1
  • VariableReferenceLogic.CheckIfVariableTypesMatch (cognitive 25) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/VariableReferenceLogic.cs:354 — VariableReferenceLogic.CheckIfVariableTypesMatch 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 · RenameManager.HandleRename (cognitive 25) · ×1
  • RenameManager.HandleRename (cognitive 25) Tools/Gum.Presentation/StateAnimationPlugin/Managers/RenameManager.cs:36 — RenameManager.HandleRename 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 · TextureCoordinateDisplayController.GetTextureToAssign (cognitive 25) · ×1
  • TextureCoordinateDisplayController.GetTextureToAssign (cognitive 25) Tool/TextureCoordinatePlugin.Core/Logic/ControlLogic.cs:512 — TextureCoordinateDisplayController.GetTextureToAssign has cognitive complexity 25 (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 · TextureCoordinateDisplayController.RefreshSelector (cognitive 25) · ×1
  • TextureCoordinateDisplayController.RefreshSelector (cognitive 25) Tool/TextureCoordinatePlugin.Core/Logic/ControlLogic.cs:880 — TextureCoordinateDisplayController.RefreshSelector 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 · DataUiDisplayBase.ApplyRowStyle (cognitive 25) · ×1
  • DataUiDisplayBase.ApplyRowStyle (cognitive 25) AvaloniaDataUi/Controls/DataUiDisplayBase.cs:336 — DataUiDisplayBase.ApplyRowStyle 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 · fonts.unicodeRangeCoversBasicLatin (cognitive 25) · ×1
  • fonts.unicodeRangeCoversBasicLatin (cognitive 25) Tool/HtmlToGum/converter/fonts.ts:77 — fonts.unicodeRangeCoversBasicLatin has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 6, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · map.layoutModeOf (cognitive 25) · ×1
  • map.layoutModeOf (cognitive 25) Tool/HtmlToGum/converter/map.ts:154 — map.layoutModeOf has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 7, ternaries 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GumHotReloadManager.ApplyChangedFiles (cognitive 24) · ×1
  • GumHotReloadManager.ApplyChangedFiles (cognitive 24) GumCommon/HostServices/GumHotReloadManager.cs:1249 — GumHotReloadManager.ApplyChangedFiles 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 · InstanceSaveExtensionMethods.GetVariableFromThisOrBase (cognitive 24) · ×1
  • InstanceSaveExtensionMethods.GetVariableFromThisOrBase (cognitive 24) Gum/DataTypes/InstanceSaveExtensionMethods.cs:145 — InstanceSaveExtensionMethods.GetVariableFromThisOrBase 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 · GraphicalUiElement.GetMaxCellHeight (cognitive 24) · ×1
  • GraphicalUiElement.GetMaxCellHeight (cognitive 24) GumRuntime/GraphicalUiElement.Dimensions.cs:600 — GraphicalUiElement.GetMaxCellHeight 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. This shape REPEATS in the file: one other method here (GraphicalUiElement.GetMaxCellWidth) 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.
D2 · Cognitive Complexity · GraphicalUiElement.GetMaxCellWidth (cognitive 24) · ×1
  • GraphicalUiElement.GetMaxCellWidth (cognitive 24) GumRuntime/GraphicalUiElement.Dimensions.cs:904 — GraphicalUiElement.GetMaxCellWidth 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. This shape REPEATS in the file: one other method here (GraphicalUiElement.GetMaxCellHeight) 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.
D2 · Cognitive Complexity · ComboBox.DoClosedDropDownFocusUpdate (cognitive 24) · ×1
  • ComboBox.DoClosedDropDownFocusUpdate (cognitive 24) MonoGameGum/Forms/Controls/ComboBox.cs:1473 — ComboBox.DoClosedDropDownFocusUpdate 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 · DialogBox.ConvertToPages (cognitive 24) · ×1
  • DialogBox.ConvertToPages (cognitive 24) MonoGameGum/Forms/Controls/Games/DialogBox.cs:595 — DialogBox.ConvertToPages 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 · ItemsControl.RemoveItemVisuals (cognitive 24) · ×1
  • ItemsControl.RemoveItemVisuals (cognitive 24) MonoGameGum/Forms/Controls/ItemsControl.cs:1110 — ItemsControl.RemoveItemVisuals has cognitive complexity 24 (threshold 15). Of this number, 21 points are the body's own statements and 3 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 · Text.Render (cognitive 24) · ×1
  • Text.Render (cognitive 24) Runtimes/RaylibGum/Renderables/Text.cs:1209 — Text.Render 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 · CodeGenerator.GenerateApplyDefaultVariables (cognitive 24) · ×1
  • CodeGenerator.GenerateApplyDefaultVariables (cognitive 24) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:6194 — CodeGenerator.GenerateApplyDefaultVariables 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 · HeadlessErrorChecker.GetInvalidVariableTypeErrorsFor (cognitive 24) · ×1
  • HeadlessErrorChecker.GetInvalidVariableTypeErrorsFor (cognitive 24) Tools/Gum.ProjectServices/HeadlessErrorChecker.cs:1679 — HeadlessErrorChecker.GetInvalidVariableTypeErrorsFor 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 · SetVariableLogic.ReactIfChangedMemberIsFontFile (cognitive 24) · ×1
  • SetVariableLogic.ReactIfChangedMemberIsFontFile (cognitive 24) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/SetVariableLogic.cs:558 — SetVariableLogic.ReactIfChangedMemberIsFontFile 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 · ElementTreeViewManager.HandleViewInExplorer (cognitive 24) · ×1
  • ElementTreeViewManager.HandleViewInExplorer (cognitive 24) Tool/TreeViewPlugin.Core/ElementTreeViewManager.RightClick.cs:150 — ElementTreeViewManager.HandleViewInExplorer 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 · PolygonScaler.Scale (cognitive 24) · ×1
  • PolygonScaler.Scale (cognitive 24) Tool/EditorTabPlugin.Core/Editors/Handlers/PolygonScaler.cs:39 — PolygonScaler.Scale 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 · TextureCoordinateDisplayController.Refresh (cognitive 24) · ×1
  • TextureCoordinateDisplayController.Refresh (cognitive 24) Tool/TextureCoordinatePlugin.Core/Logic/ControlLogic.cs:363 — TextureCoordinateDisplayController.Refresh 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 · CsvReader.ParseNewLine (cognitive 24) · ×1
  • CsvReader.ParseNewLine (cognitive 24) Gum/CsvLibrary/CsvReader.cs:959 — CsvReader.ParseNewLine 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 · PropertyValuePair.TryHandleComplexType (cognitive 24) · ×1
  • PropertyValuePair.TryHandleComplexType (cognitive 24) Gum/CsvLibrary/Reflection/PropertyValuePair.cs:489 — PropertyValuePair.TryHandleComplexType 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 · Screen1.BuildNineSliceTestTexture (cognitive 24) · ×1
  • Screen1.BuildNineSliceTestTexture (cognitive 24) Samples/SokolGum/Screen1.cs:361 — Screen1.BuildNineSliceTestTexture 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 · nineslice.generateNineSliceAssets · ×1
  • nineslice.generateNineSliceAssets::walk (cognitive 24) Tool/HtmlToGum/converter/nineslice.ts:65 — nineslice.generateNineSliceAssets::walk has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 8, ternaries 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ReferenceDependencies.OrderByDependency (cognitive 23) · ×1
  • ReferenceDependencies.OrderByDependency (cognitive 23) GumCommon/Runtime/ReferenceDependencies.cs:97 — ReferenceDependencies.OrderByDependency has cognitive complexity 23 (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 · GraphicalUiElement.UpdateDimensions (cognitive 23) · ×1
  • GraphicalUiElement.UpdateDimensions (cognitive 23) GumRuntime/GraphicalUiElement.Dimensions.cs:45 — GraphicalUiElement.UpdateDimensions 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 · GraphicalUiElement.ApplyAnchor (cognitive 23) · ×1
  • GraphicalUiElement.ApplyAnchor (cognitive 23) GumRuntime/GraphicalUiElement.DockAndAnchor.cs:354 — GraphicalUiElement.ApplyAnchor has cognitive complexity 23 (threshold 15). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · GraphicalUiElement.TrySetValueOnThis (cognitive 23) · ×1
  • GraphicalUiElement.TrySetValueOnThis (cognitive 23) GumRuntime/GraphicalUiElement.SetValuesAndStates.cs:1139 — GraphicalUiElement.TrySetValueOnThis 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 · ComboBox.HandlePendingItemsChanged (cognitive 23) · ×1
  • ComboBox.HandlePendingItemsChanged (cognitive 23) MonoGameGum/Forms/Controls/ComboBox.cs:351 — ComboBox.HandlePendingItemsChanged 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 · ScrollViewer.DoItemsHaveFocus.set (cognitive 23) · ×1
  • ScrollViewer.DoItemsHaveFocus.set (cognitive 23) MonoGameGum/Forms/Controls/ScrollViewer.cs:326 — ScrollViewer.DoItemsHaveFocus.set 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 · TextBox.HandleCharEntered (cognitive 23) · ×1
  • TextBox.HandleCharEntered (cognitive 23) MonoGameGum/Forms/Controls/TextBox.cs:243 — TextBox.HandleCharEntered 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 · TextBoxBase.UpdateToSelection (cognitive 23) · ×1
  • TextBoxBase.UpdateToSelection (cognitive 23) MonoGameGum/Forms/Controls/TextBoxBase.cs:2147 — TextBoxBase.UpdateToSelection 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 · Sprite.Render (cognitive 23) · ×1
  • Sprite.Render (cognitive 23) RenderingLibrary/Graphics/Sprite.cs:489 — Sprite.Render 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 · NineSlice.DrawMiddleSection (cognitive 23) · ×1
  • NineSlice.DrawMiddleSection (cognitive 23) Runtimes/SkiaGum/Renderables/NineSlice.cs:920 — NineSlice.DrawMiddleSection 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 · CodeGenerator.ProcessXamarinFormsPositionAndSize (cognitive 23) · ×1
  • CodeGenerator.ProcessXamarinFormsPositionAndSize (cognitive 23) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2593 — CodeGenerator.ProcessXamarinFormsPositionAndSize 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 · CodeGenerator.FillWithVariableAssignments (cognitive 23) · ×1
  • CodeGenerator.FillWithVariableAssignments (cognitive 23) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:5330 — CodeGenerator.FillWithVariableAssignments has cognitive complexity 23 (threshold 15). Most of this is not in the body itself: 2 of the 23 points are its own statements and the rest belongs to one function literal inside it that branches (line 5347). 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 · VariableSaveExtensionMethodsGumTool.GetTypeConverter (cognitive 23) · ×1
  • VariableSaveExtensionMethodsGumTool.GetTypeConverter (cognitive 23) Tools/Gum.Presentation/DataTypes/VariableSaveExtensionMethods.GumTool.cs:107 — VariableSaveExtensionMethodsGumTool.GetTypeConverter 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 · CopyPasteLogic.ValidateStatePaste (cognitive 23) · ×1
  • CopyPasteLogic.ValidateStatePaste (cognitive 23) Tools/Gum.Presentation/Logic/CopyPasteLogic.cs:597 — CopyPasteLogic.ValidateStatePaste 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 · ElementReferences.GetChangesDetails (cognitive 23) · ×1
  • ElementReferences.GetChangesDetails (cognitive 23) Tools/Gum.Presentation/Logic/ReferenceTypes.cs:28 — ElementReferences.GetChangesDetails 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. This shape REPEATS in the file: one other method here (ElementReferences.GetDeleteImpactDetails) 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.
D2 · Cognitive Complexity · ElementReferences.GetDeleteImpactDetails (cognitive 23) · ×1
  • ElementReferences.GetDeleteImpactDetails (cognitive 23) Tools/Gum.Presentation/Logic/ReferenceTypes.cs:87 — ElementReferences.GetDeleteImpactDetails 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. This shape REPEATS in the file: one other method here (ElementReferences.GetChangesDetails) 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.
D2 · Cognitive Complexity · RenameLogic.HandleRename (cognitive 23) · ×1
  • RenameLogic.HandleRename (cognitive 23) Tools/Gum.Presentation/Logic/RenameLogic.cs:438 — RenameLogic.HandleRename 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 · MoveInputHandler.ReturnAxisToGrabPosition (cognitive 23) · ×1
  • MoveInputHandler.ReturnAxisToGrabPosition (cognitive 23) Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/MoveInputHandler.cs:254 — MoveInputHandler.ReturnAxisToGrabPosition 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 · VariableReferenceStatusLogic.GetNote (cognitive 23) · ×1
  • VariableReferenceStatusLogic.GetNote (cognitive 23) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/VariableReferenceStatusLogic.cs:34 — VariableReferenceStatusLogic.GetNote 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 · WireframeObjectManager.GetInstance (cognitive 23) · ×1
  • WireframeObjectManager.GetInstance (cognitive 23) Tools/Gum.Presentation/Wireframe/WireframeObjectManager.cs:651 — WireframeObjectManager.GetInstance 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 · ElementTreeViewManager.SelectRecordedSelection (cognitive 23) · ×1
  • ElementTreeViewManager.SelectRecordedSelection (cognitive 23) Tool/TreeViewPlugin.Core/ElementTreeViewManager.cs:1197 — ElementTreeViewManager.SelectRecordedSelection 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 · EditorTabPluginBase.TryHandleFileDropOnComponent (cognitive 23) · ×1
  • EditorTabPluginBase.TryHandleFileDropOnComponent (cognitive 23) Tool/EditorTabPlugin.Core/EditorTabPluginBase.cs:1409 — EditorTabPluginBase.TryHandleFileDropOnComponent 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 · DataUiGrid.Refresh (cognitive 23) · ×1
  • DataUiGrid.Refresh (cognitive 23) WpfDataUi/DataUiGrid.cs:169 — DataUiGrid.Refresh 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 · Game1.LogInput (cognitive 23) · ×1
  • Game1.LogInput (cognitive 23) Tool/GumPreview/Game1.cs:302 — Game1.LogInput has cognitive complexity 23 (threshold 15). Of this number, 22 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 · raster-isolation.isolateElementForTransparentScreenshot (cognitive 23) · ×1
  • raster-isolation.isolateElementForTransparentScreenshot (cognitive 23) Tool/HtmlToGum/converter/raster-isolation.ts:25 — raster-isolation.isolateElementForTransparentScreenshot has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 3 (4 pts), boolean chains 3, ternaries 1 (nesting depth added 6). Of this number, 13 points are the body's own statements and 10 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 · ElementSaveExtensions.TryCreateStrongTypeForElement (cognitive 22) · ×1
  • ElementSaveExtensions.TryCreateStrongTypeForElement (cognitive 22) GumRuntime/ElementSaveExtensions.GumRuntime.cs:219 — ElementSaveExtensions.TryCreateStrongTypeForElement 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 · ElementSaveExtensions.TryReadReference (cognitive 22) · ×1
  • ElementSaveExtensions.TryReadReference (cognitive 22) GumRuntime/ElementSaveExtensions.GumRuntime.cs:1747 — ElementSaveExtensions.TryReadReference has cognitive complexity 22 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · GraphicalUiElement.GetAnchor (cognitive 22) · ×1
  • GraphicalUiElement.GetAnchor (cognitive 22) GumRuntime/GraphicalUiElement.DockAndAnchor.cs:503 — GraphicalUiElement.GetAnchor has cognitive 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.
D2 · Cognitive Complexity · RecursiveVariableFinder.GetExposedVariablesForThisInstance (cognitive 22) · ×1
  • RecursiveVariableFinder.GetExposedVariablesForThisInstance (cognitive 22) Gum/DataTypes/RecursiveVariableFinder.cs:285 — RecursiveVariableFinder.GetExposedVariablesForThisInstance 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, 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 · FrameworkElement.IsFocused.set (cognitive 22) · ×1
  • FrameworkElement.IsFocused.set (cognitive 22) MonoGameGum/Forms/Controls/FrameworkElement.cs:226 — FrameworkElement.IsFocused.set 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 · Slider.OnFocusUpdate (cognitive 22) · ×1
  • Slider.OnFocusUpdate (cognitive 22) MonoGameGum/Forms/Controls/Slider.cs:484 — Slider.OnFocusUpdate 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 · AnimationFrameExtensionMethods.ToAnimationFrame (cognitive 22) · ×1
  • AnimationFrameExtensionMethods.ToAnimationFrame (cognitive 22) RenderingLibrary/Graphics/Animation/AnimationFrame.cs:390 — AnimationFrameExtensionMethods.ToAnimationFrame 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 · CodeGenerator.FillWithVariablesInState (cognitive 22) · ×1
  • CodeGenerator.FillWithVariablesInState (cognitive 22) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:5195 — CodeGenerator.FillWithVariablesInState 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 · HeadlessFontGenerationService.EstimateBlocksNeeded (cognitive 22) · ×1
  • HeadlessFontGenerationService.EstimateBlocksNeeded (cognitive 22) Tools/Gum.ProjectServices/FontGeneration/HeadlessFontGenerationService.cs:642 — HeadlessFontGenerationService.EstimateBlocksNeeded has cognitive complexity 22 (threshold 15). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · NewProjectService.ResolveOptions (cognitive 22) · ×1
  • NewProjectService.ResolveOptions (cognitive 22) Tools/Gum.ProjectServices/NewProject/NewProjectService.cs:207 — NewProjectService.ResolveOptions 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 · TreeNodeMutationExtensions.SortByName (cognitive 22) · ×1
  • TreeNodeMutationExtensions.SortByName (cognitive 22) Tools/Gum.Presentation/Managers/TreeNodeMutationExtensions.cs:53 — TreeNodeMutationExtensions.SortByName 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 · VariableGridEntry.TryGoToDefinition (cognitive 22) · ×1
  • VariableGridEntry.TryGoToDefinition (cognitive 22) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/VariableGridEntry.cs:1492 — VariableGridEntry.TryGoToDefinition has cognitive complexity 22 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · AvailableParentsTypeConverter.GetStandardValues (cognitive 22) · ×1
  • AvailableParentsTypeConverter.GetStandardValues (cognitive 22) Tools/Gum.Presentation/PropertyGridHelpers/Converters/AvailableParentsTypeConverter.cs:44 — AvailableParentsTypeConverter.GetStandardValues 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 · RenameManager.RenameAnimationReferencesInOtherElements (cognitive 22) · ×1
  • RenameManager.RenameAnimationReferencesInOtherElements (cognitive 22) Tools/Gum.Presentation/StateAnimationPlugin/Managers/RenameManager.cs:192 — RenameManager.RenameAnimationReferencesInOtherElements 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 · SelectedState.PerformAfterSelectInstanceLogic (cognitive 22) · ×1
  • SelectedState.PerformAfterSelectInstanceLogic (cognitive 22) Tools/Gum.Presentation/ToolStates/SelectedState.cs:484 — SelectedState.PerformAfterSelectInstanceLogic has cognitive complexity 22 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ElementUndoStrategy.TryGetUndoSnapshotToAdd (cognitive 22) · ×1
  • ElementUndoStrategy.TryGetUndoSnapshotToAdd (cognitive 22) Tools/Gum.Presentation/Undo/ElementUndoStrategy.cs:331 — ElementUndoStrategy.TryGetUndoSnapshotToAdd 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 · SelectionManager.ProcessInputForSelection (cognitive 22) · ×1
  • SelectionManager.ProcessInputForSelection (cognitive 22) Tools/Gum.Presentation/Wireframe/SelectionManager.cs:880 — SelectionManager.ProcessInputForSelection 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 · WireframeObjectManager.RefreshAll (cognitive 22) · ×1
  • WireframeObjectManager.RefreshAll (cognitive 22) Tools/Gum.Presentation/Wireframe/WireframeObjectManager.cs:147 — WireframeObjectManager.RefreshAll 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 · CustomSetPropertyOnRenderable.GetOrCreateBakedFont (cognitive 22) · ×1
  • CustomSetPropertyOnRenderable.GetOrCreateBakedFont (cognitive 22) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:2560 — CustomSetPropertyOnRenderable.GetOrCreateBakedFont 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 · GumHotReloadManager.NotifyFileChanged (cognitive 21) · ×1
  • GumHotReloadManager.NotifyFileChanged (cognitive 21) GumCommon/HostServices/GumHotReloadManager.cs:295 — GumHotReloadManager.NotifyFileChanged 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 · ElementSaveExtensions.WithFormsPropertyInputs (cognitive 21) · ×1
  • ElementSaveExtensions.WithFormsPropertyInputs (cognitive 21) GumRuntime/ElementSaveExtensions.GumRuntime.cs:1673 — ElementSaveExtensions.WithFormsPropertyInputs 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 · FrameworkElement.HandleKeyboardFocusUpdate (cognitive 21) · ×1
  • FrameworkElement.HandleKeyboardFocusUpdate (cognitive 21) MonoGameGum/Forms/Controls/FrameworkElement.cs:1800 — FrameworkElement.HandleKeyboardFocusUpdate 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 · TextBoxBase.KeepCaretEdgeInsideParent (cognitive 21) · ×1
  • TextBoxBase.KeepCaretEdgeInsideParent (cognitive 21) MonoGameGum/Forms/Controls/TextBoxBase.cs:2382 — TextBoxBase.KeepCaretEdgeInsideParent 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 · ToolTipService.Update (cognitive 21) · ×1
  • ToolTipService.Update (cognitive 21) MonoGameGum/Forms/Controls/ToolTipService.cs:254 — ToolTipService.Update 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 · BitmapFont.MeasureString (cognitive 21) · ×1
  • BitmapFont.MeasureString (cognitive 21) RenderingLibrary/Graphics/Fonts/BitmapFont.cs:1475 — BitmapFont.MeasureString 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 · BatchKeyGroupedOrderer.AssignBuckets (cognitive 21) · ×1
  • BatchKeyGroupedOrderer.AssignBuckets (cognitive 21) RenderingLibrary/Graphics/BatchKeyGroupedOrderer.cs:951 — BatchKeyGroupedOrderer.AssignBuckets 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 · BlockBlobCache.DrawRun (cognitive 21) · ×1
  • BlockBlobCache.DrawRun (cognitive 21) Runtimes/SkiaGum/Renderables/Text.cs:2175 — BlockBlobCache.DrawRun 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 · BlockBlobCache.AddSegment (cognitive 21) · ×1
  • BlockBlobCache.AddSegment (cognitive 21) Runtimes/SkiaGum/Renderables/Text.cs:2279 — BlockBlobCache.AddSegment 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 · NineSlice.AddMiddleSections (cognitive 21) · ×1
  • NineSlice.AddMiddleSections (cognitive 21) Runtimes/RaylibGum/Renderables/NineSlice.cs:698 — NineSlice.AddMiddleSections 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 · OrphanCodeFileScanService.AddCodeFileOrphans (cognitive 21) · ×1
  • OrphanCodeFileScanService.AddCodeFileOrphans (cognitive 21) Tools/Gum.ProjectServices/CodeGeneration/OrphanCodeFileScanService.cs:220 — OrphanCodeFileScanService.AddCodeFileOrphans has cognitive complexity 21 (threshold 15). Of this number, 20 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 · HeadlessErrorChecker.GetParentErrorsFor (cognitive 21) · ×1
  • HeadlessErrorChecker.GetParentErrorsFor (cognitive 21) Tools/Gum.ProjectServices/HeadlessErrorChecker.cs:1096 — HeadlessErrorChecker.GetParentErrorsFor 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 · NewProjectDialogViewModel.RunPackagesAndRestoreAsync (cognitive 21) · ×1
  • NewProjectDialogViewModel.RunPackagesAndRestoreAsync (cognitive 21) Tools/Gum.Presentation/Dialogs/NewProjectDialogViewModel.cs:798 — NewProjectDialogViewModel.RunPackagesAndRestoreAsync 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 · RenameLogic.RenameAllReferencesTo (cognitive 21) · ×1
  • RenameLogic.RenameAllReferencesTo (cognitive 21) Tools/Gum.Presentation/Logic/RenameLogic.cs:578 — RenameLogic.RenameAllReferencesTo 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 · FileChangeReactionLogic.ReactToElementSaveChanged (cognitive 21) · ×1
  • FileChangeReactionLogic.ReactToElementSaveChanged (cognitive 21) Tools/Gum.Presentation/Managers/FileChangeReactionLogic.cs:785 — FileChangeReactionLogic.ReactToElementSaveChanged has cognitive complexity 21 (threshold 15). Of this number, 20 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 · ElementSaveDisplayer.CreateEntryFromPropertyData (cognitive 21) · ×1
  • ElementSaveDisplayer.CreateEntryFromPropertyData (cognitive 21) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/ElementSaveDisplayer.cs:815 — ElementSaveDisplayer.CreateEntryFromPropertyData 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 · VariableGridEntry.GetValue (cognitive 21) · ×1
  • VariableGridEntry.GetValue (cognitive 21) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/VariableGridEntry.cs:562 — VariableGridEntry.GetValue 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 · VariableReferenceSuggestions.GetVariableNames (cognitive 21) · ×1
  • VariableReferenceSuggestions.GetVariableNames (cognitive 21) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/VariableReferenceSuggestions.cs:359 — VariableReferenceSuggestions.GetVariableNames has cognitive complexity 21 (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 · OriginDisplay.UpdateTo (cognitive 21) · ×1
  • OriginDisplay.UpdateTo (cognitive 21) Tool/EditorTabPlugin.Core/Views/OriginDisplay.cs:147 — OriginDisplay.UpdateTo 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 · DialogViewResolver.Scan (cognitive 21) · ×1
  • DialogViewResolver.Scan (cognitive 21) Gum/Services/Dialogs/DialogViewResolver.cs:98 — DialogViewResolver.Scan has cognitive complexity 21 (threshold 15). Most of this is not in the body itself: 9 of the 21 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 115, 108). 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 · GumHotReloadManager.SetChangedVariablesRecursively (cognitive 20) · ×1
  • GumHotReloadManager.SetChangedVariablesRecursively (cognitive 20) GumCommon/HostServices/GumHotReloadManager.cs:2021 — GumHotReloadManager.SetChangedVariablesRecursively has cognitive 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, 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 · ShaderParameterVariables.ApplyParameter (cognitive 20) · ×1
  • ShaderParameterVariables.ApplyParameter (cognitive 20) RenderingLibrary/Graphics/ShaderParameterVariables.cs:184 — ShaderParameterVariables.ApplyParameter 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 · GraphicalUiElement.RestoreTextureVariables (cognitive 20) · ×1
  • GraphicalUiElement.RestoreTextureVariables (cognitive 20) GumRuntime/GraphicalUiElement.SetValuesAndStates.cs:386 — GraphicalUiElement.RestoreTextureVariables 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 · Text.UpdateTextureToRender (cognitive 20) · ×1
  • Text.UpdateTextureToRender (cognitive 20) RenderingLibrary/Graphics/Text.cs:1163 — Text.UpdateTextureToRender 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 · CodeGenerator.GetCodeLine (cognitive 20) · ×1
  • CodeGenerator.GetCodeLine (cognitive 20) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:5465 — CodeGenerator.GetCodeLine 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 · EditCommands.DuplicateSelectedElement (cognitive 20) · ×1
  • EditCommands.DuplicateSelectedElement (cognitive 20) Tools/Gum.Presentation/Commands/EditCommands.cs:552 — EditCommands.DuplicateSelectedElement has cognitive complexity 20 (threshold 15). Of this number, 16 points are the body's own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · RenameFolderDialogViewModel.OnAffirmative (cognitive 20) · ×1
  • RenameFolderDialogViewModel.OnAffirmative (cognitive 20) Tools/Gum.Presentation/Dialogs/RenameFolderDialogViewModel.cs:56 — RenameFolderDialogViewModel.OnAffirmative 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 · DeleteLogic.PerformConfirmedMixedTypeDelete (cognitive 20) · ×1
  • DeleteLogic.PerformConfirmedMixedTypeDelete (cognitive 20) Tools/Gum.Presentation/Managers/DeleteLogic.cs:335 — DeleteLogic.PerformConfirmedMixedTypeDelete has cognitive complexity 20 (threshold 15). Of this number, 17 points are the body's own statements and 3 belong to 3 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 · FileChangeReactionLogic.CollectShaderFiles (cognitive 20) · ×1
  • FileChangeReactionLogic.CollectShaderFiles (cognitive 20) Tools/Gum.Presentation/Managers/FileChangeReactionLogic.cs:669 — FileChangeReactionLogic.CollectShaderFiles 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 · VariableReferenceLogic.AddFailureForLine (cognitive 20) · ×1
  • VariableReferenceLogic.AddFailureForLine (cognitive 20) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/VariableReferenceLogic.cs:110 — VariableReferenceLogic.AddFailureForLine 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 · AnimationTabController.GetAnimationsReferencingState (cognitive 20) · ×1
  • AnimationTabController.GetAnimationsReferencingState (cognitive 20) Tools/Gum.Presentation/StateAnimationPlugin/AnimationTabController.cs:779 — AnimationTabController.GetAnimationsReferencingState 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 · ElementTreeViewManager.ReactToFilterTextChanged (cognitive 20) · ×1
  • ElementTreeViewManager.ReactToFilterTextChanged (cognitive 20) Tool/TreeViewPlugin.Core/ElementTreeViewManager.cs:2154 — ElementTreeViewManager.ReactToFilterTextChanged 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 · RuntimeCsvRepresentation.FirstDuplicateRequiredField.get (cognitive 20) · ×1
  • RuntimeCsvRepresentation.FirstDuplicateRequiredField.get (cognitive 20) Gum/CsvLibrary/RuntimeCsvRepresentation.cs:192 — RuntimeCsvRepresentation.FirstDuplicateRequiredField.get 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 · RuntimeCsvRepresentation.Save (cognitive 20) · ×1
  • RuntimeCsvRepresentation.Save (cognitive 20) Gum/CsvLibrary/RuntimeCsvRepresentation.cs:797 — RuntimeCsvRepresentation.Save 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 · RuntimeCsvRepresentation.FillObjectDictionary (cognitive 20) · ×1
  • RuntimeCsvRepresentation.FillObjectDictionary (cognitive 20) Gum/CsvLibrary/RuntimeCsvRepresentation.cs:944 — RuntimeCsvRepresentation.FillObjectDictionary 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 · RuntimeCsvRepresentation.ReplaceRow (cognitive 20) · ×1
  • RuntimeCsvRepresentation.ReplaceRow (cognitive 20) Gum/CsvLibrary/RuntimeCsvRepresentation.cs:1460 — RuntimeCsvRepresentation.ReplaceRow 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 · HeadOptions.Parse (cognitive 20) · ×1
  • HeadOptions.Parse (cognitive 20) Tool/Gum.Avalonia/HeadOptions.cs:112 — HeadOptions.Parse 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 · new_sites_crawl.run_one (cognitive 20) · ×1
  • new_sites_crawl.run_one (cognitive 20) Tool/HtmlToGum/fidelity/new_sites_crawl.py:50 — new_sites_crawl.run_one has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 6, ternaries 3 (5 pts), 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 · GumProjectDependencyWalker.CollectInstanceTypeCoreFiles (cognitive 19) · ×1
  • GumProjectDependencyWalker.CollectInstanceTypeCoreFiles (cognitive 19) GumCommon/Bundle/GumProjectDependencyWalker.cs:369 — GumProjectDependencyWalker.CollectInstanceTypeCoreFiles 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 · GumHotReloadManager.CreateChangedState (cognitive 19) · ×1
  • GumHotReloadManager.CreateChangedState (cognitive 19) GumCommon/HostServices/GumHotReloadManager.cs:2254 — GumHotReloadManager.CreateChangedState 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 · ElementSaveExtensions.ReportedMismatch (cognitive 19) · ×1
  • ElementSaveExtensions.ReportedMismatch (cognitive 19) GumRuntime/ElementSaveExtensions.GumRuntime.cs:1972 — ElementSaveExtensions.ReportedMismatch 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 · BmfcSave.GetIfIsValidRange (cognitive 19) · ×1
  • BmfcSave.GetIfIsValidRange (cognitive 19) RenderingLibrary/Graphics/Fonts/BmfcSave.cs:547 — BmfcSave.GetIfIsValidRange 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 · GumProjectSaveExtensionMethods.MigrateScrollBarOrientationStateToProperty (cognitive 19) · ×1
  • GumProjectSaveExtensionMethods.MigrateScrollBarOrientationStateToProperty (cognitive 19) Gum/DataTypes/GumProjectSaveExtensionMethods.cs:551 — GumProjectSaveExtensionMethods.MigrateScrollBarOrientationStateToProperty has cognitive complexity 19 (threshold 15). Of this number, 18 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GraphicalUiElement.MoveToLayer (cognitive 19) · ×1
  • GraphicalUiElement.MoveToLayer (cognitive 19) GumRuntime/GraphicalUiElement.Managers.cs:410 — GraphicalUiElement.MoveToLayer 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 · GraphicalUiElement.ResumeLayout (cognitive 19) · ×1
  • GraphicalUiElement.ResumeLayout (cognitive 19) GumRuntime/GraphicalUiElement.Suspension.cs:114 — GraphicalUiElement.ResumeLayout 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 · StateSaveExtensionMethods.MergeIntoThis (cognitive 19) · ×1
  • StateSaveExtensionMethods.MergeIntoThis (cognitive 19) Gum/DataTypes/StateSaveExtensionMethods.cs:1168 — StateSaveExtensionMethods.MergeIntoThis 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 · ItemsControl.InsertItemVisuals (cognitive 19) · ×1
  • ItemsControl.InsertItemVisuals (cognitive 19) MonoGameGum/Forms/Controls/ItemsControl.cs:1004 — ItemsControl.InsertItemVisuals 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 · Cursor.Activity (cognitive 19) · ×1
  • Cursor.Activity (cognitive 19) MonoGameGum/Input/Cursor.cs:535 — Cursor.Activity 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 · Text.FillVisibleStyledRuns (cognitive 19) · ×1
  • Text.FillVisibleStyledRuns (cognitive 19) Runtimes/SkiaGum/Renderables/Text.cs:2532 — Text.FillVisibleStyledRuns 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 · CodeGenerator.AddFindByNameAssignment (cognitive 19) · ×1
  • CodeGenerator.AddFindByNameAssignment (cognitive 19) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2130 — CodeGenerator.AddFindByNameAssignment 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 · HeadlessErrorChecker.GetUnresolvableVariableReferenceErrorsFor (cognitive 19) · ×1
  • HeadlessErrorChecker.GetUnresolvableVariableReferenceErrorsFor (cognitive 19) Tools/Gum.ProjectServices/HeadlessErrorChecker.cs:582 — HeadlessErrorChecker.GetUnresolvableVariableReferenceErrorsFor 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 · ParentSetLogic.CanInstanceBeChildBasedOnXamarinFormsSkiaRestrictions (cognitive 19) · ×1
  • ParentSetLogic.CanInstanceBeChildBasedOnXamarinFormsSkiaRestrictions (cognitive 19) Tools/Gum.Presentation/CodeOutputPlugin/Manager/ParentSetLogic.cs:167 — ParentSetLogic.CanInstanceBeChildBasedOnXamarinFormsSkiaRestrictions 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 · CommandLineManager.ReadCommandLine (cognitive 19) · ×1
  • CommandLineManager.ReadCommandLine (cognitive 19) Tools/Gum.Presentation/CommandLine/CommandLineManager.cs:73 — CommandLineManager.ReadCommandLine has cognitive complexity 19 (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 · FileWatchLogic.GetFileWatchRootDirectories (cognitive 19) · ×1
  • FileWatchLogic.GetFileWatchRootDirectories (cognitive 19) Tools/Gum.Presentation/FileWatchPlugin/FileWatchLogic.cs:84 — FileWatchLogic.GetFileWatchRootDirectories 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 · ImportFromGumxViewModel.OnItemPropertyChanged (cognitive 19) · ×1
  • ImportFromGumxViewModel.OnItemPropertyChanged (cognitive 19) Tools/Gum.Presentation/ImportFromGumx/ImportFromGumxViewModel.cs:598 — ImportFromGumxViewModel.OnItemPropertyChanged has cognitive complexity 19 (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 · MovedInstanceReferenceDropper.Apply (cognitive 19) · ×1
  • MovedInstanceReferenceDropper.Apply (cognitive 19) Tools/Gum.Presentation/Logic/MovedInstanceReferenceDropper.cs:251 — MovedInstanceReferenceDropper.Apply 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 · DeleteLogic.SelectAfterInstanceRemoval (cognitive 19) · ×1
  • DeleteLogic.SelectAfterInstanceRemoval (cognitive 19) Tools/Gum.Presentation/Managers/DeleteLogic.cs:446 — DeleteLogic.SelectAfterInstanceRemoval 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 · FontsChangeLogic.HandlePropertyChanged (cognitive 19) · ×1
  • FontsChangeLogic.HandlePropertyChanged (cognitive 19) Tools/Gum.Presentation/Plugins/InternalPlugins/FontsPlugin/FontsChangeLogic.cs:62 — FontsChangeLogic.HandlePropertyChanged 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 · VariableReferenceLogic.ReapplyReferences (cognitive 19) · ×1
  • VariableReferenceLogic.ReapplyReferences (cognitive 19) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/VariableReferenceLogic.cs:859 — VariableReferenceLogic.ReapplyReferences has cognitive complexity 19 (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 · AnimationViewModel.FromSave (cognitive 19) · ×1
  • AnimationViewModel.FromSave (cognitive 19) Tools/Gum.Presentation/StateAnimationPlugin/ViewModels/AnimationViewModel.cs:170 — AnimationViewModel.FromSave 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 · SelectionManager.ReverseLoopToFindIpso (cognitive 19) · ×1
  • SelectionManager.ReverseLoopToFindIpso (cognitive 19) Tools/Gum.Presentation/Wireframe/SelectionManager.cs:686 — SelectionManager.ReverseLoopToFindIpso has cognitive complexity 19 (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 · ListBoxDisplayLogic.TryReadList (cognitive 19) · ×1
  • ListBoxDisplayLogic.TryReadList (cognitive 19) DataUi.Core/Controls/CompositeEditorLogic.cs:239 — ListBoxDisplayLogic.TryReadList 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 · IDataUiExtensionMethods.AreEqual (cognitive 19) · ×1
  • IDataUiExtensionMethods.AreEqual (cognitive 19) DataUi.Core/IDataUiExtensionMethods.cs:145 — IDataUiExtensionMethods.AreEqual 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 · ElementTreeViewManager.FindTreeNodeFor (cognitive 19) · ×1
  • ElementTreeViewManager.FindTreeNodeFor (cognitive 19) Tool/TreeViewPlugin.Core/ElementTreeViewManager.cs:1302 — ElementTreeViewManager.FindTreeNodeFor 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 · SkiaObjectTextureRenderer.RenderImageToTexture2D (cognitive 19) · ×1
  • SkiaObjectTextureRenderer.RenderImageToTexture2D (cognitive 19) Gum/SvgPlugin/SkiaInGumShared/Rendering/SkiaObjectTextureRenderer.cs:134 — SkiaObjectTextureRenderer.RenderImageToTexture2D 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 · SpriteScreen.SpriteScreen.ctor (cognitive 19) · ×1
  • SpriteScreen.SpriteScreen.ctor (cognitive 19) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/SpriteScreen.cs:29 — SpriteScreen.SpriteScreen.ctor has cognitive complexity 19 (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 · Game1.DoSwapScreenLogic (cognitive 19) · ×1
  • Game1.DoSwapScreenLogic (cognitive 19) Samples/MonoGameGumFromFile/MonoGameGumFromFile/Game1.cs:152 — Game1.DoSwapScreenLogic 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.
D2 · Cognitive Complexity · map.buildRectFillVars (cognitive 19) · ×1
  • map.buildRectFillVars (cognitive 19) Tool/HtmlToGum/converter/map.ts:670 — map.buildRectFillVars has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 3, ternaries 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 · ReferenceDependencies.StateReadsAny (cognitive 18) · ×1
  • ReferenceDependencies.StateReadsAny (cognitive 18) GumCommon/Runtime/ReferenceDependencies.cs:31 — ReferenceDependencies.StateReadsAny 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 · GumProjectSave.ReloadElement (cognitive 18) · ×1
  • GumProjectSave.ReloadElement (cognitive 18) GumDataTypes/GumProjectSave.cs:1066 — GumProjectSave.ReloadElement 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 · BbCodeParser.GetTagAtIndex (cognitive 18) · ×1
  • BbCodeParser.GetTagAtIndex (cognitive 18) GumRuntime/BbCodeParser.cs:469 — BbCodeParser.GetTagAtIndex 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 · ElementSaveExtensions.ExpandCompositeReferenceLine (cognitive 18) · ×1
  • ElementSaveExtensions.ExpandCompositeReferenceLine (cognitive 18) GumRuntime/ElementSaveExtensions.GumRuntime.cs:1324 — ElementSaveExtensions.ExpandCompositeReferenceLine 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 · InteractiveGue.CheckHasCursorOverOnThis (cognitive 18) · ×1
  • InteractiveGue.CheckHasCursorOverOnThis (cognitive 18) GumRuntime/InteractiveGue.cs:820 — InteractiveGue.CheckHasCursorOverOnThis 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 · GraphicalUiElement.GetGraphicalUiElementByName (cognitive 18) · ×1
  • GraphicalUiElement.GetGraphicalUiElementByName (cognitive 18) GumRuntime/GraphicalUiElement.Hierarchy.cs:99 — GraphicalUiElement.GetGraphicalUiElementByName 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 · GraphicalUiElement.AdjustOffsetsByOrigin (cognitive 18) · ×1
  • GraphicalUiElement.AdjustOffsetsByOrigin (cognitive 18) GumRuntime/GraphicalUiElement.Position.cs:501 — GraphicalUiElement.AdjustOffsetsByOrigin 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 · GraphicalUiElement.SetPropertyCore (cognitive 18) · ×1
  • GraphicalUiElement.SetPropertyCore (cognitive 18) GumRuntime/GraphicalUiElement.SetValuesAndStates.cs:436 — GraphicalUiElement.SetPropertyCore 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 · RecursiveVariableFinder.GetVariable (cognitive 18) · ×1
  • RecursiveVariableFinder.GetVariable (cognitive 18) Gum/DataTypes/RecursiveVariableFinder.cs:219 — RecursiveVariableFinder.GetVariable has cognitive complexity 18 (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 · Menu.HandleNextPush (cognitive 18) · ×1
  • Menu.HandleNextPush (cognitive 18) MonoGameGum/Forms/Controls/Menu.cs:206 — Menu.HandleNextPush 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 · TabControl.ReactToVisualChanged (cognitive 18) · ×1
  • TabControl.ReactToVisualChanged (cognitive 18) MonoGameGum/Forms/Controls/TabControl.cs:178 — TabControl.ReactToVisualChanged 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 · TabControl.OnFocusUpdate (cognitive 18) · ×1
  • TabControl.OnFocusUpdate (cognitive 18) MonoGameGum/Forms/Controls/TabControl.cs:912 — TabControl.OnFocusUpdate 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 · GumService.UninitializeCore (cognitive 18) · ×1
  • GumService.UninitializeCore (cognitive 18) MonoGameGum/GumService.cs:850 — GumService.UninitializeCore 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 · CustomSetPropertyOnRenderable.AssignSourceFileOnNineSlice (cognitive 18) · ×1
  • CustomSetPropertyOnRenderable.AssignSourceFileOnNineSlice (cognitive 18) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:824 — CustomSetPropertyOnRenderable.AssignSourceFileOnNineSlice 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 · ContentLoader.LoadTextureFromFile (cognitive 18) · ×1
  • ContentLoader.LoadTextureFromFile (cognitive 18) RenderingLibrary/Content/ContentLoader.cs:368 — ContentLoader.LoadTextureFromFile 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 · Renderer.PreRender (cognitive 18) · ×1
  • Renderer.PreRender (cognitive 18) RenderingLibrary/Graphics/Renderer.cs:1039 — Renderer.PreRender 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 · Text.Render (cognitive 18) · ×1
  • Text.Render (cognitive 18) RenderingLibrary/Graphics/Text.cs:1240 — Text.Render 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 · LinePrimitive.Render (cognitive 18) · ×1
  • LinePrimitive.Render (cognitive 18) RenderingLibrary/Math/Geometry/LinePrimitive.cs:331 — LinePrimitive.Render 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 · DiffStandardsCommand.WriteHumanReadable (cognitive 18) · ×1
  • DiffStandardsCommand.WriteHumanReadable (cognitive 18) Tools/Gum.Cli/Commands/DiffStandardsCommand.cs:111 — DiffStandardsCommand.WriteHumanReadable 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 · HeadlessFontGenerationService.GetPageCountFor (cognitive 18) · ×1
  • HeadlessFontGenerationService.GetPageCountFor (cognitive 18) Tools/Gum.ProjectServices/FontGeneration/HeadlessFontGenerationService.cs:186 — HeadlessFontGenerationService.GetPageCountFor 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 · DisplayReferencesDialog.OnSelectedReferenceChanged (cognitive 18) · ×1
  • DisplayReferencesDialog.OnSelectedReferenceChanged (cognitive 18) Tools/Gum.Presentation/Dialogs/DisplayReferencesDialog.cs:61 — DisplayReferencesDialog.OnSelectedReferenceChanged 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 · NewProjectDialogViewModel.RefreshFolderNotice (cognitive 18) · ×1
  • NewProjectDialogViewModel.RefreshFolderNotice (cognitive 18) Tools/Gum.Presentation/Dialogs/NewProjectDialogViewModel.cs:1272 — NewProjectDialogViewModel.RefreshFolderNotice 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 · InstanceDeletionHelper.DetachChildrenFromInstance (cognitive 18) · ×1
  • InstanceDeletionHelper.DetachChildrenFromInstance (cognitive 18) Tools/Gum.Presentation/Managers/InstanceDeletionHelper.cs:113 — InstanceDeletionHelper.DetachChildrenFromInstance has cognitive 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, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · StateTreeViewModel.SetSelectedState (cognitive 18) · ×1
  • StateTreeViewModel.SetSelectedState (cognitive 18) Tools/Gum.Presentation/Plugins/InternalPlugins/StatePlugin/ViewModels/StateTreeViewModel.cs:335 — StateTreeViewModel.SetSelectedState 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 · PropertyGridManager.RefreshErrors (cognitive 18) · ×1
  • PropertyGridManager.RefreshErrors (cognitive 18) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/PropertyGridManager.cs:759 — PropertyGridManager.RefreshErrors 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 · PropertyGridManager.AdjustFontSourceToggle (cognitive 18) · ×1
  • PropertyGridManager.AdjustFontSourceToggle (cognitive 18) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/PropertyGridManager.cs:1441 — PropertyGridManager.AdjustFontSourceToggle has cognitive complexity 18 (threshold 15). Most of this is not in the body itself: 6 of the 18 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 1486, 1482). 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 · VariableGridEntry.NotifyVariableLogic (cognitive 18) · ×1
  • VariableGridEntry.NotifyVariableLogic (cognitive 18) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/VariableGridEntry.cs:1101 — VariableGridEntry.NotifyVariableLogic 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 · AnimationTabController.CreateViewModel (cognitive 18) · ×1
  • AnimationTabController.CreateViewModel (cognitive 18) Tools/Gum.Presentation/StateAnimationPlugin/AnimationTabController.cs:432 — AnimationTabController.CreateViewModel 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 · SubAnimationSelectionDialogViewModel.GetAnimationsForContainer (cognitive 18) · ×1
  • SubAnimationSelectionDialogViewModel.GetAnimationsForContainer (cognitive 18) Tools/Gum.Presentation/StateAnimationPlugin/ViewModels/SubAnimationSelectionDialogViewModel.cs:72 — SubAnimationSelectionDialogViewModel.GetAnimationsForContainer 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 · WireframeObjectManager.GetTextsRecurisve (cognitive 18) · ×1
  • WireframeObjectManager.GetTextsRecurisve (cognitive 18) Tools/Gum.Presentation/Wireframe/WireframeObjectManager.cs:498 — WireframeObjectManager.GetTextsRecurisve 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 · TextBoxDisplayLogic.ConvertNumberToString (cognitive 18) · ×1
  • TextBoxDisplayLogic.ConvertNumberToString (cognitive 18) DataUi.Core/Controls/TextBoxDisplayLogic.cs:237 — TextBoxDisplayLogic.ConvertNumberToString 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 · DataUiGridModel.SetMultipleCategoryLists (cognitive 18) · ×1
  • DataUiGridModel.SetMultipleCategoryLists (cognitive 18) DataUi.Core/DataUiGridModel.cs:604 — DataUiGridModel.SetMultipleCategoryLists 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 · RuntimeCsvRepresentation.TryCreateNewObjectFromRow (cognitive 18) · ×1
  • RuntimeCsvRepresentation.TryCreateNewObjectFromRow (cognitive 18) Gum/CsvLibrary/RuntimeCsvRepresentation.cs:1088 — RuntimeCsvRepresentation.TryCreateNewObjectFromRow 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 · DataUiDisplayBase.SetHintHost (cognitive 18) · ×1
  • DataUiDisplayBase.SetHintHost (cognitive 18) AvaloniaDataUi/Controls/DataUiDisplayBase.cs:424 — DataUiDisplayBase.SetHintHost 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 · top-level statements (cognitive 18) · ×1
  • top-level statements (cognitive 18) Samples/BrutalGum/BrutalGumSampleOgl/Program.cs:20 — top-level statements 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 · Renderer.DrawGumRecursively (cognitive 18) · ×1
  • Renderer.DrawGumRecursively (cognitive 18) Runtimes/SokolGum/Renderer.cs:288 — Renderer.DrawGumRecursively 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 · FontReferenceCollector.StateMayChangeNestedFonts (cognitive 17) · ×1
  • FontReferenceCollector.StateMayChangeNestedFonts (cognitive 17) GumCommon/Bundle/FontReferenceCollector.cs:179 — FontReferenceCollector.StateMayChangeNestedFonts has cognitive complexity 17 (threshold 15). Of this number, 15 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 · GumBundleLoader.Resolve (cognitive 17) · ×1
  • GumBundleLoader.Resolve (cognitive 17) GumCommon/Bundle/GumBundleLoader.cs:31 — GumBundleLoader.Resolve 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.
D2 · Cognitive Complexity · PropertyPathObserver.OnSegmentChanged (cognitive 17) · ×1
  • PropertyPathObserver.OnSegmentChanged (cognitive 17) GumCommon/Mvvm/PropertyPathObserver.cs:167 — PropertyPathObserver.OnSegmentChanged 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 · ReferenceDependencies.GetElementsRead (cognitive 17) · ×1
  • ReferenceDependencies.GetElementsRead (cognitive 17) GumCommon/Runtime/ReferenceDependencies.cs:67 — ReferenceDependencies.GetElementsRead 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 · RuntimeSnapshotSerializer.CreateStateForType (cognitive 17) · ×1
  • RuntimeSnapshotSerializer.CreateStateForType (cognitive 17) GumCommon/Wireframe/RuntimeSnapshotSerializer.cs:206 — RuntimeSnapshotSerializer.CreateStateForType 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 · ObjectFinder.GetElementContainerOf (cognitive 17) · ×1
  • ObjectFinder.GetElementContainerOf (cognitive 17) Gum/Managers/ObjectFinder.cs:1530 — ObjectFinder.GetElementContainerOf 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 · ObjectFinder.IsVariableOrphaned (cognitive 17) · ×1
  • ObjectFinder.IsVariableOrphaned (cognitive 17) Gum/Managers/ObjectFinder.cs:1591 — ObjectFinder.IsVariableOrphaned 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 · FileManager.GetAllFilesInDirectory (cognitive 17) · ×1
  • FileManager.GetAllFilesInDirectory (cognitive 17) REDACTED:1337 — FileManager.GetAllFilesInDirectory 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 · GraphicalUiElement.SetBinding (cognitive 17) · ×1
  • GraphicalUiElement.SetBinding (cognitive 17) GumRuntime/GraphicalUiElement.Binding.cs:412 — GraphicalUiElement.SetBinding 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 · GraphicalUiElement.PushValueToViewModel (cognitive 17) · ×1
  • GraphicalUiElement.PushValueToViewModel (cognitive 17) GumRuntime/GraphicalUiElement.Binding.cs:697 — GraphicalUiElement.PushValueToViewModel 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 · GraphicalUiElement.Parent.set (cognitive 17) · ×1
  • GraphicalUiElement.Parent.set (cognitive 17) GumRuntime/GraphicalUiElement.Properties.cs:482 — GraphicalUiElement.Parent.set 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 · GraphicalUiElement.TrySetPropertyThroughReflection (cognitive 17) · ×1
  • GraphicalUiElement.TrySetPropertyThroughReflection (cognitive 17) GumRuntime/GraphicalUiElement.SetValuesAndStates.cs:143 — GraphicalUiElement.TrySetPropertyThroughReflection 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 · GraphicalUiElement.FlushPendingReferenceChanges (cognitive 17) · ×1
  • GraphicalUiElement.FlushPendingReferenceChanges (cognitive 17) GumRuntime/GraphicalUiElement.SetValuesAndStates.cs:1077 — GraphicalUiElement.FlushPendingReferenceChanges 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 · RecursiveVariableFinder.GetValueByBottomName (cognitive 17) · ×1
  • RecursiveVariableFinder.GetValueByBottomName (cognitive 17) Gum/DataTypes/RecursiveVariableFinder.cs:350 — RecursiveVariableFinder.GetValueByBottomName 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 · FrameworkElement.HandleKeyboardDirectionalNavigation (cognitive 17) · ×1
  • FrameworkElement.HandleKeyboardDirectionalNavigation (cognitive 17) MonoGameGum/Forms/Controls/FrameworkElement.cs:2455 — FrameworkElement.HandleKeyboardDirectionalNavigation 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 · ItemsControl.HandleInnerPanelCollectionChanged (cognitive 17) · ×1
  • ItemsControl.HandleInnerPanelCollectionChanged (cognitive 17) MonoGameGum/Forms/Controls/ItemsControl.cs:573 — ItemsControl.HandleInnerPanelCollectionChanged has cognitive complexity 17 (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 · ItemsControl.ReconcileDecorations (cognitive 17) · ×1
  • ItemsControl.ReconcileDecorations (cognitive 17) MonoGameGum/Forms/Controls/ItemsControl.cs:852 — ItemsControl.ReconcileDecorations 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 · ScrollViewer.RecomputeStickyHeaders (cognitive 17) · ×1
  • ScrollViewer.RecomputeStickyHeaders (cognitive 17) MonoGameGum/Forms/Controls/ScrollViewer.cs:1156 — ScrollViewer.RecomputeStickyHeaders 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 · FormsUtilities.HandleRootCollectionChanged (cognitive 17) · ×1
  • FormsUtilities.HandleRootCollectionChanged (cognitive 17) MonoGameGum/Forms/FormsUtilities.cs:250 — FormsUtilities.HandleRootCollectionChanged 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 · BatchKeyGroupedOrderer.PickGreedyOrder (cognitive 17) · ×1
  • BatchKeyGroupedOrderer.PickGreedyOrder (cognitive 17) RenderingLibrary/Graphics/BatchKeyGroupedOrderer.cs:1100 — BatchKeyGroupedOrderer.PickGreedyOrder 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 · Text.RenderCharacterByCharacter (cognitive 17) · ×1
  • Text.RenderCharacterByCharacter (cognitive 17) RenderingLibrary/Graphics/Text.cs:1396 — Text.RenderCharacterByCharacter 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 · SyntaxVersionDetectionService.ResolveFloatingVersion (cognitive 17) · ×1
  • SyntaxVersionDetectionService.ResolveFloatingVersion (cognitive 17) Tools/Gum.ProjectServices/CodeGeneration/SyntaxVersionDetectionService.cs:413 — SyntaxVersionDetectionService.ResolveFloatingVersion 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 · HeadlessErrorChecker.CheckLocalReferenceConflicts (cognitive 17) · ×1
  • HeadlessErrorChecker.CheckLocalReferenceConflicts (cognitive 17) Tools/Gum.ProjectServices/HeadlessErrorChecker.cs:230 — HeadlessErrorChecker.CheckLocalReferenceConflicts 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 · StateSaveExtensionMethodsGumTool.ReactToInstanceNameChange (cognitive 17) · ×1
  • StateSaveExtensionMethodsGumTool.ReactToInstanceNameChange (cognitive 17) Tools/Gum.Presentation/DataTypes/StateSaveExtensionMethodsGumTool.cs:13 — StateSaveExtensionMethodsGumTool.ReactToInstanceNameChange 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 · CopyPasteLogic.MoveCutElement (cognitive 17) · ×1
  • CopyPasteLogic.MoveCutElement (cognitive 17) Tools/Gum.Presentation/Logic/CopyPasteLogic.cs:1343 — CopyPasteLogic.MoveCutElement 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 · InheritanceLogic.HandleElementBaseType (cognitive 17) · ×1
  • InheritanceLogic.HandleElementBaseType (cognitive 17) Tools/Gum.Presentation/Logic/InheritanceLogic.cs:142 — InheritanceLogic.HandleElementBaseType 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 · RenameLogic.AskToRenameStateCategory (cognitive 17) · ×1
  • RenameLogic.AskToRenameStateCategory (cognitive 17) Tools/Gum.Presentation/Logic/RenameLogic.cs:141 — RenameLogic.AskToRenameStateCategory has cognitive complexity 17 (threshold 15). Of this number, 13 points are the body's own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · RenameLogic.ApplyCategoryReferences (cognitive 17) · ×1
  • RenameLogic.ApplyCategoryReferences (cognitive 17) Tools/Gum.Presentation/Logic/RenameLogic.cs:203 — RenameLogic.ApplyCategoryReferences 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 · DeleteLogic.DeleteFolders (cognitive 17) · ×1
  • DeleteLogic.DeleteFolders (cognitive 17) Tools/Gum.Presentation/Managers/DeleteLogic.cs:1062 — DeleteLogic.DeleteFolders 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 · DragDropManager.HandleDroppingInstanceOnTarget (cognitive 17) · ×1
  • DragDropManager.HandleDroppingInstanceOnTarget (cognitive 17) Tools/Gum.Presentation/Managers/DragDropManager.cs:411 — DragDropManager.HandleDroppingInstanceOnTarget 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 · NameVerifier.IsVariableNameValid (cognitive 17) · ×1
  • NameVerifier.IsVariableNameValid (cognitive 17) Tools/Gum.Presentation/Managers/NameVerifier.cs:217 — NameVerifier.IsVariableNameValid 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 · MenuModel.ApplyLayout (cognitive 17) · ×1
  • MenuModel.ApplyLayout (cognitive 17) Tools/Gum.Presentation/Menus/MenuModel.cs:96 — MenuModel.ApplyLayout 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 · MoveInputHandler.ApplyCursorMovement (cognitive 17) · ×1
  • MoveInputHandler.ApplyCursorMovement (cognitive 17) Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/MoveInputHandler.cs:104 — MoveInputHandler.ApplyCursorMovement 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 · ResizeInputHandler.AdjustCursorChangeValuesForAxisLockedDrag (cognitive 17) · ×1
  • ResizeInputHandler.AdjustCursorChangeValuesForAxisLockedDrag (cognitive 17) Tools/Gum.Presentation/Plugins/InternalPlugins/EditorTab/Editors/Handlers/ResizeInputHandler.cs:874 — ResizeInputHandler.AdjustCursorChangeValuesForAxisLockedDrag has cognitive complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · MainParentPlugin.HandleVariableSet (cognitive 17) · ×1
  • MainParentPlugin.HandleVariableSet (cognitive 17) Tools/Gum.Presentation/Plugins/InternalPlugins/ParentPlugin/MainParentPlugin.cs:26 — MainParentPlugin.HandleVariableSet 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 · ProjectPropertiesGridPresenter.ApplyLayout (cognitive 17) · ×1
  • ProjectPropertiesGridPresenter.ApplyLayout (cognitive 17) Tools/Gum.Presentation/Plugins/InternalPlugins/ProjectPropertiesWindowPlugin/ProjectPropertiesGridPresenter.cs:78 — ProjectPropertiesGridPresenter.ApplyLayout 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 · StateTreeViewModel.AddMissingItems (cognitive 17) · ×1
  • StateTreeViewModel.AddMissingItems (cognitive 17) Tools/Gum.Presentation/Plugins/InternalPlugins/StatePlugin/ViewModels/StateTreeViewModel.cs:207 — StateTreeViewModel.AddMissingItems 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 · BehaviorToolOnlyReferencesApplier.ApplyBehaviorsOf (cognitive 17) · ×1
  • BehaviorToolOnlyReferencesApplier.ApplyBehaviorsOf (cognitive 17) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/BehaviorToolOnlyReferencesApplier.cs:447 — BehaviorToolOnlyReferencesApplier.ApplyBehaviorsOf 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 · GumCoreServiceCollectionExtensions.AddViewModelFuncFactories (cognitive 17) · ×1
  • GumCoreServiceCollectionExtensions.AddViewModelFuncFactories (cognitive 17) Tools/Gum.Presentation/Services/GumCoreServiceCollectionExtensions.cs:315 — GumCoreServiceCollectionExtensions.AddViewModelFuncFactories 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 · ElementUndoStrategy.TryRecord (cognitive 17) · ×1
  • ElementUndoStrategy.TryRecord (cognitive 17) Tools/Gum.Presentation/Undo/ElementUndoStrategy.cs:234 — ElementUndoStrategy.TryRecord 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 · ElementUndoStrategy.CarryOverTo (cognitive 17) · ×1
  • ElementUndoStrategy.CarryOverTo (cognitive 17) Tools/Gum.Presentation/Undo/ElementUndoStrategy.cs:1338 — ElementUndoStrategy.CarryOverTo 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 · SelectionManager.UpdateEditorsToSelection (cognitive 17) · ×1
  • SelectionManager.UpdateEditorsToSelection (cognitive 17) Tools/Gum.Presentation/Wireframe/SelectionManager.cs:764 — SelectionManager.UpdateEditorsToSelection 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 · WireframeObjectManager.SetUpParentRelationship (cognitive 17) · ×1
  • WireframeObjectManager.SetUpParentRelationship (cognitive 17) Tools/Gum.Presentation/Wireframe/WireframeObjectManager.RepresentationCreation.cs:87 — WireframeObjectManager.SetUpParentRelationship 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 · ElementTreeViewManager.RefreshUi (cognitive 17) · ×1
  • ElementTreeViewManager.RefreshUi (cognitive 17) Tool/TreeViewPlugin.Core/ElementTreeViewManager.cs:1665 — ElementTreeViewManager.RefreshUi 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 · EditorTabPluginBase.HandleWireframeFileDrop (cognitive 17) · ×1
  • EditorTabPluginBase.HandleWireframeFileDrop (cognitive 17) Tool/EditorTabPlugin.Core/EditorTabPluginBase.cs:1192 — EditorTabPluginBase.HandleWireframeFileDrop 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 · TextureRegionOverlayManager.Refresh (cognitive 17) · ×1
  • TextureRegionOverlayManager.Refresh (cognitive 17) Tool/TextureCoordinatePlugin.Core/Logic/TextureRegionOverlayManager.cs:146 — TextureRegionOverlayManager.Refresh 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 · RectangleSelector.GetSideOver (cognitive 17) · ×1
  • RectangleSelector.GetSideOver (cognitive 17) Tool/TextureCoordinatePlugin.Core/RegionSelection/RectangleSelector.cs:931 — RectangleSelector.GetSideOver 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 · PropertyValuePair.CreateInstanceFromNamedAssignment (cognitive 17) · ×1
  • PropertyValuePair.CreateInstanceFromNamedAssignment (cognitive 17) Gum/CsvLibrary/Reflection/PropertyValuePair.cs:767 — PropertyValuePair.CreateInstanceFromNamedAssignment 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 · RuntimeCsvRepresentation.BuildMemberTypeIndexInformation (cognitive 17) · ×1
  • RuntimeCsvRepresentation.BuildMemberTypeIndexInformation (cognitive 17) Gum/CsvLibrary/RuntimeCsvRepresentation.cs:1404 — RuntimeCsvRepresentation.BuildMemberTypeIndexInformation 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 · ListBoxDisplay.ListBox_KeyDown (cognitive 17) · ×1
  • ListBoxDisplay.ListBox_KeyDown (cognitive 17) WpfDataUi/Controls/ListBoxDisplay.xaml.cs:163 — ListBoxDisplay.ListBox_KeyDown 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 · RenderableSvg.GetSkSvg (cognitive 17) · ×1
  • RenderableSvg.GetSkSvg (cognitive 17) Gum/SvgPlugin/SkiaInGumShared/Renderables/RenderableSvg.cs:91 — RenderableSvg.GetSkSvg 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 · bookmark_fidelity_batch.render_meta_html (cognitive 17) · ×1
  • bookmark_fidelity_batch.render_meta_html (cognitive 17) REDACTED:213 — bookmark_fidelity_batch.render_meta_html has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), ternaries 4 (6 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · bookmark_fidelity_batch.run_one (cognitive 17) · ×1
  • bookmark_fidelity_batch.run_one (cognitive 17) REDACTED:289 — bookmark_fidelity_batch.run_one has cognitive complexity 17 (threshold 15). Drivers by points: error handling 5 (8 pts), if/else 4 (5 pts), boolean chains 3, 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 · bookmark_fidelity_batch.main (cognitive 17) · ×1
  • bookmark_fidelity_batch.main (cognitive 17) REDACTED:348 — bookmark_fidelity_batch.main has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GumProjectDependencyWalker.Walk (cognitive 16) · ×1
  • GumProjectDependencyWalker.Walk (cognitive 16) GumCommon/Bundle/GumProjectDependencyWalker.cs:74 — GumProjectDependencyWalker.Walk has cognitive complexity 16 (threshold 15). Of this number, 15 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 · GraphicalUiElementCollection.ClearItems (cognitive 16) · ×1
  • GraphicalUiElementCollection.ClearItems (cognitive 16) GumCommon/Collections/GraphicalUiElementCollection.cs:365 — GraphicalUiElementCollection.ClearItems 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 · PropertyPathObserver.Attach (cognitive 16) · ×1
  • PropertyPathObserver.Attach (cognitive 16) GumCommon/Mvvm/PropertyPathObserver.cs:75 — PropertyPathObserver.Attach 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 · AnimationRuntime.RefreshCumulativeStatesForStateKeyframes (cognitive 16) · ×1
  • AnimationRuntime.RefreshCumulativeStatesForStateKeyframes (cognitive 16) GumCommon/Runtime/AnimationRuntime.cs:123 — AnimationRuntime.RefreshCumulativeStatesForStateKeyframes 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 · UnitConverter.ConvertToPixelCoordinates (cognitive 16) · ×1
  • UnitConverter.ConvertToPixelCoordinates (cognitive 16) GumDataTypes/UnitConverter.cs:160 — UnitConverter.ConvertToPixelCoordinates 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 · ObjectFinder.EnableCache (cognitive 16) · ×1
  • ObjectFinder.EnableCache (cognitive 16) Gum/Managers/ObjectFinder.cs:195 — ObjectFinder.EnableCache 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 · ObjectFinder.GetStandardElement (cognitive 16) · ×1
  • ObjectFinder.GetStandardElement (cognitive 16) Gum/Managers/ObjectFinder.cs:364 — ObjectFinder.GetStandardElement 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 · ObjectFinder.GetContainerOf (cognitive 16) · ×1
  • ObjectFinder.GetContainerOf (cognitive 16) Gum/Managers/ObjectFinder.cs:616 — ObjectFinder.GetContainerOf 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 · ObjectFinder.GetRootVariable (cognitive 16) · ×1
  • ObjectFinder.GetRootVariable (cognitive 16) Gum/Managers/ObjectFinder.cs:1475 — ObjectFinder.GetRootVariable has cognitive complexity 16 (threshold 15). Of this number, 15 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 · ShaderParameterText.TryParseValue (cognitive 16) · ×1
  • ShaderParameterText.TryParseValue (cognitive 16) RenderingLibrary/Graphics/ShaderParameterText.cs:127 — ShaderParameterText.TryParseValue 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 · GraphicalUiElement.GetDock (cognitive 16) · ×1
  • GraphicalUiElement.GetDock (cognitive 16) GumRuntime/GraphicalUiElement.DockAndAnchor.cs:205 — GraphicalUiElement.GetDock 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 · GraphicalUiElement.X.set (cognitive 16) · ×1
  • GraphicalUiElement.X.set (cognitive 16) GumRuntime/GraphicalUiElement.LayoutProperties.cs:329 — GraphicalUiElement.X.set 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 · StateSaveExtensionMethods.Merge (cognitive 16) · ×1
  • StateSaveExtensionMethods.Merge (cognitive 16) Gum/DataTypes/StateSaveExtensionMethods.cs:1094 — StateSaveExtensionMethods.Merge 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 · ItemsControl.HandleItemsCollectionChanged (cognitive 16) · ×1
  • ItemsControl.HandleItemsCollectionChanged (cognitive 16) MonoGameGum/Forms/Controls/ItemsControl.cs:935 — ItemsControl.HandleItemsCollectionChanged has cognitive complexity 16 (threshold 15). Of this number, 11 points are the body's own statements and 5 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ListBox.ScrollIndexIntoView (cognitive 16) · ×1
  • ListBox.ScrollIndexIntoView (cognitive 16) MonoGameGum/Forms/Controls/ListBox.cs:1618 — ListBox.ScrollIndexIntoView 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 · ScrollBar.UpdateThumbPositionToCursorDrag (cognitive 16) · ×1
  • ScrollBar.UpdateThumbPositionToCursorDrag (cognitive 16) MonoGameGum/Forms/Controls/ScrollBar.cs:469 — ScrollBar.UpdateThumbPositionToCursorDrag 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 · TextBoxBase.UpdateSelectionStartEnds (cognitive 16) · ×1
  • TextBoxBase.UpdateSelectionStartEnds (cognitive 16) MonoGameGum/Forms/Controls/TextBoxBase.cs:2220 — TextBoxBase.UpdateSelectionStartEnds 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 · BehaviorFormsPropertyApplier.EnumerateFormsPropertyDeclarations (cognitive 16) · ×1
  • BehaviorFormsPropertyApplier.EnumerateFormsPropertyDeclarations (cognitive 16) MonoGameGum/Forms/BehaviorFormsPropertyApplier.cs:380 — BehaviorFormsPropertyApplier.EnumerateFormsPropertyDeclarations 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 · CustomSetPropertyOnRenderable.TrySetPropertyOnLinePolygon (cognitive 16) · ×1
  • CustomSetPropertyOnRenderable.TrySetPropertyOnLinePolygon (cognitive 16) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:3329 — CustomSetPropertyOnRenderable.TrySetPropertyOnLinePolygon 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 · BitmapFont.SetFontPattern (cognitive 16) · ×1
  • BitmapFont.SetFontPattern (cognitive 16) RenderingLibrary/Graphics/Fonts/BitmapFont.cs:531 — BitmapFont.SetFontPattern 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 · Text.FitRunsToLines (cognitive 16) · ×1
  • Text.FitRunsToLines (cognitive 16) Runtimes/SkiaGum/Renderables/Text.cs:2829 — Text.FitRunsToLines 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 · Sprite.Render (cognitive 16) · ×1
  • Sprite.Render (cognitive 16) Runtimes/RaylibGum/Renderables/Sprite.cs:174 — Sprite.Render 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 · Text.ResolveRunFont (cognitive 16) · ×1
  • Text.ResolveRunFont (cognitive 16) Runtimes/RaylibGum/Renderables/Text.cs:1546 — Text.ResolveRunFont 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 · CodeGenerator.GetExposedShaderVectors (cognitive 16) · ×1
  • CodeGenerator.GetExposedShaderVectors (cognitive 16) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:1219 — CodeGenerator.GetExposedShaderVectors has cognitive complexity 16 (threshold 15). Of this number, 14 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CodeGenerator.DoInitialSizeUpdates (cognitive 16) · ×1
  • CodeGenerator.DoInitialSizeUpdates (cognitive 16) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:4259 — CodeGenerator.DoInitialSizeUpdates 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 · CodeGenerator.ProcessVariableGroups (cognitive 16) · ×1
  • CodeGenerator.ProcessVariableGroups (cognitive 16) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:6296 — CodeGenerator.ProcessVariableGroups 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 · CodeGenerator.GetGumVariableName (cognitive 16) · ×1
  • CodeGenerator.GetGumVariableName (cognitive 16) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:6605 — CodeGenerator.GetGumVariableName 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 · CodeGenerator.FillWithFormsPropertyAssignments (cognitive 16) · ×1
  • CodeGenerator.FillWithFormsPropertyAssignments (cognitive 16) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:6834 — CodeGenerator.FillWithFormsPropertyAssignments has cognitive complexity 16 (threshold 15). Of this number, 15 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 · DiffStandardsService.DiffProjects (cognitive 16) · ×1
  • DiffStandardsService.DiffProjects (cognitive 16) Tools/Gum.ProjectServices/DiffStandardsService.cs:51 — DiffStandardsService.DiffProjects 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 · HeadlessErrorChecker.FindUnresolvableReference (cognitive 16) · ×1
  • HeadlessErrorChecker.FindUnresolvableReference (cognitive 16) Tools/Gum.ProjectServices/HeadlessErrorChecker.cs:627 — HeadlessErrorChecker.FindUnresolvableReference has cognitive complexity 16 (threshold 15). Of this number, 10 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 · HeadlessErrorChecker.GetSelfReferentialCategoryStateErrorsFor (cognitive 16) · ×1
  • HeadlessErrorChecker.GetSelfReferentialCategoryStateErrorsFor (cognitive 16) Tools/Gum.ProjectServices/HeadlessErrorChecker.cs:898 — HeadlessErrorChecker.GetSelfReferentialCategoryStateErrorsFor 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 · HeadlessErrorChecker.GetParentCycleErrorsFor (cognitive 16) · ×1
  • HeadlessErrorChecker.GetParentCycleErrorsFor (cognitive 16) Tools/Gum.ProjectServices/HeadlessErrorChecker.HandWrittenFiles.cs:205 — HeadlessErrorChecker.GetParentCycleErrorsFor 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 · MovedInstanceReferenceDropper.GetLinesReadingOutside (cognitive 16) · ×1
  • MovedInstanceReferenceDropper.GetLinesReadingOutside (cognitive 16) Tools/Gum.Presentation/Logic/MovedInstanceReferenceDropper.cs:211 — MovedInstanceReferenceDropper.GetLinesReadingOutside 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 · ReferenceFinder.GetReferencesToState (cognitive 16) · ×1
  • ReferenceFinder.GetReferencesToState (cognitive 16) Tools/Gum.Presentation/Logic/ReferenceFinder.cs:307 — ReferenceFinder.GetReferencesToState 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 · VariableChangeResponse.GetChangesDetails (cognitive 16) · ×1
  • VariableChangeResponse.GetChangesDetails (cognitive 16) Tools/Gum.Presentation/Logic/RenameChangeTypes.cs:69 — VariableChangeResponse.GetChangesDetails 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 · PluginBase.SetAddedUiSuspended (cognitive 16) · ×1
  • PluginBase.SetAddedUiSuspended (cognitive 16) Tools/Gum.Presentation/Plugins/BaseClasses/PluginBase.cs:100 — PluginBase.SetAddedUiSuspended 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 · ImportLogic.ImportBehavior (cognitive 16) · ×1
  • ImportLogic.ImportBehavior (cognitive 16) Tools/Gum.Presentation/Plugins/ImportPlugin/Manager/ImportLogic.cs:197 — ImportLogic.ImportBehavior 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 · MainDuplicateVariablePlugin.HandleElementSelected (cognitive 16) · ×1
  • MainDuplicateVariablePlugin.HandleElementSelected (cognitive 16) Tools/Gum.Presentation/Plugins/InternalPlugins/DuplicateVariablePlugin/MainDuplicateVariablePlugin.cs:19 — MainDuplicateVariablePlugin.HandleElementSelected 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 · BehaviorToolOnlyReferencesApplier.GetInstanceValuesToReassert (cognitive 16) · ×1
  • BehaviorToolOnlyReferencesApplier.GetInstanceValuesToReassert (cognitive 16) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/BehaviorToolOnlyReferencesApplier.cs:103 — BehaviorToolOnlyReferencesApplier.GetInstanceValuesToReassert has cognitive complexity 16 (threshold 15). Of this number, 15 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 · PropertyGridManager.ReconcileCategories (cognitive 16) · ×1
  • PropertyGridManager.ReconcileCategories (cognitive 16) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/PropertyGridManager.cs:804 — PropertyGridManager.ReconcileCategories 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 · AnimationTabController.HandleVariableSet (cognitive 16) · ×1
  • AnimationTabController.HandleVariableSet (cognitive 16) Tools/Gum.Presentation/StateAnimationPlugin/AnimationTabController.cs:191 — AnimationTabController.HandleVariableSet 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 · SelectedState.HandleSelectedInstances (cognitive 16) · ×1
  • SelectedState.HandleSelectedInstances (cognitive 16) Tools/Gum.Presentation/ToolStates/SelectedState.cs:384 — SelectedState.HandleSelectedInstances 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 · SelectedStateReferenceMerger.GetVariablesSetBy (cognitive 16) · ×1
  • SelectedStateReferenceMerger.GetVariablesSetBy (cognitive 16) Tools/Gum.Presentation/Wireframe/SelectedStateReferenceMerger.cs:142 — SelectedStateReferenceMerger.GetVariablesSetBy 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 · ElementTreeViewManager.ProcessDrop (cognitive 16) · ×1
  • ElementTreeViewManager.ProcessDrop (cognitive 16) Tool/TreeViewPlugin.Core/ElementTreeViewManager.cs:660 — ElementTreeViewManager.ProcessDrop 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 · TreeNodeFilePathExtensions.GetTreeNodeFullFilePath (cognitive 16) · ×1
  • TreeNodeFilePathExtensions.GetTreeNodeFullFilePath (cognitive 16) Tool/TreeViewPlugin.Core/TreeNodeFilePathExtensions.cs:22 — TreeNodeFilePathExtensions.GetTreeNodeFullFilePath 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 · RuntimeCsvRepresentation.Format (cognitive 16) · ×1
  • RuntimeCsvRepresentation.Format (cognitive 16) Gum/CsvLibrary/RuntimeCsvRepresentation.cs:703 — RuntimeCsvRepresentation.Format 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 · AvaloniaTabManager.Sync (cognitive 16) · ×1
  • AvaloniaTabManager.Sync (cognitive 16) Tool/Gum.Avalonia/Shell/AvaloniaTabManager.cs:213 — AvaloniaTabManager.Sync 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 · RowProjection.Build (cognitive 16) · ×1
  • RowProjection.Build (cognitive 16) AvaloniaDataUi/RowProjection.cs:39 — RowProjection.Build 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 · fonts.collectUsedFaces (cognitive 16) · ×1
  • fonts.collectUsedFaces (cognitive 16) Tool/HtmlToGum/converter/fonts.ts:267 — fonts.collectUsedFaces has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 5, loops 1 (nesting depth added 6). None of this is in the body itself: all 16 points belong to one function literal inside it that branches (line 269). 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 · fonts.extFor (cognitive 16) · ×1
  • fonts.extFor (cognitive 16) Tool/HtmlToGum/converter/fonts.ts:305 — fonts.extFor has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 6, ternaries 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · fonts.repairEmptyCustomFonts (cognitive 16) · ×1
  • fonts.repairEmptyCustomFonts (cognitive 16) Tool/HtmlToGum/converter/fonts.ts:485 — fonts.repairEmptyCustomFonts has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 2, loops 2, ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · canaries.collectEntries (cognitive 16) · ×1
  • canaries.collectEntries (cognitive 16) Tool/HtmlToGum/fidelity/canaries.ts:190 — canaries.collectEntries has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, loops 3 (6 pts), if/else 4 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
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
D4 · Code Duplication · Near-duplicate member family (8 members, 58 shared lines) · ×1
  • Near-duplicate member family (8 members, 58 shared lines) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:160 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:160-251 | Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs:161-252 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTheme.cs:180-271 | Themes/Gum.Themes.Hazard.MonoGame/HazardTheme.cs:169-260 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTheme.cs:191-282 | Themes/Gum.Themes.Neon.MonoGame/NeonTheme.cs:186-275 | Themes/Gum.Themes.Retro95.MonoGame/Retro95Theme.cs:152-246 | Themes/Gum.Themes.Template.MonoGame/TemplateTheme.cs:196-295 — These 8 members are variants of one another: a block of 58 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 8 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 8 times.
D4 · Code Duplication · Near-duplicate member family (8 members, 27 shared lines) · ×1
  • Near-duplicate member family (8 members, 27 shared lines) Themes/Gum.Themes.Bubblegum.MonoGame/WindowVisual.cs:53 — Themes/Gum.Themes.Bubblegum.MonoGame/WindowVisual.cs:53-105 | Themes/Gum.Themes.DarkPro.MonoGame/WindowVisual.cs:40-92 | Themes/Gum.Themes.ForestGlade.MonoGame/WindowVisual.cs:36-74 | Themes/Gum.Themes.Hazard.MonoGame/WindowVisual.cs:33-85 | Themes/Gum.Themes.Meadow.MonoGame/WindowVisual.cs:54-90 | Themes/Gum.Themes.Neon.MonoGame/WindowVisual.cs:51-87 | Themes/Gum.Themes.Retro95.MonoGame/WindowVisual.cs:33-71 | Themes/Gum.Themes.Template.MonoGame/WindowVisual.cs:33-85 — These 8 members are variants of one another: a block of 27 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 8 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 8 times.
D4 · Code Duplication · Members sharing a duplicated core (102 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (102 members, 50+ identical tokens) Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs:68 — Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs:68-86 | Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs:89-108 | Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs:85-103 | Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs:106-125 | Themes/Gum.Themes.DarkPro.MonoGame/DarkProTextInputDecoration.cs:62-80 | Themes/Gum.Themes.DarkPro.MonoGame/DarkProTextInputDecoration.cs:83-102 | Themes/Gum.Themes.DarkPro.MonoGame/ListBoxItemVisual.cs:53-71 | Themes/Gum.Themes.DarkPro.MonoGame/ListBoxVisual.cs:69-87 | Themes/Gum.Themes.DarkPro.MonoGame/ListBoxVisual.cs:90-109 | Themes/Gum.Themes.DarkPro.MonoGame/MenuItemVisual.cs:106-123 | Themes/Gum.Themes.DarkPro.MonoGame/MenuVisual.cs:46-63 | Themes/Gum.Themes.DarkPro.MonoGame/ScrollBarThumbVisual.cs:53-71 | Themes/Gum.Themes.DarkPro.MonoGame/ScrollBarVisual.cs:193-211 | Themes/Gum.Themes.DarkPro.MonoGame/ScrollBarVisual.cs:214-233 | Themes/Gum.Themes.DarkPro.MonoGame/ScrollViewerVisual.cs:67-85 | Themes/Gum.Themes.DarkPro.MonoGame/ScrollViewerVisual.cs:88-107 | Themes/Gum.Themes.DarkPro.MonoGame/SliderThumbVisual.cs:55-72 | Themes/Gum.Themes.DarkPro.MonoGame/SplitterVisual.cs:34-51 | Themes/Gum.Themes.DarkPro.MonoGame/ToggleButtonVisual.cs:66-84 | Themes/Gum.Themes.DarkPro.MonoGame/ToggleButtonVisual.cs:87-106 | Themes/Gum.Themes.DarkPro.MonoGame/TooltipVisual.cs:43-61 | Themes/Gum.Themes.DarkPro.MonoGame/TooltipVisual.cs:64-83 | Themes/Gum.Themes.DarkPro.MonoGame/WindowVisual.cs:95-113 | Themes/Gum.Themes.DarkPro.MonoGame/WindowVisual.cs:116-135 | Themes/Gum.Themes.DarkPro.MonoGame/WindowVisual.cs:138-155 | Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:70-99 | Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:102-119 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeButtonChrome.cs:80-117 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeButtonChrome.cs:120-137 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs:61-91 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs:94-111 | Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxItemVisual.cs:54-84 | Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs:93-109 | Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs:112-129 | Themes/Gum.Themes.ForestGlade.MonoGame/MenuItemVisual.cs:85-100 | Themes/Gum.Themes.ForestGlade.MonoGame/MenuVisual.cs:50-65 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollBarThumbVisual.cs:45-74 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollBarVisual.cs:141-157 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollBarVisual.cs:160-177 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollViewerVisual.cs:87-103 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollViewerVisual.cs:106-123 | Themes/Gum.Themes.ForestGlade.MonoGame/SliderThumbVisual.cs:56-98 | Themes/Gum.Themes.ForestGlade.MonoGame/SplitterVisual.cs:30-45 | Themes/Gum.Themes.ForestGlade.MonoGame/TooltipVisual.cs:45-61 | Themes/Gum.Themes.ForestGlade.MonoGame/TooltipVisual.cs:64-81 | Themes/Gum.Themes.ForestGlade.MonoGame/WindowVisual.cs:77-98 | Themes/Gum.Themes.ForestGlade.MonoGame/WindowVisual.cs:101-118 | Themes/Gum.Themes.ForestGlade.MonoGame/WindowVisual.cs:121-152 | Themes/Gum.Themes.Meadow.MonoGame/ButtonVisual.cs:72-96 | Themes/Gum.Themes.Meadow.MonoGame/ComboBoxVisual.cs:75-93 | Themes/Gum.Themes.Meadow.MonoGame/ComboBoxVisual.cs:96-115 | Themes/Gum.Themes.Meadow.MonoGame/ListBoxVisual.cs:60-78 | Themes/Gum.Themes.Meadow.MonoGame/ListBoxVisual.cs:81-102 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTextInputDecoration.cs:65-83 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTextInputDecoration.cs:86-105 | Themes/Gum.Themes.Meadow.MonoGame/MenuItemVisual.cs:87-105 | Themes/Gum.Themes.Meadow.MonoGame/MenuVisual.cs:42-59 | Themes/Gum.Themes.Meadow.MonoGame/ScrollBarThumbVisual.cs:47-65 | Themes/Gum.Themes.Meadow.MonoGame/ScrollBarVisual.cs:143-161 | Themes/Gum.Themes.Meadow.MonoGame/ScrollBarVisual.cs:164-183 | Themes/Gum.Themes.Meadow.MonoGame/ScrollViewerVisual.cs:52-70 | Themes/Gum.Themes.Meadow.MonoGame/ScrollViewerVisual.cs:73-94 | Themes/Gum.Themes.Meadow.MonoGame/SliderThumbVisual.cs:59-81 | Themes/Gum.Themes.Meadow.MonoGame/SplitterVisual.cs:28-46 | Themes/Gum.Themes.Meadow.MonoGame/ToggleButtonVisual.cs:67-90 | Themes/Gum.Themes.Meadow.MonoGame/ToggleButtonVisual.cs:93-112 | Themes/Gum.Themes.Meadow.MonoGame/TooltipVisual.cs:40-58 | Themes/Gum.Themes.Meadow.MonoGame/TooltipVisual.cs:61-80 | Themes/Gum.Themes.Meadow.MonoGame/WindowVisual.cs:93-117 | Themes/Gum.Themes.Meadow.MonoGame/WindowVisual.cs:120-139 | Themes/Gum.Themes.Meadow.MonoGame/WindowVisual.cs:142-160 | Themes/Gum.Themes.Neon.MonoGame/ButtonVisual.cs:86-107 | Themes/Gum.Themes.Neon.MonoGame/ButtonVisual.cs:110-127 | Themes/Gum.Themes.Neon.MonoGame/ComboBoxVisual.cs:74-92 | Themes/Gum.Themes.Neon.MonoGame/ComboBoxVisual.cs:95-114 | Themes/Gum.Themes.Neon.MonoGame/ListBoxItemVisual.cs:45-63 | Themes/Gum.Themes.Neon.MonoGame/ListBoxVisual.cs:62-80 | Themes/Gum.Themes.Neon.MonoGame/ListBoxVisual.cs:83-102 | Themes/Gum.Themes.Neon.MonoGame/MenuItemVisual.cs:86-103 | Themes/Gum.Themes.Neon.MonoGame/MenuVisual.cs:42-59 | Themes/Gum.Themes.Neon.MonoGame/NeonTextInputDecoration.cs:53-71 | Themes/Gum.Themes.Neon.MonoGame/NeonTextInputDecoration.cs:74-93 | Themes/Gum.Themes.Neon.MonoGame/ScrollBarThumbVisual.cs:48-66 | Themes/Gum.Themes.Neon.MonoGame/ScrollBarVisual.cs:143-161 | Themes/Gum.Themes.Neon.MonoGame/ScrollBarVisual.cs:164-183 | Themes/Gum.Themes.Neon.MonoGame/ScrollViewerVisual.cs:60-78 | Themes/Gum.Themes.Neon.MonoGame/ScrollViewerVisual.cs:81-100 | Themes/Gum.Themes.Neon.MonoGame/SliderThumbVisual.cs:62-92 | Themes/Gum.Themes.Neon.MonoGame/SplitterVisual.cs:28-45 | Themes/Gum.Themes.Neon.MonoGame/ToggleButtonVisual.cs:76-99 | Themes/Gum.Themes.Neon.MonoGame/ToggleButtonVisual.cs:102-121 | Themes/Gum.Themes.Neon.MonoGame/TooltipVisual.cs:38-56 | Themes/Gum.Themes.Neon.MonoGame/TooltipVisual.cs:59-78 | Themes/Gum.Themes.Neon.MonoGame/WindowVisual.cs:90-114 | Themes/Gum.Themes.Neon.MonoGame/WindowVisual.cs:117-136 | Themes/Gum.Themes.Neon.MonoGame/WindowVisual.cs:139-163 | Themes/Gum.Themes.Retro95.MonoGame/MenuItemVisual.cs:73-88 | Themes/Gum.Themes.Retro95.MonoGame/MenuVisual.cs:41-56 | Themes/Gum.Themes.Retro95.MonoGame/Retro95Bevel.cs:190-204 | Themes/Gum.Themes.Retro95.MonoGame/ScrollBarVisual.cs:219-234 | Themes/Gum.Themes.Retro95.MonoGame/TooltipVisual.cs:54-69 | Themes/Gum.Themes.Retro95.MonoGame/WindowVisual.cs:122-137 — These 102 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 102 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 102 times.
D4 · Code Duplication · Members sharing a duplicated core (16 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (16 members, 50+ identical tokens) Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:83 — Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:83-101 | Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:104-123 | Themes/Gum.Themes.DarkPro.MonoGame/CheckBoxVisual.cs:84-102 | Themes/Gum.Themes.DarkPro.MonoGame/CheckBoxVisual.cs:105-124 | Themes/Gum.Themes.ForestGlade.MonoGame/CheckBoxVisual.cs:76-97 | Themes/Gum.Themes.ForestGlade.MonoGame/CheckBoxVisual.cs:100-121 | Themes/Gum.Themes.Hazard.MonoGame/CheckBoxVisual.cs:89-107 | Themes/Gum.Themes.Hazard.MonoGame/CheckBoxVisual.cs:110-129 | Themes/Gum.Themes.Meadow.MonoGame/CheckBoxVisual.cs:79-97 | Themes/Gum.Themes.Meadow.MonoGame/CheckBoxVisual.cs:100-119 | Themes/Gum.Themes.Neon.MonoGame/CheckBoxVisual.cs:83-101 | Themes/Gum.Themes.Neon.MonoGame/CheckBoxVisual.cs:104-123 | Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:87-105 | Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:108-127 | Themes/Gum.Themes.Template.MonoGame/Variants/CheckBoxVisual.cs:91-109 | Themes/Gum.Themes.Template.MonoGame/Variants/CheckBoxVisual.cs:112-131 — These 16 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 16 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 16 times.
D4 · Code Duplication · Members sharing a duplicated core (5 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (5 members, 50+ identical tokens) Themes/Gum.Themes.DarkPro.MonoGame/MenuVisual.cs:24 — Themes/Gum.Themes.DarkPro.MonoGame/MenuVisual.cs:24-43 | Themes/Gum.Themes.ForestGlade.MonoGame/MenuVisual.cs:31-47 | Themes/Gum.Themes.Meadow.MonoGame/MenuVisual.cs:23-39 | Themes/Gum.Themes.Neon.MonoGame/MenuVisual.cs:23-39 | Themes/Gum.Themes.Retro95.MonoGame/MenuVisual.cs:22-38 — 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 (97 corresponding lines) · ×1
  • Edited copy of a member (97 corresponding lines) Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:191 — Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:191-287 | Themes/Gum.Themes.Neon.MonoGame/CheckBoxVisual.cs:191-290 — These two members are one piece of code written twice and then edited apart: 97 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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) Themes/Gum.Themes.Meadow.MonoGame/RadioButtonVisual.cs:125 — Themes/Gum.Themes.Meadow.MonoGame/RadioButtonVisual.cs:125-189 | Themes/Gum.Themes.Meadow.MonoGame/ToggleButtonVisual.cs:138-196 — 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 (60 corresponding lines) · ×1
  • Edited copy of a member (60 corresponding lines) Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs:125 — Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs:125-188 | Themes/Gum.Themes.Bubblegum.MonoGame/ToggleButtonVisual.cs:89-148 — These two members are one piece of code written twice and then edited apart: 60 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (243 corresponding lines) · ×1
  • Edited copy of a member (243 corresponding lines) GumRuntime/GraphicalUiElement.Dimensions.cs:107 — GumRuntime/GraphicalUiElement.Dimensions.cs:107-376 | GumRuntime/GraphicalUiElement.Dimensions.cs:660-902 — These two members are one piece of code written twice and then edited apart: 243 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (147 corresponding lines) · ×1
  • Edited copy of a member (147 corresponding lines) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:3780 — Gum/Wireframe/CustomSetPropertyOnRenderable.cs:3780-3926 | Gum/Wireframe/CustomSetPropertyOnRenderable.cs:3930-4088 — These two members are one piece of code written twice and then edited apart: 147 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (75 corresponding lines) · ×1
  • Edited copy of a member (75 corresponding lines) MonoGameGum/Forms/DefaultVisuals/V3/ButtonVisual.cs:122 — MonoGameGum/Forms/DefaultVisuals/V3/ButtonVisual.cs:122-196 | MonoGameGum/Forms/DefaultVisuals/V3/ToggleButtonVisual.cs:127-201 — These two members are one piece of code written twice and then edited apart: 75 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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 (101 corresponding lines) · ×1
  • Edited copy of a member (101 corresponding lines) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:548 — Gum/Wireframe/CustomSetPropertyOnRenderable.cs:548-656 | Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs:1327-1427 — These two members are one piece of code written twice and then edited apart: 101 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (62 corresponding lines) · ×1
  • Edited copy of a member (62 corresponding lines) Runtimes/GumShapes/Renderables/Circle.cs:111 — Runtimes/GumShapes/Renderables/Circle.cs:111-208 | Runtimes/GumShapes/Renderables/RoundedRectangle.cs:202-263 — These two members are one piece of code written twice and then edited apart: 62 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (57 corresponding lines) · ×1
  • Edited copy of a member (57 corresponding lines) GumRuntime/GraphicalUiElement.Dimensions.cs:601 — GumRuntime/GraphicalUiElement.Dimensions.cs:601-657 | GumRuntime/GraphicalUiElement.Dimensions.cs:905-962 — 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 (50 corresponding lines) · ×1
  • Edited copy of a member (50 corresponding lines) GumCommon/Mvvm/PropertyPathObserver.cs:79 — GumCommon/Mvvm/PropertyPathObserver.cs:79-128 | GumCommon/Mvvm/PropertyPathObserver.cs:172-225 — These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (44 corresponding lines) · ×1
  • Edited copy of a member (44 corresponding lines) MonoGameGum/Forms/Controls/TextBoxBase.cs:1597 — MonoGameGum/Forms/Controls/TextBoxBase.cs:1597-1647 | RenderingLibrary/Graphics/TextExtensions.cs:75-118 — These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (134 corresponding lines) · ×1
  • Edited copy of a member (134 corresponding lines) MonoGameGum/GueDeriving/CircleRuntime.cs:1864 — MonoGameGum/GueDeriving/CircleRuntime.cs:1864-1997 | MonoGameGum/GueDeriving/RectangleRuntime.cs:2030-2169 — These two members are one piece of code written twice and then edited apart: 134 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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) MonoGameGum/Forms/Controls/Primitives/RangeBase.cs:559 — MonoGameGum/Forms/Controls/Primitives/RangeBase.cs:559-605 | MonoGameGum/Forms/Controls/Slider.cs:256-308 — 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 (41 corresponding lines) · ×1
  • Edited copy of a member (41 corresponding lines) RenderingLibrary/Graphics/Text.cs:2070 — RenderingLibrary/Graphics/Text.cs:2070-2111 | Runtimes/RaylibGum/Renderables/Text.cs:1945-1985 — 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 copies of one member (6 members, 16+ corresponding lines) · ×1
  • Edited copies of one member (6 members, 16+ corresponding lines) Themes/Gum.Themes.Bubblegum.MonoGame/MenuItemVisual.cs:60 — Themes/Gum.Themes.Bubblegum.MonoGame/MenuItemVisual.cs:60-75 | Themes/Gum.Themes.DarkPro.MonoGame/MenuItemVisual.cs:74-93 | Themes/Gum.Themes.Hazard.MonoGame/MenuItemVisual.cs:73-92 | Themes/Gum.Themes.Meadow.MonoGame/ListBoxItemVisual.cs:99-114 | Themes/Gum.Themes.Meadow.MonoGame/MenuItemVisual.cs:59-74 | Themes/Gum.Themes.Neon.MonoGame/MenuItemVisual.cs:58-73 — These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 28+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 28+ corresponding lines) Runtimes/RaylibGum/Renderables/NineSlice.cs:64 — Runtimes/RaylibGum/Renderables/NineSlice.cs:64-91 | Runtimes/RaylibGum/Renderables/Sprite.cs:554-588 | Runtimes/SkiaGum/Renderables/NineSlice.cs:62-91 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 28 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (40 corresponding lines) · ×1
  • Edited copy of a member (40 corresponding lines) Themes/Gum.Themes.Bubblegum.MonoGame/ButtonVisual.cs:59 — Themes/Gum.Themes.Bubblegum.MonoGame/ButtonVisual.cs:59-98 | Themes/Gum.Themes.Bubblegum.MonoGame/ToggleButtonVisual.cs:44-86 — These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (55 corresponding lines) · ×1
  • Edited copy of a member (55 corresponding lines) MonoGameGum/Forms/Controls/ScrollViewer.cs:1447 — MonoGameGum/Forms/Controls/ScrollViewer.cs:1447-1508 | MonoGameGum/Forms/Controls/ScrollViewer.cs:1561-1615 — These two members are one piece of code written twice and then edited apart: 55 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (6 members, 24+ corresponding lines) · ×1
  • Edited copies of one member (6 members, 24+ corresponding lines) Tools/Gum.Cli/Commands/CheckCommand.cs:33 — Tools/Gum.Cli/Commands/CheckCommand.cs:33-56 | Tools/Gum.Cli/Commands/CheckReferencesCommand.cs:33-64 | Tools/Gum.Cli/Commands/CodegenInitCommand.cs:19-49 | Tools/Gum.Cli/Commands/DiffStandardsCommand.cs:29-54 | Tools/Gum.Cli/Commands/ResaveCommand.cs:28-53 | Tools/Gum.Cli/Commands/StageFormsBehaviorsCommand.cs:20-45 — These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 15+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 15+ corresponding lines) DataUi.Core/LateBinder.cs:652 — DataUi.Core/LateBinder.cs:652-666 | DataUi.Core/LateBinder.cs:692-707 | Tools/Gum.Presentation/Reflection/LateBinder.cs:518-532 | Tools/Gum.Presentation/Reflection/LateBinder.cs:558-573 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 11+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 11+ corresponding lines) Gum/DataTypes/ElementSaveExtensionMethods.GumTool.cs:88 — Gum/DataTypes/ElementSaveExtensionMethods.GumTool.cs:88-98 | Gum/DataTypes/ElementSaveExtensionMethods.GumTool.cs:113-123 | Gum/DataTypes/ElementSaveExtensionMethods.GumTool.cs:138-148 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (7 members, 20+ corresponding lines) · ×1
  • Edited copies of one member (7 members, 20+ corresponding lines) WpfDataUi/Controls/CheckBoxDisplay.xaml.cs:30 — WpfDataUi/Controls/CheckBoxDisplay.xaml.cs:30-50 | WpfDataUi/Controls/ComboBoxDisplay.xaml.cs:43-63 | WpfDataUi/Controls/FileSelectionDisplay.xaml.cs:31-52 | WpfDataUi/Controls/MultiFileDisplay.xaml.cs:50-69 | WpfDataUi/Controls/PlusMinusTextBox.xaml.cs:25-54 | WpfDataUi/Controls/StringListTextBoxDisplay.xaml.cs:22-42 | WpfDataUi/Controls/TextBoxDisplay.xaml.cs:82-118 — These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 4+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 4+ corresponding lines) Gum/TextureCoordinateSelectionPlugin/Views/WpfCameraScrollBar.cs:12 — Gum/TextureCoordinateSelectionPlugin/Views/WpfCameraScrollBar.cs:12-15 | Tool/Gum.Avalonia/Plugins/EditorTab/AvaloniaScrollAdapters.cs:25-32 | Tool/Gum.Avalonia/Plugins/TextureCoordinates/TextureCoordinateView.cs:253-256 — 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 (4 members, 6+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 6+ corresponding lines) WpfDataUi/Controls/InlineChannelsDisplay.xaml.cs:205 — WpfDataUi/Controls/InlineChannelsDisplay.xaml.cs:205-210 | WpfDataUi/Controls/ListBoxDisplay.xaml.cs:280-286 | WpfDataUi/Controls/MultiFileDisplay.xaml.cs:149-155 | WpfDataUi/Controls/StringListTextBoxDisplay.xaml.cs:132-138 — These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart.
D4 · Code Duplication · Duplicated block (101 lines × 2) · ×1
  • Duplicated block (101 lines × 2) Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:205 — Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:205-305 | Themes/Gum.Themes.Template.MonoGame/Variants/CheckBoxVisual.cs:209-309 — before extracting anything, compare `Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs` and `Themes/Gum.Themes.Template.MonoGame/Variants/CheckBoxVisual.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 304 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 (77 lines × 2) · ×1
  • Duplicated block (77 lines × 2) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:3850 — Gum/Wireframe/CustomSetPropertyOnRenderable.cs:3850-3926 | Gum/Wireframe/CustomSetPropertyOnRenderable.cs:4012-4088 — 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 `Gum/Wireframe/CustomSetPropertyOnRenderable.cs:3850` 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 (72 lines × 2) · ×1
  • Duplicated block (72 lines × 2) Themes/Gum.Themes.Template.MonoGame/RadioButtonVisual.cs:141 — Themes/Gum.Themes.Template.MonoGame/RadioButtonVisual.cs:141-212 | Themes/Gum.Themes.Template.MonoGame/Variants/RadioButtonVisual.cs:151-222 — before extracting anything, compare `Themes/Gum.Themes.Template.MonoGame/RadioButtonVisual.cs` and `Themes/Gum.Themes.Template.MonoGame/Variants/RadioButtonVisual.cs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 205 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 (60–69 lines × 7) · ×1
  • Duplicated block (60–69 lines × 7) Themes/Gum.Themes.Bubblegum.MonoGame/ScrollBarVisual.cs:54 — Themes/Gum.Themes.Bubblegum.MonoGame/ScrollBarVisual.cs:54-113 | Themes/Gum.Themes.DarkPro.MonoGame/ScrollBarVisual.cs:81-149 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollBarVisual.cs:46-105 | Themes/Gum.Themes.Hazard.MonoGame/ScrollBarVisual.cs:80-148 | Themes/Gum.Themes.Meadow.MonoGame/ScrollBarVisual.cs:47-106 | Themes/Gum.Themes.Neon.MonoGame/ScrollBarVisual.cs:47-106 | Themes/Gum.Themes.Template.MonoGame/ScrollBarVisual.cs:80-148 — `Themes/Gum.Themes.Bubblegum.MonoGame/ScrollBarVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/ScrollBarVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 137 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.Bubblegum.MonoGame/ScrollBarVisual.cs:54` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (67 lines × 2) · ×1
  • Duplicated block (67 lines × 2) Gum/CsvLibrary/StringFunctions.cs:50 — Gum/CsvLibrary/StringFunctions.cs:50-116 | ToolsUtilities/StringFunctions.cs:50-116 — before extracting anything, compare `Gum/CsvLibrary/StringFunctions.cs` and `ToolsUtilities/StringFunctions.cs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 256 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 (64–65 lines × 2) · ×1
  • Duplicated block (64–65 lines × 2) Runtimes/RaylibGum/Renderables/LineCircle.cs:71 — Runtimes/RaylibGum/Renderables/LineCircle.cs:71-134 | Runtimes/RaylibGum/Renderables/LineRectangle.cs:73-137 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (47 lines × 2) · ×1
  • Duplicated block (47 lines × 2) RenderingLibrary/Graphics/Renderer.cs:3285 — RenderingLibrary/Graphics/Renderer.cs:3285-3332 | RenderingLibrary/Graphics/Renderer.cs:3365-3411 — 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 `RenderingLibrary/Graphics/Renderer.cs:3285` 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 (34–46 lines × 2) · ×1
  • Duplicated block (34–46 lines × 2) MonoGameGum/GueDeriving/CircleRuntime.cs:1292 — MonoGameGum/GueDeriving/CircleRuntime.cs:1292-1337 | MonoGameGum/GueDeriving/RectangleRuntime.cs:1614-1647 — before extracting anything, compare `MonoGameGum/GueDeriving/CircleRuntime.cs` and `MonoGameGum/GueDeriving/RectangleRuntime.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 119 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 `MonoGameGum/GueDeriving/CircleRuntime.cs:1292` 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 (73–77 lines × 5) · ×1
  • Duplicated block (73–77 lines × 5) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:176 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:176-250 | Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs:175-251 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTheme.cs:207-281 | Themes/Gum.Themes.Neon.MonoGame/NeonTheme.cs:200-274 | Themes/Gum.Themes.Retro95.MonoGame/Retro95Theme.cs:173-245 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 271 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:174` calls `VisualTemplate`, `ThumbVisual` and `Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs: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 (41 lines × 2) · ×1
  • Duplicated block (41 lines × 2) MonoGameGum/Forms/DefaultVisuals/V3/ButtonVisual.cs:129 — MonoGameGum/Forms/DefaultVisuals/V3/ButtonVisual.cs:129-169 | MonoGameGum/Forms/DefaultVisuals/V3/ToggleButtonVisual.cs:134-174 — before extracting anything, compare `MonoGameGum/Forms/DefaultVisuals/V3/ButtonVisual.cs` and `MonoGameGum/Forms/DefaultVisuals/V3/ToggleButtonVisual.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 80 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 (33–39 lines × 4) · ×1
  • Duplicated block (33–39 lines × 4) Themes/Gum.Themes.DarkPro.MonoGame/WindowVisual.cs:54 — Themes/Gum.Themes.DarkPro.MonoGame/WindowVisual.cs:54-92 | Themes/Gum.Themes.ForestGlade.MonoGame/WindowVisual.cs:40-74 | Themes/Gum.Themes.Meadow.MonoGame/WindowVisual.cs:58-90 | Themes/Gum.Themes.Neon.MonoGame/WindowVisual.cs:55-87 — `Themes/Gum.Themes.DarkPro.MonoGame/WindowVisual.cs` and `Themes/Gum.Themes.ForestGlade.MonoGame/WindowVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 114 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.DarkPro.MonoGame/WindowVisual.cs:54` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (35–38 lines × 2) · ×1
  • Duplicated block (35–38 lines × 2) GumRuntime/GraphicalUiElement.Dimensions.cs:120 — GumRuntime/GraphicalUiElement.Dimensions.cs:120-157 | GumRuntime/GraphicalUiElement.Dimensions.cs:663-697 — 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 `GumRuntime/GraphicalUiElement.Dimensions.cs:120` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (35–37 lines × 2) · ×1
  • Duplicated block (35–37 lines × 2) DataUi.Core/LateBinder.cs:403 — DataUi.Core/LateBinder.cs:403-439 | Tools/Gum.Presentation/Reflection/LateBinder.cs:279-313 — before extracting anything, compare `DataUi.Core/LateBinder.cs` and `Tools/Gum.Presentation/Reflection/LateBinder.cs` as WHOLE FILES: this scan already matched 12 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. Read the line range as the matched WINDOW rather than a finished unit: at `DataUi.Core/LateBinder.cs:403` 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 first that the copies are not typed on the same thing: the declarations holding them bind `target` 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–37 lines × 2) · ×1
  • Duplicated block (20–37 lines × 2) Tool/TreeViewPlugin.Core/ElementTreeViewManager.RightClick.cs:490 — Tool/TreeViewPlugin.Core/ElementTreeViewManager.RightClick.cs:490-526 | Tool/TreeViewPlugin.Core/ElementTreeViewManager.RightClick.cs:531-550 — 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 `Tool/TreeViewPlugin.Core/ElementTreeViewManager.RightClick.cs:490` 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 (33–35 lines × 2) · ×1
  • Duplicated block (33–35 lines × 2) RenderingLibrary/SystemManagers.cs:503 — RenderingLibrary/SystemManagers.cs:503-535 | Runtimes/RaylibGum/RenderingLibrary/SystemManagers.cs:317-351 — 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 `Runtimes/RaylibGum/RenderingLibrary/SystemManagers.cs:317` 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, `Runtimes/RaylibGum/RenderingLibrary/SystemManagers.cs:313` calls `RegisterGueInstantiation`, `ArcRuntime` and `RenderingLibrary/SystemManagers.cs:497` 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 (32–35 lines × 2) · ×1
  • Duplicated block (32–35 lines × 2) Runtimes/SokolGum/CustomSetPropertyOnRenderable.cs:280 — Runtimes/SokolGum/CustomSetPropertyOnRenderable.cs:280-314 | Runtimes/SokolGum/CustomSetPropertyOnRenderable.cs:352-383 — 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 (33 lines × 2) · ×1
  • Duplicated block (33 lines × 2) MonoGameGum/Forms/Data/BinderHelpers.cs:411 — MonoGameGum/Forms/Data/BinderHelpers.cs:411-443 | MonoGameGum/Forms/Data/BinderHelpers.cs:448-480 — 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 (28–33 lines × 2) · ×1
  • Duplicated block (28–33 lines × 2) Gum/Plugins/InternalPlugins/TreeView/WpfElementTreeView.cs:206 — Gum/Plugins/InternalPlugins/TreeView/WpfElementTreeView.cs:206-238 | Tool/Gum.Avalonia/Plugins/TreeView/AvaloniaElementTreeView.cs:264-291 — 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 (30–31 lines × 3) · ×1
  • Duplicated block (30–31 lines × 3) Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTheme.cs:240 — Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTheme.cs:240-270 | Themes/Gum.Themes.Hazard.MonoGame/HazardTheme.cs:230-259 | Themes/Gum.Themes.Template.MonoGame/TemplateTheme.cs:265-294 — before extracting anything, compare `Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTheme.cs` and `Themes/Gum.Themes.Hazard.MonoGame/HazardTheme.cs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 228 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTheme.cs:238` calls `VisualTemplate`, `ComboBoxVisual` and `Themes/Gum.Themes.Hazard.MonoGame/HazardTheme.cs:228` 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 (28–31 lines × 2) · ×1
  • Duplicated block (28–31 lines × 2) Themes/Gum.Themes.Neon.MonoGame/ButtonVisual.cs:49 — Themes/Gum.Themes.Neon.MonoGame/ButtonVisual.cs:49-79 | Themes/Gum.Themes.Neon.MonoGame/ToggleButtonVisual.cs:43-70 — before extracting anything, compare `Themes/Gum.Themes.Neon.MonoGame/ButtonVisual.cs` and `Themes/Gum.Themes.Neon.MonoGame/ToggleButtonVisual.cs` as WHOLE FILES: this scan already matched 6 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. 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 `Themes/Gum.Themes.Neon.MonoGame/ButtonVisual.cs:49` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (28 lines × 2) · ×1
  • Duplicated block (28 lines × 2) Gum/CsvLibrary/StringFunctions.cs:305 — Gum/CsvLibrary/StringFunctions.cs:305-332 | ToolsUtilities/StringFunctions.cs:303-330 — before extracting anything, compare `Gum/CsvLibrary/StringFunctions.cs` and `ToolsUtilities/StringFunctions.cs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 256 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 (27–28 lines × 6) · ×1
  • Duplicated block (27–28 lines × 6) RenderingLibrary/Graphics/NineSlice.cs:1346 — RenderingLibrary/Graphics/NineSlice.cs:1346-1372 | RenderingLibrary/Graphics/Sprite.cs:460-487 | Runtimes/RaylibGum/Renderables/NineSlice.cs:97-123 | Runtimes/RaylibGum/Renderables/Sprite.cs:594-620 | Runtimes/SkiaGum/Renderables/NineSlice.cs:97-123 | Runtimes/SkiaGum/Renderables/Sprite.cs:285-311 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 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 6 times.
D4 · Code Duplication · Duplicated block (14–27 lines × 7) · ×1
  • Duplicated block (14–27 lines × 7) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:160 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:160-173 | Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs:161-175 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTheme.cs:180-193 | Themes/Gum.Themes.Hazard.MonoGame/HazardTheme.cs:169-183 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTheme.cs:191-204 | Themes/Gum.Themes.Neon.MonoGame/NeonTheme.cs:186-200 | Themes/Gum.Themes.Template.MonoGame/TemplateTheme.cs:196-222 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 271 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 `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:160` 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, `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:174` calls `VisualTemplate`, `ThumbVisual` and `Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs:176` 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 (15–27 lines × 7) · ×1
  • Duplicated block (15–27 lines × 7) Themes/Gum.Themes.Bubblegum.MonoGame/ScrollBarVisual.cs:29 — Themes/Gum.Themes.Bubblegum.MonoGame/ScrollBarVisual.cs:29-44 | Themes/Gum.Themes.DarkPro.MonoGame/ScrollBarVisual.cs:52-78 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollBarVisual.cs:29-43 | Themes/Gum.Themes.Hazard.MonoGame/ScrollBarVisual.cs:51-77 | Themes/Gum.Themes.Meadow.MonoGame/ScrollBarVisual.cs:29-44 | Themes/Gum.Themes.Neon.MonoGame/ScrollBarVisual.cs:29-44 | Themes/Gum.Themes.Template.MonoGame/ScrollBarVisual.cs:51-77 — `Themes/Gum.Themes.Bubblegum.MonoGame/ScrollBarVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/ScrollBarVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 137 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.Bubblegum.MonoGame/ScrollBarVisual.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. 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 (20–27 lines × 4) · ×1
  • Duplicated block (20–27 lines × 4) Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs:50 — Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs:50-76 | Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:42-61 | Themes/Gum.Themes.Meadow.MonoGame/ComboBoxVisual.cs:46-65 | Themes/Gum.Themes.Neon.MonoGame/ComboBoxVisual.cs:46-65 — `Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs` and `Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 64 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs:50` 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 (20–27 lines × 2) · ×1
  • Duplicated block (20–27 lines × 2) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:2408 — Gum/Wireframe/CustomSetPropertyOnRenderable.cs:2408-2427 | Gum/Wireframe/CustomSetPropertyOnRenderable.cs:2778-2804 — 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 `Gum/Wireframe/CustomSetPropertyOnRenderable.cs:2408` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (17–27 lines × 2) · ×1
  • Duplicated block (17–27 lines × 2) Themes/Gum.Themes.Retro95.MonoGame/ScrollBarThumbVisual.cs:41 — Themes/Gum.Themes.Retro95.MonoGame/ScrollBarThumbVisual.cs:41-57 | Themes/Gum.Themes.Retro95.MonoGame/SliderThumbVisual.cs:49-75 — 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 `Themes/Gum.Themes.Retro95.MonoGame/ScrollBarThumbVisual.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.
D4 · Code Duplication · Duplicated block (23–27 lines × 2) · ×1
  • Duplicated block (23–27 lines × 2) Gum/Controls/CornerRadiusDisplay.xaml.cs:136 — Gum/Controls/CornerRadiusDisplay.xaml.cs:136-162 | WpfDataUi/Controls/InlineChannelsDisplay.xaml.cs:159-181 — 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 `WpfDataUi/Controls/InlineChannelsDisplay.xaml.cs:159` 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 (21–26 lines × 8) · ×1
  • Duplicated block (21–26 lines × 8) Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:48 — Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:48-69 | Themes/Gum.Themes.DarkPro.MonoGame/CheckBoxVisual.cs:45-70 | Themes/Gum.Themes.ForestGlade.MonoGame/CheckBoxVisual.cs:42-62 | Themes/Gum.Themes.Hazard.MonoGame/CheckBoxVisual.cs:50-75 | Themes/Gum.Themes.Meadow.MonoGame/CheckBoxVisual.cs:45-65 | Themes/Gum.Themes.Neon.MonoGame/CheckBoxVisual.cs:48-69 | Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:48-73 | Themes/Gum.Themes.Template.MonoGame/Variants/CheckBoxVisual.cs:52-77 — `Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/CheckBoxVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 99 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:48` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (11–26 lines × 6) · ×1
  • Duplicated block (11–26 lines × 6) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:165 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:165-176 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTheme.cs:185-196 | Themes/Gum.Themes.Hazard.MonoGame/HazardTheme.cs:174-186 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTheme.cs:196-207 | Themes/Gum.Themes.Retro95.MonoGame/Retro95Theme.cs:160-170 | Themes/Gum.Themes.Template.MonoGame/TemplateTheme.cs:201-226 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs` and `Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTheme.cs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 206 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 `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:165` 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, `Themes/Gum.Themes.Retro95.MonoGame/Retro95Theme.cs:171` calls `VisualTemplate`, `ScrollBarButtonVisual` and `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:177` 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 lines × 3) · ×1
  • Duplicated block (21 lines × 3) Gum/CsvLibrary/CsvFileManager.cs:113 — Gum/CsvLibrary/CsvFileManager.cs:113-133 | RenderingLibrary/Graphics/NineSliceExtensions.cs:120-140 | REDACTED:428-448 — 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 `Gum/CsvLibrary/CsvFileManager.cs:113` 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 (25–26 lines × 3) · ×1
  • Duplicated block (25–26 lines × 3) Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs:40 — Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs:40-65 | Themes/Gum.Themes.DarkPro.MonoGame/ToggleButtonVisual.cs:39-63 | Themes/Gum.Themes.Meadow.MonoGame/ToggleButtonVisual.cs:40-64 — before extracting anything, compare `Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/ToggleButtonVisual.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs:40` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (22–26 lines × 2) · ×1
  • Duplicated block (22–26 lines × 2) MonoGameGum/GueDeriving/CircleRuntime.cs:1903 — MonoGameGum/GueDeriving/CircleRuntime.cs:1903-1928 | MonoGameGum/GueDeriving/RectangleRuntime.cs:2066-2087 — before extracting anything, compare `MonoGameGum/GueDeriving/CircleRuntime.cs` and `MonoGameGum/GueDeriving/RectangleRuntime.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 119 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 `MonoGameGum/GueDeriving/CircleRuntime.cs:1903` 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 (21–25 lines × 9) · ×1
  • Duplicated block (21–25 lines × 9) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:127 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:127-147 | Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs:126-146 | Themes/Gum.Themes.Editor.MonoGame/EditorTheme.cs:54-74 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTheme.cs:147-167 | Themes/Gum.Themes.Hazard.MonoGame/HazardTheme.cs:135-155 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTheme.cs:156-176 | Themes/Gum.Themes.Neon.MonoGame/NeonTheme.cs:146-170 | Themes/Gum.Themes.Retro95.MonoGame/Retro95Theme.cs:117-137 | Themes/Gum.Themes.Template.MonoGame/TemplateTheme.cs:162-182 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 271 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–25 lines × 2) · ×1
  • Duplicated block (21–25 lines × 2) RenderingLibrary/Graphics/Renderer.cs:2360 — RenderingLibrary/Graphics/Renderer.cs:2360-2380 | RenderingLibrary/Graphics/Renderer.cs:2393-2417 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `RenderingLibrary/Graphics/Renderer.cs:2393` calls `AdjustBlendStateForRenderTargetBake` and `RenderingLibrary/Graphics/Renderer.cs:2360` 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 (21–24 lines × 3) · ×1
  • Duplicated block (21–24 lines × 3) Gum/DataTypes/ElementSaveExtensionMethods.GumTool.cs:26 — Gum/DataTypes/ElementSaveExtensionMethods.GumTool.cs:26-49 | Tools/Gum.Presentation/Commands/FileCommands.cs:521-541 | Tools/Gum.Presentation/Managers/DragDropManager.cs:224-246 — 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 `Gum/DataTypes/ElementSaveExtensionMethods.GumTool.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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (23–24 lines × 2) · ×1
  • Duplicated block (23–24 lines × 2) Themes/Gum.Themes.Template.MonoGame/ButtonVisual.cs:36 — Themes/Gum.Themes.Template.MonoGame/ButtonVisual.cs:36-59 | Themes/Gum.Themes.Template.MonoGame/ToggleButtonVisual.cs:37-59 — before extracting anything, compare `Themes/Gum.Themes.Template.MonoGame/ButtonVisual.cs` and `Themes/Gum.Themes.Template.MonoGame/ToggleButtonVisual.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (20–23 lines × 4) · ×1
  • Duplicated block (20–23 lines × 4) Themes/Gum.Themes.DarkPro.MonoGame/MenuItemVisual.cs:47 — Themes/Gum.Themes.DarkPro.MonoGame/MenuItemVisual.cs:47-69 | Themes/Gum.Themes.ForestGlade.MonoGame/MenuItemVisual.cs:34-53 | Themes/Gum.Themes.Neon.MonoGame/MenuItemVisual.cs:34-53 | Themes/Gum.Themes.Retro95.MonoGame/MenuItemVisual.cs:33-52 — `Themes/Gum.Themes.DarkPro.MonoGame/MenuItemVisual.cs` and `Themes/Gum.Themes.ForestGlade.MonoGame/MenuItemVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 104 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.DarkPro.MonoGame/MenuItemVisual.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.
D4 · Code Duplication · Duplicated block (9–22 lines × 8) · ×1
  • Duplicated block (9–22 lines × 8) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:165 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:165-173 | Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs:166-175 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTheme.cs:185-193 | Themes/Gum.Themes.Hazard.MonoGame/HazardTheme.cs:174-183 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTheme.cs:196-204 | Themes/Gum.Themes.Neon.MonoGame/NeonTheme.cs:191-200 | Themes/Gum.Themes.Retro95.MonoGame/Retro95Theme.cs:160-168 | Themes/Gum.Themes.Template.MonoGame/TemplateTheme.cs:201-222 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 271 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 `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:165` 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, `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:174` calls `VisualTemplate`, `ThumbVisual` and `Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs:176` 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 (12–22 lines × 8) · ×1
  • Duplicated block (12–22 lines × 8) Themes/Gum.Themes.Bubblegum.MonoGame/WindowVisual.cs:53 — Themes/Gum.Themes.Bubblegum.MonoGame/WindowVisual.cs:53-64 | Themes/Gum.Themes.DarkPro.MonoGame/WindowVisual.cs:40-61 | Themes/Gum.Themes.ForestGlade.MonoGame/WindowVisual.cs:36-47 | Themes/Gum.Themes.Hazard.MonoGame/WindowVisual.cs:33-54 | Themes/Gum.Themes.Meadow.MonoGame/WindowVisual.cs:54-65 | Themes/Gum.Themes.Neon.MonoGame/WindowVisual.cs:51-62 | Themes/Gum.Themes.Retro95.MonoGame/WindowVisual.cs:33-44 | Themes/Gum.Themes.Template.MonoGame/WindowVisual.cs:33-54 — `Themes/Gum.Themes.Bubblegum.MonoGame/WindowVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/WindowVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 52 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.Bubblegum.MonoGame/WindowVisual.cs:53` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (19–22 lines × 6) · ×1
  • Duplicated block (19–22 lines × 6) Themes/Gum.Themes.Bubblegum.MonoGame/MenuItemVisual.cs:39 — Themes/Gum.Themes.Bubblegum.MonoGame/MenuItemVisual.cs:39-57 | Themes/Gum.Themes.DarkPro.MonoGame/MenuItemVisual.cs:50-71 | Themes/Gum.Themes.ForestGlade.MonoGame/MenuItemVisual.cs:37-55 | Themes/Gum.Themes.Hazard.MonoGame/MenuItemVisual.cs:49-70 | Themes/Gum.Themes.Neon.MonoGame/MenuItemVisual.cs:37-55 | Themes/Gum.Themes.Retro95.MonoGame/MenuItemVisual.cs:36-54 — `Themes/Gum.Themes.DarkPro.MonoGame/MenuItemVisual.cs` and `Themes/Gum.Themes.ForestGlade.MonoGame/MenuItemVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 104 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.Bubblegum.MonoGame/MenuItemVisual.cs:39` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Themes/Gum.Themes.ForestGlade.MonoGame/MenuItemVisual.cs:59` calls `Color` and `Themes/Gum.Themes.Bubblegum.MonoGame/MenuItemVisual.cs:61` 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–22 lines × 4) · ×1
  • Duplicated block (19–22 lines × 4) Themes/Gum.Themes.DarkPro.MonoGame/DarkProStyling.cs:38 — Themes/Gum.Themes.DarkPro.MonoGame/DarkProStyling.cs:38-56 | Themes/Gum.Themes.Hazard.MonoGame/HazardStyling.cs:59-80 | Themes/Gum.Themes.Neon.MonoGame/NeonStyling.cs:41-59 | Themes/Gum.Themes.Template.MonoGame/TemplateStyling.cs:94-115 — 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. 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, `Themes/Gum.Themes.Hazard.MonoGame/HazardStyling.cs:53` calls `Color` and `Themes/Gum.Themes.DarkPro.MonoGame/DarkProStyling.cs:36` 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 (20–22 lines × 2) · ×1
  • Duplicated block (20–22 lines × 2) Themes/Gum.Themes.Editor.MonoGame/ButtonVisual.cs:31 — Themes/Gum.Themes.Editor.MonoGame/ButtonVisual.cs:31-52 | Themes/Gum.Themes.Editor.MonoGame/ComboBoxVisual.cs:26-45 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Themes/Gum.Themes.Editor.MonoGame/ComboBoxVisual.cs:49` calls `MakeHeightSizedToChildren` and `Themes/Gum.Themes.Editor.MonoGame/ButtonVisual.cs:53` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (16–22 lines × 2) · ×1
  • Duplicated block (16–22 lines × 2) Themes/Gum.Themes.DarkPro.MonoGame/ListBoxItemVisual.cs:29 — Themes/Gum.Themes.DarkPro.MonoGame/ListBoxItemVisual.cs:29-50 | Themes/Gum.Themes.Neon.MonoGame/ListBoxItemVisual.cs:27-42 — `Themes/Gum.Themes.DarkPro.MonoGame/ListBoxItemVisual.cs` and `Themes/Gum.Themes.Neon.MonoGame/ListBoxItemVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 45 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (18–22 lines × 2) · ×1
  • Duplicated block (18–22 lines × 2) Themes/Gum.Themes.Meadow.MonoGame/WindowVisual.cs:29 — Themes/Gum.Themes.Meadow.MonoGame/WindowVisual.cs:29-50 | Themes/Gum.Themes.Neon.MonoGame/WindowVisual.cs:30-47 — `Themes/Gum.Themes.Meadow.MonoGame/WindowVisual.cs` and `Themes/Gum.Themes.Neon.MonoGame/WindowVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 151 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.Meadow.MonoGame/WindowVisual.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.
D4 · Code Duplication · Duplicated block (18–21 lines × 8) · ×1
  • Duplicated block (18–21 lines × 8) Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs:35 — Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs:35-52 | Themes/Gum.Themes.DarkPro.MonoGame/RadioButtonVisual.cs:38-58 | Themes/Gum.Themes.ForestGlade.MonoGame/RadioButtonVisual.cs:38-55 | Themes/Gum.Themes.Hazard.MonoGame/RadioButtonVisual.cs:43-63 | Themes/Gum.Themes.Meadow.MonoGame/RadioButtonVisual.cs:35-52 | Themes/Gum.Themes.Neon.MonoGame/RadioButtonVisual.cs:35-52 | Themes/Gum.Themes.Template.MonoGame/RadioButtonVisual.cs:41-61 | Themes/Gum.Themes.Template.MonoGame/Variants/RadioButtonVisual.cs:51-71 — `Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/RadioButtonVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 88 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (15–21 lines × 5) · ×1
  • Duplicated block (15–21 lines × 5) Themes/Gum.Themes.DarkPro.MonoGame/MenuItemVisual.cs:43 — Themes/Gum.Themes.DarkPro.MonoGame/MenuItemVisual.cs:43-63 | Themes/Gum.Themes.ForestGlade.MonoGame/MenuItemVisual.cs:33-47 | Themes/Gum.Themes.Meadow.MonoGame/MenuItemVisual.cs:32-46 | Themes/Gum.Themes.Neon.MonoGame/MenuItemVisual.cs:33-47 | Themes/Gum.Themes.Retro95.MonoGame/MenuItemVisual.cs:32-46 — `Themes/Gum.Themes.DarkPro.MonoGame/MenuItemVisual.cs` and `Themes/Gum.Themes.ForestGlade.MonoGame/MenuItemVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 104 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.DarkPro.MonoGame/MenuItemVisual.cs:43` 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–21 lines × 4) · ×1
  • Duplicated block (18–21 lines × 4) Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs:36 — Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs:36-55 | Themes/Gum.Themes.DarkPro.MonoGame/ToggleButtonVisual.cs:34-54 | Themes/Gum.Themes.Meadow.MonoGame/ButtonVisual.cs:45-62 | Themes/Gum.Themes.Meadow.MonoGame/ToggleButtonVisual.cs:38-55 — before extracting anything, compare `Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/ToggleButtonVisual.cs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs:36` 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, `Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs:57` calls `CreateBorder`, `AddChild` and `Themes/Gum.Themes.Meadow.MonoGame/ButtonVisual.cs:64` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (16–21 lines × 4) · ×1
  • Duplicated block (16–21 lines × 4) Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:81 — Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:81-96 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeButtonChrome.cs:91-111 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs:72-88 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollBarThumbVisual.cs:56-71 — before extracting anything, compare `Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs` and `Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs` as WHOLE FILES: this scan already matched 10 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. 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. 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 (18–21 lines × 2) · ×1
  • Duplicated block (18–21 lines × 2) Gum/Wireframe/CustomSetPropertyOnRenderable.cs:1867 — Gum/Wireframe/CustomSetPropertyOnRenderable.cs:1867-1884 | Gum/Wireframe/CustomSetPropertyOnRenderable.cs:2297-2317 — 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 (18–20 lines × 9) · ×1
  • Duplicated block (18–20 lines × 9) Themes/Gum.Themes.Bubblegum.MonoGame/SliderVisual.cs:45 — Themes/Gum.Themes.Bubblegum.MonoGame/SliderVisual.cs:45-62 | Themes/Gum.Themes.DarkPro.MonoGame/SliderVisual.cs:64-83 | Themes/Gum.Themes.ForestGlade.MonoGame/SliderVisual.cs:44-61 | Themes/Gum.Themes.Hazard.MonoGame/SliderVisual.cs:61-80 | Themes/Gum.Themes.Meadow.MonoGame/SliderVisual.cs:44-61 | Themes/Gum.Themes.Neon.MonoGame/SliderVisual.cs:45-62 | Themes/Gum.Themes.Retro95.MonoGame/SliderVisual.cs:54-71 | Themes/Gum.Themes.Template.MonoGame/SliderVisual.cs:59-78 | Themes/Gum.Themes.Template.MonoGame/Variants/SliderVisual.cs:65-84 — `Themes/Gum.Themes.Bubblegum.MonoGame/SliderVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/SliderVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 85 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.Bubblegum.MonoGame/SliderVisual.cs:45` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Themes/Gum.Themes.Retro95.MonoGame/SliderVisual.cs:54` calls `AddTo` and `Themes/Gum.Themes.Hazard.MonoGame/SliderVisual.cs:61` 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 (17–20 lines × 5) · ×1
  • Duplicated block (17–20 lines × 5) Themes/Gum.Themes.DarkPro.MonoGame/MenuVisual.cs:24 — Themes/Gum.Themes.DarkPro.MonoGame/MenuVisual.cs:24-43 | Themes/Gum.Themes.ForestGlade.MonoGame/MenuVisual.cs:31-47 | Themes/Gum.Themes.Meadow.MonoGame/MenuVisual.cs:23-39 | Themes/Gum.Themes.Neon.MonoGame/MenuVisual.cs:23-39 | Themes/Gum.Themes.Retro95.MonoGame/MenuVisual.cs:22-38 — `Themes/Gum.Themes.DarkPro.MonoGame/MenuVisual.cs` and `Themes/Gum.Themes.ForestGlade.MonoGame/MenuVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 67 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (20 lines × 3) · ×1
  • Duplicated block (20 lines × 3) Runtimes/RaylibGum/Renderables/LineArc.cs:145 — Runtimes/RaylibGum/Renderables/LineArc.cs:145-164 | Runtimes/RaylibGum/Renderables/LineCircle.cs:125-144 | Runtimes/RaylibGum/Renderables/LineRectangle.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 all 3 call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (19–20 lines × 3) · ×1
  • Duplicated block (19–20 lines × 3) Themes/Gum.Themes.Template.MonoGame/ButtonVisual.cs:31 — Themes/Gum.Themes.Template.MonoGame/ButtonVisual.cs:31-49 | Themes/Gum.Themes.Template.MonoGame/ToggleButtonVisual.cs:31-50 | Themes/Gum.Themes.Template.MonoGame/Variants/ButtonVisual.cs:45-63 — before extracting anything, compare `Themes/Gum.Themes.Template.MonoGame/ButtonVisual.cs` and `Themes/Gum.Themes.Template.MonoGame/ToggleButtonVisual.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.Template.MonoGame/ButtonVisual.cs:31` 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 (18–20 lines × 2) · ×1
  • Duplicated block (18–20 lines × 2) MonoGameGum/Forms/FormsUtilities.cs:424 — MonoGameGum/Forms/FormsUtilities.cs:424-441 | MonoGameGum/Forms/FormsUtilities.cs:466-485 — 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 `MonoGameGum/Forms/FormsUtilities.cs:424` 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, `MonoGameGum/Forms/FormsUtilities.cs:487` calls `foreach`, `Add` and `MonoGameGum/Forms/FormsUtilities.cs:442` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (16–19 lines × 4) · ×1
  • Duplicated block (16–19 lines × 4) Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:26 — Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:26-41 | Themes/Gum.Themes.Meadow.MonoGame/CheckBoxVisual.cs:23-38 | Themes/Gum.Themes.Neon.MonoGame/CheckBoxVisual.cs:26-41 | Themes/Gum.Themes.Template.MonoGame/Variants/CheckBoxVisual.cs:27-45 — `Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs` and `Themes/Gum.Themes.Meadow.MonoGame/CheckBoxVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 125 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.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.
D4 · Code Duplication · Duplicated block (18–19 lines × 2) · ×1
  • Duplicated block (18–19 lines × 2) Tools/Gum.Cli/Commands/ScreenshotCommand.cs:66 — Tools/Gum.Cli/Commands/ScreenshotCommand.cs:66-84 | Tools/Gum.Cli/Commands/SvgCommand.cs:44-61 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Tools/Gum.Cli/Commands/ScreenshotCommand.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.
D4 · Code Duplication · Duplicated block (15–18 lines × 8) · ×1
  • Duplicated block (15–18 lines × 8) Themes/Gum.Themes.Bubblegum.MonoGame/WindowVisual.cs:81 — Themes/Gum.Themes.Bubblegum.MonoGame/WindowVisual.cs:81-98 | Themes/Gum.Themes.DarkPro.MonoGame/WindowVisual.cs:67-84 | Themes/Gum.Themes.ForestGlade.MonoGame/WindowVisual.cs:53-69 | Themes/Gum.Themes.Hazard.MonoGame/WindowVisual.cs:60-77 | Themes/Gum.Themes.Meadow.MonoGame/WindowVisual.cs:71-85 | Themes/Gum.Themes.Neon.MonoGame/WindowVisual.cs:68-82 | Themes/Gum.Themes.Retro95.MonoGame/WindowVisual.cs:51-66 | Themes/Gum.Themes.Template.MonoGame/WindowVisual.cs:60-77 — `Themes/Gum.Themes.Bubblegum.MonoGame/WindowVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/WindowVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 52 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.Bubblegum.MonoGame/WindowVisual.cs:81` 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 (16 lines × 7) · ×1
  • Duplicated block (16 lines × 7) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:191 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:191-206 | Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs:190-205 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTheme.cs:217-232 | Themes/Gum.Themes.Hazard.MonoGame/HazardTheme.cs:207-222 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTheme.cs:222-237 | Themes/Gum.Themes.Neon.MonoGame/NeonTheme.cs:215-230 | Themes/Gum.Themes.Retro95.MonoGame/Retro95Theme.cs:188-203 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 271 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Themes/Gum.Themes.Hazard.MonoGame/HazardTheme.cs:225` calls `VisualTemplate`, `ScrollBarVisual` and `Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTheme.cs:235` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (16 lines × 6) · ×1
  • Duplicated block (16 lines × 6) MonoGameGum/Forms/DefaultVisuals/V3/ButtonVisual.cs:165 — MonoGameGum/Forms/DefaultVisuals/V3/ButtonVisual.cs:165-180 | MonoGameGum/Forms/DefaultVisuals/V3/CheckBoxVisual.cs:215-230 | MonoGameGum/Forms/DefaultVisuals/V3/ComboBoxVisual.cs:250-265 | MonoGameGum/Forms/DefaultVisuals/V3/RadioButtonVisual.cs:224-239 | MonoGameGum/Forms/DefaultVisuals/V3/SliderVisual.cs:168-183 | MonoGameGum/Forms/DefaultVisuals/V3/ToggleButtonVisual.cs:170-185 — before extracting anything, compare `MonoGameGum/Forms/DefaultVisuals/V3/ButtonVisual.cs` and `MonoGameGum/Forms/DefaultVisuals/V3/ToggleButtonVisual.cs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 80 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 (17 lines × 3) · ×1
  • Duplicated block (17 lines × 3) MonoGameGum/Forms/DefaultVisuals/V3/ComboBoxVisual.cs:191 — MonoGameGum/Forms/DefaultVisuals/V3/ComboBoxVisual.cs:191-207 | MonoGameGum/Forms/DefaultVisuals/V3/ListBoxItemVisual.cs:179-195 | MonoGameGum/Forms/DefaultVisuals/V3/ListBoxVisual.cs:140-156 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (17–18 lines × 3) · ×1
  • Duplicated block (17–18 lines × 3) MonoGameGum/Forms/DefaultVisuals/V3/DialogBoxVisual.cs:75 — MonoGameGum/Forms/DefaultVisuals/V3/DialogBoxVisual.cs:75-92 | MonoGameGum/Forms/DefaultVisuals/V3/MenuItemVisual.cs:167-183 | MonoGameGum/Forms/DefaultVisuals/V3/WindowVisual.cs:124-141 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. 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 (17–18 lines × 2) · ×1
  • Duplicated block (17–18 lines × 2) RenderingLibrary/Graphics/Text.cs:2070 — RenderingLibrary/Graphics/Text.cs:2070-2087 | Runtimes/RaylibGum/Renderables/Text.cs:1945-1961 — 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 `RenderingLibrary/Graphics/Text.cs:2070` 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 (13–18 lines × 2) · ×1
  • Duplicated block (13–18 lines × 2) Themes/Gum.Themes.Meadow.MonoGame/ToggleButtonVisual.cs:22 — Themes/Gum.Themes.Meadow.MonoGame/ToggleButtonVisual.cs:22-34 | Themes/Gum.Themes.Neon.MonoGame/ToggleButtonVisual.cs:22-39 — `Themes/Gum.Themes.Meadow.MonoGame/ToggleButtonVisual.cs` and `Themes/Gum.Themes.Neon.MonoGame/ToggleButtonVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 87 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.Meadow.MonoGame/ToggleButtonVisual.cs:22` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (16 lines × 8) · ×1
  • Duplicated block (16 lines × 8) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:103 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:103-118 | Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs:102-117 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTheme.cs:123-138 | Themes/Gum.Themes.Hazard.MonoGame/HazardTheme.cs:111-126 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTheme.cs:132-147 | Themes/Gum.Themes.Neon.MonoGame/NeonTheme.cs:122-137 | Themes/Gum.Themes.Retro95.MonoGame/Retro95Theme.cs:93-108 | Themes/Gum.Themes.Template.MonoGame/TemplateTheme.cs:138-153 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 271 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 `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:103` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (14–17 lines × 2) · ×1
  • Duplicated block (14–17 lines × 2) MonoGameGum/GueDeriving/CircleRuntime.cs:1400 — MonoGameGum/GueDeriving/CircleRuntime.cs:1400-1416 | MonoGameGum/GueDeriving/RectangleRuntime.cs:1721-1734 — before extracting anything, compare `MonoGameGum/GueDeriving/CircleRuntime.cs` and `MonoGameGum/GueDeriving/RectangleRuntime.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 119 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 `MonoGameGum/GueDeriving/CircleRuntime.cs:1400` 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, `MonoGameGum/GueDeriving/RectangleRuntime.cs:1720` calls `SetContainedObject` and `MonoGameGum/GueDeriving/CircleRuntime.cs:1399` 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–16 lines × 8) · ×1
  • Duplicated block (12–16 lines × 8) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:180 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:180-191 | Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs:179-190 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTheme.cs:203-214 | Themes/Gum.Themes.Hazard.MonoGame/HazardTheme.cs:184-195 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTheme.cs:211-222 | Themes/Gum.Themes.Neon.MonoGame/NeonTheme.cs:204-215 | Themes/Gum.Themes.Retro95.MonoGame/Retro95Theme.cs:177-188 | Themes/Gum.Themes.Template.MonoGame/TemplateTheme.cs:223-238 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 271 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 (13–16 lines × 2) · ×1
  • Duplicated block (13–16 lines × 2) Integrations/KernSmith/KernSmith.GumCommon/GumFontGenerator.cs:305 — Integrations/KernSmith/KernSmith.GumCommon/GumFontGenerator.cs:305-317 | Tools/Gum.ProjectServices/FontGeneration/KernSmithFileGenerator.cs:201-216 — 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 `Integrations/KernSmith/KernSmith.GumCommon/GumFontGenerator.cs:305` 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 (9–15 lines × 23) · ×1
  • Duplicated block (9–15 lines × 23) Themes/Gum.Themes.DarkPro.MonoGame/MenuItemVisual.cs:111 — Themes/Gum.Themes.DarkPro.MonoGame/MenuItemVisual.cs:111-120 | Themes/Gum.Themes.DarkPro.MonoGame/MenuVisual.cs:51-60 | Themes/Gum.Themes.DarkPro.MonoGame/SliderThumbVisual.cs:60-69 | Themes/Gum.Themes.DarkPro.MonoGame/SplitterVisual.cs:39-48 | Themes/Gum.Themes.DarkPro.MonoGame/WindowVisual.cs:143-152 | Themes/Gum.Themes.ForestGlade.MonoGame/MenuItemVisual.cs:88-97 | Themes/Gum.Themes.ForestGlade.MonoGame/MenuVisual.cs:53-62 | Themes/Gum.Themes.ForestGlade.MonoGame/SliderThumbVisual.cs:59-72 | Themes/Gum.Themes.ForestGlade.MonoGame/SplitterVisual.cs:33-42 | Themes/Gum.Themes.Meadow.MonoGame/MenuVisual.cs:47-56 | Themes/Gum.Themes.Meadow.MonoGame/SliderThumbVisual.cs:64-73 | Themes/Gum.Themes.Meadow.MonoGame/WindowVisual.cs:148-157 | Themes/Gum.Themes.Neon.MonoGame/MenuItemVisual.cs:91-100 | Themes/Gum.Themes.Neon.MonoGame/MenuVisual.cs:47-56 | Themes/Gum.Themes.Neon.MonoGame/SliderThumbVisual.cs:71-80 | Themes/Gum.Themes.Neon.MonoGame/SplitterVisual.cs:33-42 | Themes/Gum.Themes.Neon.MonoGame/WindowVisual.cs:146-160 | Themes/Gum.Themes.Retro95.MonoGame/MenuItemVisual.cs:77-85 | Themes/Gum.Themes.Retro95.MonoGame/MenuVisual.cs:45-53 | Themes/Gum.Themes.Retro95.MonoGame/Retro95Bevel.cs:194-202 | Themes/Gum.Themes.Retro95.MonoGame/ScrollBarVisual.cs:223-231 | Themes/Gum.Themes.Retro95.MonoGame/TooltipVisual.cs:58-66 | Themes/Gum.Themes.Retro95.MonoGame/WindowVisual.cs:126-134 — before extracting anything, compare `Themes/Gum.Themes.DarkPro.MonoGame/MenuItemVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/MenuVisual.cs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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, `Themes/Gum.Themes.DarkPro.MonoGame/MenuItemVisual.cs:120` calls `Color` and `Themes/Gum.Themes.Retro95.MonoGame/Retro95Bevel.cs:202` 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 (14 lines × 8) · ×1
  • Duplicated block (14 lines × 8) Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:153 — Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:153-166 | Themes/Gum.Themes.DarkPro.MonoGame/CheckBoxVisual.cs:162-175 | Themes/Gum.Themes.ForestGlade.MonoGame/CheckBoxVisual.cs:157-170 | Themes/Gum.Themes.Hazard.MonoGame/CheckBoxVisual.cs:167-180 | Themes/Gum.Themes.Meadow.MonoGame/CheckBoxVisual.cs:149-162 | Themes/Gum.Themes.Neon.MonoGame/CheckBoxVisual.cs:153-166 | Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:165-178 | Themes/Gum.Themes.Template.MonoGame/Variants/CheckBoxVisual.cs:169-182 — `Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/CheckBoxVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 99 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:153` 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 (14–15 lines × 7) · ×1
  • Duplicated block (14–15 lines × 7) Themes/Gum.Themes.Bubblegum.MonoGame/SliderVisual.cs:127 — Themes/Gum.Themes.Bubblegum.MonoGame/SliderVisual.cs:127-140 | Themes/Gum.Themes.DarkPro.MonoGame/SliderVisual.cs:161-175 | Themes/Gum.Themes.Hazard.MonoGame/SliderVisual.cs:133-146 | Themes/Gum.Themes.Meadow.MonoGame/SliderVisual.cs:126-139 | Themes/Gum.Themes.Neon.MonoGame/SliderVisual.cs:127-140 | Themes/Gum.Themes.Template.MonoGame/SliderVisual.cs:131-144 | Themes/Gum.Themes.Template.MonoGame/Variants/SliderVisual.cs:137-150 — `Themes/Gum.Themes.Bubblegum.MonoGame/SliderVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/SliderVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 85 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (8–14 lines × 85) · ×1
  • Duplicated block (8–14 lines × 85) Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs:73 — Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs:73-81 | Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs:94-102 | Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs:90-98 | Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs:111-119 | Themes/Gum.Themes.DarkPro.MonoGame/DarkProTextInputDecoration.cs:67-75 | Themes/Gum.Themes.DarkPro.MonoGame/DarkProTextInputDecoration.cs:88-96 | Themes/Gum.Themes.DarkPro.MonoGame/ListBoxItemVisual.cs:58-66 | Themes/Gum.Themes.DarkPro.MonoGame/ListBoxVisual.cs:74-82 | Themes/Gum.Themes.DarkPro.MonoGame/ListBoxVisual.cs:95-103 | Themes/Gum.Themes.DarkPro.MonoGame/MenuItemVisual.cs:111-119 | Themes/Gum.Themes.DarkPro.MonoGame/MenuVisual.cs:51-59 | Themes/Gum.Themes.DarkPro.MonoGame/ScrollBarThumbVisual.cs:58-66 | Themes/Gum.Themes.DarkPro.MonoGame/ScrollBarVisual.cs:198-206 | Themes/Gum.Themes.DarkPro.MonoGame/ScrollBarVisual.cs:219-227 | Themes/Gum.Themes.DarkPro.MonoGame/ScrollViewerVisual.cs:72-80 | Themes/Gum.Themes.DarkPro.MonoGame/ScrollViewerVisual.cs:93-101 | Themes/Gum.Themes.DarkPro.MonoGame/SliderThumbVisual.cs:60-68 | Themes/Gum.Themes.DarkPro.MonoGame/SplitterVisual.cs:39-47 | Themes/Gum.Themes.DarkPro.MonoGame/ToggleButtonVisual.cs:71-79 | Themes/Gum.Themes.DarkPro.MonoGame/ToggleButtonVisual.cs:92-100 | Themes/Gum.Themes.DarkPro.MonoGame/TooltipVisual.cs:48-56 | Themes/Gum.Themes.DarkPro.MonoGame/TooltipVisual.cs:69-77 | Themes/Gum.Themes.DarkPro.MonoGame/WindowVisual.cs:100-108 | Themes/Gum.Themes.DarkPro.MonoGame/WindowVisual.cs:121-129 | Themes/Gum.Themes.DarkPro.MonoGame/WindowVisual.cs:143-151 | Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxItemVisual.cs:57-65 | Themes/Gum.Themes.ForestGlade.MonoGame/MenuItemVisual.cs:88-96 | Themes/Gum.Themes.ForestGlade.MonoGame/MenuVisual.cs:53-61 | Themes/Gum.Themes.ForestGlade.MonoGame/SliderThumbVisual.cs:59-67 | Themes/Gum.Themes.ForestGlade.MonoGame/SplitterVisual.cs:33-41 | Themes/Gum.Themes.ForestGlade.MonoGame/WindowVisual.cs:135-143 | Themes/Gum.Themes.Meadow.MonoGame/ButtonVisual.cs:77-85 | Themes/Gum.Themes.Meadow.MonoGame/ComboBoxVisual.cs:80-88 | Themes/Gum.Themes.Meadow.MonoGame/ComboBoxVisual.cs:101-109 | Themes/Gum.Themes.Meadow.MonoGame/ListBoxVisual.cs:65-73 | Themes/Gum.Themes.Meadow.MonoGame/ListBoxVisual.cs:86-94 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTextInputDecoration.cs:70-78 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTextInputDecoration.cs:91-99 | Themes/Gum.Themes.Meadow.MonoGame/MenuItemVisual.cs:92-100 | Themes/Gum.Themes.Meadow.MonoGame/MenuVisual.cs:47-55 | Themes/Gum.Themes.Meadow.MonoGame/ScrollBarThumbVisual.cs:52-60 | Themes/Gum.Themes.Meadow.MonoGame/ScrollBarVisual.cs:148-156 | Themes/Gum.Themes.Meadow.MonoGame/ScrollBarVisual.cs:169-177 | Themes/Gum.Themes.Meadow.MonoGame/ScrollViewerVisual.cs:57-65 | Themes/Gum.Themes.Meadow.MonoGame/ScrollViewerVisual.cs:78-86 | Themes/Gum.Themes.Meadow.MonoGame/SliderThumbVisual.cs:64-72 | Themes/Gum.Themes.Meadow.MonoGame/SplitterVisual.cs:33-41 | Themes/Gum.Themes.Meadow.MonoGame/ToggleButtonVisual.cs:72-80 | Themes/Gum.Themes.Meadow.MonoGame/ToggleButtonVisual.cs:98-106 | Themes/Gum.Themes.Meadow.MonoGame/TooltipVisual.cs:45-53 | Themes/Gum.Themes.Meadow.MonoGame/TooltipVisual.cs:66-74 | Themes/Gum.Themes.Meadow.MonoGame/WindowVisual.cs:98-106 | Themes/Gum.Themes.Meadow.MonoGame/WindowVisual.cs:125-133 | Themes/Gum.Themes.Meadow.MonoGame/WindowVisual.cs:148-156 | Themes/Gum.Themes.Neon.MonoGame/ButtonVisual.cs:89-97 | Themes/Gum.Themes.Neon.MonoGame/ButtonVisual.cs:113-121 | Themes/Gum.Themes.Neon.MonoGame/ComboBoxVisual.cs:79-87 | Themes/Gum.Themes.Neon.MonoGame/ComboBoxVisual.cs:100-108 | Themes/Gum.Themes.Neon.MonoGame/ListBoxItemVisual.cs:50-58 | Themes/Gum.Themes.Neon.MonoGame/ListBoxVisual.cs:67-75 | Themes/Gum.Themes.Neon.MonoGame/ListBoxVisual.cs:88-96 | Themes/Gum.Themes.Neon.MonoGame/MenuItemVisual.cs:91-99 | Themes/Gum.Themes.Neon.MonoGame/MenuVisual.cs:47-55 | Themes/Gum.Themes.Neon.MonoGame/NeonTextInputDecoration.cs:58-66 | Themes/Gum.Themes.Neon.MonoGame/NeonTextInputDecoration.cs:79-87 | Themes/Gum.Themes.Neon.MonoGame/ScrollBarThumbVisual.cs:53-61 | Themes/Gum.Themes.Neon.MonoGame/ScrollBarVisual.cs:148-156 | Themes/Gum.Themes.Neon.MonoGame/ScrollBarVisual.cs:169-177 | Themes/Gum.Themes.Neon.MonoGame/ScrollViewerVisual.cs:65-73 | Themes/Gum.Themes.Neon.MonoGame/ScrollViewerVisual.cs:86-94 | Themes/Gum.Themes.Neon.MonoGame/SliderThumbVisual.cs:71-79 | Themes/Gum.Themes.Neon.MonoGame/SplitterVisual.cs:33-41 | Themes/Gum.Themes.Neon.MonoGame/ToggleButtonVisual.cs:81-89 | Themes/Gum.Themes.Neon.MonoGame/ToggleButtonVisual.cs:107-115 | Themes/Gum.Themes.Neon.MonoGame/TooltipVisual.cs:43-51 | Themes/Gum.Themes.Neon.MonoGame/TooltipVisual.cs:64-72 | Themes/Gum.Themes.Neon.MonoGame/WindowVisual.cs:95-103 | Themes/Gum.Themes.Neon.MonoGame/WindowVisual.cs:122-130 | Themes/Gum.Themes.Neon.MonoGame/WindowVisual.cs:146-159 | Themes/Gum.Themes.Retro95.MonoGame/MenuItemVisual.cs:77-84 | Themes/Gum.Themes.Retro95.MonoGame/MenuVisual.cs:45-52 | Themes/Gum.Themes.Retro95.MonoGame/Retro95Bevel.cs:194-201 | Themes/Gum.Themes.Retro95.MonoGame/ScrollBarVisual.cs:223-230 | Themes/Gum.Themes.Retro95.MonoGame/TooltipVisual.cs:58-65 | Themes/Gum.Themes.Retro95.MonoGame/WindowVisual.cs:126-133 — before extracting anything, compare `Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 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. 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, `Themes/Gum.Themes.DarkPro.MonoGame/ListBoxItemVisual.cs:68` calls `Color` and `Themes/Gum.Themes.Retro95.MonoGame/Retro95Bevel.cs:203` 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–14 lines × 8) · ×1
  • Duplicated block (12–14 lines × 8) Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:128 — Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:128-139 | Themes/Gum.Themes.DarkPro.MonoGame/CheckBoxVisual.cs:131-142 | Themes/Gum.Themes.ForestGlade.MonoGame/CheckBoxVisual.cs:126-139 | Themes/Gum.Themes.Hazard.MonoGame/CheckBoxVisual.cs:136-147 | Themes/Gum.Themes.Meadow.MonoGame/CheckBoxVisual.cs:124-135 | Themes/Gum.Themes.Neon.MonoGame/CheckBoxVisual.cs:128-139 | Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:134-145 | Themes/Gum.Themes.Template.MonoGame/Variants/CheckBoxVisual.cs:138-149 — `Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/CheckBoxVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 99 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Note 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 lines × 8) · ×1
  • Duplicated block (12 lines × 8) Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:173 — Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:173-184 | Themes/Gum.Themes.DarkPro.MonoGame/CheckBoxVisual.cs:183-194 | Themes/Gum.Themes.ForestGlade.MonoGame/CheckBoxVisual.cs:176-187 | Themes/Gum.Themes.Hazard.MonoGame/CheckBoxVisual.cs:188-199 | Themes/Gum.Themes.Meadow.MonoGame/CheckBoxVisual.cs:169-180 | Themes/Gum.Themes.Neon.MonoGame/CheckBoxVisual.cs:173-184 | Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:186-197 | Themes/Gum.Themes.Template.MonoGame/Variants/CheckBoxVisual.cs:190-201 — `Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/CheckBoxVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 99 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (9–14 lines × 7) · ×1
  • Duplicated block (9–14 lines × 7) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:206 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:206-217 | Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs:205-218 | Themes/Gum.Themes.Hazard.MonoGame/HazardTheme.cs:222-230 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTheme.cs:237-248 | Themes/Gum.Themes.Neon.MonoGame/NeonTheme.cs:230-241 | Themes/Gum.Themes.Retro95.MonoGame/Retro95Theme.cs:203-212 | Themes/Gum.Themes.Template.MonoGame/TemplateTheme.cs:257-265 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 271 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 (13 lines × 7) · ×1
  • Duplicated block (13 lines × 7) Themes/Gum.Themes.Bubblegum.MonoGame/ScrollBarVisual.cs:135 — Themes/Gum.Themes.Bubblegum.MonoGame/ScrollBarVisual.cs:135-147 | Themes/Gum.Themes.DarkPro.MonoGame/ScrollBarVisual.cs:178-190 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollBarVisual.cs:126-138 | Themes/Gum.Themes.Hazard.MonoGame/ScrollBarVisual.cs:177-189 | Themes/Gum.Themes.Meadow.MonoGame/ScrollBarVisual.cs:128-140 | Themes/Gum.Themes.Neon.MonoGame/ScrollBarVisual.cs:128-140 | Themes/Gum.Themes.Template.MonoGame/ScrollBarVisual.cs:177-189 — `Themes/Gum.Themes.Bubblegum.MonoGame/ScrollBarVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/ScrollBarVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 137 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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 lines × 3) · ×1
  • Duplicated block (14 lines × 3) Gum/DataTypes/StateSaveExtensionMethods.cs:157 — Gum/DataTypes/StateSaveExtensionMethods.cs:157-170 | Gum/DataTypes/StateSaveExtensionMethods.cs:433-447 | Gum/DataTypes/StateSaveExtensionMethods.cs:546-559 — 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 `Gum/DataTypes/StateSaveExtensionMethods.cs:157` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Gum/DataTypes/StateSaveExtensionMethods.cs:432` calls `GetRootName` and `Gum/DataTypes/StateSaveExtensionMethods.cs:152` 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 (13–14 lines × 2) · ×1
  • Duplicated block (13–14 lines × 2) Themes/Gum.Themes.Editor.MonoGame/ButtonVisual.cs:27 — Themes/Gum.Themes.Editor.MonoGame/ButtonVisual.cs:27-39 | Themes/Gum.Themes.Editor.MonoGame/ListBoxItemVisual.cs:21-34 — 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 `Themes/Gum.Themes.Editor.MonoGame/ButtonVisual.cs:27` 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–14 lines × 2) · ×1
  • Duplicated block (12–14 lines × 2) Themes/Gum.Themes.ForestGlade.MonoGame/CheckBoxVisual.cs:136 — Themes/Gum.Themes.ForestGlade.MonoGame/CheckBoxVisual.cs:136-147 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeButtonChrome.cs:150-163 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeButtonChrome.cs:150` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (11 lines × 9) · ×1
  • Duplicated block (11 lines × 9) Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs:107 — Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs:107-117 | Themes/Gum.Themes.DarkPro.MonoGame/RadioButtonVisual.cs:119-129 | Themes/Gum.Themes.ForestGlade.MonoGame/RadioButtonVisual.cs:110-120 | Themes/Gum.Themes.Hazard.MonoGame/RadioButtonVisual.cs:124-134 | Themes/Gum.Themes.Meadow.MonoGame/RadioButtonVisual.cs:107-117 | Themes/Gum.Themes.Neon.MonoGame/RadioButtonVisual.cs:107-117 | Themes/Gum.Themes.Retro95.MonoGame/RadioButtonVisual.cs:106-116 | Themes/Gum.Themes.Template.MonoGame/RadioButtonVisual.cs:122-132 | Themes/Gum.Themes.Template.MonoGame/Variants/RadioButtonVisual.cs:132-142 — `Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/RadioButtonVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 88 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (12–13 lines × 8) · ×1
  • Duplicated block (12–13 lines × 8) Themes/Gum.Themes.Bubblegum.MonoGame/SliderVisual.cs:129 — Themes/Gum.Themes.Bubblegum.MonoGame/SliderVisual.cs:129-140 | Themes/Gum.Themes.DarkPro.MonoGame/SliderVisual.cs:163-175 | Themes/Gum.Themes.ForestGlade.MonoGame/SliderVisual.cs:124-135 | Themes/Gum.Themes.Hazard.MonoGame/SliderVisual.cs:135-146 | Themes/Gum.Themes.Meadow.MonoGame/SliderVisual.cs:128-139 | Themes/Gum.Themes.Neon.MonoGame/SliderVisual.cs:129-140 | Themes/Gum.Themes.Template.MonoGame/SliderVisual.cs:133-144 | Themes/Gum.Themes.Template.MonoGame/Variants/SliderVisual.cs:139-150 — `Themes/Gum.Themes.Bubblegum.MonoGame/SliderVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/SliderVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 85 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Note 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 × 5) · ×1
  • Duplicated block (12–13 lines × 5) Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs:20 — Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs:20-31 | Themes/Gum.Themes.ForestGlade.MonoGame/RadioButtonVisual.cs:23-34 | Themes/Gum.Themes.Meadow.MonoGame/RadioButtonVisual.cs:20-31 | Themes/Gum.Themes.Neon.MonoGame/RadioButtonVisual.cs:20-31 | Themes/Gum.Themes.Template.MonoGame/Variants/RadioButtonVisual.cs:35-47 — `Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.cs` and `Themes/Gum.Themes.ForestGlade.MonoGame/RadioButtonVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 101 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.Bubblegum.MonoGame/RadioButtonVisual.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 (9–12 lines × 8) · ×1
  • Duplicated block (9–12 lines × 8) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:174 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:174-182 | Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs:173-181 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTheme.cs:194-202 | Themes/Gum.Themes.Hazard.MonoGame/HazardTheme.cs:193-201 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTheme.cs:205-213 | Themes/Gum.Themes.Neon.MonoGame/NeonTheme.cs:198-206 | Themes/Gum.Themes.Retro95.MonoGame/Retro95Theme.cs:171-179 | Themes/Gum.Themes.Template.MonoGame/TemplateTheme.cs:235-246 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 271 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:174` calls `VisualTemplate`, `ThumbVisual` and `Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs:173` 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 (7–12 lines × 8) · ×1
  • Duplicated block (7–12 lines × 8) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:239 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:239-250 | Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs:240-251 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTheme.cs:259-270 | Themes/Gum.Themes.Hazard.MonoGame/HazardTheme.cs:253-259 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTheme.cs:270-281 | Themes/Gum.Themes.Neon.MonoGame/NeonTheme.cs:263-274 | Themes/Gum.Themes.Retro95.MonoGame/Retro95Theme.cs:234-245 | Themes/Gum.Themes.Template.MonoGame/TemplateTheme.cs:288-294 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 271 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTheme.cs:259` calls `VisualTemplate`, `LabelVisual` and `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:239` 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 (10 lines × 7) · ×1
  • Duplicated block (10 lines × 7) Themes/Gum.Themes.Bubblegum.MonoGame/ComboBoxVisual.cs:94 — Themes/Gum.Themes.Bubblegum.MonoGame/ComboBoxVisual.cs:94-103 | Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs:159-168 | Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:152-161 | Themes/Gum.Themes.Hazard.MonoGame/ComboBoxVisual.cs:94-103 | Themes/Gum.Themes.Meadow.MonoGame/ComboBoxVisual.cs:148-157 | Themes/Gum.Themes.Neon.MonoGame/ComboBoxVisual.cs:148-157 | Themes/Gum.Themes.Template.MonoGame/ComboBoxVisual.cs:93-102 — `Themes/Gum.Themes.Bubblegum.MonoGame/ComboBoxVisual.cs` and `Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 38 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Note what the matched lines are: every one of them assigns one field to another, so the block is a hand-written mapper between two data shapes rather than behaviour with a helper inside it. Extracting one shared function only works if both sites map the SAME pair of types in the same direction — check that first, because inverse or differently-typed mappers have no single function they can both call. Where they do not, the moves that exist are a generated or reflective mapper, a common embedded/base type the fields live on once, or accepting the run and covering it with a test that fails when a field is added to one side only.
D4 · Code Duplication · Duplicated block (11–12 lines × 7) · ×1
  • Duplicated block (11–12 lines × 7) Themes/Gum.Themes.Bubblegum.MonoGame/WindowVisual.cs:112 — Themes/Gum.Themes.Bubblegum.MonoGame/WindowVisual.cs:112-122 | Themes/Gum.Themes.DarkPro.MonoGame/WindowVisual.cs:162-172 | Themes/Gum.Themes.ForestGlade.MonoGame/WindowVisual.cs:157-168 | Themes/Gum.Themes.Hazard.MonoGame/WindowVisual.cs:92-102 | Themes/Gum.Themes.Meadow.MonoGame/WindowVisual.cs:167-177 | Themes/Gum.Themes.Neon.MonoGame/WindowVisual.cs:170-180 | Themes/Gum.Themes.Template.MonoGame/WindowVisual.cs:92-102 — `Themes/Gum.Themes.Bubblegum.MonoGame/WindowVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/WindowVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 52 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Note 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 lines × 5) · ×1
  • Duplicated block (12 lines × 5) Themes/Gum.Themes.Neon.MonoGame/ButtonVisual.cs:137 — Themes/Gum.Themes.Neon.MonoGame/ButtonVisual.cs:137-148 | Themes/Gum.Themes.Neon.MonoGame/ComboBoxVisual.cs:126-137 | Themes/Gum.Themes.Neon.MonoGame/ListBoxVisual.cs:114-125 | Themes/Gum.Themes.Neon.MonoGame/ScrollViewerVisual.cs:112-123 | Themes/Gum.Themes.Neon.MonoGame/ToggleButtonVisual.cs:133-144 — before extracting anything, compare `Themes/Gum.Themes.Neon.MonoGame/ButtonVisual.cs` and `Themes/Gum.Themes.Neon.MonoGame/ComboBoxVisual.cs` as WHOLE FILES: this scan already matched 5 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 `Themes/Gum.Themes.Neon.MonoGame/ButtonVisual.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. 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 (11–12 lines × 3) · ×1
  • Duplicated block (11–12 lines × 3) Themes/Gum.Themes.Template.MonoGame/ButtonVisual.cs:49 — Themes/Gum.Themes.Template.MonoGame/ButtonVisual.cs:49-60 | Themes/Gum.Themes.Template.MonoGame/ToggleButtonVisual.cs:50-60 | Themes/Gum.Themes.Template.MonoGame/Variants/ButtonVisual.cs:69-80 — before extracting anything, compare `Themes/Gum.Themes.Template.MonoGame/ButtonVisual.cs` and `Themes/Gum.Themes.Template.MonoGame/ToggleButtonVisual.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Themes/Gum.Themes.Template.MonoGame/ButtonVisual.cs:49` 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–12 lines × 2) · ×1
  • Duplicated block (10–12 lines × 2) Runtimes/RaylibGum/Renderables/ShadowBlurRenderer.cs:260 — Runtimes/RaylibGum/Renderables/ShadowBlurRenderer.cs:260-271 | Runtimes/RaylibGum/Renderables/ShadowBlurRenderer.cs:274-283 — 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 (10 lines × 17) · ×1
  • Duplicated block (10 lines × 17) Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs:117 — Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs:117-126 | Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs:131-140 | Themes/Gum.Themes.DarkPro.MonoGame/DarkProTextInputDecoration.cs:110-119 | Themes/Gum.Themes.DarkPro.MonoGame/ListBoxVisual.cs:115-124 | Themes/Gum.Themes.DarkPro.MonoGame/ScrollViewerVisual.cs:113-122 | Themes/Gum.Themes.DarkPro.MonoGame/SliderThumbVisual.cs:80-89 | Themes/Gum.Themes.DarkPro.MonoGame/ToggleButtonVisual.cs:112-121 | Themes/Gum.Themes.Meadow.MonoGame/ButtonVisual.cs:102-111 | Themes/Gum.Themes.Meadow.MonoGame/ComboBoxVisual.cs:121-130 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTextInputDecoration.cs:111-120 | Themes/Gum.Themes.Meadow.MonoGame/SliderThumbVisual.cs:87-96 | Themes/Gum.Themes.Meadow.MonoGame/ToggleButtonVisual.cs:118-127 | Themes/Gum.Themes.Neon.MonoGame/ComboBoxVisual.cs:120-129 | Themes/Gum.Themes.Neon.MonoGame/ListBoxVisual.cs:108-117 | Themes/Gum.Themes.Neon.MonoGame/ScrollViewerVisual.cs:106-115 | Themes/Gum.Themes.Neon.MonoGame/SliderThumbVisual.cs:98-107 | Themes/Gum.Themes.Neon.MonoGame/ToggleButtonVisual.cs:127-136 — before extracting anything, compare `Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 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 lines × 16) · ×1
  • Duplicated block (11 lines × 16) Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:85 — Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:85-95 | Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs:106-116 | Themes/Gum.Themes.DarkPro.MonoGame/CheckBoxVisual.cs:86-96 | Themes/Gum.Themes.DarkPro.MonoGame/CheckBoxVisual.cs:107-117 | Themes/Gum.Themes.ForestGlade.MonoGame/CheckBoxVisual.cs:78-88 | Themes/Gum.Themes.ForestGlade.MonoGame/CheckBoxVisual.cs:102-112 | Themes/Gum.Themes.Hazard.MonoGame/CheckBoxVisual.cs:91-101 | Themes/Gum.Themes.Hazard.MonoGame/CheckBoxVisual.cs:112-122 | Themes/Gum.Themes.Meadow.MonoGame/CheckBoxVisual.cs:81-91 | Themes/Gum.Themes.Meadow.MonoGame/CheckBoxVisual.cs:102-112 | Themes/Gum.Themes.Neon.MonoGame/CheckBoxVisual.cs:85-95 | Themes/Gum.Themes.Neon.MonoGame/CheckBoxVisual.cs:106-116 | Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:89-99 | Themes/Gum.Themes.Template.MonoGame/CheckBoxVisual.cs:110-120 | Themes/Gum.Themes.Template.MonoGame/Variants/CheckBoxVisual.cs:93-103 | Themes/Gum.Themes.Template.MonoGame/Variants/CheckBoxVisual.cs:114-124 — `Themes/Gum.Themes.Bubblegum.MonoGame/CheckBoxVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/CheckBoxVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 7 separate duplicated blocks between them, totalling at least 99 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (10 lines × 9) · ×1
  • Duplicated block (10 lines × 9) Themes/Gum.Themes.Meadow.MonoGame/ButtonVisual.cs:106 — Themes/Gum.Themes.Meadow.MonoGame/ButtonVisual.cs:106-115 | Themes/Gum.Themes.Meadow.MonoGame/ComboBoxVisual.cs:125-134 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTextInputDecoration.cs:115-124 | Themes/Gum.Themes.Meadow.MonoGame/ToggleButtonVisual.cs:122-131 | Themes/Gum.Themes.Neon.MonoGame/ButtonVisual.cs:135-144 | Themes/Gum.Themes.Neon.MonoGame/ComboBoxVisual.cs:124-133 | Themes/Gum.Themes.Neon.MonoGame/ListBoxVisual.cs:112-121 | Themes/Gum.Themes.Neon.MonoGame/ScrollViewerVisual.cs:110-119 | Themes/Gum.Themes.Neon.MonoGame/ToggleButtonVisual.cs:131-140 — before extracting anything, compare `Themes/Gum.Themes.Meadow.MonoGame/ButtonVisual.cs` and `Themes/Gum.Themes.Meadow.MonoGame/ComboBoxVisual.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 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 (9 lines × 8) · ×1
  • Duplicated block (9 lines × 8) Themes/Gum.Themes.Bubblegum.MonoGame/MenuVisual.cs:49 — Themes/Gum.Themes.Bubblegum.MonoGame/MenuVisual.cs:49-57 | Themes/Gum.Themes.DarkPro.MonoGame/MenuVisual.cs:71-79 | Themes/Gum.Themes.ForestGlade.MonoGame/MenuVisual.cs:71-79 | Themes/Gum.Themes.Hazard.MonoGame/MenuVisual.cs:53-61 | Themes/Gum.Themes.Meadow.MonoGame/MenuVisual.cs:67-75 | Themes/Gum.Themes.Neon.MonoGame/MenuVisual.cs:67-75 | Themes/Gum.Themes.Retro95.MonoGame/MenuVisual.cs:63-71 | Themes/Gum.Themes.Template.MonoGame/MenuVisual.cs:53-61 — `Themes/Gum.Themes.DarkPro.MonoGame/MenuVisual.cs` and `Themes/Gum.Themes.ForestGlade.MonoGame/MenuVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 67 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (11 lines × 6) · ×1
  • Duplicated block (11 lines × 6) Themes/Gum.Themes.Bubblegum.MonoGame/SliderVisual.cs:108 — Themes/Gum.Themes.Bubblegum.MonoGame/SliderVisual.cs:108-118 | Themes/Gum.Themes.DarkPro.MonoGame/SliderVisual.cs:142-152 | Themes/Gum.Themes.DarkPro.MonoGame/SliderVisual.cs:185-195 | Themes/Gum.Themes.ForestGlade.MonoGame/SliderVisual.cs:105-115 | Themes/Gum.Themes.Meadow.MonoGame/SliderVisual.cs:107-117 | Themes/Gum.Themes.Neon.MonoGame/SliderVisual.cs:108-118 — `Themes/Gum.Themes.Bubblegum.MonoGame/SliderVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/SliderVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 85 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (8 lines × 20) · ×1
  • Duplicated block (8 lines × 20) Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs:119 — Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs:119-126 | Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs:133-140 | Themes/Gum.Themes.DarkPro.MonoGame/DarkProTextInputDecoration.cs:112-119 | Themes/Gum.Themes.DarkPro.MonoGame/ListBoxVisual.cs:117-124 | Themes/Gum.Themes.DarkPro.MonoGame/ScrollViewerVisual.cs:115-122 | Themes/Gum.Themes.DarkPro.MonoGame/SliderThumbVisual.cs:82-89 | Themes/Gum.Themes.DarkPro.MonoGame/ToggleButtonVisual.cs:114-121 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeButtonChrome.cs:143-150 | Themes/Gum.Themes.ForestGlade.MonoGame/SliderThumbVisual.cs:104-111 | Themes/Gum.Themes.Meadow.MonoGame/ButtonVisual.cs:104-111 | Themes/Gum.Themes.Meadow.MonoGame/ComboBoxVisual.cs:123-130 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTextInputDecoration.cs:113-120 | Themes/Gum.Themes.Meadow.MonoGame/SliderThumbVisual.cs:89-96 | Themes/Gum.Themes.Meadow.MonoGame/ToggleButtonVisual.cs:120-127 | Themes/Gum.Themes.Neon.MonoGame/ButtonVisual.cs:133-140 | Themes/Gum.Themes.Neon.MonoGame/ComboBoxVisual.cs:122-129 | Themes/Gum.Themes.Neon.MonoGame/ListBoxVisual.cs:110-117 | Themes/Gum.Themes.Neon.MonoGame/ScrollViewerVisual.cs:108-115 | Themes/Gum.Themes.Neon.MonoGame/SliderThumbVisual.cs:100-107 | Themes/Gum.Themes.Neon.MonoGame/ToggleButtonVisual.cs:129-136 — before extracting anything, compare `Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 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 (9–10 lines × 8) · ×1
  • Duplicated block (9–10 lines × 8) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:189 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:189-197 | Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs:188-196 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTheme.cs:215-223 | Themes/Gum.Themes.Hazard.MonoGame/HazardTheme.cs:205-213 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTheme.cs:220-228 | Themes/Gum.Themes.Neon.MonoGame/NeonTheme.cs:213-221 | Themes/Gum.Themes.Retro95.MonoGame/Retro95Theme.cs:186-194 | Themes/Gum.Themes.Template.MonoGame/TemplateTheme.cs:250-259 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/DarkProTheme.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 271 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTheme.cs:215` calls `VisualTemplate`, `ScrollBarVisual` and `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:189` 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 (8 lines × 5) · ×1
  • Duplicated block (8 lines × 5) Themes/Gum.Themes.Hazard.MonoGame/ButtonVisual.cs:48 — Themes/Gum.Themes.Hazard.MonoGame/ButtonVisual.cs:48-55 | Themes/Gum.Themes.Hazard.MonoGame/ComboBoxVisual.cs:60-67 | Themes/Gum.Themes.Hazard.MonoGame/ListBoxVisual.cs:41-48 | Themes/Gum.Themes.Hazard.MonoGame/ScrollViewerVisual.cs:38-45 | Themes/Gum.Themes.Hazard.MonoGame/ToggleButtonVisual.cs:49-56 — 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 5 call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (9–10 lines × 2) · ×1
  • Duplicated block (9–10 lines × 2) Gum/DataTypes/BehaviorSaveExtensionMethods.cs:26 — Gum/DataTypes/BehaviorSaveExtensionMethods.cs:26-34 | Gum/DataTypes/ElementSaveExtensionMethods.cs:89-98 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Gum/DataTypes/BehaviorSaveExtensionMethods.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.
D4 · Code Duplication · Duplicated block (8–9 lines × 102) · ×1
  • Duplicated block (8–9 lines × 102) Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs:72 — Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs:72-80 | Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs:93-101 | Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs:89-97 | Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs:110-118 | Themes/Gum.Themes.DarkPro.MonoGame/DarkProTextInputDecoration.cs:66-74 | Themes/Gum.Themes.DarkPro.MonoGame/DarkProTextInputDecoration.cs:87-95 | Themes/Gum.Themes.DarkPro.MonoGame/ListBoxItemVisual.cs:57-65 | Themes/Gum.Themes.DarkPro.MonoGame/ListBoxVisual.cs:73-81 | Themes/Gum.Themes.DarkPro.MonoGame/ListBoxVisual.cs:94-102 | Themes/Gum.Themes.DarkPro.MonoGame/MenuItemVisual.cs:110-118 | Themes/Gum.Themes.DarkPro.MonoGame/MenuVisual.cs:50-58 | Themes/Gum.Themes.DarkPro.MonoGame/ScrollBarThumbVisual.cs:57-65 | Themes/Gum.Themes.DarkPro.MonoGame/ScrollBarVisual.cs:197-205 | Themes/Gum.Themes.DarkPro.MonoGame/ScrollBarVisual.cs:218-226 | Themes/Gum.Themes.DarkPro.MonoGame/ScrollViewerVisual.cs:71-79 | Themes/Gum.Themes.DarkPro.MonoGame/ScrollViewerVisual.cs:92-100 | Themes/Gum.Themes.DarkPro.MonoGame/SliderThumbVisual.cs:59-67 | Themes/Gum.Themes.DarkPro.MonoGame/SplitterVisual.cs:38-46 | Themes/Gum.Themes.DarkPro.MonoGame/ToggleButtonVisual.cs:70-78 | Themes/Gum.Themes.DarkPro.MonoGame/ToggleButtonVisual.cs:91-99 | Themes/Gum.Themes.DarkPro.MonoGame/TooltipVisual.cs:47-55 | Themes/Gum.Themes.DarkPro.MonoGame/TooltipVisual.cs:68-76 | Themes/Gum.Themes.DarkPro.MonoGame/WindowVisual.cs:99-107 | Themes/Gum.Themes.DarkPro.MonoGame/WindowVisual.cs:120-128 | Themes/Gum.Themes.DarkPro.MonoGame/WindowVisual.cs:142-150 | Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:72-80 | Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:104-112 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeButtonChrome.cs:82-90 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeButtonChrome.cs:122-130 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs:63-71 | Themes/Gum.Themes.ForestGlade.MonoGame/ForestGladeTextInputDecoration.cs:96-104 | Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxItemVisual.cs:56-64 | Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs:95-103 | Themes/Gum.Themes.ForestGlade.MonoGame/ListBoxVisual.cs:114-122 | Themes/Gum.Themes.ForestGlade.MonoGame/MenuItemVisual.cs:87-95 | Themes/Gum.Themes.ForestGlade.MonoGame/MenuVisual.cs:52-60 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollBarThumbVisual.cs:47-55 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollBarVisual.cs:143-151 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollBarVisual.cs:162-170 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollViewerVisual.cs:89-97 | Themes/Gum.Themes.ForestGlade.MonoGame/ScrollViewerVisual.cs:108-116 | Themes/Gum.Themes.ForestGlade.MonoGame/SliderThumbVisual.cs:58-66 | Themes/Gum.Themes.ForestGlade.MonoGame/SplitterVisual.cs:32-40 | Themes/Gum.Themes.ForestGlade.MonoGame/TooltipVisual.cs:47-55 | Themes/Gum.Themes.ForestGlade.MonoGame/TooltipVisual.cs:66-74 | Themes/Gum.Themes.ForestGlade.MonoGame/WindowVisual.cs:79-87 | Themes/Gum.Themes.ForestGlade.MonoGame/WindowVisual.cs:103-111 | Themes/Gum.Themes.ForestGlade.MonoGame/WindowVisual.cs:134-142 | Themes/Gum.Themes.Meadow.MonoGame/ButtonVisual.cs:76-84 | Themes/Gum.Themes.Meadow.MonoGame/ComboBoxVisual.cs:79-87 | Themes/Gum.Themes.Meadow.MonoGame/ComboBoxVisual.cs:100-108 | Themes/Gum.Themes.Meadow.MonoGame/ListBoxVisual.cs:64-72 | Themes/Gum.Themes.Meadow.MonoGame/ListBoxVisual.cs:85-93 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTextInputDecoration.cs:69-77 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTextInputDecoration.cs:90-98 | Themes/Gum.Themes.Meadow.MonoGame/MenuItemVisual.cs:91-99 | Themes/Gum.Themes.Meadow.MonoGame/MenuVisual.cs:46-54 | Themes/Gum.Themes.Meadow.MonoGame/ScrollBarThumbVisual.cs:51-59 | Themes/Gum.Themes.Meadow.MonoGame/ScrollBarVisual.cs:147-155 | Themes/Gum.Themes.Meadow.MonoGame/ScrollBarVisual.cs:168-176 | Themes/Gum.Themes.Meadow.MonoGame/ScrollViewerVisual.cs:56-64 | Themes/Gum.Themes.Meadow.MonoGame/ScrollViewerVisual.cs:77-85 | Themes/Gum.Themes.Meadow.MonoGame/SliderThumbVisual.cs:63-71 | Themes/Gum.Themes.Meadow.MonoGame/SplitterVisual.cs:32-40 | Themes/Gum.Themes.Meadow.MonoGame/ToggleButtonVisual.cs:71-79 | Themes/Gum.Themes.Meadow.MonoGame/ToggleButtonVisual.cs:97-105 | Themes/Gum.Themes.Meadow.MonoGame/TooltipVisual.cs:44-52 | Themes/Gum.Themes.Meadow.MonoGame/TooltipVisual.cs:65-73 | Themes/Gum.Themes.Meadow.MonoGame/WindowVisual.cs:97-105 | Themes/Gum.Themes.Meadow.MonoGame/WindowVisual.cs:124-132 | Themes/Gum.Themes.Meadow.MonoGame/WindowVisual.cs:147-155 | Themes/Gum.Themes.Neon.MonoGame/ButtonVisual.cs:88-96 | Themes/Gum.Themes.Neon.MonoGame/ButtonVisual.cs:112-120 | Themes/Gum.Themes.Neon.MonoGame/ComboBoxVisual.cs:78-86 | Themes/Gum.Themes.Neon.MonoGame/ComboBoxVisual.cs:99-107 | Themes/Gum.Themes.Neon.MonoGame/ListBoxItemVisual.cs:49-57 | Themes/Gum.Themes.Neon.MonoGame/ListBoxVisual.cs:66-74 | Themes/Gum.Themes.Neon.MonoGame/ListBoxVisual.cs:87-95 | Themes/Gum.Themes.Neon.MonoGame/MenuItemVisual.cs:90-98 | Themes/Gum.Themes.Neon.MonoGame/MenuVisual.cs:46-54 | Themes/Gum.Themes.Neon.MonoGame/NeonTextInputDecoration.cs:57-65 | Themes/Gum.Themes.Neon.MonoGame/NeonTextInputDecoration.cs:78-86 | Themes/Gum.Themes.Neon.MonoGame/ScrollBarThumbVisual.cs:52-60 | Themes/Gum.Themes.Neon.MonoGame/ScrollBarVisual.cs:147-155 | Themes/Gum.Themes.Neon.MonoGame/ScrollBarVisual.cs:168-176 | Themes/Gum.Themes.Neon.MonoGame/ScrollViewerVisual.cs:64-72 | Themes/Gum.Themes.Neon.MonoGame/ScrollViewerVisual.cs:85-93 | Themes/Gum.Themes.Neon.MonoGame/SliderThumbVisual.cs:70-78 | Themes/Gum.Themes.Neon.MonoGame/SplitterVisual.cs:32-40 | Themes/Gum.Themes.Neon.MonoGame/ToggleButtonVisual.cs:80-88 | Themes/Gum.Themes.Neon.MonoGame/ToggleButtonVisual.cs:106-114 | Themes/Gum.Themes.Neon.MonoGame/TooltipVisual.cs:42-50 | Themes/Gum.Themes.Neon.MonoGame/TooltipVisual.cs:63-71 | Themes/Gum.Themes.Neon.MonoGame/WindowVisual.cs:94-102 | Themes/Gum.Themes.Neon.MonoGame/WindowVisual.cs:121-129 | Themes/Gum.Themes.Neon.MonoGame/WindowVisual.cs:145-153 | Themes/Gum.Themes.Retro95.MonoGame/MenuItemVisual.cs:76-83 | Themes/Gum.Themes.Retro95.MonoGame/MenuVisual.cs:44-51 | Themes/Gum.Themes.Retro95.MonoGame/Retro95Bevel.cs:193-200 | Themes/Gum.Themes.Retro95.MonoGame/ScrollBarVisual.cs:222-229 | Themes/Gum.Themes.Retro95.MonoGame/TooltipVisual.cs:57-64 | Themes/Gum.Themes.Retro95.MonoGame/WindowVisual.cs:125-132 — before extracting anything, compare `Themes/Gum.Themes.DarkPro.MonoGame/ButtonVisual.cs` and `Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 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, `Themes/Gum.Themes.ForestGlade.MonoGame/ComboBoxVisual.cs:81` calls `ApplyMedium` and `Themes/Gum.Themes.DarkPro.MonoGame/ListBoxItemVisual.cs:66` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (6–9 lines × 2) · ×1
  • Duplicated block (6–9 lines × 2) MonoGameGum/Forms/DefaultVisuals/V3/MenuItemVisual.cs:61 — MonoGameGum/Forms/DefaultVisuals/V3/MenuItemVisual.cs:61-66 | MonoGameGum/Forms/DefaultVisuals/V3/TextBoxBaseVisual.cs:198-206 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `MonoGameGum/Forms/DefaultVisuals/V3/MenuItemVisual.cs:61` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. 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) Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs:178 — Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs:178-210 | Themes/Gum.Themes.Hazard.MonoGame/ComboBoxVisual.cs:113-145 | Themes/Gum.Themes.Template.MonoGame/ComboBoxVisual.cs:112-144 — `Themes/Gum.Themes.DarkPro.MonoGame/ComboBoxVisual.cs` and `Themes/Gum.Themes.Hazard.MonoGame/ComboBoxVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 80 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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 × 4) · ×1
  • Duplicated block (26 lines × 4) Themes/Gum.Themes.Bubblegum.MonoGame/ScrollBarThumbVisual.cs:51 — Themes/Gum.Themes.Bubblegum.MonoGame/ScrollBarThumbVisual.cs:51-76 | Themes/Gum.Themes.DarkPro.MonoGame/ScrollBarThumbVisual.cs:74-102 | Themes/Gum.Themes.Hazard.MonoGame/ScrollBarThumbVisual.cs:45-73 | Themes/Gum.Themes.Template.MonoGame/ScrollBarThumbVisual.cs:45-73 — 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.
D4 · Code Duplication · Duplicated block (59 lines × 3) · ×1
  • Duplicated block (59 lines × 3) Themes/Gum.Themes.DarkPro.MonoGame/ToggleButtonVisual.cs:134 — Themes/Gum.Themes.DarkPro.MonoGame/ToggleButtonVisual.cs:134-192 | Themes/Gum.Themes.Hazard.MonoGame/ToggleButtonVisual.cs:67-125 | Themes/Gum.Themes.Template.MonoGame/ToggleButtonVisual.cs:65-123 — 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 (13 lines × 13) · ×1
  • Duplicated block (13 lines × 13) RenderingLibrary/Graphics/NineSlice.cs:386 — RenderingLibrary/Graphics/NineSlice.cs:386-398 | RenderingLibrary/Graphics/Sprite.cs:224-236 | RenderingLibrary/Graphics/Text.cs:670-682 | RenderingLibrary/Math/Geometry/Line.cs:132-144 | RenderingLibrary/Math/Geometry/LineCircle.cs:285-297 | RenderingLibrary/Math/Geometry/LinePolygon.cs:321-333 | RenderingLibrary/Math/Geometry/LineRectangle.cs:123-135 | Runtimes/RaylibGum/Renderables/Text.cs:316-328 | Runtimes/SkiaGum/Renderables/CanvasRenderable.cs:47-59 | Runtimes/SkiaGum/Renderables/LottieAnimation.cs:49-61 | Runtimes/SkiaGum/Renderables/RenderableShapeBase.cs:101-113 | Runtimes/SkiaGum/Renderables/Text.cs:785-797 | Runtimes/SkiaGum/Renderables/VectorSprite.cs:85-97 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 13 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 13 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 (14 lines × 4) · ×1
  • Duplicated block (14 lines × 4) Themes/Gum.Themes.DarkPro.MonoGame/SliderThumbVisual.cs:39 — Themes/Gum.Themes.DarkPro.MonoGame/SliderThumbVisual.cs:39-52 | Themes/Gum.Themes.ForestGlade.MonoGame/SliderThumbVisual.cs:40-53 | Themes/Gum.Themes.Meadow.MonoGame/SliderThumbVisual.cs:43-56 | Themes/Gum.Themes.Neon.MonoGame/SliderThumbVisual.cs:46-59 — `Themes/Gum.Themes.DarkPro.MonoGame/SliderThumbVisual.cs` and `Themes/Gum.Themes.ForestGlade.MonoGame/SliderThumbVisual.cs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 69 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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 (22 lines × 3) · ×1
  • Duplicated block (22 lines × 3) Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:47 — Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs:47-69 | Themes/Gum.Themes.Hazard.MonoGame/HazardTheme.cs:52-73 | Themes/Gum.Themes.Meadow.MonoGame/MeadowTheme.cs:68-90 — before extracting anything, compare `Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumTheme.cs` and `Themes/Gum.Themes.Hazard.MonoGame/HazardTheme.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 234 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 · Near-duplicate member pair (137 shared lines) · ×1
  • Near-duplicate member pair (137 shared lines) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2669 — Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2669-3040 | Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:3050-3673 — These two members are variants of one another: 137 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 (49 shared lines) · ×1
  • Near-duplicate member pair (49 shared lines) Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:157 — Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:157-228 | Samples/raylib/Screens/ArcsScreen.cs:163-234 — These two members are variants of one another: 49 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 (44 shared lines) · ×1
  • Near-duplicate member pair (44 shared lines) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:242 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:242-299 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:309-362 — These two members are variants of one another: 44 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 (41 shared lines) · ×1
  • Near-duplicate member pair (41 shared lines) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:336 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:336-403 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:397-459 — These two members are variants of one another: 41 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Members sharing a duplicated core (14 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (14 members, 50+ identical tokens) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:188 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:188-211 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:408-451 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:468-528 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:536-550 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:601-618 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:643-678 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:681-711 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:208-236 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:268-282 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:289-303 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:464-502 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:519-539 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:556-573 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:635-661 — These 14 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 14 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 14 times.
D4 · Code Duplication · Members sharing a duplicated core (10 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (10 members, 50+ identical tokens) Samples/MonoGameGumThemesShowcase/Game1.cs:319 — Samples/MonoGameGumThemesShowcase/Game1.cs:319-341 | Samples/MonoGameGumThemesShowcase/Game1.cs:344-374 | Samples/MonoGameGumThemesShowcase/Game1.cs:413-439 | Samples/MonoGameGumThemesShowcase/Game1.cs:515-553 | Samples/MonoGameGumThemesShowcase/Game1.cs:556-575 | Samples/RaylibGumThemesShowcase/Program.cs:258-280 | Samples/RaylibGumThemesShowcase/Program.cs:283-313 | Samples/RaylibGumThemesShowcase/Program.cs:352-378 | Samples/RaylibGumThemesShowcase/Program.cs:454-492 | Samples/RaylibGumThemesShowcase/Program.cs:495-514 — These 10 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 10 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 10 times.
D4 · Code Duplication · Edited copies of one member (3 members, 58+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 58+ corresponding lines) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:322 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ArcsScreen.cs:322-379 | Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:299-356 | Samples/raylib/Screens/ArcsScreen.cs:284-356 — 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 (54 corresponding lines) · ×1
  • Edited copy of a member (54 corresponding lines) Tools/Gum.Presentation/Commands/EditCommands.cs:94 — Tools/Gum.Presentation/Commands/EditCommands.cs:94-153 | Tools/Gum.Presentation/Commands/EditCommands.cs:319-372 — These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport 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, 27+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 27+ corresponding lines) Tools/Gum.Presentation/Logic/ReorderLogic.cs:35 — Tools/Gum.Presentation/Logic/ReorderLogic.cs:35-71 | Tools/Gum.Presentation/Logic/ReorderLogic.cs:74-112 | Tools/Gum.Presentation/Logic/ReorderLogic.cs:168-194 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 27 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 32+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 32+ corresponding lines) Tools/Gum.Presentation/Plugins/ImportPlugin/ViewModel/ImportBehaviorDialog.cs:37 — Tools/Gum.Presentation/Plugins/ImportPlugin/ViewModel/ImportBehaviorDialog.cs:37-69 | Tools/Gum.Presentation/Plugins/ImportPlugin/ViewModel/ImportComponentDialog.cs:37-69 | Tools/Gum.Presentation/Plugins/ImportPlugin/ViewModel/ImportScreenDialog.cs:26-57 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 32 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 20+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 20+ corresponding lines) REDACTED:197 — REDACTED:197-216 | REDACTED:219-238 | REDACTED:241-260 | REDACTED:263-282 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (25 corresponding lines) · ×1
  • Edited copy of a member (25 corresponding lines) Tools/Gum.ProjectServices/JsonDroppedContentScanner.cs:41 — Tools/Gum.ProjectServices/JsonDroppedContentScanner.cs:41-65 | Tools/Gum.ProjectServices/ProjectLoader.cs:321-364 — These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (5 members, 18+ corresponding lines) · ×1
  • Edited copies of one member (5 members, 18+ corresponding lines) Tools/Gum.Presentation/CodeOutputPlugin/CodeOutputSettingsMembers.cs:445 — Tools/Gum.Presentation/CodeOutputPlugin/CodeOutputSettingsMembers.cs:445-463 | Tools/Gum.Presentation/CodeOutputPlugin/CodeOutputSettingsMembers.cs:482-499 | Tools/Gum.Presentation/CodeOutputPlugin/CodeOutputSettingsMembers.cs:502-519 | Tools/Gum.Presentation/CodeOutputPlugin/CodeOutputSettingsMembers.cs:728-745 | Tools/Gum.Presentation/CodeOutputPlugin/CodeOutputSettingsMembers.cs:748-766 — These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 24+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 24+ corresponding lines) Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs:381 — Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs:381-404 | Samples/KniSkiaGumFromFile/KniSkiaGumFromFile/Game1.cs:262-285 | Samples/MonoGameGumFromFile/MonoGameGumFromFile/Game1.cs:409-432 | Samples/SokolGumFromFile/Program.cs:478-501 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 12+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 12+ corresponding lines) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:160 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:160-171 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:180-191 | Samples/raylib/Screens/ArcsScreen.cs:97-110 | Samples/raylib/Screens/ArcsScreen.cs:115-128 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 15+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 15+ corresponding lines) Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs:407 — Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs:407-421 | Samples/MonoGameGumFromFile/MonoGameGumFromFile/Game1.cs:435-449 | Samples/SokolGumFromFile/Program.cs:504-518 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 11+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 11+ corresponding lines) Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs:259 — Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs:259-272 | Samples/KniSkiaGumFromFile/KniSkiaGumFromFile/Game1.cs:164-177 | Samples/MonoGameGumFromFile/MonoGameGumFromFile/Game1.cs:281-294 | Samples/SokolGumFromFile/Program.cs:356-366 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (2 corresponding lines) · ×1
  • Edited copy of a member (2 corresponding lines) Tools/Gum.ImageDiff/ImageDiffResult.cs:51 — Tools/Gum.ImageDiff/ImageDiffResult.cs:51-53 | Tools/Gum.ImageDiff/PixelDiffResult.cs:27-28 — These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (3 corresponding lines) · ×1
  • Edited copy of a member (3 corresponding lines) Tools/Gum.Presentation/FileWatchPlugin/FileWatchManager.cs:274 — Tools/Gum.Presentation/FileWatchPlugin/FileWatchManager.cs:274-282 | Tools/Gum.Presentation/Managers/FileChangeReactionLogic.cs:304-306 — 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 · Edited copies of one member (4 members, 7+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 7+ corresponding lines) Tools/Gum.Presentation/Managers/NameVerifier.cs:278 — Tools/Gum.Presentation/Managers/NameVerifier.cs:278-284 | Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/ElementSaveDisplayer.cs:1000-1006 | Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/VariableGridEntry.cs:536-542 | Tools/Gum.Presentation/Services/ExposeVariableService.cs:192-198 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 8+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 8+ corresponding lines) Samples/GameUiSamples/Components/HyTaleComponents/HyTaleHotBar.cs:25 — Samples/GameUiSamples/Components/HyTaleComponents/HyTaleHotBar.cs:25-32 | Samples/GameUiSamples/Components/StardewComponents/Hotbar.cs:29-36 | Samples/GameUiSamplesSkia/Components/HyTaleComponents/HyTaleHotBar.cs:25-32 | Samples/GameUiSamplesSkia/Components/StardewComponents/Hotbar.cs:29-36 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Duplicated block (49 lines × 2) · ×1
  • Duplicated block (49 lines × 2) Samples/GameUiSamples/Screens/HyTaleHotbarScreen.cs:60 — Samples/GameUiSamples/Screens/HyTaleHotbarScreen.cs:60-108 | Samples/GameUiSamplesSkia/Screens/HyTaleHotbarScreen.cs:60-108 — before extracting anything, compare `Samples/GameUiSamples/Screens/HyTaleHotbarScreen.cs` and `Samples/GameUiSamplesSkia/Screens/HyTaleHotbarScreen.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 111 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 (46–47 lines × 2) · ×1
  • Duplicated block (46–47 lines × 2) Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/SetVariableLogic.cs:584 — Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/SetVariableLogic.cs:584-629 | Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/SetVariableLogic.cs:816-862 — 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 `Tools/Gum.Presentation/Plugins/InternalPlugins/VariableGrid/SetVariableLogic.cs:584` 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 (41–42 lines × 2) · ×1
  • Duplicated block (41–42 lines × 2) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2947 — Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2947-2987 | Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:3408-3449 — 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 `Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2947` 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 (39 lines × 2) · ×1
  • Duplicated block (39 lines × 2) Samples/GameUiSamples/Screens/FrbClicker/FrbClickerCodeOnly.cs:177 — Samples/GameUiSamples/Screens/FrbClicker/FrbClickerCodeOnly.cs:177-215 | Samples/GameUiSamplesSkia/Screens/FrbClicker/FrbClickerCodeOnly.cs:177-215 — before extracting anything, compare `Samples/GameUiSamples/Screens/FrbClicker/FrbClickerCodeOnly.cs` and `Samples/GameUiSamplesSkia/Screens/FrbClicker/FrbClickerCodeOnly.cs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 159 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 (34 lines × 2) · ×1
  • Duplicated block (34 lines × 2) Samples/GameUiSamples/Screens/MainMenu.cs:30 — Samples/GameUiSamples/Screens/MainMenu.cs:30-63 | Samples/GameUiSamplesSkia/Screens/MainMenu.cs:30-63 — before extracting anything, compare `Samples/GameUiSamples/Screens/MainMenu.cs` and `Samples/GameUiSamplesSkia/Screens/MainMenu.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. 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–34 lines × 2) · ×1
  • Duplicated block (26–34 lines × 2) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2997 — Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2997-3030 | Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:3625-3650 — 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 `Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2997` 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 (31 lines × 2) · ×1
  • Duplicated block (31 lines × 2) Samples/MonoGameGumThemesShowcase/Game1.cs:443 — Samples/MonoGameGumThemesShowcase/Game1.cs:443-473 | Samples/RaylibGumThemesShowcase/Program.cs:382-412 — before extracting anything, compare `Samples/MonoGameGumThemesShowcase/Game1.cs` and `Samples/RaylibGumThemesShowcase/Program.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 201 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 (31–32 lines × 2) · ×1
  • Duplicated block (31–32 lines × 2) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/LayerCameraSettingsScreen.cs:83 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/LayerCameraSettingsScreen.cs:83-114 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/ZoomScreen.cs:58-88 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (28 lines × 3) · ×1
  • Duplicated block (28 lines × 3) Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs:165 — Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs:165-192 | Samples/MonoGameGumFromFile/MonoGameGumFromFile/Game1.cs:167-194 | Samples/SokolGumFromFile/Program.cs:257-284 — before extracting anything, compare `Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs` and `Samples/MonoGameGumFromFile/MonoGameGumFromFile/Game1.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 97 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 (27 lines × 2) · ×1
  • Duplicated block (27 lines × 2) Samples/GameUiSamples/Components/HyTaleComponents/HyTaleInventory.cs:22 — Samples/GameUiSamples/Components/HyTaleComponents/HyTaleInventory.cs:22-48 | Samples/GameUiSamplesSkia/Components/HyTaleComponents/HyTaleInventory.cs:22-48 — before extracting anything, compare `Samples/GameUiSamples/Components/HyTaleComponents/HyTaleInventory.cs` and `Samples/GameUiSamplesSkia/Components/HyTaleComponents/HyTaleInventory.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. 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–27 lines × 2) · ×1
  • Duplicated block (14–27 lines × 2) Tools/Gum.Presentation/Logic/CopyPasteLogic.cs:916 — Tools/Gum.Presentation/Logic/CopyPasteLogic.cs:916-929 | Tools/Gum.Presentation/Logic/CopyPasteLogic.cs:975-1001 — 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 `Tools/Gum.Presentation/Logic/CopyPasteLogic.cs:916` 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–26 lines × 2) · ×1
  • Duplicated block (16–26 lines × 2) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2669 — Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2669-2684 | Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:3050-3075 — 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 `Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2669` 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, `Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2685` calls `EndsWith` and `Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:3079` 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 (22–25 lines × 2) · ×1
  • Duplicated block (22–25 lines × 2) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2926 — Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2926-2947 | Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:3380-3404 — 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 `Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2926` 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 (17–25 lines × 2) · ×1
  • Duplicated block (17–25 lines × 2) Tools/Gum.Presentation/CodeOutputPlugin/Manager/ParentSetLogic.cs:46 — Tools/Gum.Presentation/CodeOutputPlugin/Manager/ParentSetLogic.cs:46-70 | Tools/Gum.Presentation/CodeOutputPlugin/Manager/ParentSetLogic.cs:84-100 — 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 `Tools/Gum.Presentation/CodeOutputPlugin/Manager/ParentSetLogic.cs:46` 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. Note first that the copies are not typed on the same thing: the declarations holding them bind `element` to `ElementSave?` in one and `ElementSave` 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 (14–23 lines × 2) · ×1
  • Duplicated block (14–23 lines × 2) Tools/Gum.ProjectServices.Raylib/RaylibScreenshotService.cs:40 — Tools/Gum.ProjectServices.Raylib/RaylibScreenshotService.cs:40-62 | Tools/Gum.ProjectServices.SkiaGum/SkiaGumScreenshotService.cs:41-54 — 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 (21–23 lines × 2) · ×1
  • Duplicated block (21–23 lines × 2) Tools/Gum.Presentation/Commands/FileCommands.cs:452 — Tools/Gum.Presentation/Commands/FileCommands.cs:452-472 | Tools/Gum.Presentation/Commands/FileCommands.cs:665-687 — 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 `Tools/Gum.Presentation/Commands/FileCommands.cs:452` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (16–21 lines × 2) · ×1
  • Duplicated block (16–21 lines × 2) Samples/KniGumInCode/KniGumInCodeCommon/KniGumInCodeGame.cs:256 — Samples/KniGumInCode/KniGumInCodeCommon/KniGumInCodeGame.cs:256-271 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/MixedScreen.cs:179-199 — 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 `Samples/KniGumInCode/KniGumInCodeCommon/KniGumInCodeGame.cs:256` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (15 lines × 3) · ×1
  • Duplicated block (15 lines × 3) Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs:427 — Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs:427-441 | Samples/MonoGameGumFromFile/MonoGameGumFromFile/Game1.cs:455-469 | Samples/SokolGumFromFile/Program.cs:524-538 — before extracting anything, compare `Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs` and `Samples/MonoGameGumFromFile/MonoGameGumFromFile/Game1.cs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 97 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 `Samples/KniGumFromFile/KniGumFromFileCommon/KniGumFromFileGame.cs:427` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (14–19 lines × 2) · ×1
  • Duplicated block (14–19 lines × 2) Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2327 — Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2327-2345 | Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2422-2435 — 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 `Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:2327` 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 (14–17 lines × 3) · ×1
  • Duplicated block (14–17 lines × 3) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:52 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:52-68 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:58-74 | Samples/raylib/Screens/ArcsScreen.cs:28-41 — before extracting anything, compare `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 251 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 `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.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 (70 lines × 2) · ×1
  • Duplicated block (70 lines × 2) Samples/GameUiSamples/Services/HyTaleInventoryService.cs:26 — Samples/GameUiSamples/Services/HyTaleInventoryService.cs:26-95 | Samples/GameUiSamplesSkia/Services/HyTaleInventoryService.cs:26-95 — before extracting anything, compare `Samples/GameUiSamples/Services/HyTaleInventoryService.cs` and `Samples/GameUiSamplesSkia/Services/HyTaleInventoryService.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.
D4 · Code Duplication · Duplicated block (8–16 lines × 4) · ×1
  • Duplicated block (8–16 lines × 4) Tools/Gum.Presentation/Logic/GumProjectRepairLogic.cs:129 — Tools/Gum.Presentation/Logic/GumProjectRepairLogic.cs:129-136 | Tools/Gum.Presentation/Logic/GumProjectRepairLogic.cs:140-155 | Tools/Gum.Presentation/Logic/GumProjectRepairLogic.cs:167-182 | Tools/Gum.Presentation/Logic/GumProjectRepairLogic.cs:190-197 — 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 `Tools/Gum.Presentation/Logic/GumProjectRepairLogic.cs:129` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Tools/Gum.Presentation/Logic/GumProjectRepairLogic.cs:190` calls `foreach` and `Tools/Gum.Presentation/Logic/GumProjectRepairLogic.cs:140` 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 (14–16 lines × 2) · ×1
  • Duplicated block (14–16 lines × 2) Tools/Gum.Presentation/Services/ExposeVariableService.cs:56 — Tools/Gum.Presentation/Services/ExposeVariableService.cs:56-71 | Tools/Gum.Presentation/Services/ExposeVariableService.cs:99-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 `Tools/Gum.Presentation/Services/ExposeVariableService.cs:56` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (14–15 lines × 4) · ×1
  • Duplicated block (14–15 lines × 4) Samples/GameUiSamples/Screens/HyTaleHotbarScreen.cs:62 — Samples/GameUiSamples/Screens/HyTaleHotbarScreen.cs:62-75 | Samples/GameUiSamples/Screens/HyTaleInventoryScreen.cs:154-168 | Samples/GameUiSamplesSkia/Screens/HyTaleHotbarScreen.cs:62-75 | Samples/GameUiSamplesSkia/Screens/HyTaleInventoryScreen.cs:155-169 — 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. 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 × 2) · ×1
  • Duplicated block (12–13 lines × 2) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:391 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:391-403 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:448-459 — before extracting anything, compare `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 251 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 `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:391` 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 (12 lines × 6) · ×1
  • Duplicated block (12 lines × 6) Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:168 — Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:168-179 | Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:181-192 | Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:194-205 | Samples/raylib/Screens/ArcsScreen.cs:174-185 | Samples/raylib/Screens/ArcsScreen.cs:187-198 | Samples/raylib/Screens/ArcsScreen.cs:200-211 — before extracting anything, compare `Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs` and `Samples/raylib/Screens/ArcsScreen.cs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 before the matched lines, `Samples/raylib/Screens/ArcsScreen.cs:174` calls `Color` and `Samples/SilkNetGum/SilkNetGumSample/Screens/ArcsScreen.cs:168` 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 (10–11 lines × 6) · ×1
  • Duplicated block (10–11 lines × 6) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:246 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:246-256 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:259-269 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:272-282 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:313-322 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:325-334 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:337-346 — before extracting anything, compare `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 251 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, `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:327` calls `Color` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:260` 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 (11 lines × 4) · ×1
  • Duplicated block (11 lines × 4) Samples/MonoGameGumThemesShowcase/Game1.cs:346 — Samples/MonoGameGumThemesShowcase/Game1.cs:346-356 | Samples/MonoGameGumThemesShowcase/Game1.cs:415-425 | Samples/RaylibGumThemesShowcase/Program.cs:285-295 | Samples/RaylibGumThemesShowcase/Program.cs:354-364 — before extracting anything, compare `Samples/MonoGameGumThemesShowcase/Game1.cs` and `Samples/RaylibGumThemesShowcase/Program.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 201 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 `Samples/MonoGameGumThemesShowcase/Game1.cs:346` 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, `Samples/MonoGameGumThemesShowcase/Game1.cs:357` calls `Color` and `Samples/MonoGameGumThemesShowcase/Game1.cs:426` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (10–11 lines × 4) · ×1
  • Duplicated block (10–11 lines × 4) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:361 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:361-371 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:376-386 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:420-429 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:434-443 — before extracting anything, compare `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 251 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, `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:450` calls `Color` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:377` 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 (10–11 lines × 3) · ×1
  • Duplicated block (10–11 lines × 3) Samples/KniGumInCode/KniGumInCodeCommon/KniGumInCodeGame.cs:99 — Samples/KniGumInCode/KniGumInCodeCommon/KniGumInCodeGame.cs:99-108 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/NineSliceScreen.cs:34-44 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/SpriteScreen.cs:34-44 — 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. 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 (5 lines × 8) · ×1
  • Duplicated block (5 lines × 8) Samples/MonoGameGumThemesShowcase/Game1.cs:359 — Samples/MonoGameGumThemesShowcase/Game1.cs:359-363 | Samples/MonoGameGumThemesShowcase/Game1.cs:426-430 | Samples/MonoGameGumThemesShowcase/Game1.cs:536-540 | Samples/MonoGameGumThemesShowcase/Game1.cs:564-568 | Samples/RaylibGumThemesShowcase/Program.cs:298-302 | Samples/RaylibGumThemesShowcase/Program.cs:365-369 | Samples/RaylibGumThemesShowcase/Program.cs:475-479 | Samples/RaylibGumThemesShowcase/Program.cs:503-507 — before extracting anything, compare `Samples/MonoGameGumThemesShowcase/Game1.cs` and `Samples/RaylibGumThemesShowcase/Program.cs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 201 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 `Samples/MonoGameGumThemesShowcase/Game1.cs:359` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (9 lines × 5) · ×1
  • Duplicated block (9 lines × 5) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:469 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:469-477 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:487-500 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:501-511 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:514-522 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:606-614 — 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. 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, `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:478` calls `Add` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:523` 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 (17 lines × 4) · ×1
  • Duplicated block (17 lines × 4) Samples/GameUiSamples/Components/HyTaleComponents/HyTaleHotBar.cs:60 — Samples/GameUiSamples/Components/HyTaleComponents/HyTaleHotBar.cs:60-76 | Samples/GameUiSamples/Components/StardewComponents/Hotbar.cs:50-66 | Samples/GameUiSamplesSkia/Components/HyTaleComponents/HyTaleHotBar.cs:60-76 | Samples/GameUiSamplesSkia/Components/StardewComponents/Hotbar.cs:50-66 — before extracting anything, compare `Samples/GameUiSamples/Components/HyTaleComponents/HyTaleHotBar.cs` and `Samples/GameUiSamplesSkia/Components/HyTaleComponents/HyTaleHotBar.cs` as WHOLE FILES: this scan already matched 5 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.
D4 · Code Duplication · Duplicated block (7 lines × 8) · ×1
  • Duplicated block (7 lines × 8) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:471 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:471-478 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:494-501 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:505-512 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:516-523 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:223-229 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:272-278 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:291-297 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:522-528 — before extracting anything, compare `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 251 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. 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, `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:478` calls `Add` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:523` 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 × 11) · ×1
  • Duplicated block (6 lines × 11) Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:471 — Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:471-477 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:494-500 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:505-511 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:516-522 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:540-546 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:608-614 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:223-228 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:272-277 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:291-296 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:522-527 | Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs:563-569 — before extracting anything, compare `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/RectanglesScreen.cs` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 251 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. 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, `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:478` calls `Add` and `Samples/MonoGameGumInCode/MonoGameGumInCode/Screens/CirclesScreen.cs:523` 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 (160 lines × 2) · ×1
  • Duplicated block (160 lines × 2) Samples/GameUiSamples/Components/FrbClickerComponents/BuildingButtonRuntime.cs:18 — Samples/GameUiSamples/Components/FrbClickerComponents/BuildingButtonRuntime.cs:18-177 | Samples/GameUiSamplesSkia/Components/FrbClickerComponents/BuildingButtonRuntime.cs:18-177 — before extracting anything, compare `Samples/GameUiSamples/Components/FrbClickerComponents/BuildingButtonRuntime.cs` and `Samples/GameUiSamplesSkia/Components/FrbClickerComponents/BuildingButtonRuntime.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 `Samples/GameUiSamples/Components/FrbClickerComponents/BuildingButtonRuntime.cs:18` 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 × 2) · ×1
  • Duplicated block (32 lines × 2) Samples/GameUiSamples/Components/HollowKnightComponents/ManaOrb.cs:22 — Samples/GameUiSamples/Components/HollowKnightComponents/ManaOrb.cs:22-53 | Samples/GameUiSamplesSkia/Components/HollowKnightComponents/ManaOrb.cs:22-53 — before extracting anything, compare `Samples/GameUiSamples/Components/HollowKnightComponents/ManaOrb.cs` and `Samples/GameUiSamplesSkia/Components/HollowKnightComponents/ManaOrb.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. Read the line range as the matched WINDOW rather than a finished unit: at `Samples/GameUiSamples/Components/HollowKnightComponents/ManaOrb.cs:22` 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.
D44 · Platform End-of-Life · End-of-life runtime · ×1
  • End-of-life runtime: .NET Framework net452 WpfDataUi/SampleProject/SampleProject/SampleProject.csproj:12 — WpfDataUi/SampleProject/SampleProject/SampleProject.csproj declares .NET Framework net452 as this project's target framework version, and .NET Framework 4.5.2, support ended 2022-04-26. An unsupported runtime receives no security patches, so every vulnerability disclosed in it since 2022-04-26 is present and unfixable without moving off it. This is a migration rather than an upgrade: there is no newer release of a runtime that has ended.
D5 · Coupling · Unstable project SkiaGum.Maui · ×1
  • Unstable project SkiaGum.Maui Runtimes/SkiaGum.Maui/SkiaGum.Maui.csproj:1 — SkiaGum.Maui has instability 0.33 with 2 dependents.
D5 · Coupling · Unstable project SokolGum · ×1
  • Unstable project SokolGum Runtimes/SokolGum/SokolGum.csproj:1 — SokolGum has instability 0.50 with 2 dependents.
IC1 · Incompleteness & stubs · Markup wires an event to an empty handler · ×1
  • Markup wires an event to an empty handler Gum/Plugins/InternalPlugins/LoadRecentFilesPlugin/Views/RecentFileItem.xaml.cs:19 — `RecentFileItem.xaml` wires an event to `Image_MouseLeftButtonDown`, whose body is empty — the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it.
IC1 · Incompleteness & stubs · Condition was already decided · ×1
  • Condition was already decided — an earlier guard makes this test constant RenderingLibrary/Graphics/Sprite.cs:976 — Control only reaches here when `textureToUse == null` is false, because the guard on line 898 exits otherwise. This test is therefore always false and everything it guards is unreachable. Implement the distinction that was intended, or delete the test.
IC1 · Incompleteness & stubs · Fake-async · ×1
  • Fake-async — async method never awaits Runtimes/SkiaGum.Maui/SkiaGumCanvasView.cs:190 — `HandleTouch` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work.
IC1 · Incompleteness & stubs · Guard cannot change the result · ×1
  • Guard cannot change the result — returns what the code already falls through to Runtimes/SokolGum/Renderer.cs:284 — 1 guard above `return sgp_blend_mode.SGP_BLENDMODE_BLEND;` also returns `sgp_blend_mode.SGP_BLENDMODE_BLEND`, so no input can make it matter. Implement the distinction that was intended, or delete the guard.
P12 · CI test-gate honesty · Test sources removed from compilation · ×1
  • Test sources removed from compilation Tests/FlatRedBall.GumRendering.Tests/FlatRedBall.GumRendering.Tests.csproj:40 — `<Compile Remove="**\*.cs" />` in a test project removes 2 file(s) that declare tests (`Tests/FlatRedBall.GumRendering.Tests/BlendMathTests.cs`, `Tests/FlatRedBall.GumRendering.Tests/SpriteTintTests.cs`) — they are never built, so no gate runs them. Delete the tests or bring them back into the build.
R10 · Code Duplication · Duplicated block (76 lines × 2 locations) · ×1
  • Duplicated block (76 lines × 2 locations) Tool/HtmlToGum/converter/extract.ts:114 — Tool/HtmlToGum/converter/extract.ts:114 · Tool/HtmlToGum/converter/forms.ts:25 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block with local edits (27 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (27 matched lines × 2 locations) Tool/HtmlToGum/converter/map.ts:418 — Tool/HtmlToGum/converter/map.ts:418 · Tool/HtmlToGum/converter/map.ts:756 — the two spans are one implementation copied and then locally edited — 234 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block (21 lines × 2 locations) · ×1
  • Duplicated block (21 lines × 2 locations) Tool/HtmlToGum/converter/map.ts:1775 — Tool/HtmlToGum/converter/map.ts:1775 · Tool/HtmlToGum/converter/map.ts:2052 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block with local edits (15 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (15 matched lines × 2 locations) Tool/HtmlToGum/converter/assets.ts:127 — Tool/HtmlToGum/converter/assets.ts:127 · Tool/HtmlToGum/converter/fonts.ts:122 — the two spans are one implementation copied and then locally edited — 131 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block (15 lines × 2 locations) · ×1
  • Duplicated block (15 lines × 2 locations) Tool/HtmlToGum/converter/convert.ts:257 — Tool/HtmlToGum/converter/convert.ts:257 · Tool/HtmlToGum/converter/raster-isolation.ts:27 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block with local edits (13 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (13 matched lines × 2 locations) Tool/HtmlToGum/converter/forms.ts:134 — Tool/HtmlToGum/converter/forms.ts:134 · Tool/HtmlToGum/converter/map.ts:1701 — the two spans are one implementation copied and then locally edited — 98 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block (9 lines × 5 locations) · ×1
  • Duplicated block (9 lines × 5 locations) Tool/HtmlToGum/converter/map.ts:1729 — Tool/HtmlToGum/converter/map.ts:1729 · Tool/HtmlToGum/converter/map.ts:1787 · Tool/HtmlToGum/converter/map.ts:2018 · Tool/HtmlToGum/converter/map.ts:2043 · +1 more site(s) not listed — all 5 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block (7 lines × 3 locations) · ×1
  • Duplicated block (7 lines × 3 locations) Tool/HtmlToGum/converter/regress.ts:99 — Tool/HtmlToGum/converter/regress.ts:99 · Tool/HtmlToGum/converter/regress.ts:117 · Tool/HtmlToGum/converter/regress.ts:165 — all 3 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block with local edits (5 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (5 matched lines × 2 locations) Tool/HtmlToGum/converter/dom-quiescence.ts:159 — Tool/HtmlToGum/converter/dom-quiescence.ts:159 · Tool/HtmlToGum/converter/dom-quiescence.ts:197 — the two spans are one implementation copied and then locally edited — 57 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block (5 lines × 3 locations) · ×1
  • Duplicated block (5 lines × 3 locations) Tool/HtmlToGum/converter/regress.ts:16 — Tool/HtmlToGum/converter/regress.ts:16 · Tool/HtmlToGum/fidelity/canaries.ts:24 · Tool/HtmlToGum/fidelity/site-fidelity.ts:26 — the 3 copies are spread across 3 files, and the CITED SPAN is a run of MODULE-LEVEL DECLARATIONS — bindings the module declares and exports — rather than statements with a call site. Do not read this as an extract-a-helper row: a call expression cannot stand where a declaration was, and putting one there would delete the names themselves, which are what the rest of the codebase imports. What actually repeats here is the INITIALISER — the same expression shape written once per binding. So give that expression one name (a small helper the initialisers call, or a shared base value they are each derived from) and keep every binding under the name it already has. Where the run is an enumeration — one binding per distinct thing, differing precisely in the thing each one names — the repetition IS the enumeration and collapsing it would delete entries; consider instead whether the set belongs in one exported table the individual names are read out of. Reported because the copies drift apart the first time only one of them is edited.
R2 · Cyclomatic Complexity · Complex function walk (cyclomatic 152, cognitive 247) · ×1
  • Complex function walk (cyclomatic 152, cognitive 247) Tool/HtmlToGum/converter/map.ts:1515 — walk has cyclomatic complexity 152 and cognitive complexity 247; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function walk (cyclomatic 84, cognitive 87) · ×1
  • Complex function walk (cyclomatic 84, cognitive 87) Tool/HtmlToGum/converter/extract.ts:705 — walk has cyclomatic complexity 84 and cognitive complexity 87; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function needsRasterPaint (cyclomatic 64, cognitive 47) · ×1
  • Complex function needsRasterPaint (cyclomatic 64, cognitive 47) Tool/HtmlToGum/converter/extract.ts:373 — needsRasterPaint has cyclomatic complexity 64 and cognitive complexity 47; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function main (cyclomatic 49, cognitive 71) · ×1
  • Complex function main (cyclomatic 49, cognitive 71) Tool/HtmlToGum/fidelity/site-fidelity.ts:150 — main has cyclomatic complexity 49 and cognitive complexity 71; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function shouldRasterTextHeavyCell (cyclomatic 47, cognitive 63) · ×1
  • Complex function shouldRasterTextHeavyCell (cyclomatic 47, cognitive 63) Tool/HtmlToGum/converter/extract.ts:226 — shouldRasterTextHeavyCell has cyclomatic complexity 47 and cognitive complexity 63; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 39, cognitive 52) · ×1
  • Complex function (anonymous) (cyclomatic 39, cognitive 52) Tool/HtmlToGum/converter/dom-quiescence.ts:77 — (anonymous) has cyclomatic complexity 39 and cognitive complexity 52; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function formControlFromDom (cyclomatic 39, cognitive 45) · ×1
  • Complex function formControlFromDom (cyclomatic 39, cognitive 45) Tool/HtmlToGum/converter/extract.ts:109 — formControlFromDom has cyclomatic complexity 39 and cognitive complexity 45; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function formControlFromDom (cyclomatic 38, cognitive 44) · ×1
  • Complex function formControlFromDom (cyclomatic 38, cognitive 44) Tool/HtmlToGum/converter/forms.ts:24 — formControlFromDom has cyclomatic complexity 38 and cognitive complexity 44; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function applyChildrenLayout (cyclomatic 28, cognitive 38) · ×1
  • Complex function applyChildrenLayout (cyclomatic 28, cognitive 38) Tool/HtmlToGum/converter/map.ts:915 — applyChildrenLayout has cyclomatic complexity 28 and cognitive complexity 38; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function resolveBackgroundImageLayout (cyclomatic 27, cognitive 30) · ×1
  • Complex function resolveBackgroundImageLayout (cyclomatic 27, cognitive 30) Tool/HtmlToGum/converter/map.ts:748 — resolveBackgroundImageLayout has cyclomatic complexity 27 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function materializeWebFonts (cyclomatic 26, cognitive 68) · ×1
  • Complex function materializeWebFonts (cyclomatic 26, cognitive 68) Tool/HtmlToGum/converter/fonts.ts:363 — materializeWebFonts has cyclomatic complexity 26 and cognitive complexity 68; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function downloadImages (cyclomatic 26, cognitive 54) · ×1
  • Complex function downloadImages (cyclomatic 26, cognitive 54) Tool/HtmlToGum/converter/assets.ts:223 — downloadImages has cyclomatic complexity 26 and cognitive complexity 54; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function computeBackgroundSpriteCrop (cyclomatic 26, cognitive 21) · ×1
  • Complex function computeBackgroundSpriteCrop (cyclomatic 26, cognitive 21) Tool/HtmlToGum/converter/map.ts:417 — computeBackgroundSpriteCrop has cyclomatic complexity 26 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function emitStackCrossAxis (cyclomatic 25, cognitive 26) · ×1
  • Complex function emitStackCrossAxis (cyclomatic 25, cognitive 26) Tool/HtmlToGum/converter/map.ts:1084 — emitStackCrossAxis has cyclomatic complexity 25 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function walkTextNode (cyclomatic 24, cognitive 49) · ×1
  • Complex function walkTextNode (cyclomatic 24, cognitive 49) Tool/HtmlToGum/converter/extract.ts:551 — walkTextNode has cyclomatic complexity 24 and cognitive complexity 49; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function crawlSite (cyclomatic 23, cognitive 36) · ×1
  • Complex function crawlSite (cyclomatic 23, cognitive 36) Tool/HtmlToGum/fidelity/crawl.ts:26 — crawlSite has cyclomatic complexity 23 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function main (cyclomatic 22, cognitive 34) · ×1
  • Complex function main (cyclomatic 22, cognitive 34) Tool/HtmlToGum/fidelity/canaries.ts:216 — main has cyclomatic complexity 22 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function parseHardTextShadows (cyclomatic 21, cognitive 37) · ×1
  • Complex function parseHardTextShadows (cyclomatic 21, cognitive 37) Tool/HtmlToGum/converter/map.ts:322 — parseHardTextShadows has cyclomatic complexity 21 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function emitFormsControlVars (cyclomatic 21, cognitive 26) · ×1
  • Complex function emitFormsControlVars (cyclomatic 21, cognitive 26) Tool/HtmlToGum/converter/forms.ts:130 — emitFormsControlVars has cyclomatic complexity 21 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function emitVisual (cyclomatic 20, cognitive 35) · ×1
  • Complex function emitVisual (cyclomatic 20, cognitive 35) Tool/HtmlToGum/converter/map.ts:1241 — emitVisual has cyclomatic complexity 20 and cognitive complexity 35; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function extFor (cyclomatic 19, cognitive 16) · ×1
  • Complex function extFor (cyclomatic 19, cognitive 16) Tool/HtmlToGum/converter/fonts.ts:305 — extFor has cyclomatic complexity 19 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function runOne (cyclomatic 18, cognitive 17) · ×1
  • Complex function runOne (cyclomatic 18, cognitive 17) Tool/HtmlToGum/fidelity/canaries.ts:123 — runOne has cyclomatic complexity 18 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function applyHtmlTableBorderPaint (cyclomatic 18, cognitive 10) · ×1
  • Complex function applyHtmlTableBorderPaint (cyclomatic 18, cognitive 10) Tool/HtmlToGum/converter/extract.ts:83 — applyHtmlTableBorderPaint has cyclomatic complexity 18 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function layoutModeOf (cyclomatic 17, cognitive 24) · ×1
  • Complex function layoutModeOf (cyclomatic 17, cognitive 24) Tool/HtmlToGum/converter/map.ts:154 — layoutModeOf has cyclomatic complexity 17 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function unicodeRangeCoversBasicLatin (cyclomatic 16, cognitive 25) · ×1
  • Complex function unicodeRangeCoversBasicLatin (cyclomatic 16, cognitive 25) Tool/HtmlToGum/converter/fonts.ts:77 — unicodeRangeCoversBasicLatin has cyclomatic complexity 16 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function walk (cyclomatic 16, cognitive 24) · ×1
  • Complex function walk (cyclomatic 16, cognitive 24) Tool/HtmlToGum/converter/nineslice.ts:65 — walk has cyclomatic complexity 16 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function main (cyclomatic 16, cognitive 21) · ×1
  • Complex function main (cyclomatic 16, cognitive 21) Tool/HtmlToGum/converter/convert.ts:442 — main has cyclomatic complexity 16 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function walk (cyclomatic 14, cognitive 30) · ×1
  • Complex function walk (cyclomatic 14, cognitive 30) Tool/HtmlToGum/converter/convert.ts:317 — walk has cyclomatic complexity 14 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function collectEntries (cyclomatic 14, cognitive 16) · ×1
  • Complex function collectEntries (cyclomatic 14, cognitive 16) Tool/HtmlToGum/fidelity/canaries.ts:190 — collectEntries has cyclomatic complexity 14 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function sniffExt (cyclomatic 14, cognitive 11) · ×1
  • Complex function sniffExt (cyclomatic 14, cognitive 11) Tool/HtmlToGum/converter/assets.ts:151 — sniffExt has cyclomatic complexity 14 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function parseArgs (cyclomatic 13, cognitive 14) · ×1
  • Complex function parseArgs (cyclomatic 13, cognitive 14) Tool/HtmlToGum/fidelity/site-fidelity.ts:33 — parseArgs has cyclomatic complexity 13 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function emitSpriteSource (cyclomatic 13, cognitive 13) · ×1
  • Complex function emitSpriteSource (cyclomatic 13, cognitive 13) Tool/HtmlToGum/converter/map.ts:1183 — emitSpriteSource has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function textAlignHorizontal (cyclomatic 13, cognitive 11) · ×1
  • Complex function textAlignHorizontal (cyclomatic 13, cognitive 11) Tool/HtmlToGum/converter/map.ts:541 — textAlignHorizontal has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function intersectScreenshotClip (cyclomatic 13, cognitive 10) · ×1
  • Complex function intersectScreenshotClip (cyclomatic 13, cognitive 10) Tool/HtmlToGum/converter/screenshot-clip.ts:12 — intersectScreenshotClip has cyclomatic complexity 13 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function isVisuallyHidden (cyclomatic 13, cognitive 9) · ×1
  • Complex function isVisuallyHidden (cyclomatic 13, cognitive 9) Tool/HtmlToGum/converter/extract.ts:24 — isVisuallyHidden has cyclomatic complexity 13 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function shot (cyclomatic 12, cognitive 18) · ×1
  • Complex function shot (cyclomatic 12, cognitive 18) Tool/HtmlToGum/converter/convert.ts:335 — shot has cyclomatic complexity 12 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function buildRectFillVars (cyclomatic 12, cognitive 18) · ×1
  • Complex function buildRectFillVars (cyclomatic 12, cognitive 18) Tool/HtmlToGum/converter/map.ts:670 — buildRectFillVars has cyclomatic complexity 12 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function repairEmptyCustomFonts (cyclomatic 12, cognitive 16) · ×1
  • Complex function repairEmptyCustomFonts (cyclomatic 12, cognitive 16) Tool/HtmlToGum/converter/fonts.ts:485 — repairEmptyCustomFonts has cyclomatic complexity 12 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function parseArgs (cyclomatic 12, cognitive 13) · ×1
  • Complex function parseArgs (cyclomatic 12, cognitive 13) Tool/HtmlToGum/converter/convert.ts:59 — parseArgs has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function (anonymous) (cyclomatic 12, cognitive 12) · ×1
  • Complex function (anonymous) (cyclomatic 12, cognitive 12) Tool/HtmlToGum/converter/raster-isolation.test.ts:143 — (anonymous) has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R3 · Large Files · Tool/HtmlToGum/converter/map.ts · ×1
  • Tool/HtmlToGum/converter/map.ts: 2026 lines of code Tool/HtmlToGum/converter/map.ts:1 — Tool/HtmlToGum/converter/map.ts has 2026 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · Tool/HtmlToGum/converter/extract.ts · ×1
  • Tool/HtmlToGum/converter/extract.ts: 983 lines of code Tool/HtmlToGum/converter/extract.ts:1 — Tool/HtmlToGum/converter/extract.ts has 983 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · Tool/HtmlToGum/converter/convert.ts · ×1
  • Tool/HtmlToGum/converter/convert.ts: 602 lines of code Tool/HtmlToGum/converter/convert.ts:1 — Tool/HtmlToGum/converter/convert.ts has 602 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · Tool/HtmlToGum/converter/fonts.ts · ×1
  • Tool/HtmlToGum/converter/fonts.ts: 490 lines of code Tool/HtmlToGum/converter/fonts.ts:1 — Tool/HtmlToGum/converter/fonts.ts has 490 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R6 · Tooling · No lint script · ×1
  • No lint script — test ✓ · lint ✗ · typecheck ✓ — read from this repository's package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: `test` for the suite, `lint` or `prettier` for linting, `typecheck`/`type-check`/`tsc` for type checking. ✗ therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline — a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A ✓ means the wiring is DECLARED — a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite.
R7 · Dead Code · Dead file (~50 LoC) · ×1
  • Dead file (~50 LoC) Tool/HtmlToGum/converter/snapshot-gfg.ts — no import path from any entry point (6 application, 1 tooling, 12 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R8 · Dependency Hygiene · Unused dependency 'com.unity.modules.imgui' · ×1
  • Unused dependency 'com.unity.modules.imgui' Unity/com.vchelaru.gum/package.json:9 — Declared in Unity/com.vchelaru.gum/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it.
SC1 · Supply-chain hygiene · JavaScript dependencies are not locked · ×1
  • JavaScript dependencies are not locked Unity/com.vchelaru.gum/package.json:8 — Unity/com.vchelaru.gum/package.json declares dependencies that no committed lockfile resolves — there is no package-lock.json / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it — so its installs aren't reproducible (SSDF PW.4.4). Commit its package manager's lockfile (or add it to the locked workspace) and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
X1 · Async correctness · Blocking `SemaphoreSlim.Wait()` inside an `async` method · ×1
  • Blocking `SemaphoreSlim.Wait()` inside an `async` method MonoGameGum/Forms/Controls/Games/DialogBox.cs:480 — This acquires a `SemaphoreSlim` with the BLOCKING `Wait()` inside a method that is already `async`. The thread does not yield while it queues for the semaphore: it parks a pool thread doing no work, and under contention the pool must grow (or the holders must finish) before any waiter can proceed — which is how a bounded-concurrency gate turns into a throughput collapse under exactly the load it exists to bound. `SemaphoreSlim` ships an asynchronous acquire for this: `await semaphore.WaitAsync()` releases the thread while it waits and is legal here because the enclosing method is already `async`, so this is a one-word change with no signature to break. Where the acquire must be bounded, `await semaphore.WaitAsync(timeout)`/`WaitAsync(cancellationToken)` keep that property; and whichever you use, release it in a `finally` so a throw inside the critical section cannot leak a permit.
X1 · Async correctness · Blocking `Process.WaitForExit` inside an `async` method · ×1
  • Blocking `Process.WaitForExit` inside an `async` method Tools/Gum.ProjectServices/FontGeneration/BmFontExeFileGenerator.cs:76 — `Process.WaitForExit` blocks the thread on I/O while `Process.WaitForExitAsync` exists to wait without one — inside a method that is already `async`, await the twin.
X1 · Async correctness · Sync-over-async (deadlock risk) through `.Result` · ×1
  • Sync-over-async (deadlock risk) through `.Result` Tools/Gum.ProjectServices/FontGeneration/HeadlessFontGenerationService.cs:122 — Reading `.Result` of a task that has not completed blocks this thread until it does — the same block as `.Wait()`: under a synchronization context (Blazor, a UI thread, classic ASP.NET) it deadlocks, and on the thread pool it parks a thread for as long as the work runs. `await` the task instead (make the caller `async`); where a synchronous entry point must stay, keep the block in ONE documented bridge with a timeout.
X1 · Async correctness · Blocking `File.WriteAllBytes` inside an `async` method · ×1
  • Blocking `File.WriteAllBytes` inside an `async` method Tools/Gum.Presentation/ImportFromGumx/Services/GumxImportService.cs:464 — `File.WriteAllBytes` blocks the thread on I/O while `File.WriteAllBytesAsync` exists to wait without one — inside a method that is already `async`, await the twin.
X1 · Async correctness · Sync-over-async (deadlock risk) through `.Wait(…)` · ×1
  • Sync-over-async (deadlock risk) through `.Wait(…)` Tools/Gum.Presentation/Startup/SingleInstance/OpenRequestServer.cs:123 — `.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).
X18 · Disposal-pattern correctness · Owned disposable field is never released · ×1
  • Owned disposable field is never released Runtimes/SkiaGum.Maui/SkiaGumCanvasView.cs:91 — `SkiaGumCanvasView` implements `IDisposable` — so it has told every caller it holds something worth releasing — and it constructs `ExclusiveUiInteractionSemaphore` itself (line 91), which makes that instance its own. But `ExclusiveUiInteractionSemaphore` is named in none of the methods the disposal search covered: `Dispose` (line 812) — 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` (`ExclusiveUiInteractionSemaphore?.Dispose();`), or, if it truly does not need releasing, drop `IDisposable` from the type so the claim and the behaviour agree.
X18 · Disposal-pattern correctness · Finalizer on a type that owns no unmanaged resource · ×1
  • Finalizer on a type that owns no unmanaged resource Gum/CsvLibrary/CsvReader.cs:2068 — `CsvReader` declares a finalizer (line 2068), but nothing in the type is unmanaged: no `IntPtr`/`UIntPtr` or pointer field, no `SafeHandle`, no `HandleRef`, no `extern`/`DllImport` member and no `Marshal`/`GCHandle`/`NativeMemory` use. A finalizer can only release what the garbage collector cannot, so on a purely-managed type it releases nothing and costs something: every instance is put on the finalizer queue, survives at least one extra collection, and is then finalized on a thread that is NOT the disposing one — where the managed objects it touches may already have been finalized themselves. Delete the finalizer (and the `GC.SuppressFinalize` that exists to defuse it); if a handle is added later, wrap it in a `SafeHandle`, which brings its own correct finalization.
X18 · Disposal-pattern correctness · Release token given back after an unprotected call · ×1
  • Release token given back after an unprotected call Tool/Gum.Avalonia/Services/AppInputHooks.cs:31 — `_secondaryClick` is declared `IDisposable` and nothing more, and every assignment to it takes a constructor parameter — so `HookPair` can do exactly one thing with it, which is the release performed here (line 31), and it is the only reference left that can perform it. That release is the tail of an unprotected sequence: `_redraw.Dispose()` runs first (line 30), and nothing in `Dispose` catches it. A single throw from that call skips the release entirely — and because a bare `IDisposable` carries no state to inspect and no second holder to fall back on, whatever it represents (a lock taken for this instance, a semaphore lease, a scope) is then held for the remaining lifetime of the process, with nothing left that could ever give it back. Wrap the calls that precede it in a `try` and move the release into the `finally`, so the one statement that must happen is the one that always happens.
X2 · Cancellation propagation · Async delegate without CancellationToken · ×1
  • Async delegate without CancellationToken: GetText MonoGameGum/Clipboard/ClipboardImplementation.cs:32 — 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>`).
X20 · Mistyped argument guard · Argument guard throws the exception its own condition disproves · ×1
  • Argument guard throws the exception its own condition disproves Gum/CsvLibrary/CsvReader.cs:732 — The guard on line 731 rejects `field` and line 732 reports that rejection as `ArgumentNullException` — but the condition's own test `string.IsNullOrEmpty(field)` is true of a value that is NOT null: it is satisfied by an EMPTY `field`, and on that path `field` 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.
X24 · Document value interpolated into markup unescaped · Untrusted text written into markup unescaped · ×1
  • Untrusted text written into markup unescaped Tools/Gum.ProjectServices/Screenshot/ScreenshotDiffHtmlReportWriter.cs:102 — `WebUtility.HtmlEncode(relativePath)` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through markup this method returns 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. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path.
X28 · Index access outside its own emptiness guard · Index access outside its own emptiness guard · ×1
  • Index access outside its own emptiness guard Tools/Gum.Presentation/ToolStates/SelectedState.cs:135 — This guard tests `value` for emptiness and then indexes it where the test says it is empty: `value.Count > 0` (line 116) neither leaves nor refills `value`, so control falls through to `value[i]` indexes position i of nothing and throws. Either the guard is load-bearing, in which case this access crashes, or `value` cannot be empty here and the guard is dead. Move the access to the branch the test protects, or leave the method on the empty side.
X5 · Nullable reference types · Null guard scopes only part of the work it protects · ×1
  • Null guard scopes only part of the work it protects Gum/Services/Dialogs/Dialog.cs:99 — This method contradicts itself about `userControl`: line 79 tests it for null before doing anything with it — the author's own statement that null is an input this code expects — but that `if` scopes only the block beneath it, and line 99 then dereferences `userControl` as `userControl.Width` AFTER the block has closed, where the guard no longer applies. A null `userControl` skips the guarded body and reaches that line anyway, throwing NullReferenceException on exactly the input the guard was written for. If the dereference belongs to the guarded work, move it inside the block; if `userControl` truly cannot be null by then, the guard above is misleading and should go.
Minor — 341 finding(s)
D24 · Comment Value · redundant comment · ×120
  • redundant comment DataUi.Core/LateBinder.cs:607 — "DynamicMethodCompiler" repeats the code it sits on: 3 of its 3 words (dynamic, method, compiler) are already in `private DynamicMethodCompiler() { }`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment DataUi.Core/LateBinder.cs:710 — "CreateGetDynamicMethod" repeats the code it sits on: 4 of its 4 words (create, get, dynamic, method) are already in `private static DynamicMethod CreateGetDynamicMethod(Type type)`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment DataUi.Core/LateBinder.cs:716 — "CreateSetDynamicMethod" repeats the code it sits on: 4 of its 4 words (create, set, dynamic, method) are already in `private static DynamicMethod CreateSetDynamicMethod(Type type)`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment FlatRedBall.SpecializedXnaControls/Properties/AssemblyInfo.cs:8 — "General Information about an assembly is controlled through the following set of attributes. Change these attribute values to modify the information associated …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment FlatRedBall.SpecializedXnaControls/Properties/AssemblyInfo.cs:20 — "Setting ComVisible to false makes the types in this assembly not visible to COM components. If you need to access a type in this assembly from COM, set the ComV …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment FlatRedBall.SpecializedXnaControls/Properties/AssemblyInfo.cs:25 — "The following GUID is for the ID of the typelib if this project is exposed to COM" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment FlatRedBall.SpecializedXnaControls/Properties/AssemblyInfo.cs:28 — "Version information for an assembly consists of the following four values: Major Version Minor Version Build Number Revision You can specify all the values or y …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment Gum/Behaviors/ListBoxDoubleClickBehavior.cs:66 — "Map original source -> ListBoxItem" repeats the code it sits on: 5 of its 6 words (original, source, list, box, item) are already in `var lbi = ItemsControl.ContainerFromElement(lb, (DependencyObject)e.OriginalSource) as ListBoxItem;`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment Gum/CodeOutputPlugin/Properties/AssemblyInfo.cs:5 — "General Information about an assembly is controlled through the following set of attributes. Change these attribute values to modify the information associated …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment Gum/CodeOutputPlugin/Properties/AssemblyInfo.cs:17 — "Setting ComVisible to false makes the types in this assembly not visible to COM components. If you need to access a type in this assembly from COM, set the ComV …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment Gum/CodeOutputPlugin/Properties/AssemblyInfo.cs:22 — "The following GUID is for the ID of the typelib if this project is exposed to COM" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment Gum/CodeOutputPlugin/Properties/AssemblyInfo.cs:25 — "Version information for an assembly consists of the following four values: Major Version Minor Version Build Number Revision You can specify all the values or y …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment Gum/CommonFormsAndControls/Properties/AssemblyInfo.cs:7 — "General Information about an assembly is controlled through the following set of attributes. Change these attribute values to modify the information associated …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment Gum/CommonFormsAndControls/Properties/AssemblyInfo.cs:19 — "Setting ComVisible to false makes the types in this assembly not visible to COM components. If you need to access a type in this assembly from COM, set the ComV …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment Gum/CommonFormsAndControls/Properties/AssemblyInfo.cs:24 — "The following GUID is for the ID of the typelib if this project is exposed to COM" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment Gum/CommonFormsAndControls/Properties/AssemblyInfo.cs:27 — "Version information for an assembly consists of the following four values: Major Version Minor Version Build Number Revision You can specify all the values or y …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment Gum/CsvLibrary/CsvReader.RecordEnumerator.cs:97 — "ExceptionMessage.EnumerationVersionCheckFailed);" repeats the code it sits on: 5 of its 6 words (exception, enumeration, version, check, failed) are already in `throw new InvalidOperationException("Enumeration version check failed");//ExceptionMessage.EnumerationVersionCheckFailed …`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment Gum/CsvLibrary/CsvReader.RecordEnumerator.cs:128 — "ExceptionMessage.EnumerationVersionCheckFailed);" repeats the code it sits on: 5 of its 6 words (exception, enumeration, version, check, failed) are already in `throw new InvalidOperationException("Enumeration version check failed");//ExceptionMessage.EnumerationVersionCheckFailed …`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment Gum/CsvLibrary/CsvReader.RecordEnumerator.cs:144 — "ExceptionMessage.EnumerationVersionCheckFailed);" repeats the code it sits on: 5 of its 6 words (exception, enumeration, version, check, failed) are already in `throw new InvalidOperationException("Enumeration version check failed");//ExceptionMessage.EnumerationVersionCheckFailed …`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment Gum/CsvLibrary/CsvReader.cs:857 — 5 comments in this file only repeat the code they sit on (lines 857, 860, 930, 1112, 1829), for example "ExceptionMessage.NoCurrentRecord);". Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment Gum/CsvLibrary/Properties/AssemblyInfo.cs:4 — "General Information about an assembly is controlled through the following set of attributes. Change these attribute values to modify the information associated …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment Gum/CsvLibrary/Properties/AssemblyInfo.cs:16 — "Setting ComVisible to false makes the types in this assembly not visible to COM components. If you need to access a type in this assembly from COM, set the ComV …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment Gum/CsvLibrary/Properties/AssemblyInfo.cs:21 — "The following GUID is for the ID of the typelib if this project is exposed to COM" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment Gum/CsvLibrary/Properties/AssemblyInfo.cs:24 — "Version information for an assembly consists of the following four values: Major Version Minor Version Build Number Revision You can specify all the values or y …" is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • redundant comment Gum/DataTypes/StateSaveExtensionMethods.cs:947 — "can we get this from the base element?" repeats the code it sits on: 3 of its 3 words (get, base, element) are already in `var instanceBase = ObjectFinder.Self.GetElementSave(instanceSave);`. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence).
  • + 95 more in this group — see findings.md.
P10 · Library API & versioning · Public type used only inside its own library · ×40
  • Public type used only inside its own library Gum/DataTypes/ElementSaveExtensionMethods.cs:10 — `Gum.DataTypes.VariableSaveSorter` (Gum/DataTypes/ElementSaveExtensionMethods.cs:10) is public, and the library's own code uses it, but no other project in this repository uses it (read: `AvaloniaCanvasSpike.Kni`, `AvaloniaCanvasSpike.MonoGame`, `BrutalGum.OGL`, `BrutalGum.OGL.Tests`, `BrutalGum.Vulkan`, `BrutalGumSample`, `BrutalGumSampleOgl`, `CodeOutputPlugin`, `ConvertToJsonPlugin`, `CrossAssemblyAttributeFixture`, `EditorTabPlugin.Core`, `EditorTabPlugin_XNA`, `EventOutputPlugin`, `FlatRedBall.SpecializedXnaControls`, `FnaGum`, `FnaGum.ShadowDusk`, `FnaSample`, `FontPlayground.MonoGame`, `FontPlayground.Raylib`, `FontResizeDemo.MonoGame`, `GameUiSamples`, `GameUiSamplesSkia`, `Gum`, `Gum.Automation`, `Gum.Automation.KniSkia`, `Gum.Avalonia`, `Gum.Avalonia.Tests`, `Gum.Bundle.Tests`, `Gum.Cli`, `Gum.Cli.Tests`, `Gum.FormsStaging`, `Gum.Layout.Benchmarks`, `Gum.Mvvm.Benchmarks`, `Gum.Presentation`, `Gum.Presentation.Tests`, `Gum.ProjectServices`, `Gum.ProjectServices.MonoGame`, `Gum.ProjectServices.MonoGame.Tests`, `Gum.ProjectServices.Raylib`, `Gum.ProjectServices.Raylib.Tests`, `Gum.ProjectServices.SkiaGum`, `Gum.ProjectServices.SkiaGum.Tests`, `Gum.ProjectServices.Tests`, `Gum.Themes.Bubblegum.Kni`, `Gum.Themes.Bubblegum.MonoGame`, `Gum.Themes.Bubblegum.Raylib`, `Gum.Themes.Bubblegum.Skia`, `Gum.Themes.DarkPro.Kni`, `Gum.Themes.DarkPro.MonoGame`, `Gum.Themes.DarkPro.Raylib`, `Gum.Themes.DarkPro.Skia`, `Gum.Themes.Editor.Kni`, `Gum.Themes.Editor.MonoGame`, `Gum.Themes.Editor.Raylib`, `Gum.Themes.Editor.Skia`, `Gum.Themes.ForestGlade.Kni`, `Gum.Themes.ForestGlade.MonoGame`, `Gum.Themes.ForestGlade.Raylib`, `Gum.Themes.ForestGlade.Skia`, `Gum.Themes.Hazard.Kni`, `Gum.Themes.Hazard.MonoGame`, `Gum.Themes.Hazard.Raylib`, `Gum.Themes.Hazard.Skia`, `Gum.Themes.Meadow.Kni`, `Gum.Themes.Meadow.MonoGame`, `Gum.Themes.Meadow.Raylib`, `Gum.Themes.Meadow.Skia`, `Gum.Themes.Neon.Kni`, `Gum.Themes.Neon.MonoGame`, `Gum.Themes.Neon.Raylib`, `Gum.Themes.Neon.Skia`, `Gum.Themes.Retro95.Kni`, `Gum.Themes.Retro95.MonoGame`, `Gum.Themes.Retro95.Raylib`, `Gum.Themes.Retro95.Skia`, `Gum.Themes.Template.Kni`, `Gum.Themes.Template.MonoGame`, `Gum.Themes.Template.Raylib`, `Gum.Themes.Tests`, `GumExpressions`, `GumExpressions.Tests`, `GumFormsPlugin`, `GumFromZipFile`, `GumPreview`, `GumProjectFontGenerator`, `GumShadowDusk.Tests.KniDesktopGL`, `GumShadowDusk.Tests.KniWindowsDX`, `GumShadowDusk.Tests.MonoGameWindowsDX`, `GumTest`, `GumToolUnitTests`, `ImportFromGumxPlugin`, `InputLibrary`, `KernSmith.FnaGum`, `KernSmith.GumCommon`, `KernSmith.KniGum`, `KernSmith.MonoGameGum`, `KernSmith.RaylibGum`, `KniGum`, `KniGum.ShadowDusk`, `KniGumFormsSample.BlazorGL`, `KniGumFormsSample.DesktopGL`, `KniGumFormsSample.WindowsDX`, `KniGumFormsSampleCommon`, `KniGumFromFile.BlazorGL`, `KniGumFromFile.DesktopGL`, `KniGumFromFile.WindowsDX`, `KniGumFromFileCommon`, `KniGumInCode.BlazorGL`, `KniGumInCode.DesktopGL`, `KniGumInCode.WindowsDX`, `KniGumInCodeCommon`, `KniGumShapes`, `KniSkiaGum`, `KniSkiaGum.Tests`, `KniSkiaGumCodeGeneration`, `KniSkiaGumFontLoading`, `KniSkiaGumFromFile`, `KniSkiaGumImmediateMode`, `KniSkiaGumInCode`, `KniSkiaGumSample`, `MonoGameAndGum`, `MonoGameGum`, `MonoGameGum.IntegrationTests`, `MonoGameGum.ShadowDusk`, `MonoGameGum.Shapes.Tests`, `MonoGameGum.Tests`, `MonoGameGum.Tests.V3`, `MonoGameGum.TestsCommon`, `MonoGameGumCodeGeneration`, `MonoGameGumFontLoading`, `MonoGameGumFormsSample`, `MonoGameGumFormsSampleCommon`, `MonoGameGumFromFile`, `MonoGameGumFromFileAndroid`, `MonoGameGumFromFileDX`, `MonoGameGumImmediateMode`, `MonoGameGumInCode`, `MonoGameGumShapes`, `MonoGameGumThemesShowcase`, `MultiGumServiceSample`, `PerformanceMeasurementPlugin`, `RaylibGum`, `RaylibGum.ShadowDusk`, `RaylibGum.Tests`, `RaylibGumThemesShowcase`, `SilkNetGum`, `SilkNetGum.Tests`, `SilkNetGumSample`, `SilkNetGumThemesShowcase`, `SkiaGum(net8.0)`, `SkiaGum.GpuTests`, `SkiaGum.Maui`, `SkiaGum.ShadowDusk`, `SkiaGum.Standalone`, `SkiaGum.Tests`, `SkiaGum.Wpf`, `SkiaGumMonogame`, `SkiaGumWpfSample`, `SkiaHost.TestsCommon`, `SkiaPlugin`, `SokolGum`, `SokolGumFromFile`, `SokolGumSample`, `StateAnimationPlugin`, `StateAnimationPlugin.Core`, `StrideGum(net10.0)`, `StrideGum(net10.0-windows7.0)`, `StrideGum.GpuTests.D3D11`, `StrideGum.GpuTests.D3D12`, `StrideGum.Tests`, `StrideGumSample`, `TextureCoordinatePlugin.Core`, `TextureCoordinateSelectionPlugin`, `TextureFilterDemo.MonoGame`, `TreeViewPlugin.Core`, `UnityGum.Tests`, `WpfRenderSurfaceHostHarness`, `XnaAndWinforms`, `XnaAndWinforms.Wpf`) 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 Gum/DataTypes/ElementSaveExtensionMethods.cs:10 — `Gum.DataTypes.VariableSaveSorter` (Gum/DataTypes/ElementSaveExtensionMethods.cs:10) is public, and the library's own code uses it, but no other project in this repository uses it (read: `Gum.NetStandard.Tests`, `SkiaGum(netstandard2.1)`, `UnityGum`) 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 Gum/DataTypes/ElementSaveExtensionMethods.cs:10 — `Gum.DataTypes.VariableSaveSorter` (Gum/DataTypes/ElementSaveExtensionMethods.cs:10) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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 Gum/SvgPlugin/Managers/DefaultStateManager.cs:20 — `SkiaPlugin.Managers.DefaultStateManager` (Gum/SvgPlugin/Managers/DefaultStateManager.cs:20) is public, and the library's own code uses it, but no other project in this repository uses it (read: `BrutalGum.OGL`, `BrutalGum.OGL.Tests`, `BrutalGum.Vulkan`, `BrutalGumSample`, `BrutalGumSampleOgl`, `GameUiSamplesSkia`, `Gum.Automation.KniSkia`, `Gum.Cli`, `Gum.Cli.Tests`, `Gum.ProjectServices.SkiaGum`, `Gum.ProjectServices.SkiaGum.Tests`, `Gum.Themes.Bubblegum.Skia`, `Gum.Themes.DarkPro.Skia`, `Gum.Themes.Editor.Skia`, `Gum.Themes.ForestGlade.Skia`, `Gum.Themes.Hazard.Skia`, `Gum.Themes.Meadow.Skia`, `Gum.Themes.Neon.Skia`, `Gum.Themes.Retro95.Skia`, `KniSkiaGum`, `KniSkiaGum.Tests`, `KniSkiaGumCodeGeneration`, `KniSkiaGumFontLoading`, `KniSkiaGumFromFile`, `KniSkiaGumImmediateMode`, `KniSkiaGumInCode`, `KniSkiaGumSample`, `SilkNetGum`, `SilkNetGum.Tests`, `SilkNetGumSample`, `SilkNetGumThemesShowcase`, `SkiaGum.GpuTests`, `SkiaGum.Maui`, `SkiaGum.ShadowDusk`, `SkiaGum.Standalone`, `SkiaGum.Tests`, `SkiaGum.Wpf`, `SkiaGumWpfSample`, `SkiaHost.TestsCommon`, `StrideGum(net10.0)`, `StrideGum(net10.0-windows7.0)`, `StrideGum.GpuTests.D3D11`, `StrideGum.GpuTests.D3D12`, `StrideGum.Tests`, `StrideGumSample`, `UnityGum.Tests`) 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 Gum/SvgPlugin/Managers/DefaultStateManager.cs:20 — `SkiaPlugin.Managers.DefaultStateManager` (Gum/SvgPlugin/Managers/DefaultStateManager.cs:20) is public, and the library's own code uses it, but no other project in this repository uses it (read: `Gum.NetStandard.Tests`, `UnityGum`) 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 Gum/Wireframe/CustomSetPropertyOnRenderable.cs:79 — `Gum.Wireframe.ISpriteRuntime` (Gum/Wireframe/CustomSetPropertyOnRenderable.cs:79) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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 Gum/Wireframe/CustomSetPropertyOnRenderable.cs:88 — `Gum.Wireframe.INineSliceRuntime` (Gum/Wireframe/CustomSetPropertyOnRenderable.cs:88) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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 Gum/Wireframe/CustomSetPropertyOnRenderable.cs:99 — `Gum.Wireframe.IContainerRuntime` (Gum/Wireframe/CustomSetPropertyOnRenderable.cs:99) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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 Gum/Wireframe/CustomSetPropertyOnRenderable.cs:105 — `Gum.Wireframe.IPolygonRuntime` (Gum/Wireframe/CustomSetPropertyOnRenderable.cs:105) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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 Gum/Wireframe/CustomSetPropertyOnRenderable.cs:114 — `Gum.Wireframe.CustomSetPropertyOnRenderable` (Gum/Wireframe/CustomSetPropertyOnRenderable.cs:114) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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 Gum/Wireframe/FallbackRenderableFactory.cs:54 — `Gum.Wireframe.FallbackRenderableFactory` (Gum/Wireframe/FallbackRenderableFactory.cs:54) is public, and the library's own code uses it, but no other project in this repository uses it (read: `FnaGum.ShadowDusk`, `FnaSample`, `KernSmith.FnaGum`) 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 Gum/Wireframe/FallbackRenderableFactory.cs:54 — `Gum.Wireframe.FallbackRenderableFactory` (Gum/Wireframe/FallbackRenderableFactory.cs:54) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SokolGumFromFile`, `SokolGumSample`) 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 Gum/Wireframe/FallbackRenderableFactory.cs:54 — `Gum.Wireframe.FallbackRenderableFactory` (Gum/Wireframe/FallbackRenderableFactory.cs:54) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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 GumCommon/Bundle/BundleGumFileProvider.cs:12 — `Gum.Bundle.BundleGumFileProvider` (GumCommon/Bundle/BundleGumFileProvider.cs:12) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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 GumCommon/Bundle/FontReferenceCollector.cs:36 — `Gum.Bundle.FontReferenceCollector` (GumCommon/Bundle/FontReferenceCollector.cs:36) is public, and the library's own code uses it, but no other project in this repository uses it (read: `Gum.NetStandard.Tests`, `SkiaGum(netstandard2.1)`, `UnityGum`) 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 GumCommon/Bundle/FontReferenceCollector.cs:36 — `Gum.Bundle.FontReferenceCollector` (GumCommon/Bundle/FontReferenceCollector.cs:36) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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 GumCommon/Bundle/GumBundleFormat.cs:8 — `Gum.Bundle.GumBundleFormat` (GumCommon/Bundle/GumBundleFormat.cs:8) is public, and the library's own code uses it, but no other project in this repository uses it (read: `Gum.NetStandard.Tests`, `SkiaGum(netstandard2.1)`, `UnityGum`) 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 GumCommon/Bundle/GumBundleFormat.cs:8 — `Gum.Bundle.GumBundleFormat` (GumCommon/Bundle/GumBundleFormat.cs:8) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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 GumCommon/Bundle/GumBundleFormatException.cs:9 — `Gum.Bundle.GumBundleFormatException` (GumCommon/Bundle/GumBundleFormatException.cs:9) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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 GumCommon/Bundle/GumBundleReader.cs:24 — `Gum.Bundle.GumBundleReader` (GumCommon/Bundle/GumBundleReader.cs:24) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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 GumCommon/Bundle/GumProjectDependencyWalker.cs:31 — `Gum.Bundle.GumProjectDependencyWalker` (GumCommon/Bundle/GumProjectDependencyWalker.cs:31) is public, and the library's own code uses it, but no other project in this repository uses it (read: `Gum.NetStandard.Tests`, `SkiaGum(netstandard2.1)`, `UnityGum`) 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 GumCommon/Bundle/GumProjectDependencyWalker.cs:31 — `Gum.Bundle.GumProjectDependencyWalker` (GumCommon/Bundle/GumProjectDependencyWalker.cs:31) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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 GumCommon/Bundle/GumRawTexture.cs:55 — `Gum.Bundle.GumRawTexture` (GumCommon/Bundle/GumRawTexture.cs:55) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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 GumCommon/Bundle/LooseFileGumFileProvider.cs:17 — `Gum.Bundle.LooseFileGumFileProvider` (GumCommon/Bundle/LooseFileGumFileProvider.cs:17) is public, and the library's own code uses it, but no other project in this repository uses it (read: `Gum.NetStandard.Tests`, `SkiaGum(netstandard2.1)`, `UnityGum`) 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 GumCommon/Bundle/LooseFileGumFileProvider.cs:17 — `Gum.Bundle.LooseFileGumFileProvider` (GumCommon/Bundle/LooseFileGumFileProvider.cs:17) is public, and the library's own code uses it, but no other project in this repository uses it (read: `SkiaInGum`) 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.
  • + 15 more in this group — see findings.md.
X10 · Duplicated predicate · Duplicated predicate · ×40
  • Duplicated predicate Runtimes/GumShapes/Renderables/Circle.cs:116 — `!HasVisibleOutput || IsHiddenPairedStroke` appears character-identically in 2 files — Runtimes/GumShapes/Renderables/Circle.cs, Runtimes/GumShapes/Renderables/RoundedRectangle.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 Runtimes/SkiaGum/Renderables/RenderableShapeBase.cs:1199 — `!IsFilled && StrokeDashLength > 0 && StrokeGapLength > 0` appears character-identically in 2 files — Runtimes/GumShapes/Renderables/Line.cs, Runtimes/SkiaGum/Renderables/RenderableShapeBase.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 Tool/EditorTabPlugin.Core/Editors/Visuals/OriginDisplayVisual.cs:28 — `!Visible || Context.SelectedObjects.Count == 0` appears character-identically in 2 files — Tool/EditorTabPlugin.Core/Editors/Visuals/OriginDisplayVisual.cs, Tool/EditorTabPlugin.Core/Editors/Visuals/ResizeHandlesVisual.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 Gum/Wireframe/CustomSetPropertyOnRenderable.cs:398 — `!handled && AdditionalPropertyOnRenderable != null` appears character-identically in 2 files — Gum/Wireframe/CustomSetPropertyOnRenderable.cs, Runtimes/SkiaGum/CustomSetPropertyOnRenderable.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 Samples/MonoGameGumInCode/MonoGameGumInCode/Game1.cs:104 — `!isAutomated && (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape))` appears character-identically in 2 files — Samples/KniSkiaGumInCode/KniSkiaGumInCode/Game1.cs, Samples/MonoGameGumInCode/MonoGameGumInCode/Game1.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 Tools/Gum.ProjectServices/FormsTemplateCreator.cs:126 — `!loadResult.Success || loadResult.Project == null` appears character-identically in 2 files — Tools/Gum.ProjectServices/FormsTemplateCreator.cs, Tools/Gum.ProjectServices/NewProject/NewProjectDefaults.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 MonoGameGum/Forms/Controls/TextBoxBase.cs:1625 — `!shouldShowFirstOfNextLine && lineLength > 0 && relativeIndexOnLine == lineLength && currentLine[lineLength - 1] == '\n'` appears character-identically in 2 files — MonoGameGum/Forms/Controls/TextBoxBase.cs, RenderingLibrary/Graphics/TextExtensions.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 RenderingLibrary/Graphics/Text.cs:79 — `!string.IsNullOrEmpty(FunctionName) && Text.ContextCustomizations.TryGetValue(FunctionName, out var func)` appears character-identically in 3 files — RenderingLibrary/Graphics/Text.cs, Runtimes/RaylibGum/Renderables/Text.cs, Runtimes/SkiaGum/Renderables/Text.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 RenderingLibrary/Graphics/Text.cs:67 — `!string.IsNullOrEmpty(FunctionName) && Text.Customizations.TryGetValue(FunctionName, out var func)` appears character-identically in 3 files — RenderingLibrary/Graphics/Text.cs, Runtimes/RaylibGum/Renderables/Text.cs, Runtimes/SkiaGum/Renderables/Text.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 GumDataTypes/Serialization/Json/GumJsonFileSerializer.cs:73 — `!string.IsNullOrEmpty(directory) && !Directory.Exists(directory)` appears character-identically in 2 files — GumDataTypes/Serialization/Json/GumJsonFileSerializer.cs, REDACTED. 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 RenderingLibrary/Content/LoaderManagerExtensionMethods.cs:50 — `!string.IsNullOrEmpty(invalidTextureLocation) && FileManager.FileExists(invalidTextureLocation)` appears character-identically in 2 files — RenderingLibrary/Content/LoaderManager.cs, RenderingLibrary/Content/LoaderManagerExtensionMethods.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 Runtimes/SkiaGum/Renderables/Polygon.cs:146 — `((yi > localY) != (yj > localY)) && (localX < (xj - xi) * (localY - yi) / (yj - yi) + xi)` appears character-identically in 2 files — Runtimes/RaylibGum/Renderables/LinePolygon.cs, Runtimes/SkiaGum/Renderables/Polygon.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 Runtimes/SkiaGum/GueDeriving/RoundedRectangleRuntime.cs:254 — `CornerRadiusUnits == DimensionUnitType.ScreenPixel && this.EffectiveManagers != null` appears character-identically in 2 files — MonoGameGum/GueDeriving/RectangleRuntime.cs, Runtimes/SkiaGum/GueDeriving/RoundedRectangleRuntime.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 RenderingLibrary/Content/ContentLoader.cs:317 — `FileManager.IsRelative(fileNameStandardized) && FileManager.IsUrl(fileName) == false` appears character-identically in 3 files — RenderingLibrary/Content/ContentLoader.cs, Runtimes/RaylibGum/RenderingLibrary/ContentLoader.cs, Runtimes/SkiaGum/Content/ContentLoader.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 Runtimes/SkiaGum/Renderables/NineSlice.cs:346 — `FlipDiagonal && boundingRect.Width > 0 && boundingRect.Height > 0` appears character-identically in 2 files — Runtimes/SkiaGum/Renderables/NineSlice.cs, Runtimes/SkiaGum/Renderables/Sprite.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 Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Game1.cs:110 — `GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape)` appears character-identically in 4 files — Samples/FontPlayground/FontPlayground.MonoGame/Game1.cs, Samples/FontResizeDemo/FontResizeDemo.MonoGame/Game1.cs, Samples/KniSkiaGumImmediateMode/KniSkiaGumImmediateMode/Game1.cs, Samples/MonoGameGumImmediateMode/MonoGameGumImmediateMode/Game1.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 Gum/Controls/CornerRadiusDisplay.xaml.cs:116 — `InstanceMember is CompositeInstanceMember composite && composite.ChannelMembers.Count == 5` appears character-identically in 2 files — Gum/Controls/CornerRadiusDisplay.xaml.cs, Tool/Gum.Avalonia/Plugins/VariableGrid/GumDisplays.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 MonoGameGum/Forms/Controls/ComboBox.cs:1483 — `IsEnabled && gamepad.ButtonPushed(GamepadButton.A)` appears character-identically in 4 files — MonoGameGum/Forms/Controls/ComboBox.cs, MonoGameGum/Forms/Controls/ListBox.cs, MonoGameGum/Forms/Controls/ScrollViewer.cs, MonoGameGum/Forms/Controls/TextBoxBase.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 MonoGameGum/Forms/Controls/ComboBox.cs:1496 — `IsEnabled && gamepad.ButtonPushed(button)` appears character-identically in 4 files — MonoGameGum/Forms/Controls/ComboBox.cs, MonoGameGum/Forms/Controls/ListBox.cs, MonoGameGum/Forms/Controls/Primitives/ButtonBase.cs, MonoGameGum/Forms/Controls/Slider.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 MonoGameGum/Forms/Controls/Primitives/RangeBase.cs:566 — `IsMoveToPointEnabled && Track is { } track` appears character-identically in 2 files — MonoGameGum/Forms/Controls/Primitives/RangeBase.cs, MonoGameGum/Forms/Controls/Slider.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 GumCommon/Input/PolledKeyboard.cs:128 — `KeyDown(GumKeys.LeftAlt) || KeyDown(GumKeys.RightAlt)` appears character-identically in 2 files — GumCommon/Input/PolledKeyboard.cs, Runtimes/RaylibGum/Input/Keyboard.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 GumCommon/Input/PolledKeyboard.cs:117 — `KeyDown(GumKeys.LeftControl) || KeyDown(GumKeys.RightControl)` appears character-identically in 2 files — GumCommon/Input/PolledKeyboard.cs, Runtimes/RaylibGum/Input/Keyboard.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 GumCommon/Input/PolledKeyboard.cs:112 — `KeyDown(GumKeys.LeftShift) || KeyDown(GumKeys.RightShift)` appears character-identically in 2 files — GumCommon/Input/PolledKeyboard.cs, Runtimes/RaylibGum/Input/Keyboard.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 WpfDataUi/Controls/ListBoxDisplay.xaml.cs:169 — `Keyboard.IsKeyDown(Key.LeftCtrl) || Keyboard.IsKeyDown(Key.RightCtrl)` appears character-identically in 2 files — WpfDataUi/Controls/ListBoxDisplay.xaml.cs, WpfDataUi/Controls/PlusMinusTextBox.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 Gum/Wireframe/CustomSetPropertyOnRenderable.cs:1169 — `LocalizationService != null && valueAsString != null` appears character-identically in 2 files — Gum/Wireframe/CustomSetPropertyOnRenderable.cs, Runtimes/SkiaGum/CustomSetPropertyOnRenderable.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.
X7 · Silent fallback defaults · Silent fallback default in catch · ×35
  • Silent fallback default in catch GumCommon/Bundle/LooseFileGumFileProvider.cs:158 — `CasingMatchesOnDisk` swallows `IOException` 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 GumCommon/HostServices/GumHotReloadManager.cs:704 — `IsCurrent` swallows `Exception` into `return false;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch GumCommon/HostServices/GumHotReloadManager.cs:2205 — `IsPureRename` swallows `Exception` into `return false;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch GumCommon/Input/OsKeyRepeatSettingsProvider.cs:169 — `ReadGlobalInt` 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 GumCommon/Localization/ProjectTranslations.cs:32 — `CreateLookup` 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 RenderingLibrary/Graphics/Fonts/BmfcSave.cs:601 — `GetIfIsValidRange` 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 REDACTED:226 — `FileExists` 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 GumRuntime/GraphicalUiElement.Dimensions.cs:718 — `UpdateWidth` swallows `BadImageFormatException` and sets `maxWidth = 64;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch GumRuntime/GraphicalUiElement.SetValuesAndStates.cs:179 — `TrySetPropertyThroughReflection` 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 MonoGameGum/Forms/Data/NpcBindingExpression.cs:285 — `TryConvert` swallows every exception into `return GumProperty.UnsetValue;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch MonoGameGum/Forms/Data/UntypedBindingExpressionBase.cs:162 — `Convert` swallows every exception into `return GumProperty.UnsetValue;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch MonoGameGum/Forms/Data/UntypedBindingExpressionBase.cs:174 — `ConvertBack` swallows every exception into `return GumProperty.UnsetValue;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch MonoGameGum/GumService.XnaLike.cs:515 — `ExtractUnresolvedTextures` 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 MonoGameGum/Input/Cursor.MonoGame.cs:55 — `GetTouchCollection` swallows every exception and sets `touchCollection = new TouchCollection();` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch Runtimes/SkiaGum/Content/ContentLoader.cs:96 — `TryLoadContent` swallows every exception into `return default(T);` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch Runtimes/SkiaGum/CustomSetPropertyOnRenderable.cs:207 — `TrySetPropertyOnRuntime` 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 Runtimes/RaylibGum/RenderingLibrary/ContentLoader.cs:781 — `TryLoadContent` swallows every exception into `return default(T);` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • Silent fallback default in catch Runtimes/GumExpressions/EvaluatedSyntax.cs:1340 — `CastTo` 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 Tools/Gum.ProjectServices/AnimationKeyframeErrorSource.cs:128 — `SubAnimationExists` swallows `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 Tools/Gum.ProjectServices/CodeGeneration/CodeGenerator.cs:4748 — `GetElementAnimationsSave` 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 Tools/Gum.ProjectServices/CodeGeneration/CodeProjectCsprojLocator.cs:87 — `FindCsproj` 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 Tools/Gum.ProjectServices/CodeGeneration/CSharpVersionDetectionService.cs:35 — `Detect` 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 Tools/Gum.ProjectServices/CodeGeneration/SyntaxVersionDetectionService.cs:191 — `FindRuntimePackageVersion` 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 Tools/Gum.ProjectServices/CodeGeneration/SyntaxVersionDetectionService.cs:525 — `FindDllInNuGetCache` 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 Tools/Gum.ProjectServices/HeadlessErrorChecker.cs:374 — `EvaluateRightSide` swallows every exception into `return null;` — a data error becomes a silent behavior change with no trail. Log the failure or let validation throw.
  • + 10 more in this group — see findings.md.
D34 · Knowledge Freshness · Orphaned file · ×20
  • Orphaned file Gum/GumFigmaIconRipper/Program.cs:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file Runtimes/SokolGum/FontAtlas.cs:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file Gum/Controls/ThemedScrollbar.cs:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file Runtimes/SokolGum/ContentLoader.cs:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file Gum/Services/Dialogs/Dialog.cs:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file Gum/StateAnimationPlugin/Views/InterpolationTrackControl.cs:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file Gum/StateAnimationPlugin/Views/TimelineOverlay.cs:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file Gum/Controls/GumIcon.cs:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file Gum/Behaviors/ListBoxDoubleClickBehavior.cs:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file Gum/Behaviors/SelectedItemsBehavior.cs:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file Gum/Themes/AppScale.cs:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file Gum/Behaviors/TitleBarClickPassthrough.cs:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file Gum/StateAnimationPlugin/Views/Timeline.Resources.cs:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file Tools/Gum.Presentation/Dialogs/DisplayReferencesDialog.cs:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file Runtimes/SokolGum/SystemFontResolver.cs:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file XnaAndWinforms.Wpf/WpfRenderSurfaceHost.cs:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file XnaAndWinforms.Wpf/IWpfRenderSurfaceHost.cs:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file Gum/Behaviors/GridDefinitionSync.cs:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file Runtimes/SokolGum/FontstashTextMeasurer.cs:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file Tools/Gum.Presentation/Dialogs/GetUserStringDialogViewModel.cs:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
D26 · Project Cohesion · Projects may be oversized for their cohesion · ×18
  • Projects may be oversized for their cohesion GumCommon/GumCommon.csproj:1 — `GumCommon(net8.0)` overshoots its size bounds (78056 LoC, 395 public types across 42 namespaces). 18 of 212 project(s) overshoot their size bounds, lowering Project Cohesion to 8.3/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 Tools/Gum.Presentation/Gum.Presentation.csproj:1 — `Gum.Presentation` overshoots its size bounds (75218 LoC, 742 public types across 92 namespaces). 18 of 212 project(s) overshoot their size bounds, lowering Project Cohesion to 8.3/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 GumCore/GumCoreXnaPc/GumCore.DesktopGlNet6/GumCore.DesktopGlNet6.csproj:1 — `GumCore.DesktopGlNet6` overshoots its size bounds (62226 LoC, 310 public types across 28 namespaces). 18 of 212 project(s) overshoot their size bounds, lowering Project Cohesion to 8.3/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 GumCore/GumCoreXnaPc/GumCore.FNA/GumCore.FNA.csproj:1 — `GumCore.FNA` overshoots its size bounds (62226 LoC, 310 public types across 28 namespaces). 18 of 212 project(s) overshoot their size bounds, lowering Project Cohesion to 8.3/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 GumCore/GumCoreXnaPc/GumCore.Kni.DesktopGL/GumCore.Kni.DesktopGL.csproj:1 — `GumCore.Kni.DesktopGL` overshoots its size bounds (62226 LoC, 306 public types across 28 namespaces). 18 of 212 project(s) overshoot their size bounds, lowering Project Cohesion to 8.3/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 GumCore/GumCoreXnaPc/GumCore.Kni.Web/GumCore.Kni.Web.csproj:1 — `GumCore.Kni.Web` overshoots its size bounds (62226 LoC, 310 public types across 28 namespaces). 18 of 212 project(s) overshoot their size bounds, lowering Project Cohesion to 8.3/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 GumCore/GumCoreXnaPc/GumCoreAndroid/GumCoreAndroid.csproj:1 — `GumCoreAndroid` overshoots its size bounds (62226 LoC, 310 public types across 28 namespaces). 18 of 212 project(s) overshoot their size bounds, lowering Project Cohesion to 8.3/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 GumCore/GumCoreXnaPc/GumCoreiOS/GumCoreiOS.csproj:1 — `GumCoreiOS` overshoots its size bounds (62226 LoC, 310 public types across 28 namespaces). 18 of 212 project(s) overshoot their size bounds, lowering Project Cohesion to 8.3/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 MonoGameGum/KniGum/KniGum.csproj:1 — `KniGum` overshoots its size bounds (43342 LoC, 217 public types across 25 namespaces). 18 of 212 project(s) overshoot their size bounds, lowering Project Cohesion to 8.3/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 MonoGameGum/FnaGum/FnaGum.csproj:1 — `FnaGum` overshoots its size bounds (43252 LoC, 216 public types across 25 namespaces). 18 of 212 project(s) overshoot their size bounds, lowering Project Cohesion to 8.3/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 MonoGameGum/MonoGameGum.csproj:1 — `MonoGameGum` overshoots its size bounds (43224 LoC, 215 public types across 25 namespaces). 18 of 212 project(s) overshoot their size bounds, lowering Project Cohesion to 8.3/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 Runtimes/RaylibGum/RaylibGum.csproj:1 — `RaylibGum` overshoots its size bounds (37022 LoC, 168 public types across 18 namespaces). 18 of 212 project(s) overshoot their size bounds, lowering Project Cohesion to 8.3/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 Runtimes/SkiaGum/SkiaGum.csproj:1 — `SkiaGum(net8.0)` overshoots its size bounds (35740 LoC, 169 public types across 19 namespaces). 18 of 212 project(s) overshoot their size bounds, lowering Project Cohesion to 8.3/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 Tool/Gum.Avalonia/Gum.Avalonia.csproj:1 — `Gum.Avalonia` overshoots its size bounds (18615 LoC, 134 public types across 48 namespaces). 18 of 212 project(s) overshoot their size bounds, lowering Project Cohesion to 8.3/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 Gum/Gum.csproj:1 — `Gum` overshoots its size bounds (8845 LoC, 134 public types across 48 namespaces). 18 of 212 project(s) overshoot their size bounds, lowering Project Cohesion to 8.3/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 Tools/Gum.ProjectServices/Gum.ProjectServices.csproj:1 — `Gum.ProjectServices` overshoots its size bounds (22133 LoC, 256 public types across 9 namespaces). 18 of 212 project(s) overshoot their size bounds, lowering Project Cohesion to 8.3/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 Runtimes/SokolGum/SokolGum.csproj:1 — `SokolGum` overshoots its size bounds (16411 LoC, 124 public types across 15 namespaces). 18 of 212 project(s) overshoot their size bounds, lowering Project Cohesion to 8.3/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 Tool/EditorTabPlugin.Core/EditorTabPlugin.Core.csproj:1 — `EditorTabPlugin.Core` overshoots its size bounds (9459 LoC, 67 public types across 13 namespaces). 18 of 212 project(s) overshoot their size bounds, lowering Project Cohesion to 8.3/10. Size alone is no reason to split a project: where its type references show a separable part, a Split row names it.
AX6 · Interface segregation · Fat interface · ×13
  • Fat interface: ICursor (40 members) GumRuntime/InteractiveGue.cs:1352 — `ICursor` declares 40 members: `VisualOverBehavior`, `CustomCursor`, `LastInputDevice`, `X`, `Y`, `XRespectingGumZoomAndBounds`, `YRespectingGumZoomAndBounds`, `LastPrimaryPushTime`, `LastPrimaryClickTime`, `XChange`, `YChange`, `ScrollWheelChange`, `ZVelocity`, `PrimaryPush`, `PrimaryDown`, `PrimaryClick`, `PrimaryClickNoSlide`, `PrimaryDoubleClick`, `PrimaryDoublePush`, `SecondaryPush`, `SecondaryDown`, `SecondaryClick`, `SecondaryDoubleClick`, `MiddlePush`, `MiddleDown`, `MiddleClick`, `MiddleDoubleClick`, `WindowPushed`, `VisualRightPushed`, `WindowOver`, `VisualOver`, `VisualPushed`, `LastX`, `LastY`, `FrameworkElementOver`, `FrameworkElementPushed`, `FrameworkElementRightPushed`, `TransformMatrix`, `ClearInputValues`, `Activity`. 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: IInputReceiverKeyboard (16 members) GumRuntime/InteractiveGue.cs:1471 — `IInputReceiverKeyboard` declares 16 members: `IsShiftDown`, `IsCtrlDown`, `IsAltDown`, `IsCommandDown`, `RepeatDelay`, `RepeatRate`, `KeysTyped`, `SupportsInlineKeyboard`, `ShowKeyboard`, `HideKeyboard`, `GetStringTyped`, `Activity`, `KeyDown`, `KeyPushed`, `KeyReleased`, `KeyTyped`. 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: IGumService (36 members) RenderingLibrary/IGumService.cs:34 — `IGumService` declares 36 members: `Initialize`, `Initialize`, `IsInitialized`, `Renderer`, `Cursor`, `Keyboard`, `CanvasWidth`, `CanvasHeight`, `Draw`, `Root`, `DeferredQueue`, `GameTime`, `NativeTextInput`, `Clipboard`, `CreateSpriteRenderable`, `CreateCursor`, `CreateKeyboard`, `ApplyGamePadState`, `PopupRoot`, `ModalRoot`, `Gamepads`, `Update`, `UseKeyboardDefaults`, `UseGamepadDefaults`, `RefreshStyles`, `RefreshStyles`, `RefreshLocalization`, `LocalizationService`, `LastLoadResult`, `ExportSnapshot`, `SynchronizationContext`, `UseSingleThreadedAsync`, `Uninitialize`, `Context`, `Default`, `DefaultChanged`. 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. Those 36 declarations carry 34 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 34 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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: IGradientedRenderable (22 members) MonoGameGum/GueDeriving/IGradientedRenderable.cs:25 — `IGradientedRenderable` declares 22 members: `UseGradient`, `GradientType`, `Alpha1`, `Red1`, `Green1`, `Blue1`, `Alpha2`, `Red2`, `Green2`, `Blue2`, `GradientX1`, `GradientX1Units`, `GradientY1`, `GradientY1Units`, `GradientX2`, `GradientX2Units`, `GradientY2`, `GradientY2Units`, `GradientInnerRadius`, `GradientInnerRadiusUnits`, `GradientOuterRadius`, `GradientOuterRadiusUnits`. 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: IEditCommands (17 members) Tools/Gum.Presentation/Commands/IEditCommands.cs:44 — `IEditCommands` declares 17 members: `AskToDeleteState`, `AskToRenameState`, `SetSetValuesToDefault`, `MoveToCategory`, `SetStateCategoryColor`, `AskToDeleteStateCategory`, `AskToRenameStateCategory`, `RemoveBehaviorVariable`, `AddBehavior`, `AskToRenameBehavior`, `EnsureProjectSaved`, `ShowAddScreenDialog`, `ShowAddComponentDialog`, `ShowAddFolderDialog`, `DuplicateSelectedElement`, `ShowCreateComponentFromInstancesDialog`, `DeleteSelection`. 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: IFileCommands (29 members) Tools/Gum.Presentation/Commands/IFileCommands.cs:13 — `IFileCommands` declares 29 members: `ProjectDirectory`, `DeleteDirectory`, `ClearDirectoryContents`, `MoveToRecycleBin`, `MoveToRecycleBin`, `GetFiles`, `GetFiles`, `ReadAllText`, `MoveDirectory`, `SaveEmbeddedResource`, `TryAutoSaveCurrentObject`, `TryAutoSaveCurrentElement`, `TryAutoSaveElement`, `BeginAutoSaveBatch`, `TryAutoSaveBehavior`, `TryAutoSaveObject`, `NewProjectAsync`, `CloseProjectAsync`, `TryAutoSaveProject`, `ForceSaveProject`, `ForceSaveElement`, `LoadProjectAsync`, `GetFullFileName`, `GetFullPathXmlFile`, `LocalizationLoaded`, `LoadLocalizationFile`, `GetFullPathXmlFile`, `SaveGeneralSettings`, `SaveIfDiffers`. 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. Those 29 declarations carry 26 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 26 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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: IPluginManager (91 members) Tools/Gum.Presentation/Plugins/IPluginManager.cs:15 — `IPluginManager` declares 91 members: `BeforeSavingElementSave`, `AfterSavingElementSave`, `BeforeSavingProjectSave`, `ProjectLoad`, `ProjectPropertySet`, `ProjectSave`, `CreateGraphicalUiElement`, `ProjectLocationSet`, `Export`, `ModifyDefaultStandardState`, `TryHandleDelete`, `ElementRename`, `ElementAdd`, `ElementDelete`, `ElementImported`, `ElementDuplicate`, `ElementReloaded`, `StateRename`, `StateAdd`, `StateMovedToCategory`, `StateDelete`, `ReactToStateSaveSelected`, `ReactToFileChanged`, `ReactToCustomStateSaveSelected`, `RefreshStateTreeView`, `RefreshElementTreeView`, `CategoryRename`, `CategoryAdd`, `CategoryDelete`, `CategoryColorChange`, `GetDeleteStateCategoryResponse`, `GetDeleteStateResponse`, `ReactToStateSaveCategorySelected`, `VariableAdd`, `VariableDelete`, `VariableSet`, `VariableSetThroughReference`, `BeginVariableSetBatch`, `IsInVariableSetBatch`, `VariableSelected`, and 51 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: IHotkeyManager (46 members) Tools/Gum.Presentation/Managers/IHotkeyManager.cs:7 — `IHotkeyManager` declares 46 members: `Delete`, `DeleteAlt`, `Copy`, `Paste`, `Cut`, `Duplicate`, `Undo`, `Redo`, `RedoAlt`, `ReorderUp`, `ReorderDown`, `GoToDefinition`, `Search`, `FocusVariableFilter`, `NudgeUp`, `NudgeDown`, `NudgeRight`, `NudgeLeft`, `NudgeUp5`, `NudgeDown5`, `NudgeRight5`, `NudgeLeft5`, `LockMovementToAxis`, `MaintainResizeAspectRatio`, `SnapRotationTo15Degrees`, `MultiSelect`, `ResizeFromCenter`, `MoveCameraLeft`, `MoveCameraRight`, `MoveCameraUp`, `MoveCameraDown`, `ZoomCameraIn`, `ZoomCameraInAlternative`, `ZoomCameraOut`, `ZoomCameraOutAlternative`, `Rename`, `NavigateBack`, `NavigateForward`, `ShowHotkeys`, `FocusSelection`, and 6 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: IProjectManager (31 members) Tools/Gum.Presentation/Managers/IProjectManager.cs:9 — `IProjectManager` declares 31 members: `GumProjectSave`, `HaveErrorsOccurredLoadingProject`, `IsNotifyingProjectLoad`, `AutoSave`, `UseStandardsPalette`, `EffectiveUseStandardsPalette`, `ShowTextOutlines`, `FrameRate`, `OutlineColorR`, `OutlineColorG`, `OutlineColorB`, `GuideLineColorR`, `GuideLineColorG`, `GuideLineColorB`, `GuideTextColorR`, `GuideTextColorG`, `GuideTextColorB`, `RecentProjects`, `SaveGeneralSettings`, `LoadSettings`, `Initialize`, `CreateNewProject`, `CreateBlankProject`, `AskUserForNewProjectLocation`, `SetProjectLocation`, `LoadProjectAsync`, `LoadProjectAsync`, `SaveProject`, `MakeAbsoluteIfNecessary`, `AskUserForProjectNameIfNecessary`, `ShowReadOnlyDialog`. 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. Those 31 declarations carry 30 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 30 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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: IElementCommands (18 members) Tools/Gum.Presentation/ToolCommands/IElementCommands.cs:11 — `IElementCommands` declares 18 members under just 11 distinct name(s): `AddInstance`, `AddInstance`, `GetUniqueNameForNewInstance`, `GetUniqueNameForNewInstance`, `AddState`, `AddState`, `SortVariables`, `SortVariables`, `MoveSelectedObjectsBy`, `ShouldSkipDraggingMovementOn`, `ModifyVariable`, `ModifyVariable`, `GetCurrentValueForVariable`, `AddCategory`, `AddCategoryStateVariable`, `AddInstance`, `AddBehaviorTo`, `AddBehaviorTo`. 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. That is an OVERLOAD SET, not 18 separate responsibilities: a caller binds to 11 operation(s) and uses the overload it selected, so the Interface-Segregation harm does NOT apply on the caller's side and splitting this into role-interfaces would scatter one operation without relieving anything. The burden that does remain is the IMPLEMENTER's — all 18 signatures must be written and kept in step. Reduce it by collapsing overloads (optional or default parameters, or an options object) rather than by segregating the interface.
  • Fat interface: ISelectedState (23 members) Tools/Gum.Presentation/ToolStates/ISelectedState.cs:11 — `ISelectedState` declares 23 members: `SelectedScreen`, `SelectedElement`, `SelectedElements`, `SelectedStateContainer`, `SelectedInstanceContainer`, `SelectedBehavior`, `SelectedBehaviors`, `SelectedBehaviorReference`, `CustomCurrentStateSave`, `SelectedStateSave`, `SelectedStateSaveOrDefault`, `SelectedStateCategorySave`, `SelectedComponent`, `SelectedInstance`, `SelectedIpso`, `SelectedInstances`, `SelectedVariableName`, `SelectedStandardElement`, `SelectedVariableSave`, `SelectedBehaviorVariable`, `SelectedTreeNode`, `SelectedTreeNodes`, `GetTopLevelElementStack`. 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: IUndoManager (21 members) Tools/Gum.Presentation/Undo/IUndoManager.cs:10 — `IUndoManager` declares 21 members: `CurrentElementHistory`, `CurrentBehaviorHistory`, `UndosChanged`, `RecordUndo`, `BroadcastUndosChanged`, `RequestLock`, `RequestLock`, `ClearAll`, `HandleProjectLoaded`, `RecordState`, `RecordBehaviorState`, `RecordBehaviorState`, `RecordBehaviorUndo`, `ApplyUndoSnapshotToElement`, `RebaseStoredValues`, `RecordCrossElementVariableChanges`, `RecordAnimationRename`, `PerformUndo`, `PerformRedo`, `CanUndo`, `CanRedo`. 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. Those 21 declarations carry 19 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 19 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. 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: IElementTreeView (36 members) Tool/TreeViewPlugin.Core/IElementTreeView.cs:16 — `IElementTreeView` declares 36 members: `Content`, `Nodes`, `Selection`, `IsPointerOver`, `NodeUnderPointer`, `IsKeyboardFocusWithin`, `IsDeepSearchChecked`, `ContextMenuProvider`, `CurrentElementNameProvider`, `FocusTree`, `FocusSearch`, `ClearSearchText`, `EnsureVisible`, `ShowSearchResults`, `SetStandardsPaletteVisible`, `RefreshStandardsPaletteChips`, `SetSelectedStandardType`, `ApplyThemeColors`, `UpdateCollapseButtonSizes`, `SearchTextChanged`, `SearchResultChosen`, `DeepSearchChecked`, `CollapseAllRequested`, `CollapseToElementLevelRequested`, `NodeExpansionChangedByUser`, `PointerMoved`, `KeyDown`, `NodeDoubleClicked`, `UnhandledException`, `ValidateSortingDrop`, `NodeSortingDropped`, `ExternalDragOver`, `ExternalDrop`, `DragEnded`, `AddStandardToCurrentRequested`, `EditStandardDefaultsRequested`. 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.
P2 · Observability · Console output used as the logging channel · ×9
  • Console output used as the logging channel RenderingLibrary/Graphics/Renderer.cs:3161 — `RenderingLibrary/Graphics/Renderer.cs` reports through `Console.Write…` at line 3161 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 RenderingLibrary/Graphics/Renderer.cs:3161 — `RenderingLibrary/Graphics/Renderer.cs` reports through `Console.Write…` at line 3161 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 RenderingLibrary/Graphics/Renderer.cs:3161 — `RenderingLibrary/Graphics/Renderer.cs` reports through `Console.Write…` at line 3161 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 RenderingLibrary/Graphics/Renderer.cs:3161 — `RenderingLibrary/Graphics/Renderer.cs` reports through `Console.Write…` at line 3161 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 RenderingLibrary/Graphics/Renderer.cs:3161 — `RenderingLibrary/Graphics/Renderer.cs` reports through `Console.Write…` at line 3161 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 RenderingLibrary/Graphics/Renderer.cs:3161 — `RenderingLibrary/Graphics/Renderer.cs` reports through `Console.Write…` at line 3161 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 RenderingLibrary/Graphics/Renderer.cs:3161 — `RenderingLibrary/Graphics/Renderer.cs` reports through `Console.Write…` at line 3161 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 RenderingLibrary/Graphics/Renderer.cs:3161 — `RenderingLibrary/Graphics/Renderer.cs` reports through `Console.Write…` at line 3161 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 RenderingLibrary/Graphics/Renderer.cs:3161 — `RenderingLibrary/Graphics/Renderer.cs` reports through `Console.Write…` at line 3161 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.
D27 · Navigability · Pass-through layer · ×6
  • Pass-through layer Tools/Gum.Presentation/PropertyGridHelpers/StateReferencingInstanceMember.cs:28 — StateReferencingInstanceMember: all 3 public methods forward their arguments unchanged to _entry and add no behaviour — an extra hop (and usually an extra interface) to trace through. Call _entry directly, or give the layer a job.
  • Pass-through layer Runtimes/StrideGum/Gpu/StrideVulkanTarget.cs:13 — StrideVulkanTarget: all 4 public methods forward their arguments unchanged to _target and add no behaviour — an extra hop (and usually an extra interface) to trace through. Call _target directly, or give the layer a job.
  • Pass-through layer Runtimes/StrideGum/Gpu/StrideDirect3D11Target.cs:13 — StrideDirect3D11Target: all 4 public methods forward their arguments unchanged to _target and add no behaviour — an extra hop (and usually an extra interface) to trace through. Call _target directly, or give the layer a job.
  • Pass-through layer Runtimes/StrideGum/Gpu/StrideDirect3D12Target.cs:13 — StrideDirect3D12Target: all 4 public methods forward their arguments unchanged to _target and add no behaviour — an extra hop (and usually an extra interface) to trace through. Call _target directly, or give the layer a job.
  • Pass-through layer Runtimes/KniSkiaGum/KniSkiaTarget.cs:25 — KniSkiaTarget: all 4 public methods forward their arguments unchanged to _target and add no behaviour — an extra hop (and usually an extra interface) to trace through. Call _target directly, or give the layer a job.
  • Pass-through layer Runtimes/BrutalGum.Vulkan/Vulkan/VulkanBackend.cs:13 — VulkanTextureTarget: all 4 public methods forward their arguments unchanged to _target and add no behaviour — an extra hop (and usually an extra interface) to trace through. Call _target directly, or give the layer a job.
X6 · Hand-rolled structured-format parsing · Hand-rolled JSON/XML parsing via regex · ×6
  • Hand-rolled JSON/XML parsing via regex Tools/Gum.ProjectServices/CodeGeneration/CSharpVersionDetectionService.cs:45 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. .NET ships a real parser for it (System.Text.Json, System.Xml.Linq); use it here.
  • Hand-rolled JSON/XML parsing via regex Tools/Gum.ProjectServices/CodeGeneration/CSharpVersionDetectionService.cs:72 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. .NET ships a real parser for it (System.Text.Json, System.Xml.Linq); use it here.
  • Hand-rolled JSON/XML parsing via regex Tools/Gum.ProjectServices/CodeGeneration/SyntaxVersionDetectionService.cs:338 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. .NET ships a real parser for it (System.Text.Json, System.Xml.Linq); use it here.
  • Hand-rolled JSON/XML parsing via regex Tools/Gum.ProjectServices/CodeGeneration/SyntaxVersionDetectionService.cs:341 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. .NET ships a real parser for it (System.Text.Json, System.Xml.Linq); use it here.
  • Hand-rolled JSON/XML parsing via regex Tools/Gum.ProjectServices/CodeGeneration/SyntaxVersionDetectionService.cs:400 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. .NET ships a real parser for it (System.Text.Json, System.Xml.Linq); use it here.
  • Hand-rolled JSON/XML parsing via regex Tools/Gum.ProjectServices/PlatformProjectScaffolder.cs:24 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. .NET ships a real parser for it (System.Text.Json, System.Xml.Linq); use it here.
X7 · Silent fallback defaults · Silent fallback default on parse failure · ×5
  • Silent fallback default on parse failure GumRuntime/GraphicalUiElement.Binding.cs:869 — `ConvertValue` falls back to `0` when `float.TryParse(asString, out float result)` 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 Tools/Gum.ProjectServices/CodeGeneration/CustomCodeStubDetector.cs:75 — `IsUntouchedStub` returns `false` when `classHeader.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 Tools/Gum.ProjectServices/CodeGeneration/HeadlessCodegenRunner.cs:50 — `RunCore` returns `2` when `loadResult.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 Tools/Gum.Presentation/CodeOutputPlugin/ViewModels/CodeWindowViewModel.cs:312 — `HandleAutoSetupClicked` returns `false` when `result.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 Tools/Gum.Presentation/Dialogs/NewProjectDialogViewModel.cs:430 — `RecommendedPackageIds` falls back to `Array.Empty<string>()` when `NewProjectPlatforms.TryParse(PlatformName, out HostPlatform platform)` 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.
X4 · Structured logging · Interpolated log message defeats structured logging · ×4
  • Interpolated log message defeats structured logging Tools/Gum.Presentation/Plugins/PluginManager.cs:205 — 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 Tools/Gum.Presentation/Plugins/PluginManager.cs:1135 — 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 Gum/Program.cs:110 — 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 Gum/Services/Dialogs/DialogViewResolver.cs:94 — 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.
D10 · Test Quality · Mock-dominated test · ×2
  • Mock-dominated test: HandleVariableSet_does_nothing_when_no_state_is_selected Tests/Gum.Presentation.Tests/Plugins/CodeOutputPlugins/ParentSetLogicTests.cs:32 — This test sets up 3 test doubles (for example `new()`) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
  • Mock-dominated test: HandleVariableSet_does_nothing_for_non_parent_variable Tests/Gum.Presentation.Tests/Plugins/CodeOutputPlugins/ParentSetLogicTests.cs:48 — This test sets up 3 test doubles (for example `new()`) against 1 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own — the network, the clock, the file system.
D18 · Solution Shape · Shell project · ×2
  • Shell project: Sokol Runtimes/Sokol/Sokol.csproj — `Sokol` contributes only 0 significant line(s) — an empty/placeholder project is structural noise. Remove it or fold its contents into a real project.
  • Shell project: SkiaGumMonogame SkiaGumMonogame/SkiaGumMonogame.csproj — `SkiaGumMonogame` contributes only 9 significant line(s) — an empty/placeholder project is structural noise. Remove it or fold its contents into a real project.
D21 · Naming Consistency · `RefreshUI` spells `UI` where 23 names in the project spell it `Ui` · ×2
  • `RefreshUI` spells `UI` where 23 names in the project spell it `Ui` Tools/Gum.Presentation/Menus/StandardMenuModelBuilder.cs:223 — 23 of 25 names in project Gum.Presentation spell the token `Ui` (23 of 25; unit: names in project Gum.Presentation containing `Ui`). Peers: CodeWindowViewModel.IsGenerateCodeUiVisible (Tools/Gum.Presentation/CodeOutputPlugin/ViewModels/CodeWindowViewModel.cs:161); CodeWindowViewModel.IsNoGenerationAvailableUiVisible (Tools/Gum.Presentation/CodeOutputPlugin/ViewModels/CodeWindowViewModel.cs:164); FileWatchManager.RunOnUiThread (Tools/Gum.Presentation/FileWatchPlugin/FileWatchManager.cs:190); Gum.Managers.GraphicalUiElementManager (Tools/Gum.Presentation/Managers/GraphicalUiElementManager.cs:6); GraphicalUiElementManager.GraphicalUiElements (Tools/Gum.Presentation/Managers/GraphicalUiElementManager.cs:8). Rename to `RefreshUi`. [rule N6]
  • `RefreshUI` spells `UI` where 23 names in the project spell it `Ui` Tools/Gum.Presentation/Plugins/InternalPlugins/StatePlugin/StateTreeController.cs:201 — 23 of 25 names in project Gum.Presentation spell the token `Ui` (23 of 25; unit: names in project Gum.Presentation containing `Ui`). Peers: CodeWindowViewModel.IsGenerateCodeUiVisible (Tools/Gum.Presentation/CodeOutputPlugin/ViewModels/CodeWindowViewModel.cs:161); CodeWindowViewModel.IsNoGenerationAvailableUiVisible (Tools/Gum.Presentation/CodeOutputPlugin/ViewModels/CodeWindowViewModel.cs:164); FileWatchManager.RunOnUiThread (Tools/Gum.Presentation/FileWatchPlugin/FileWatchManager.cs:190); Gum.Managers.GraphicalUiElementManager (Tools/Gum.Presentation/Managers/GraphicalUiElementManager.cs:6); GraphicalUiElementManager.GraphicalUiElements (Tools/Gum.Presentation/Managers/GraphicalUiElementManager.cs:8). Rename to `RefreshUi`. [rule N6]
C4 · Data Retention · Partial data-retention evidence · ×1
  • Partial data-retention evidence — A retention mechanism is present, but the data-lifecycle is not yet complete — missing: a scheduled purge / cleanup job (PurgeOlderThan / CleanupJob).
D17 · Explicit Debt · ObsoleteWithoutCallers · ×1
  • ObsoleteWithoutCallers Gum/Plugins/BaseClasses/WpfPluginBase.cs:37 — [Obsolete] AddMenuItem
D18 · Solution Shape · Thin analysable surface across projects · ×1
  • Thin analysable surface across projects: GumToPythonHelpers Runtimes/Python/GumToPythonHelpers/GumToPythonHelpers.csproj — 1 project(s) carry only a thin slice of real code; `GumToPythonHelpers` has 12 significant line(s). The mean analysable-surface weight is 97 %; this project lowers Solution Shape by about 0.11 point(s). Consolidate it or grow it into a substantial, well-scoped assembly.
D19 · Documentation Quality · Documentation · ×1
  • Documentation: no build, run or usage example Integrations/KernSmith/KernSmith.GumCommon/README.md:1 — `KernSmith.GumCommon` is a package (`IsPackable true`) and neither `Integrations/KernSmith/KernSmith.GumCommon/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 · ADR superseded but its status says otherwise · ×1
  • ADR superseded but its status says otherwise Direction/decisions/0002-target-code-first-frameworks-not-engines.md:1 — Direction/decisions/0002-target-code-first-frameworks-not-engines.md:1 says "Accepted (reasoning refined by [0014](0014-clarify-engine-scope-cost-to-integrate-not-owns-ui.md));", but Direction/decisions/0020-bring-unity-and-godot-into-scope.md supersedes it. Two records now claim the same ground; mark this one "Superseded by" its successor.
D21 · Naming Consistency · `RefreshUI` spells `UI` where 12 names in the project spell it `Ui` · ×1
  • `RefreshUI` spells `UI` where 12 names in the project spell it `Ui` Gum/Plugins/InternalPlugins/MenuStripPlugin/MenuStripManager.cs:54 — 12 of 13 names in project Gum spell the token `Ui` (12 of 13; unit: names in project Gum containing `Ui`). Peers: SelectedItemsBehavior.GetUiSelectedItems (Gum/Behaviors/SelectedItemsBehavior.cs:52); ColorDisplay.TrySetValueOnUi (Gum/Controls/ColorDisplay.xaml.cs:116); ColorDisplay.TryGetValueOnUi (Gum/Controls/ColorDisplay.xaml.cs:155); CornerRadiusDisplay.TrySetValueOnUi (Gum/Controls/CornerRadiusDisplay.xaml.cs:164); CornerRadiusDisplay.TryGetValueOnUi (Gum/Controls/CornerRadiusDisplay.xaml.cs:190). Rename to `RefreshUi`. [rule N6]
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D34 · Knowledge Freshness · Orphaned files with no living knowledge · ×1
  • Orphaned files with no living knowledge — 20 of 992 analysed file(s) have no living knowledge left — their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 992 of the 1902 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each — most significant first: Gum/GumFigmaIconRipper/Program.cs, Runtimes/SokolGum/FontAtlas.cs, Gum/Controls/ThemedScrollbar.cs, Runtimes/SokolGum/ContentLoader.cs, Gum/Services/Dialogs/Dialog.cs, Gum/StateAnimationPlugin/Views/InterpolationTrackControl.cs, Gum/StateAnimationPlugin/Views/TimelineOverlay.cs, Gum/Controls/GumIcon.cs (and 12 more). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway.
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
M3 · Folder & project structure · No src/ separation · ×1
  • No src/ separation — Most of the production code is in directories of its own, but 1 application file(s) sit at the repository root beside the build and tooling files (`ILocalizationService.cs`).
P12 · CI test-gate honesty · Sleep-based test synchronization · ×1
  • Sleep-based test synchronization — 21 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 31/64 service-like projects use logging (pure contract/DTO projects are excluded — they have nothing to log). Of those 64, 18 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:15 — 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 11 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 Directory.Packages.props:19 — `Directory.Packages.props` declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices — including after an advisory is published against it. Add a `.github/dependabot.yml` with one `package-ecosystem` entry per ecosystem the tree uses (or an enabled `renovate.json`), and gate pull requests with `actions/dependency-review-action`.
X2 · Cancellation propagation · Not all async methods take a CancellationToken · ×1
  • Not all async methods take a CancellationToken — Only 9/91 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 — 133/169 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.8 `!` suppressions per 1k syntax nodes — 1242 suppression(s) across the 1569752 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 — 48 finding(s)
D24 · Comment Value · doc comments repeat the names · ×25
  • doc comments repeat the names spikes/AvaloniaCanvasSpike/Shared/ICanvasRenderer.cs:48 — 0 of 2 documented parameters and 1 of 31 summaries in `AvaloniaCanvasSpike.Kni` only repeat the member or parameter name (e.g. "Renders one frame into ." for `RenderFrame`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names AvaloniaDataUi/Controls/MultiLineTextBoxDisplay.cs:95 — 0 of 6 documented parameters and 1 of 195 summaries in `AvaloniaDataUi` only repeat the member or parameter name (e.g. "The text editor." for `EditorTextBox`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names Runtimes/BrutalGum.Vulkan/GumService.Vulkan.cs:48 — 1 of 38 documented parameters and 1 of 22 summaries in `BrutalGum.Vulkan` only repeat the member or parameter name (e.g. "The surface of ." for `surface`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names Gum/CsvLibrary/CsvReader.cs:236 — 1 of 68 documented parameters and 17 of 122 summaries in `CsvLibrary` only repeat the member or parameter name (e.g. "Initializes a new instance of the CsvReader class." for `CsvReader`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names DataUi.Core/DataTypes/StandardDisplayers.cs:32 — 0 of 9 documented parameters and 2 of 198 summaries in `DataUi.Core` only repeat the member or parameter name (e.g. "Multi-line text." for `MultiLineTextBox`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names Gum/Controls/TabViewRegistry.cs:52 — 0 of 1 documented parameters and 1 of 177 summaries in `Gum` only repeat the member or parameter name (e.g. "The ViewModel types with a registered view." for `RegisteredViewModelTypes`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names Tool/Gum.Avalonia/Shell/TabViewRegistry.cs:45 — 0 of 30 documented parameters and 1 of 754 summaries in `Gum.Avalonia` only repeat the member or parameter name (e.g. "The ViewModel types with a registered view." for `RegisteredViewModelTypes`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names Tests/Gum.Avalonia.Tests/Animations/AnimationEditorHarness.cs:153 — 0 of 13 documented parameters and 4 of 861 summaries in `Gum.Avalonia.Tests` only repeat the member or parameter name (e.g. "The time box above the timeline." for `TimelineTimeBox`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names Tests/Shared/ThirdPartyNoticesCoverage.cs:110 — 0 of 0 documented parameters and 1 of 59 summaries in `Gum.Cli.Tests` only repeat the member or parameter name (e.g. "Reads every "" for `ReadListedIds`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names Tools/Gum.Presentation/CodeOutputPlugin/CodeOutputTabController.cs:236 — 8 of 221 documented parameters and 2 of 2340 summaries in `Gum.Presentation` only repeat the member or parameter name (e.g. "The project's code output settings." for `codeOutputProjectSettings`). 15 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names Tests/Gum.Presentation.Tests/StateSelectionCanvasPrecedenceTests.StateCategoryVsForms.cs:11 — 0 of 3 documented parameters and 3 of 632 summaries in `Gum.Presentation.Tests` only repeat the member or parameter name (e.g. "A screen state that sets the instance's category state while IsEnabled is false: the Forms variable wins." for `RefreshAll_ScreenStateSetsInstanceCategoryStateEnabledWhileIsEnabledFalse_FormsVariableWins`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names Tools/Gum.ProjectServices/AddFormsResult.cs:5 — 0 of 109 documented parameters and 9 of 870 summaries in `Gum.ProjectServices` only repeat the member or parameter name (e.g. "Result of ." for `AddFormsResult`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names Themes/Gum.Themes.Bubblegum.MonoGame/BubblegumStyling.cs:45 — 0 of 0 documented parameters and 1 of 78 summaries in `Gum.Themes.Bubblegum.MonoGame` only repeat the member or parameter name (e.g. "Default border ( , )." for `Border`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names Themes/Gum.Themes.DarkPro.MonoGame/DarkProStyling.cs:46 — 0 of 0 documented parameters and 3 of 63 summaries in `Gum.Themes.DarkPro.MonoGame` only repeat the member or parameter name (e.g. "Default border ( , )." for `Border`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names Themes/Gum.Themes.Hazard.MonoGame/HazardStyling.cs:109 — 0 of 0 documented parameters and 2 of 75 summaries in `Gum.Themes.Hazard.MonoGame` only repeat the member or parameter name (e.g. "Disabled border ( )." for `DisabledBorder`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names Themes/Gum.Themes.Meadow.MonoGame/MeadowStyling.cs:78 — 0 of 0 documented parameters and 1 of 77 summaries in `Gum.Themes.Meadow.MonoGame` only repeat the member or parameter name (e.g. "Sage light ( , )." for `SageLight`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names Themes/Gum.Themes.Template.MonoGame/TemplateStyling.cs:102 — 0 of 0 documented parameters and 4 of 85 summaries in `Gum.Themes.Template.MonoGame` only repeat the member or parameter name (e.g. "Default border ( , )." for `Border`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names Gum/DataTypes/GumProjectSaveExtensionMethods.cs:17 — 17 of 465 documented parameters and 5 of 2197 summaries in `GumCommon(net8.0)` only repeat the member or parameter name (e.g. "The GumProjectSave" for `gumProjectSave`). 19 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names Runtimes/KniSkiaGum/Input/Keyboard.Kni.cs:85 — 0 of 13 documented parameters and 1 of 41 summaries in `KniSkiaGum` only repeat the member or parameter name (e.g. "Returns whether the specified key is a letter (A through Z)." for `IsKeyLetter`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names MonoGameGum/GumService.XnaLike.cs:132 — 1 of 181 documented parameters and 3 of 1101 summaries in `MonoGameGum` only repeat the member or parameter name (e.g. "The game instance." for `game`). 20 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names Runtimes/RaylibGum/RenderingLibrary/RaylibShaderDefaults.cs:36 — 0 of 22 documented parameters and 1 of 401 summaries in `RaylibGum` only repeat the member or parameter name (e.g. "Writes to in ." for `Write`). 1 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names Runtimes/SkiaHost/Color.cs:120 — 0 of 14 documented parameters and 3 of 179 summaries in `SilkNetGum` only repeat the member or parameter name (e.g. "Transparent (R:0 G:0 B:0 A:0)." for `Transparent`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names Runtimes/SkiaGum/RenderingLibrary/SystemManagers.cs:374 — 0 of 58 documented parameters and 0 of 471 summaries in `SkiaGum(net8.0)` only repeat the member or parameter name (e.g. "" for `embeddedTexture2dName`). 1 documentation tag(s) are empty. Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names Tool/TreeViewPlugin.Core/TreeSelection/TreeDropTypes.cs:41 — 0 of 9 documented parameters and 2 of 193 summaries in `TreeViewPlugin.Core` only repeat the member or parameter name (e.g. "The nodes being dragged." for `DraggedNodes`). Delete the restating tags, or add what the name does not say.
  • doc comments repeat the names XnaAndWinforms/GraphicsDeviceService.cs:140 — 0 of 9 documented parameters and 1 of 56 summaries in `XnaAndWinforms` only repeat the member or parameter name (e.g. "Gets the current graphics device." for `GraphicsDevice`). Delete the restating tags, or add what the name does not say.
D10 · Test Quality · Mock framework · ×16
  • Mock framework: Moq — MonoGameGum.Tests references Moq.
  • Mock framework: Moq — MonoGameGum.IntegrationTests references Moq.
  • Mock framework: Moq — MonoGameGum.TestsCommon references Moq.
  • Mock framework: Moq — SkiaGum.Tests references Moq.
  • Mock framework: Moq — RaylibGum.Tests references Moq.
  • Mock framework: Moq — Gum.ProjectServices.Tests references Moq.
  • Mock framework: Moq — Gum.Presentation.Tests references Moq.
  • Mock framework: Moq — SilkNetGum.Tests references Moq.
  • Mock framework: Moq — StrideGum.Tests references Moq.
  • Mock framework: Moq — UnityGum.Tests references Moq.
  • Mock framework: Moq — KniSkiaGum.Tests references Moq.
  • Mock framework: Moq — SkiaHost.TestsCommon references Moq.
  • Mock framework: Moq — BrutalGum.OGL.Tests references Moq.
  • Mock framework: Moq — GumToolUnitTests references Moq.
  • Mock framework: Moq — Gum.Avalonia.Tests references Moq.
  • Mock framework: Moq — SokolGum.Tests references Moq.
D10 · Test Quality · Skipped (documented) · ×5
  • Skipped (documented): DumpBubblegumXmlDiff Tests/Gum.ProjectServices.Tests/DiagnosticDumpHelper.cs:17 — Skipped with a documented reason — a deferral, not lazy debt: Manual diagnostic. Set Skip = null to dump XML diffs.
  • Skipped (documented): Regenerate Tests/Gum.ProjectServices.Tests/RegenerateStandardsHelper.cs:25 — Skipped with a documented reason — a deferral, not lazy debt: Manual regeneration helper. Set Skip = null to run.
  • Skipped (documented): ReapplyAndSave Tests/Gum.ProjectServices.Tests/ThemeRecolorHelper.cs:39 — Skipped with a documented reason — a deferral, not lazy debt: Manual migration step. Set Skip = null and ThemeName, then run.
  • Skipped (documented): OnPaste_Instance_MultipleTimes_ShouldPasteSiblingAtEnd Tool/Tests/GumToolUnitTests/Logic/CopyPasteLogicTests.cs:765 — Skipped with a documented reason — a deferral, not lazy debt: This requires either a full SelectedState, or lots of mocking behavior which is a pain
  • Skipped (documented): OnPaste_MultipleInstancesInSeparateParents_ShouldPasteSiblings Tool/Tests/GumToolUnitTests/Logic/CopyPasteLogicTests.cs:1433 — Skipped with a documented reason — a deferral, not lazy debt: For this to work, need to have a full ISelectedState
D5 · Coupling · Off the main sequence · ×2
  • Off the main sequence: GumCommon(net8.0) GumCommon/GumCommon.csproj:1 — GumCommon(net8.0): abstractness 0.15, instability 0.00, distance 0.85 — the shape a shared-kernel / building-block library has BY DESIGN — concrete and widely depended-on is what makes it useful, and this dimension does not penalise it (the distance is reported for completeness, not as a defect). Worth a look only if it has grown past one coherent kernel into an everything-bucket.
  • Off the main sequence: KernSmith.GumCommon Integrations/KernSmith/KernSmith.GumCommon/KernSmith.GumCommon.csproj:1 — KernSmith.GumCommon: abstractness 0.00, instability 0.20, distance 0.80 — the shape a shared-kernel / building-block library has BY DESIGN — concrete and widely depended-on is what makes it useful, and this dimension does not penalise it (the distance is reported for completeness, not as a defect). Worth a look only if it has grown past one coherent kernel into an everything-bucket.

Appendix B — Reproduction & audit trail

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

DimensionToolVersionCommandFindingsRaw output
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --log-opts "--full-history --all --skip=0 --max-count=200" --report-format json --report-path /tmp/watchdog-gitleaks-231016ed929a482287edac8b54745826/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-231016ed929a482287edac8b54745826/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=3200" --report-format json --report-path /tmp/watchdog-gitleaks-231016ed929a482287edac8b54745826/history-2.json --exit-code 0 --source .0artifacts/raw/gitleaks-history-2.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --log-opts "--full-history --all --skip=4200 --max-count=4525" --report-format json --report-path /tmp/watchdog-gitleaks-231016ed929a482287edac8b54745826/history-3.json --exit-code 0 --source .0artifacts/raw/gitleaks-history-3.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-231016ed929a482287edac8b54745826/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 Gum/CsvLibrary/Resources --exclude Samples/GumFormsSample/KniGumFormsSample.BlazorGL/wwwroot/js --exclude Samples/KniGumFromFile/KniGumFromFile.BlazorGL/wwwroot/js --exclude Samples/KniGumInCode/KniGumInCode.BlazorGL/wwwroot/js .92artifacts/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 Vulnerabilitiesosv-scanner—osv-scanner --format json --recursive --experimental-disable-plugins transitivedependency/requirements --experimental-disable-plugins dotnet/csproj --experimental-disable-plugins dotnet/nugetcpm . /tmp/codehealth-osv-sbom-8b7b54876dbc4ebda2ad81cf48d419fe0artifacts/raw/osv-scanner.json
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: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.0—
D32 · Data Compliance (PII/GDPR)semgrep—semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. semgrep could not parse 125 file(s) — `DataUi.Core/LateBinder.cs`, `Gum/Wireframe/CustomSetPropertyOnRenderable.cs`, `GumCommon/Bundle/FontReferenceCollector.cs`, `GumCommon/Mvvm/PathSegment.cs`, `GumCommon/Mvvm/PropertyPathObserver.cs`, … (+120 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 Dependenciesosv-scanner—osv-scanner --format json --recursive --experimental-disable-plugins transitivedependency/requirements --experimental-disable-plugins dotnet/csproj --experimental-disable-plugins dotnet/nugetcpm . /tmp/codehealth-osv-sbom-8b7b54876dbc4ebda2ad81cf48d419fe0artifacts/raw/osv-scanner.json
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 01a1e8e0-e7fe-7397-83f2-8678be5038e8 · 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 — 3 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.

Name — 3 field(s)
  • EmbeddedFontKey.FamilyName Runtimes/SkiaGum/Content/Fonts/GumFontMapper.cs:263
  • SystemTypefaceKey.FamilyName Runtimes/SkiaGum/Content/Fonts/GumFontMapper.cs:280
  • ImportTreeNodeViewModel.FullName Tools/Gum.Presentation/ImportFromGumx/ImportTreeNodeViewModel.cs:17

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