Public report — Avalonia, published 5 Aug 2026. Concrete security findings (CVE IDs, secret matches, dependency versions) are hidden in this version; ask the repo owner for the full report.
Watchdog 05-08-2026 @ 01:03 UTC Public
Code Health Audit

AvaloniaUI/Avalonia

60% Adequate
CriticalWeakAdequateStrongExemplary
middle

Large · 379,798 LoC · 141 projects · rebuild ~10.2 person-years · weakest lens: Readiness (56%)

Grounded in facts. Every number here is computed, not narrated — reproducible, tool-backed, and traceable to a line of code. How to trust this ▸

61/65dimensions tool-verifieddeterministic · confidence 1.0 · 4 LLM-assisted, advisory
1360findings with an exact file:lineof 1402 — the remainder are repo-wide signals (a dimension-level measurement, not a single line); open any file:line and verify
65/109dimensions across the health lenses379798 LoC · 141 projects — wide & deep

Executive summary

Read through the Preview lens: this repo is pre-1.0 / in development, so the colour bands are relaxed to what a preview needs — *green* means good enough for a preview, not yet production-stable. Code correctness and security stay near-strict even here; the score itself is absolute and comparable across repos.

AvaloniaUI/Avalonia is sound in substance but carries real gaps (60%). It is not in crisis, but the issues below raise the cost of changing it — friction its consumers ultimately inherit.

The area that most needs attention is Readiness (56%) — releases are harder to depend on — versioning, release notes and dependency hygiene are thin, so consumers can't easily tell what changed or trust an upgrade. Security (59%) is the next concern — exposure to security and compliance incidents is elevated.

Leadership focus, highest impact first: Keep a changelog (e.g. Keep-a-Changelog) recording what shipped… (Release Hygiene); tests that import the unreached modules (directly or through… (Test Coverage); eslint and `tsc --noEmit` as package.json scripts and run them… (Tooling).

For scale: Large (~379,798 production lines); rebuilding it from scratch would take roughly ~10.2 person-years (~5–20 engineers). Approximate, ±~30%.

How the score is built — each lens's share of the headline Width is the lens's weight in the worst-heaviest fold (the weakest area pulls hardest); colour is that lens's own band. A lens fixes the score in proportion to its width.
Readiness 56% · 46% weightSecurity 59% · 25% weightCode Health 60% · 14% weightPerformance 73% · 8% weightMaturity 73% · 4% weightArchitecture 84% · 2% weight

No single dominant problem — the weakest areas are close, so progress on any of them moves the score.

Code composition — where the lines go
Business logic 27%Plumbing 44%Tests 28%Generated 0%Analyzers 0%
Rebuild cost & value ~ Modeled — €480,000–€2,500,000
Cost to rebuild€480,000–€2,500,000 (4.8–15.6 person-years (8,083–26,220 h), ~5–20 engineers)
Domain complexityHigh — harder problems cost more per line
Quality factor0.8× (at 60% quality) — the last 20% of quality is most of the work
Size & shapeLarge · 45% boilerplate · 17% straight-line · 38% branching logic
Dead frontend code~17 LoC unreachable (1 file(s)) — that slice of this estimate buys code with zero runtime value; deleting it is the cheapest win in this report (the R7 card lists every file)

This codebase represents roughly ~10.2 person-years of build effort (about ~€1,500,000 to rebuild). Its weakest lens is Readiness at 56% — the part of that asset most exposed by the findings below.

How we model this: boilerplate at a scaffolding rate + logic × domain High (×1.3) — desktop/game, vertical slice, high decision density × a 0.8× quality factor, at €60–95/h; indicative, ±~30%. Indicative only — most sensitive to the hourly rate and the domain tier (both tunable in config).

Top priorities

The highest-leverage moves; the full ranked list is in the Roadmap below.

1
Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.
+4.4 pts · Medium effort · Release Hygiene
2
Add tests that import the unreached modules (directly or through their public entry).
+4.4 pts · Medium effort · Test Coverage
3
Add eslint and `tsc --noEmit` as package.json scripts and run them in CI.
+4.4 pts · Medium effort · Tooling

Diagnosis — what's actually going on

Value concentrated against a weak lens · Medium · Value at risk
This is a Large asset (~10.2 person-years to rebuild), and its weakest lens is Readiness at 56%. The operational and business risk on an asset this size concentrates there — that's where remediation buys the most protection.
Evidence: valuation: Large, ~10.2 person-years rebuild (379,798 LoC) · weakest lens: Readiness 56%
→ Direct remediation budget at Readiness first — highest risk-reduction per euro on an asset this size.
Highest-leverage move · Medium · Leverage
Of everything flagged, the best return on effort is: Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release. The rest can wait behind it.
Evidence: priority ranking: top of 5 ranked by impact/effort
→ Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.

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 AppWithoutLifetime AppWithoutLifetime ctx:Controls.ColorPicker Controls.ColorPicker ColorPicker AppWithoutLifetime->ctx:Controls.ColorPicker ctx:Fonts.Inter Fonts.Inter Inter AppWithoutLifetime->ctx:Fonts.Inter ctx:Themes.Fluent Themes.Fluent Fluent AppWithoutLifetime->ctx:Themes.Fluent Base.UnitTests Base.UnitTests Benchmarks Benchmarks Controls.UnitTests Controls.UnitTests DesignerSupport.TestApp DesignerSupport.TestApp DesignerSupport.Tests DesignerSupport.Tests Generators.Tests Generators.Tests Headless.NUnit.PerAssembly.UnitTests Headless.NUnit.PerAssembly.UnitTests Headless.NUnit.PerTest.UnitTests Headless.NUnit.PerTest.UnitTests Headless.XUnit.PerAssembly.UnitTests Headless.XUnit.PerAssembly.UnitTests Headless.XUnit.PerTest.UnitTests Headless.XUnit.PerTest.UnitTests IntegrationTests.Appium IntegrationTests.Appium IntegrationTests.Win32 IntegrationTests.Win32 LeakTests LeakTests Markup.UnitTests Markup.UnitTests Markup.Xaml.UnitTests Markup.Xaml.UnitTests RenderTests.WpfCompare RenderTests.WpfCompare Skia.RenderTests Skia.RenderTests Skia.UnitTests Skia.UnitTests UnicodeTrieGenerator UnicodeTrieGenerator UnitTests UnitTests Wayland.UnitTests Wayland.UnitTests BindingDemo BindingDemo BindingDemo->ctx:Fonts.Inter BindingDemo->ctx:Themes.Fluent ctx:samples samples Browser · ControlCatalog · ControlSamples · MiniMvvm … BindingDemo->ctx:samples ControlCatalog.Android ControlCatalog.Android ControlCatalog.Android->ctx:samples ControlCatalog.Desktop ControlCatalog.Desktop ctx:Dialogs Dialogs Dialogs ControlCatalog.Desktop->ctx:Dialogs ctx:X11 X11 X11 ControlCatalog.Desktop->ctx:X11 ControlCatalog.Desktop->ctx:samples MacCatalyst MacCatalyst MacCatalyst->ctx:samples iOS iOS iOS->ctx:samples tvOS tvOS tvOS->ctx:samples WinUI WinUI ctx:HarfBuzz HarfBuzz HarfBuzz WinUI->ctx:HarfBuzz WinUI->ctx:samples Sandbox Sandbox ctx:Avalonia Avalonia Avalonia Sandbox->ctx:Avalonia ctx:Desktop Desktop Desktop Sandbox->ctx:Desktop Sandbox->ctx:Fonts.Inter Sandbox->ctx:Themes.Fluent GpuInterop GpuInterop GpuInterop->ctx:Controls.ColorPicker GpuInterop->ctx:Fonts.Inter GpuInterop->ctx:Themes.Fluent IntegrationTestApp IntegrationTestApp IntegrationTestApp->ctx:Fonts.Inter IntegrationTestApp->ctx:Themes.Fluent IntegrationTestApp->ctx:samples PInvoke PInvoke PlatformSanityChecks PlatformSanityChecks PlatformSanityChecks->ctx:Desktop PlatformSanityChecks->ctx:Fonts.Inter ctx:Themes.Simple Themes.Simple Simple PlatformSanityChecks->ctx:Themes.Simple PlatformSanityChecks->ctx:X11 RenderDemo RenderDemo RenderDemo->ctx:Fonts.Inter RenderDemo->ctx:Themes.Fluent RenderDemo->ctx:samples SafeAreaDemo.Android SafeAreaDemo.Android SafeAreaDemo.Android->ctx:samples SafeAreaDemo.Desktop SafeAreaDemo.Desktop SafeAreaDemo.Desktop->ctx:X11 SafeAreaDemo.Desktop->ctx:samples SafeAreaDemo.iOS SafeAreaDemo.iOS SafeAreaDemo.iOS->ctx:samples Sandbox (2) Sandbox (2) Sandbox (2)->ctx:Controls.ColorPicker Sandbox (2)->ctx:Fonts.Inter Sandbox (2)->ctx:Themes.Fluent Sandbox (2)->ctx:Themes.Simple TextTestApp TextTestApp TextTestApp->ctx:Fonts.Inter TextTestApp->ctx:Themes.Fluent UnloadableAssemblyLoadContext UnloadableAssemblyLoadContext UnloadableAssemblyLoadContext->ctx:Avalonia ctx:Base Base Base UnloadableAssemblyLoadContext->ctx:Base UnloadableAssemblyLoadContext->ctx:Desktop UnloadableAssemblyLoadContext->ctx:Fonts.Inter UnloadableAssemblyLoadContext->ctx:Themes.Fluent VirtualizationDemo VirtualizationDemo VirtualizationDemo->ctx:Avalonia VirtualizationDemo->ctx:Fonts.Inter VirtualizationDemo->ctx:Themes.Fluent VirtualizationDemo->ctx:samples WinUIEmbedSample WinUIEmbedSample WinUIEmbedSample->ctx:Avalonia WinUIEmbedSample->ctx:Controls.ColorPicker WinUIEmbedSample->ctx:Fonts.Inter WinUIEmbedSample->ctx:Themes.Fluent WinUIEmbedSample->ctx:HarfBuzz ctx:Skia Skia Skia WinUIEmbedSample->ctx:Skia WindowsInteropTest WindowsInteropTest XEmbedSample XEmbedSample XEmbedSample->ctx:X11 XEmbedSample->ctx:HarfBuzz XEmbedSample->ctx:samples _build _build ctx:Controls Controls Controls ctx:Controls->ctx:Base ctx:Controls.ColorPicker->ctx:Base ctx:Controls.ColorPicker->ctx:Controls ctx:Markup Markup Loader · Markup · Xaml ctx:Controls.ColorPicker->ctx:Markup ctx:Desktop->ctx:Avalonia ctx:Desktop->ctx:X11 ctx:Desktop->ctx:HarfBuzz ctx:Desktop->ctx:Skia ctx:Dialogs->ctx:Markup ctx:Fonts.Inter->ctx:Base ctx:Fonts.Inter->ctx:Controls ctx:Themes.Fluent->ctx:Base ctx:Themes.Fluent->ctx:Controls ctx:Themes.Fluent->ctx:Dialogs ctx:Themes.Fluent->ctx:Markup ctx:Themes.Simple->ctx:Base ctx:Themes.Simple->ctx:Controls ctx:Themes.Simple->ctx:Dialogs ctx:Themes.Simple->ctx:Markup ctx:X11->ctx:Avalonia ctx:X11->ctx:Skia ctx:HarfBuzz->ctx:Avalonia ctx:Markup->ctx:Base ctx:Markup->ctx:Controls ctx:Skia->ctx:Avalonia ctx:samples->ctx:Avalonia ctx:samples->ctx:Base ctx:samples->ctx:Controls.ColorPicker ctx:samples->ctx:Desktop ctx:samples->ctx:Fonts.Inter ctx:samples->ctx:Themes.Fluent ctx:samples->ctx:Themes.Simple ctx:samples->ctx:Markup ctx:samples->ctx:Skia __more__ +18 more contexts

Architecture — module dependency matrix

230 modules, 852 dependencies — 15 dependency cycles, shown as the red cell(s) above the diagonal. Rows and columns are the same modules, ordered so that a module only depends on ones above it. A cell means the row depends on the column, and its number is how many type pairs create that dependency. Read one thing: is anything above the diagonal? A mark there is a dependency cycle. (A cycle is all this shows — an unusual but cycle-free dependency sits below the diagonal like any other.)

…onia.Platform.StorageSystemAvalonia.Input.Raw…nia.Platform.SurfacesAvalonia.StylingAvalonia.Utilities….Media.TextFormattingAvalonia.Threading…nia.Controls.Platform…ng.Composition.Server…g.Composition.Drawing…Rendering.CompositionAvalonia.PlatformAvalonia.Media.ImagingAvalonia.MediaAvalonia.RenderingAvalonia.LayoutAvalonia.InteractivityAvalonia.Data.CoreAvalonia.Input…alonia.Controls.UtilsAvalonia.iOS…a.Controls.Presenters…a.Controls.Primitives…onia.Automation.PeersAvalonia.ControlsAvalonia.DataAvalonia.ReactiveAvalonia.CollectionsAvalonia.AnimationAvalonia…onia.Android.Platform…esignerSupport.Remote…land.Server.TransientAvalonia.X11…Platform.SkiaPlatform…and.Server.PersistentAvalonia.Android…alonia.Wayland.ServerAvalonia.Wayland…onia.Platform.Storage1System2Avalonia.Input.Raw3…nia.Platform.Surfaces4Avalonia.Styling5Avalonia.Utilities6….Media.TextFormatting7Avalonia.Threading8…nia.Controls.Platform9…ng.Composition.Server10…g.Composition.Drawing11…Rendering.Composition12Avalonia.Platform13Avalonia.Media.Imaging14Avalonia.Media15Avalonia.Rendering16Avalonia.Layout17Avalonia.Interactivity18Avalonia.Data.Core19Avalonia.Input20…alonia.Controls.Utils21Avalonia.iOS22…a.Controls.Presenters23…a.Controls.Primitives24…onia.Automation.Peers25Avalonia.Controls26Avalonia.Data27Avalonia.Reactive28Avalonia.Collections29Avalonia.Animation30Avalonia31…onia.Android.Platform32…esignerSupport.Remote33…land.Server.Transient34Avalonia.X1135…Platform.SkiaPlatform36…and.Server.Persistent37Avalonia.Android38…alonia.Wayland.Server39Avalonia.Wayland402910741842433686361551222112621614922713659365253914824524821210222136191531323143241129165131972351421615924313121071771136111171191111133106120271481722622323217322112131211118141232151819133021121324152062298883231301183917222511143182111335910389720381811943861816393144222122111191444421421341121211228713611671411121221171391102613113171855212621217111331312121175+190 more modules (most-connected shown)

At a glance — Code Health · 60% · Adequate

At a glance — Architecture · 84% · Strong

At a glance — Maturity · 73% · Strong

At a glance — Readiness · 56% · Adequate · gated by R4, R6

At a glance — Security · 59% · Adequate · gated by D29, D36, C1

At a glance — Performance · 73% · Strong

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
A03:2021 — Injection17High / Critical

Roadmap

First, establish release hygiene by maintaining a changelog to clearly record what ships in each release. Next, improve test coverage by adding tests for all unreached modules to ensure comprehensive validation. Then, enforce code quality by adding ESLint and TypeScript checks to the build process and CI pipeline. Finally, clean up dependencies by removing unused packages and explicitly declaring imports, while strengthening data protection by encrypting sensitive columns and securing keys.

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

Do thisHelpsEffortDimension
Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.+4.4 ptsMediumRelease Hygiene
Add tests that import the unreached modules (directly or through their public entry).+4.4 ptsMediumTest Coverage
Add eslint and `tsc --noEmit` as package.json scripts and run them in CI.+4.4 ptsMediumTooling
Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.+3.3 ptsMediumDependency Hygiene
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.+3.0 ptsMediumData Protection
Name the access rules — give each one a named predicate/policy object your guards consult, so the rule set can be reviewed and unit-tested independently of the call sites that enforce it.+2.7 ptsMediumAccess Controls
Finish or delete the unfinished stubs (NotImplementedException / empty / constant-returning bodies) — they are dead surface that looks live.+2.6 ptsMediumIncompleteness & stubs
Sync-over-async (deadlock risk)+2.6 ptsMediumAsync correctness

File quality

Per-file score 0–10 — a quality signature. Of 538 files carrying findings, judged against the Preview bar: 0% slop · 14% mixed · 86% near-clean.

FileScoreBandWorst signal
src/Avalonia.Wayland/Server/Transient/WaylandTextInputV3.cs3.3MixedExplicit Debt: EmptyCatchBlock
.github/workflows/api-diff.yml4.4MixedStatic Analysis (SAST): High: github-actions-mutable-action-tag
.github/workflows/update-api.yml4.4MixedStatic Analysis (SAST): High: github-actions-mutable-action-tag
src/Avalonia.Native/AvaloniaNativePlatform.cs4.9MixedExplicit Debt: EmptyCatchBlock
src/tools/Avalonia.Generators/NameGenerator/AvaloniaNameIncrementalGenerator.cs5.4MixedExplicit Debt: EmptyCatchBlock
src/Avalonia.Base/Rendering/Composition/Server/ServerCompositor.cs5.4MixedExplicit Debt: EmptyCatchBlock
src/Avalonia.Controls/Window.cs5.5MixedCyclomatic Complexity: Window.ShowCore (cyclomatic 18)
src/Avalonia.Base/Media/GlyphTypeface.cs5.6MixedCyclomatic Complexity: GlyphTypeface.GlyphTypeface.ctor (cyclomatic 35)
src/Avalonia.Base/Layout/Layoutable.cs5.7MixedCyclomatic Complexity: Layoutable.MeasureCore (cyclomatic 19)
src/tools/Avalonia.UnicodeTrieGenerator/Avalonia.UnicodeTrieGenerator.csproj5.8MixedExplicit Debt: NoWarnInCsproj
src/Avalonia.Controls/TextBox.cs6.0MixedCyclomatic Complexity: TextBox.OnKeyDown (cyclomatic 63)
src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs6.0MixedExplicit Debt: BarePragmaDisable
src/Avalonia.X11/X11Window.cs6.0MixedExplicit Debt: TodoComment
src/Avalonia.Controls.ColorPicker/ColorSpectrum/ColorSpectrum.cs6.0MixedExplicit Debt: TodoComment
src/Avalonia.Base/Input/FocusManager.cs6.0MixedExplicit Debt: TodoComment
src/Windows/Avalonia.Win32/WindowImpl.CustomCaptionProc.cs6.0MixedExplicit Debt: TodoComment
src/Avalonia.Base/Rendering/Composition/Server/ServerCompositionTarget.cs6.0MixedExplicit Debt: TodoComment
src/Windows/Avalonia.Win32/WindowImpl.cs6.0MixedExplicit Debt: TodoComment
src/Avalonia.Controls/Platform/DefaultMenuInteractionHandler.cs6.0MixedExplicit Debt: HackComment
src/Avalonia.Controls/LayoutTransformControl.cs6.0MixedExplicit Debt: HackComment

Methodology & how to trust this report

Watchdog 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. 61 of 65 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 4 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.7 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.

Every figure here is one of three 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; ◐ Advisory — an LLM prose judgement. 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; ◐ Sampled · advisory marks an LLM verdict over a bounded sample — advisory, never a deterministic measurement.

What we checked — 65 dimensions across the health lenses
D1D2D3D4D5D6D9D10D11D12D13D14D15D16D17D18D20D21D22D24D26D27D28D29D33D34D35D36D37AX10AX3AX5AX6AX7AX8C1C2C4GD1IC1M1M2M3M4P1P10P3P6PF1PF2PF3R1R10R2R3R4R6R7R8R9S1X1X2X3X5

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, 1360 of 1402 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, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — 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
jscpdCode duplication✓ deterministic
Coverage (coverlet / dotnet-coverage)Line & branch coverage10.0.302✓ deterministic
NuGet / dotnetOutdated, vulnerable & deprecated dependencies10.0.302✓ 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
LLM (sampled · advisory)Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurementLocal LLM◐ LLM · sampled · advisory

Every finding is locatable in findings.md. Run 019fcf72-8f66-78aa-b1df-aa03faedecd1.

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.

  • D19 Documentation Quality — LLM provider failed — The model provider returned an unusable result, so this LLM-assisted dimension fell back to a measurement gap (confidence 0) rather than a penalty. Re-run with a reachable provider to score it.

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

Limitations & what we did not check

Watchdog assesses the repository exactly as committed, and only the repository. By design it does 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 (jscpd) — 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.
  • D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
  • 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 — Watchdog runs 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.
  • D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
  • D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
  • D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
  • D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
  • D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
  • D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
  • 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.
  • D20 ADR Quality: ADR quality is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
  • D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
  • D22 Internal API Consistency: API-surface coherence is an LLM judgement over a sample of the public surface — consistency of intent across the whole API is approximated, not exhaustively verified.
  • D24 Comment Value: Comment value (WHY vs WHAT) is an LLM judgement over a bounded sample — it is advisory and cannot weigh a comment against the precise code change it was written to explain.
  • 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").
  • D33 JS/npm Dependency Vulnerabilities: JS/npm CVE matching reads package manifests and lockfiles — risk from how a dependency is used, and advisories not yet published, fall outside this scan.
  • 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.
  • 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.
  • 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.
  • M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
  • 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.

The LLM boundary

LLM-set scores this run (5): D20, D21, D22, D24, M4 (model: Local LLM). For these, a model reads a bounded sample and sets the numeric score (documentation, ADR quality, naming, comment value, onboarding) — D25 sets the ADR-conformance fraction over sampled code, D22 judges API accuracy over a sample. These are sampled and advisory by design: they vary at the margins between runs and are never a deterministic measurement. Every other score in this report is tool-computed at confidence 1.0.

Dimensions

D1 · Cyclomatic Complexity5.2 / 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: DocumentedVerifiedPrevented · effective 5.2 / 10 · rule-coverage 100% · ceiling Prevented

239 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was PhysicalKeyExtensions.ToQwertyKeySymbol at 215. A further 41 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 HeadlessVncFramebufferSource.TranslateKey at 187 — they are counted neither in the figure above nor in this dimension's score.

Color.TryParse (cyclomatic 29) · ×2src/Avalonia.Base/Media/Color.cs:144
PhysicalKeyExtensions.ToQwertyKeySymbol (cyclomatic 215)src/Avalonia.Base/Input/PhysicalKeyExtensions.cs:207
WindowImpl.AppWndProc (cyclomatic 182)src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs:23
XamlCompilerTaskExecutor.CompileCore (cyclomatic 96)src/Avalonia.Build.Tasks/XamlCompilerTaskExecutor.cs:104
BidiAlgorithm.ProcessIsolatedRunSequence (cyclomatic 80)src/Avalonia.Base/Media/TextFormatting/Unicode/BiDiAlgorithm.cs:856

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

What to do

  1. Resolve the 2 Color.TryParse (cyclomatic 29) finding(s) in Cyclomatic Complexity — start with Color.cs (2). — One of this dimension's main actionable groups (2 warning-level).
  2. Resolve the 1 PhysicalKeyExtensions.ToQwertyKeySymbol (cyclomatic 215) finding(s) in Cyclomatic Complexity — start with PhysicalKeyExtensions.cs. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 WindowImpl.AppWndProc (cyclomatic 182) finding(s) in Cyclomatic Complexity — start with WindowImpl.AppWndProc.cs. — One of this dimension's main actionable groups (1 warning-level).
  4. Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D2 · Cognitive Complexity5.4 / 10Adequate✓ Tool-verified

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

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

Maturity: DocumentedVerifiedPrevented · effective 5.4 / 10 · rule-coverage 100% · ceiling Prevented

462 method(s) exceeded the cognitive complexity threshold of 15; the worst was XamlCompilerTaskExecutor.CompileCore at 183.

Color.TryParse (cognitive 19) · ×2src/Avalonia.Base/Media/Color.cs:144
OnPropertyChangedOverrideAnalyzer.AnalyzeMethod (cognitive 16) · ×2src/tools/Avalonia.Analyzers.CSharp/OnPropertyChangedOverrideAnalyzer.cs:31
XamlCompilerTaskExecutor.CompileCore (cognitive 183)src/Avalonia.Build.Tasks/XamlCompilerTaskExecutor.cs:104
WindowImpl.AppWndProc (cognitive 174)src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs:23
BidiAlgorithm.ProcessIsolatedRunSequence (cognitive 148)src/Avalonia.Base/Media/TextFormatting/Unicode/BiDiAlgorithm.cs:856

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

What to do

  1. Resolve the 2 Color.TryParse (cognitive 19) finding(s) in Cognitive Complexity — start with Color.cs (2). — One of this dimension's main actionable groups (2 warning-level).
  2. Resolve the 2 OnPropertyChangedOverrideAnalyzer.AnalyzeMethod (cognitive 16) finding(s) in Cognitive Complexity — start with OnPropertyChangedOverrideAnalyzer.cs (2). — One of this dimension's main actionable groups (2 warning-level).
  3. Resolve the 1 XamlCompilerTaskExecutor.CompileCore (cognitive 183) finding(s) in Cognitive Complexity — start with XamlCompilerTaskExecutor.cs. — One of this dimension's main actionable groups (1 warning-level).
  4. Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

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

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

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

Maturity: DocumentedVerifiedPrevented · effective 8.6 / 10 · rule-coverage 100% · ceiling Prevented

134 god class(es) detected.

TooManyMethods: WindowImpl · ×80src/Windows/Avalonia.Win32/WindowImpl.cs:0
FileTooLong: Avalonia.X11/Keysyms.cs · ×38src/Avalonia.X11/Keysyms.cs:0
ClassTooLong: UnmanagedMethods · ×16src/Windows/Avalonia.Win32/Interop/UnmanagedMethods.cs:0

What to do

  1. Resolve the 80 TooManyMethods finding(s) in God Classes — start with WindowImpl.cs, PooledList.cs, GlInterface.cs. — One of this dimension's main actionable groups (80 warning-level).
  2. Resolve the 38 FileTooLong finding(s) in God Classes — start with Keysyms.cs, UnmanagedMethods.cs, X11Structs.cs. — One of this dimension's main actionable groups (38 warning-level).
  3. Resolve the 16 ClassTooLong finding(s) in God Classes — start with UnmanagedMethods.cs, ColorSpectrum.cs, TextLineImpl.cs. — One of this dimension's main actionable groups (16 warning-level).
  4. Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D4 · Code Duplication9.9 / 10Exemplary✓ Tool-verified

What it measures: Copy-pasted code that should be shared instead.

Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), density-scored per KLoC of production code. Deterministic.

Maturity: DocumentedVerifiedPrevented · effective 9.9 / 10 · rule-coverage 100% · ceiling Verified

75 duplicated block group(s) detected.

Duplicated block (12 lines × 2) · ×11src/Avalonia.Base/Data/Core/Plugins/TaskStreamPlugin.cs:47
Duplicated block (20 lines × 2) · ×8src/Avalonia.Base/Media/Fonts/FontCollectionBase.cs:1192
Duplicated block (7 lines × 2) · ×6src/Avalonia.Base/Animation/Transitions/Rotate3DTransition.cs:151
Duplicated block (18 lines × 2) · ×5src/Avalonia.Base/Media/Fonts/Tables/Metrics/HorizontalMetricsTable.cs:125
Duplicated block (16 lines × 2) · ×5src/Avalonia.Base/Data/CompiledBinding.cs:215

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

✓ On the Gold path — maintain.

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

D5 · Coupling9.7 / 10Exemplary✓ 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: DocumentedVerifiedPrevented · effective 9.7 / 10 · rule-coverage 100% · ceiling Prevented

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

Off the main sequence: Avalonia.Build.Tasks · ×6

✓ On the Gold path — maintain.

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

D6 · Cohesion (LCOM4)9.5 / 10Exemplary✓ 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: DocumentedVerifiedPrevented · effective 9.5 / 10 · rule-coverage 100% · ceiling Verified

37 of 954 classes have LCOM4 above 3.

Low cohesion: NavigationPageAppearancePage (LCOM4 10) · ×37samples/ControlCatalog/Pages/NavigationPage/NavigationPageAppearancePage.xaml.cs:9

✓ On the Gold path — maintain.

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

D9 · Test Distribution10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether the test suite has a healthy mix of unit / integration / end-to-end tests.

Method: Test projects classified (Unit/Integration/BDD/E2E) from compiled metadata; test methods counted exhaustively across projects with placement-agnostic disk fallback. Deterministic.

Maturity: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

6225 test methods: 6170 unit, 55 integration, 0 BDD, 0 e2e.

✓ On the Gold path — maintain.

Detailed fixes: d9_recommendation.md.

D10 · Test Quality10.0 / 10Exemplary✓ 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: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

20 skipped (16 with a documented reason), 4 zero-assertion, 15 mock references across 6219 tests.

Skipped test: Nested_Style_Without_Nesting_Operator_Throws · ×4tests/Avalonia.Base.UnitTests/Styling/StyleTests.cs:884
No assertions: Should_Negate_Boolean_Value · ×4tests/Avalonia.Base.UnitTests/Data/Core/BindingExpressionTests.Negation.cs:11
Skipped (documented): AssemblyName_With_Non_ASCII_Should_Load_Avares · ×16tests/Avalonia.Base.UnitTests/AssetLoaderTests.cs:42
Mock framework: Moq · ×15

✓ On the Gold path — maintain.

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: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Verified

0 flaky across 2 measured tier(s). unit: measured (0 flaky); integration: measured (0 flaky); other: not included — too large to re-run within its budget.

✓ On the Gold path — maintain.

Detailed fixes: d11_recommendation.md.

D12 · Dependency Hygiene10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether dependencies are current, secure, and not bloated.

Method: Manifest scan via dotnet list package across all projects; worst-signal-per-package deduction (saturating for vulnerabilities, capped-linear for deprecation/outdated) per KLoC. Exhaustive, deterministic.

Maturity: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Verified

0 outdated, 0 vulnerable, 0 deprecated packages.

✓ On the Gold path — maintain.

Detailed fixes: d12_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: DocumentedVerifiedPrevented · 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: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Verified

0 of 41 packages use a banned license.

✓ On the Gold path — maintain.

Detailed fixes: d14_recommendation.md.

D15 · Churn × Complexity Hotspots9.7 / 10Exemplary✓ 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: DocumentedVerifiedPrevented · effective 9.7 / 10 · rule-coverage 100% · ceiling Documented

Top hotspots: src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs (3×182=546); src/Avalonia.X11/X11Window.cs (6×65=390); src/Avalonia.Controls/TextBox.cs (4×63=252)

Hotspot: src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs · ×10src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs

✓ On the Gold path — maintain.

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

D16 · Bus Factor9.4 / 10Exemplary✓ Tool-verified

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

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

Maturity: DocumentedVerifiedPrevented · effective 9.4 / 10 · rule-coverage 100% · ceiling Documented

73 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is src/Avalonia.Base/Media/TextFormatting/ShapedBuffer.cs.

Off-boarding risk: anonymized user #1 · ×6
Further sole-owners (lower concentration)

✓ On the Gold path — maintain.

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

D17 · Explicit Debt9.3 / 10Exemplary✓ 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: DocumentedVerifiedPrevented · effective 9.3 / 10 · rule-coverage 100% · ceiling Prevented

378 deducted debt markers + 0 dead symbols across 379246 LoC (0.3/KLoC) → score 9.3.

EmptyCatchBlock · ×30nukebuild/BuildTasksPatcher.cs:52
NoWarnInCsproj · ×18nukebuild/_build.csproj:7
TodoComment · ×144samples/RenderDemo/App.xaml.cs:21
CommentedOutCode · ×66src/Avalonia.Base/Input/Navigation/XYFocus.Impl.cs:309
BarePragmaDisable · ×41src/Android/Avalonia.Android/AndroidDispatcherImpl.cs:159

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

✓ On the Gold path — maintain.

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

D18 · Solution Shape9.6 / 10Exemplary✓ 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: DocumentedVerifiedPrevented · effective 9.6 / 10 · rule-coverage 100% · ceiling Documented

141 projects, 7111 source files, 525838 hand-written lines of code (379246 production / 146592 test), plus 202 generated (machine-written code — designer, scaffolded and tool-emitted files — excluded from quality), 438 inter-project edges (build status unknown — did not finish).

Thin analysable surface across projects
Build status unknown

✓ On the Gold path — maintain.

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

D20 · ADR Quality / 10Critical◐ Sampled · advisory

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

Method: Per-ADR judgment by language model at low temperature with two-pass stability; confidence is share of ADRs evaluated; enforcement-field presence detected deterministically. Advisory.

Maturity: DocumentedVerifiedPrevented · effective Critical / 10 · rule-coverage 100% · ceiling Documented

No architecture decision records were found.

No ADRs found

What to do

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

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

D21 · Naming Consistency / 10Exemplary◐ Sampled · advisory

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

Method: Judged by language model at low temperature (0.0-0.1) on a deterministic random symbol sample (fixed size, not exhaustive), with disclosed confidence band. Advisory, sampled.

Maturity: DocumentedVerifiedPrevented · effective Exemplary / 10 · rule-coverage 100% · ceiling Verified

0 naming inconsistencies across 200 sampled symbols.

✓ On the Gold path — maintain.

Detailed fixes: d21_recommendation.md.

D22 · Internal API Consistency / 10Exemplary◐ Sampled · advisory

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

Method: Judged by language model at low temperature over a sample of the public API surface (IsPackable or .Contracts types). Sampled, advisory; confidence discounted by model uncertainty.

Maturity: DocumentedVerifiedPrevented · effective Exemplary / 10 · rule-coverage 100% · ceiling Verified

0 API inconsistencies across 14 exposed types.

✓ On the Gold path — maintain.

Detailed fixes: d22_recommendation.md.

D24 · Comment Value / 10Exemplary◐ Sampled · advisory

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

Method: Judged by language model at low temperature (0.0-0.1) on deterministically sampled inline comments with surrounding code; findings verified back to sampled comments by substring match. Advisory, sampled.

Maturity: DocumentedVerifiedPrevented · effective Exemplary / 10 · rule-coverage 100% · ceiling Documented

42 valuable / 1 redundant across 200 sampled comments; 1 shown with locations.

redundant commentsrc/Avalonia.Controls.ColorPicker/Helpers/ColorPickerHelpers.cs:109

✓ On the Gold path — maintain.

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

D26 · Project Cohesion9.4 / 10Exemplary✓ 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, LLM-independent.

Maturity: DocumentedVerifiedPrevented · effective 9.4 / 10 · rule-coverage 100% · ceiling Documented

3 of 100 projects flagged as possibly oversized/incoherent.

Split Avalonia.Base
Split Avalonia.Controls

✓ On the Gold path — maintain.

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

D27 · Navigability6.9 / 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.

Coverage: Slice locality from the first namespace segments, SAMPLED (≤400 methods) — not exhaustive.

Maturity: DocumentedVerifiedPrevented · effective 6.9 / 10 · rule-coverage 100% · ceiling Documented

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

What to do

  1. Improve Navigability — currently 6.9/10. — 68 % of calls cross a namespace and 1 % go through an interface, but 71 % of collaborators are co-located — so following a call takes several hops. Baseline: large — vertical-slice locality expected.

Detailed fixes: d27_recommendation.md.

D28 · Secrets (history)9.0 / 10Exemplary✓ Tool-verified

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

Method: Git-history secret scan via gitleaks detect over full history in an isolated checkout; each match flagged High. Exhaustive; degrades cleanly when tool absent.

Maturity: DocumentedVerifiedPrevented · effective 9.0 / 10 · rule-coverage 100% · ceiling Documented

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

✓ On the Gold path — maintain.

Detailed fixes: d28_recommendation.md.

D29 · Static Analysis (SAST)0.6 / 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: DocumentedVerifiedPrevented · effective 0.6 / 10 · rule-coverage 100% · ceiling Documented

17 finding(s): 0 critical, 16 high, 1 medium, 0 low.

High: dependabot-missing-cooldown · ×16.github/dependabot.yml:3detected by semgrep finding
Medium: wildcard-postmessage-configurationsrc/Avalonia.DesignerSupport/Remote/HtmlTransport/webapp/src/FramePresenter.tsx:93detected by semgrep finding

What to do

  1. Resolve the 16 High finding(s) in Static Analysis (SAST) — start with api-diff.yml (8), update-api.yml (7), dependabot.yml. — One of this dimension's main actionable groups (16 issue-level).
  2. Resolve the 1 Medium finding(s) in Static Analysis (SAST) — start with FramePresenter.tsx. — One of this dimension's main actionable groups (1 warning-level).

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

D33 · JS/npm Dependency Vulnerabilities10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether JavaScript/npm dependencies have known published vulnerabilities (CVEs) — the npm ecosystem's biggest risk.

Method: JS/npm CVE scan via trivy fs --scanners vuln over JS manifests (package.json/yarn.lock/pnpm-lock/bun.lockb); 0-10 tight normalizer. NotApplicable without JS manifests. Exhaustive, deterministic.

Maturity: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

No known-vulnerable JS/npm dependencies.

✓ On the Gold path — maintain.

Detailed fixes: d33_recommendation.md.

D34 · Knowledge Freshness9.2 / 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: DocumentedVerifiedPrevented · effective 9.2 / 10 · rule-coverage 100% · ceiling Documented

96 of 1244 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is src/Avalonia.Base/Collections/Pooled/PooledList.cs.

Orphaned knowledge · ×15src/Avalonia.Base/Collections/Pooled/PooledList.cs
Further orphaned files (smaller)

✓ On the Gold path — maintain.

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

D35 · Change Coupling9.9 / 10Exemplary✓ 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; coupling through a build step, config, or non-source file isn't seen.

Maturity: DocumentedVerifiedPrevented · effective 9.9 / 10 · rule-coverage 100% · ceiling Documented

Strongest change-coupling: FcitxICWrapper.cs↔IBusX11TextInputMethod.cs 85%; FcitxICWrapper.cs↔DBusMenuExporter.cs 77%; FcitxICWrapper.cs↔DBusTrayIconImpl.cs 77%

Change coupling: FcitxICWrapper.cs ↔ IBusX11TextInputMethod.cs · ×10src/Avalonia.FreeDesktop/DBusIme/Fcitx/FcitxICWrapper.cs

✓ On the Gold path — maintain.

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: DocumentedVerifiedPrevented · effective 2.5 / 10 · rule-coverage 100% · ceiling Documented

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

Unpinned build actions
PR-triggered workflow without a permissions block
No build provenance
No artifact signing

What to do

  1. Resolve the 1 Unpinned build actions finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 PR-triggered workflow without a permissions block finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 No build provenance finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).

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

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

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

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

Maturity: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

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

✓ On the Gold path — maintain.

Detailed fixes: d37_recommendation.md.

Frontend & cross-cutting dimensions

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

AX10 · Code composition9.7 / 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.

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.

What to do

  • The domain core is a small share of production code — check that business logic isn't leaking into the application/infrastructure layers (a thin domain is the anemic-domain smell).
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.

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 member counts; fat-interface threshold (over 15 members) flagged per type. Deterministic, type-level.

  • `IInputElement` declares 25 members. 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. — IInputElement.cs:11
  • `IDrawingContextImpl` declares 28 members. 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. — IDrawingContextImpl.cs:13
  • `IPlatformRenderInterface` declares 27 members. 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. — IPlatformRenderInterface.cs:15
  • `INavigation` declares 22 members. 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. — INavigation.cs:13
  • `ISelectionModel` declares 21 members. 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. — ISelectionModel.cs:8
  • `ITopLevelImpl` declares 22 members. 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. — ITopLevelImpl.cs:19
  • `IWindowImpl` declares 31 members. 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. — IWindowImpl.cs:12

What to do

  • Split fat interfaces into focused role-interfaces so clients depend only on what they use.
AX7 · Slice cohesion6.4 / 10Adequate✓ Tool-verified

Other · Architecture — Whether feature slices stay independent (no direct cross-slice references) — the discipline that makes vertical-slice architecture pay off.

Method: Roslyn scan (vertical-slice gated): feature slices resolved from namespaces (.Features.*, .Slices.*) or project names; cross-slice type references detected. Deterministic, traceable.

  • `RemoteWidget` (slice 'Avalonia.Controls') depends on `IAvaloniaRemoteTransportConnection` from slice 'Avalonia.Remote.Protocol'. — RemoteWidget.cs:13
  • `RemoteServerTopLevelImpl` (slice 'Avalonia.Controls') depends on `IAvaloniaRemoteTransportConnection` from slice 'Avalonia.Remote.Protocol'. — RemoteServerTopLevelImpl.cs:21
  • `Framebuffer` (slice 'Avalonia.Controls') depends on `PixelFormat` from slice 'Avalonia.Remote.Protocol'. — RemoteServerTopLevelImpl.Framebuffer.cs:20

What to do

  • Keep slices independent: share cross-slice needs via an explicit contract/shared-kernel, not direct references between slices.
AX8 · Test isolation10.0 / 10Exemplary✓ Tool-verified

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

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

C1 · Data Protection3.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.
C2 · Access Controls7.0 / 10Strong✓ Tool-verified

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

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

  • Authorization IS enforced here (by imperative guard methods that throw on violation) — this is NOT a claim that the code is unprotected. What's missing is a NAMED rule set: the guards encode the access rules inline, so the rules can't be listed, reviewed or tested apart from the call sites that apply them. Recommendation, not a defect.

What to do

  • Name the access rules — give each one a named predicate/policy object your guards consult, so the rule set can be reviewed and unit-tested independently of the call sites that enforce it.
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.
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. (×18) — FuncValueConverter.cs:56, FuncValueConverter.cs:120, DrawingGroup.cs:250, …

What to do

  • Finish or delete NotImplementedException stubs and replace placeholder literals before shipping.
IC1 · Incompleteness & stubs5.9 / 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, skeleton types), not keyword-gated. Deterministic, code-shape heuristic.

  • `TryGetFileFromPathAsync` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — AndroidStorageProvider.cs:40
  • `TryGetFolderFromPathAsync` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — AndroidStorageProvider.cs:74
  • Code inside a `#if false` block is permanently excluded from the build — disabled code that should be removed or restored. (×2) — ThrowHelper.cs:411, ThrowHelper.cs:551
  • `PushClipCore` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — DrawingGroup.cs:248
  • `DrawBitmap` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — DrawingGroup.cs:281
  • `ToString` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — ValueStyleQuery.cs:22
  • `InteropAutomationPeer` has 19 unfinished members out of 21 — a scaffolded type that was never implemented. — InteropAutomationPeer.cs:15
  • `BringIntoViewCore` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — InteropAutomationPeer.cs:22
  • `GetAcceleratorKeyCore` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — InteropAutomationPeer.cs:23
  • `GetAccessKeyCore` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — InteropAutomationPeer.cs:24
  • `GetAutomationControlTypeCore` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — InteropAutomationPeer.cs:25
  • `GetAutomationIdCore` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — InteropAutomationPeer.cs:26
  • `GetBoundingRectangleCore` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — InteropAutomationPeer.cs:27
  • `GetClassNameCore` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — InteropAutomationPeer.cs:28
  • `GetLabeledByCore` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — InteropAutomationPeer.cs:29

What to do

  • Finish or delete the unfinished stubs (NotImplementedException / empty / constant-returning bodies) — they are dead surface that looks live.
  • Clear the softer debt: remove commented-out code and dead branches, re-enable or delete skipped tests, and replace blanket warning suppressions with targeted ones.
M1 · Documentation (README)6.7 / 10Strong✓ Tool-verified

Maturity · Maturity — Whether the repo and its projects have a README, and whether it's substantive and current.

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

What to do

  • Add a 'Testing' section to the root README — how to run the test suite.
  • Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
  • Add a README to the 96 of 100 project(s) that lack one — worth up to 1.9 pts.
M2 · Architecture documentation5.0 / 10Adequate✓ Tool-verified

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

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

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

What to do

  • Record significant decisions one document per decision — dated, stating the context, the decision and its consequences — and keep them together wherever your design docs already live (a conventional `docs/adr/` tree with `NNNN-title.md` names is the most discoverable form).
M3 · Folder & project structure10.0 / 10Exemplary✓ Tool-verified

Maturity · Maturity — Whether the repo is organised deliberately — src/test separation and consistent project naming.

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

M4 · Documentation accuracy9.0 / 10Exemplary◐ Sampled · advisory

Maturity · Maturity — Whether the README actually describes the code that exists (LLM-judged, advisory).

Method: Judged by language model at low temperature: README accuracy versus actual projects, within a disclosed tolerance. Advisory, not a measured number.

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

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

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

P10 · Library API & versioning10.0 / 10Exemplary○ Nothing flagged

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

Method: Roslyn scan: public API surface area and semantic-versioning markers (SemVer attributes, changelog entries) for libraries. Exhaustive, deterministic.

P3 · Security & performance tooling8.0 / 10Strong✓ 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.

What to do

  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P6 · Release Hygiene5.0 / 10Adequate✓ Tool-verified

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

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

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

What to do

  • Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.
PF1 · Benchmark discipline9.5 / 10Exemplary✓ Tool-verified

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

Method: Repo + source scan: BenchmarkDotNet referenced (csproj/source), [Benchmark]/[MemoryDiagnoser] attribute counts, and a benchmark step in CI — scored as a bonus ladder (absence is neutral, never a deduction). Deterministic, presence detection.

PF2 · Allocation hygiene7.3 / 10Strong✓ Tool-verified

Readiness · Performance — Whether the code is written to minimise allocations so it doesn't pressure its host's memory manager — buffer/slice views over copies, object pooling, stack or value-type allocation, and buffer writers. Reward-only: credited where present, never penalised where a simpler style is fine.

Method: Production-source scan: density (per 1k LoC) of allocation-aware APIs — Span/Memory, ArrayPool/ObjectPool, stackalloc, ValueTask, value-type structs, IBufferWriter, string.Create, SkipLocalsInit. Reward-only. Deterministic, syntax/text detection.

What to do

  • Raise allocation-aware density on the hot paths — currently 1037 use(s) across 385,670 production line(s) (~2.7/1k). More Span/Memory, pooling (ArrayPool/ObjectPool), stackalloc and ValueTask on the allocation-heavy paths climbs this toward 10.
PF3 · Async & latency hygiene6.0 / 10Adequate✓ Tool-verified

Readiness · Performance — Whether asynchronous code keeps its host responsive — a library awaits with ConfigureAwait(false) (so it never captures and stalls the host's context) and avoids sync-over-async blocking (.Wait()/.GetAwaiter().GetResult()) that wastes threads and risks deadlock.

Method: Production-source scan: sync-over-async blocking (.Wait()/.GetAwaiter().GetResult()) counted everywhere, and — for a library with ≥5 awaits — the share of awaits using ConfigureAwait(false). Deterministic, syntax/text detection.

  • 38 blocking call(s) on async work (.Wait()/.GetAwaiter().GetResult()) — these waste a thread and can deadlock in a consumer with a synchronization context.

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.
R1 · Type Safety9.5 / 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.

What to do

  • Migrate the remaining .js/.jsx files to TypeScript.
R10 · Code Duplication8.4 / 10Strong✓ Tool-verified

React / JS · Code Health — Copy-pasted token-identical blocks across the frontend (the D4 clone algorithm over JS/TS tokens, D-386).

Method: Copy-pasted token-identical blocks across the frontend (the D4 clone algorithm run over JS/TS tokens). Deterministic.

  • src/Browser/Avalonia.Browser/webapp/modules/avalonia/input.ts:259 · src/Browser/Avalonia.Browser/webapp/modules/avalonia/input.ts:307 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — input.ts:259
  • src/Avalonia.DesignerSupport/Remote/HtmlTransport/webapp/src/Models/Input/PointerPressedEventMessage.ts:3 · src/Avalonia.DesignerSupport/Remote/HtmlTransport/webapp/src/Models/Input/PointerReleasedEventMessage.ts:3 — 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. — PointerPressedEventMessage.ts:3
  • src/Avalonia.DesignerSupport/Remote/HtmlTransport/webapp/src/FramePresenter.tsx:104 · src/Avalonia.DesignerSupport/Remote/HtmlTransport/webapp/src/FramePresenter.tsx:116 — 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. — FramePresenter.tsx:104
  • src/Browser/Avalonia.Browser/webapp/modules/storage/storageItem.ts:110 · src/Browser/Avalonia.Browser/webapp/modules/storage/storageItem.ts:130 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — storageItem.ts:110
  • src/Browser/Avalonia.Browser/webapp/modules/avalonia/dom.ts:30 · src/Browser/Avalonia.Browser/webapp/modules/avalonia/dom.ts:59 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — dom.ts:30
  • src/Browser/Avalonia.Browser/webapp/modules/avalonia/input.ts:430 · src/Browser/Avalonia.Browser/webapp/modules/avalonia/input.ts:444 — 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. — input.ts:430
  • src/Browser/Avalonia.Browser/webapp/modules/avalonia/input.ts:460 · src/Browser/Avalonia.Browser/webapp/modules/avalonia/input.ts:493 — 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. — input.ts:460
  • src/Browser/Avalonia.Browser/webapp/modules/storage/storageItem.ts:97 · src/Browser/Avalonia.Browser/webapp/modules/storage/storageItem.ts:120 — 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. — storageItem.ts:97

What to do

  • Extract the duplicated blocks into shared functions/components.
R2 · Cyclomatic Complexity10.0 / 10Exemplary✓ 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.

  • Branch-heavy code is where defects cluster — extract decisions into smaller functions. (×3) — input.ts:582, caretHelper.ts:3, input.ts:231
R3 · Large Files8.9 / 10Exemplary✓ Tool-verified

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

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

What to do

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

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

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

  • No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one. (×8) — input.ts, storageItem.ts, dom.ts, …

What to do

  • Add tests that import the unreached modules (directly or through their public entry).
R6 · Tooling3.4 / 10Weak✓ 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 ✗

What to do

  • Add eslint and `tsc --noEmit` as package.json scripts and run them in CI.
R7 · Dead Code9.7 / 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.

  • 1 file(s) (~94 LoC) were excluded from dead-code analysis. This package DOES declare main/module/exports — but every declared target is missing from the scanned tree, which is what a build-output entry (dist/, lib/, out/) looks like before the package is built. Point a declared target at the source entry, or build the package before scanning, so reachability can follow it. — webapp
  • Unreachable from the 5 application, 1 tooling and 1 test entry point(s) detected in this repo. Gate removals on your build/type-check — an undetected custom entry would make these reachable.
  • no import path from any entry point (5 application, 1 tooling, 1 test roots considered) — build.js
  • Nothing ultimately consumes this binding: its only referrer is the re-export in src/Browser/Avalonia.Browser/webapp/modules/storage.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change — drop the re-export line in src/Browser/Avalonia.Browser/webapp/modules/storage.ts in the same commit, or the barrel will import a name that no longer exists. — storageProvider.ts:13

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 Hygiene8.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 src/Avalonia.DesignerSupport/Remote/HtmlTransport/webapp/package.json but never imported anywhere in that package or its workspace members — dead weight and attack surface. Verify against build tooling before removing. (×2)
  • Declared in src/Browser/Avalonia.Browser/webapp/package.json but never imported anywhere in that package or its workspace members — dead weight and attack surface. Verify against build tooling before removing.

What to do

  • Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.
R9 · Circular Imports8.2 / 10Strong✓ 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.

  • src/Browser/Avalonia.Browser/webapp/modules/avalonia.ts → src/Browser/Avalonia.Browser/webapp/modules/avalonia/input.ts → src/Browser/Avalonia.Browser/webapp/modules/storage/storageItem.ts → src/Browser/Avalonia.Browser/webapp/modules/avalonia.ts — avalonia.ts

What to do

  • Break each cycle by extracting the shared piece into a module both sides can import.
S1 · Cryptographic Hygiene8.0 / 10Strong✓ Tool-verified

Other · Security — Cryptographic hygiene (weak hash/cipher, password key-derivation). This codebase has no web surface, so transport/header/cookie/CSRF controls are N/A and only crypto is scored.

Method: Roslyn plus filesystem scan: HSTS/security headers, secure cookies, input validation, middleware order, weak crypto (MD5/SHA1/DES); HTTPS-metadata context-aware. Deterministic.

  • MD5/SHA1 is constructed here, and both are collision-broken. If this digest protects anything — a signature, an integrity or tamper check, a credential, or any value an attacker can influence — that is a real weakness: use SHA-256+ for content integrity, or a KDF (PBKDF2/Argon2/BCrypt) for password storage. If it only derives a non-security identifier (a cache key, a file or mutex name), collision resistance carries no security consequence here; make that intent explicit instead — a non-cryptographic hash such as `System.IO.Hashing.XxHash64`/`Crc32` says it in code — since the algorithm alone cannot distinguish the two uses. — SimpleWebSocketHttpServer.cs:163

What to do

  • Review each MD5/SHA1 use by what it protects: replace it with SHA-256+ (or a KDF for passwords) where the digest is security-relevant, and switch it to a non-cryptographic hash (`System.IO.Hashing.XxHash64`/`Crc32`) where it only derives an identifier such as a cache key or a mutex name.
X1 · Async correctness5.0 / 10Adequate✓ Tool-verified

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

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

  • 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. (×13) — AsyncToSyncDataTransferItem.cs:20, MediaContext.Compositor.cs:108, ServerCompositionDrawingSurface.cs:39, …
  • `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. (×12) — ColorSlider.cs:91, ColorSpectrum.cs:1049, Expander.cs:221, …

What to do

  • Sync-over-async (deadlock risk)
X2 · Cancellation propagation4.5 / 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.

  • Only 24/318 async methods accept a CancellationToken, so in-flight work can't be stopped early when the caller gives up — whatever ends it in your host (shutdown signal, timeout, abandoned request, user cancel). Thread a token through the call chain and honour it at each await and loop; where a method genuinely cannot be interrupted, omitting it is a deliberate choice — judge against your hosting model.
  • No CancellationToken parameter — the body observes an ambient token instead (a field or a context object), so the work does stop on cancellation, but a caller cannot cancel this call independently of the owner that created that token. (×5) — ApiDiffHelper.cs:278, ApiDiffHelper.cs:412, ApiDiffHelper.cs:433, …
  • No CancellationToken parameter — this work can't be stopped early once started. (×20) — ApiDiffHelper.cs:398, AsyncDataTransferExtensions.cs:98, AsyncDataTransferItemExtensions.cs:38, …

What to do

  • Thread a CancellationToken through async methods so work stops promptly on cancellation.
X3 · Exception handling6.0 / 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. (×20) — BuildTasksPatcher.cs:52, BuildTasksPatcher.cs:142, Helpers.cs:18, …
  • An empty catch block silently discards the error — failures vanish with no log and no rethrow. On a teardown path letting it propagate is not an option (throwing out of `Dispose()` masks the failure already in flight and abandons the rest of the cleanup), so make the swallow deliberate instead: narrow the catch to the exception this release can actually raise, and record it through whatever this codebase already uses to report problems — or, if it truly cannot matter, say why in a comment on the catch. (×5) — CompositionOpenGlSwapchain.cs:86, CompositionOpenGlSwapchain.cs:139, TcpTransportBase.cs:35, …

What to do

  • Swallowed exception (empty catch)
X5 · Nullable reference types7.0 / 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.

  • 54/77 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.9 `!` suppressions per 1k syntax nodes — 1187 suppression(s) across the 1302021 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.

What to do

  • Enable <Nullable>enable</Nullable> across all projects and resolve warnings rather than suppressing with `!`.

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 Health60%AdequateAcceptable, with room to improve.
Architecture84%StrongStrongest area.
Maturity73%StrongSolid.
Readiness56%Adequate — gated by R4, R6Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security59%Adequate — gated by D29, D36, C1Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Performance73%StrongSolid.
Not included — 44 check(s) not relevant to this codebase

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

  • AC1 Text alternatives — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AC2 Forms & labels — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AC3 Page structure — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AC4 Keyboard semantics — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AC5 ARIA correctness — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AC6 Visual & motion safety — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AC7 A11y enforcement — No user-facing web UI (the repo is a library/CLI/worker/headless service) — accessibility is not applicable.
  • AX1 Captive dependencies — no DI registrations detected
  • AX2 Stateful singletons — no singleton implementations detected
  • AX4 Dependency direction — not applicable to a vertical-slice architecture (the inward-dependency rule is for layered/clean styles)
  • AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
  • AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • 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.
  • D19 Documentation Quality — LLM evaluation failed
  • D23 Boundary Type-Coupling — Bounded contexts not declared
  • D25 ADR Conformance — no ADRs to check
  • D30 Dependency Vulnerabilities — 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 for NuGet CVEs — excluded rather than scored; re-run on an SDK that can restore this solution
  • D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Terraform, Kubernetes/Helm, CloudFormation); nothing to scan.
  • D32 Data Compliance (PII/GDPR) — No PII/GDPR-handling patterns detected (p/gdpr ruleset) — no data-compliance surface to assess.
  • D38 OSV Dependency Vulnerabilities — Scanner failed to run — not a clean result
  • D39 IL Efficiency — The target did not build, so no IL was available to measure.
  • D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
  • D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
  • D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
  • D7 Architectural Integrity — no checkable ADRs and no dependency cycles — architectural integrity not assessed
  • D8 Code Coverage — Coverage not measured — test suite did not build
  • DM1 Domain Modelling — applicable but not scored (2 of 3 signals for this style — below the bar we score at): 45 value object(s); a Domain/Aggregates/ValueObjects layer
  • ED1 Event-Driven — not scored — this repository shows none of the 3 signals this check looks for
  • ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
  • ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this check looks for
  • P12 CI test-gate honesty — 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.
  • P2 Observability — This repo is a library, not a deployed service — it has no process to operate, so production observability (structured logging, tracing/metrics, health checks) is N/A. A library may log via an injected ILogger, but the absence of operational telemetry is not a defect here. If it grows a host (web API, worker), the dimension reactivates.
  • P4 Deployment & Rollback — not evidenced — no deploy/rollback/approval signal in the repo; absence of evidence is not evidence of a manual release
  • P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
  • P7 Outbound HTTP resilience — not applicable — this isn't a service/API/worker
  • P8 Schema migrations — no EF Core usage detected
  • P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (Cobertura — `dotnet test --collect:"XPlat Code Coverage"` with a `coverlet.collector` PackageReference) into the repo working tree before the scan — a CI step is the usual place, since the artefact is commonly gitignored, or wire coverage collection into CI, to enable this cross-layer check
  • R11 Import Boundaries — No recognizable feature-sliced/layered src layout — boundary rules not applicable.
  • R5 Dependency Freshness — uses a bun lockfile — dependency freshness not measured here; JS/npm CVEs are scored in D33 (JS/npm Dependency Vulnerabilities)
  • SC1 Supply-chain hygiene — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X4 Structured logging — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X6 Hand-rolled structured-format parsing — Reported, not scored — this card publishes what it found rather than grading it. Its content is the findings and the key metric above.
  • X7 Silent fallback defaults — Reported, not scored — this card publishes what it found rather than grading it. Its content is the findings and the key metric above.

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.

Issue — 79 finding(s)
D17 · Explicit Debt · EmptyCatchBlock · ×30
  • EmptyCatchBlock nukebuild/BuildTasksPatcher.cs:52 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or — where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure — write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row.
  • EmptyCatchBlock nukebuild/BuildTasksPatcher.cs:142 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or — where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure — write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row.
  • EmptyCatchBlock nukebuild/Helpers.cs:18 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or — where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure — write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row.
  • EmptyCatchBlock nukebuild/Shims.cs:63 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or — where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure — write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row.
  • EmptyCatchBlock samples/GpuInterop/D3DDemo/D3D11Swapchain.cs:115 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or — where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure — write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row.
  • EmptyCatchBlock src/Avalonia.Base/Data/Core/ExpressionNodes/LogicalNotNode.cs:61 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or — where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure — write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row.
  • EmptyCatchBlock src/Avalonia.Base/Data/Core/Plugins/AvaloniaPropertyAccessorPlugin.cs:127 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or — where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure — write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row.
  • EmptyCatchBlock src/Avalonia.Base/Data/Core/Plugins/InpcPropertyAccessorPlugin.cs:183 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or — where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure — write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row.
  • EmptyCatchBlock src/Avalonia.Base/Data/Core/Plugins/MethodAccessorPlugin.cs:60 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or — where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure — write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row.
  • EmptyCatchBlock src/Avalonia.Base/Data/Core/Plugins/ReflectionMethodAccessorPlugin.cs:135 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or — where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure — write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row.
  • EmptyCatchBlock src/Avalonia.Base/Platform/StandardAssetLoader.cs:265 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or — where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure — write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row.
  • EmptyCatchBlock src/Avalonia.Base/Rendering/Composition/Server/ServerCompositor.cs:160 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or — where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure — write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row.
  • EmptyCatchBlock src/Avalonia.Controls.ColorPicker/ColorPreviewer/ColorPreviewer.cs:122 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or — where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure — write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row.
  • EmptyCatchBlock src/Avalonia.DesignerSupport/Remote/PreviewerWindowingPlatform.cs:35 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or — where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure — write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row.
  • EmptyCatchBlock src/Avalonia.DesignerSupport/Remote/RemoteDesignerEntryPoint.cs:231 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or — where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure — write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row.
  • EmptyCatchBlock src/Avalonia.Native/AvaloniaNativePlatform.cs:158 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or — where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure — write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row.
  • EmptyCatchBlock src/Avalonia.Native/AvaloniaNativePlatform.cs:172 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or — where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure — write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row.
  • EmptyCatchBlock src/Avalonia.OpenGL/Controls/CompositionOpenGlSwapchain.cs:86 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or — where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure — write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row.
  • EmptyCatchBlock src/Avalonia.OpenGL/Controls/CompositionOpenGlSwapchain.cs:139 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or — where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure — write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row.
  • EmptyCatchBlock src/Avalonia.Remote.Protocol/TcpTransportBase.cs:35 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or — where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure — write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row.
  • EmptyCatchBlock src/Avalonia.Wayland/Server/Transient/WaylandTextInputV3.cs:43 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or — where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure — write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row.
  • EmptyCatchBlock src/Avalonia.Wayland/Server/Transient/WaylandTextInputV3.cs:51 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or — where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure — write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row.
  • EmptyCatchBlock src/Avalonia.Wayland/Server/Transient/WaylandTextInputV3.cs:56 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or — where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure — write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row.
  • EmptyCatchBlock src/Avalonia.Wayland/Server/Transient/WaylandTextInputV3.cs:219 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or — where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure — write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row.
  • EmptyCatchBlock src/Avalonia.Wayland/WindowImpl.TextInput.cs:71 — empty catch block — the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or — where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure — write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow ("ignored", "do nothing") is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row.
  • + 5 more in this group — see findings.md.
D17 · Explicit Debt · NoWarnInCsproj · ×18
  • NoWarnInCsproj nukebuild/_build.csproj:7 — CS0649 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
  • NoWarnInCsproj nukebuild/_build.csproj:7 — CA1847 — 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/Avalonia.IntegrationTests.Appium/Avalonia.IntegrationTests.Appium.csproj:16 — NU1510 — 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 samples/GpuInterop/GpuInterop.csproj:14 — NU1510 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
  • NoWarnInCsproj src/Avalonia.DesignerSupport/Avalonia.DesignerSupport.csproj:10 — CS1591 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
  • NoWarnInCsproj src/Markup/Avalonia.Markup.Xaml/Avalonia.Markup.Xaml.csproj:9 — CS1591 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
  • NoWarnInCsproj src/Avalonia.Build.Tasks/Avalonia.Build.Tasks.csproj:10 — NU1605 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
  • NoWarnInCsproj src/Avalonia.Build.Tasks/Avalonia.Build.Tasks.csproj:10 — CS8632 — 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 samples/IntegrationTestApp/IntegrationTestApp.csproj:5 — AVP1012 — 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 samples/IntegrationTestApp/IntegrationTestApp.csproj:5 — AVLN3001 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
  • NoWarnInCsproj src/tools/Avalonia.UnicodeTrieGenerator/Avalonia.UnicodeTrieGenerator.csproj:7 — CA1304 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
  • NoWarnInCsproj src/tools/Avalonia.UnicodeTrieGenerator/Avalonia.UnicodeTrieGenerator.csproj:7 — CA1815 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
  • NoWarnInCsproj src/tools/Avalonia.UnicodeTrieGenerator/Avalonia.UnicodeTrieGenerator.csproj:7 — CA1854 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
  • NoWarnInCsproj src/iOS/Avalonia.iOS/Avalonia.iOS.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 src/Windows/Avalonia.WinUI/Avalonia.WinUI.csproj:24 — 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 src/Windows/Avalonia.Win32/Avalonia.Win32.csproj:33 — 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 src/Android/Avalonia.Android/Avalonia.Android.csproj:9 — CS8002 — 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 samples/Directory.Build.props:10 — CS8002 — this warning is switched off for the WHOLE project, in every file it builds, including code written years from now: nothing at the call site records that the rule was ever silenced, so the next reader has no reason to look here. Fix what the rule is reporting and drop the code from the list, or — if some occurrences really are legitimate — narrow the suppression to those sites and give each one its reason, so the rule keeps protecting the rest of the project.
D29 · Static Analysis (SAST) · High · ×16
  • High: dependabot-missing-cooldown .github/dependabot.yml:3 — This Dependabot configuration does not set a cooldown period. Newly published packages can be malicious or unstable. Add a `cooldown` block with `default-days: 7` to each `package-ecosystem` entry under `updates` to wait 7 days before proposing updates to newly published package versions. Reference: https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#cooldown. This is a semgrep security-AUDIT rule reporting a POLICY that is absent or weaker than its recommendation, not an exploitable defect. Confirm whether the current setting is a deliberate decision for this repository — and apply the change where it is not; where it is (a policy your release process already enforces elsewhere, or one this repository has consciously opted out of), record the decision and leave the configuration as it is.
  • High: github-actions-mutable-action-tag .github/workflows/api-diff.yml:28 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/github-script@<40-character SHA>`. This step references `actions/github-script@v7`; resolve the SHA it points at today with `gh api repos/actions/github-script/commits/v7 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/api-diff.yml:42 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/github-script@<40-character SHA>`. This step references `actions/github-script@v7`; resolve the SHA it points at today with `gh api repos/actions/github-script/commits/v7 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/api-diff.yml:54 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/github-script@<40-character SHA>`. This step references `actions/github-script@v7`; resolve the SHA it points at today with `gh api repos/actions/github-script/commits/v7 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/api-diff.yml:70 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@<40-character SHA>`. This step references `actions/checkout@v4`; resolve the SHA it points at today with `gh api repos/actions/checkout/commits/v4 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/api-diff.yml:76 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/setup-dotnet@<40-character SHA>`. This step references `actions/setup-dotnet@v4`; resolve the SHA it points at today with `gh api repos/actions/setup-dotnet/commits/v4 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/api-diff.yml:85 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/github-script@<40-character SHA>`. This step references `actions/github-script@v7`; resolve the SHA it points at today with `gh api repos/actions/github-script/commits/v7 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/api-diff.yml:155 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/github-script@<40-character SHA>`. This step references `actions/github-script@v7`; resolve the SHA it points at today with `gh api repos/actions/github-script/commits/v7 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/api-diff.yml:167 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/github-script@<40-character SHA>`. This step references `actions/github-script@v7`; resolve the SHA it points at today with `gh api repos/actions/github-script/commits/v7 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/update-api.yml:28 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/github-script@<40-character SHA>`. This step references `actions/github-script@v7`; resolve the SHA it points at today with `gh api repos/actions/github-script/commits/v7 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/update-api.yml:42 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/github-script@<40-character SHA>`. This step references `actions/github-script@v7`; resolve the SHA it points at today with `gh api repos/actions/github-script/commits/v7 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/update-api.yml:54 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/github-script@<40-character SHA>`. This step references `actions/github-script@v7`; resolve the SHA it points at today with `gh api repos/actions/github-script/commits/v7 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/update-api.yml:72 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@<40-character SHA>`. This step references `actions/checkout@v4`; resolve the SHA it points at today with `gh api repos/actions/checkout/commits/v4 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/update-api.yml:79 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/setup-dotnet@<40-character SHA>`. This step references `actions/setup-dotnet@v4`; resolve the SHA it points at today with `gh api repos/actions/setup-dotnet/commits/v4 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/update-api.yml:100 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/github-script@<40-character SHA>`. This step references `actions/github-script@v7`; resolve the SHA it points at today with `gh api repos/actions/github-script/commits/v7 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/update-api.yml:112 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/github-script@<40-character SHA>`. This step references `actions/github-script@v7`; resolve the SHA it points at today with `gh api repos/actions/github-script/commits/v7 --jq .sha`.
D34 · Knowledge Freshness · Orphaned knowledge · ×15
  • Orphaned knowledge src/Avalonia.Base/Collections/Pooled/PooledList.cs — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge src/Avalonia.Base/Media/PreciseEllipticArcHelper.cs — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge src/Avalonia.Base/Collections/Pooled/ThrowHelper.cs — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge src/Avalonia.Base/Media/Color.cs — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge src/Avalonia.Controls.ColorPicker/Helpers/ColorPickerHelpers.cs — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge src/Avalonia.Controls.ColorPicker/ColorPalettes/MaterialColorPalette.cs — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge src/Avalonia.Controls.ColorPicker/ColorPalettes/FlatColorPalette.cs — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge src/Avalonia.Controls/RelativePanel.AttachedProperties.cs — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge src/Avalonia.Base/Media/HsvColor.cs — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge src/Avalonia.Base/Media/GeometryBuilder.cs — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge src/Avalonia.Base/Collections/Pooled/PooledStack.cs — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge src/Avalonia.Controls/RelativePanel.cs — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge src/Avalonia.Base/Media/HslColor.cs — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge src/Avalonia.Controls.ColorPicker/ColorView/ColorView.Properties.cs — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge src/Avalonia.Base/Utilities/Span.cs — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Warning — 1254 finding(s)
D17 · Explicit Debt · TodoComment · ×144
  • TodoComment samples/RenderDemo/App.xaml.cs:21 — // TODO: Make this work with GTK/Skia/Cairo depending on command-line args — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Android/Avalonia.Android/Platform/AndroidPlatformSettings.cs:12 — // TODO: ideally should be created per view/activity. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/iOS/Avalonia.iOS/PlatformSettings.cs:8 — // TODO: ideally should be created per view/activity. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Avalonia.Base/Collections/AvaloniaListConverter.cs:27 — // TODO: Use StringTokenizer 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 src/Avalonia.Base/Data/Core/TargetTypeConverter.cs:74 — // TODO: TypeConverters are not trimming friendly in some edge cases, we probably need — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Avalonia.Base/Data/Core/TargetTypeConverter.cs:109 — // TODO: This requires reflection: we probably need to make compiled bindings emit — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Avalonia.Base/Input/AccessKeyHandler.cs:193 — // TODO: Use FocusScopes to store the current element and restore it when context menu is closed. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Avalonia.Base/Input/FocusHelpers.cs:14 — // TODO: add control overrides to return custom focus list from control — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Avalonia.Base/Input/FocusManager.cs:154 — // TODO: Make this do something useful, i.e. select the first focusable — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Avalonia.Base/Input/FocusManager.cs:1131 — //TODO Popup api — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Avalonia.Base/Input/KeyGesture.cs:163 — // TODO: Move that to external key parser — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Avalonia.Base/Input/Navigation/XYFocus.FindElements.cs:108 — // TODO: The check for bounds is no longer correct — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Avalonia.Base/Input/Navigation/XYFocus.Impl.cs:81 — // TODO: handle non-Visual IInputElement implementations, like TextElement, when we support that. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Avalonia.Base/Input/Navigation/XYFocus.Impl.cs:308 — // TODO: Avalonia, missing Popup API — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Avalonia.Base/Media/BitmapCache.cs:102 — // TODO: Make it to be a multi-compositor resource once we support visuals being attached to multiple — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Avalonia.Base/Media/GradientBrush.cs:101 — // TODO: Technically it allocates, so it would be better to sync stops individually — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Avalonia.Base/Media/ImmediateDrawingContext.cs:290 — //TODO: Eliminate platform-specific push opacity call — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Avalonia.Base/Media/MediaContext.Compositor.cs:119 — // TODO: do we need to execute a render pass here too? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Avalonia.Base/Media/MediaContext.Compositor.cs:135 — // TODO: We are sending a dispose command outside of the normal commit cycle and we might — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Avalonia.Base/Media/MediaContext.Compositor.cs:153 — // TODO: maybe skip the full render 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 src/Avalonia.Base/Media/MediaContext.cs:214 — // TODO: port the rest of the Loaded logic 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 src/Avalonia.Base/Platform/Storage/FileIO/BclStorageProvider.cs:118 — // TODO, replace with https://github.com/dotnet/runtime/issues/70484 when implemented.
  • TodoComment src/Avalonia.Base/Rendering/Composition/Animations/KeyFrameAnimationInstance.cs:168 — // TODO: Update subscriptions based on the current keyframe rather than keeping subscriptions to all of them — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Avalonia.Base/Rendering/Composition/Enums.cs:118 — //TODO: Uniform, UniformToFill — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Avalonia.Base/Rendering/Composition/Expressions/BuiltInExpressionFfi.cs:116 — /* TODO: ColorHsl(Float h, Float s, Float l) ColorLerpHSL(Color colorTo, CompositionColorcolorFrom, Float progress) */ — 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.
  • + 119 more in this group — see findings.md.
D3 · God Classes · TooManyMethods · ×80
  • TooManyMethods: WindowImpl src/Windows/Avalonia.Win32/WindowImpl.cs:0 — TooManyMethods — 1803 significant lines (blank, comment-only and punctuation-only lines excluded), 97 methods, declared across 4 files: Avalonia.Win32/WindowImpl.cs (66), Avalonia.Win32/WindowImpl.AppWndProc.cs (26), Avalonia.Win32/WindowImpl.CustomCaptionProc.cs (4), Avalonia.Win32/WindowImpl.WndProc.cs (1). 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: PooledList src/Avalonia.Base/Collections/Pooled/PooledList.cs:0 — TooManyMethods — 525 significant lines (blank, comment-only and punctuation-only lines excluded), 92 methods. 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: GlInterface src/Avalonia.OpenGL/GlInterface.cs:0 — TooManyMethods — 248 significant lines (blank, comment-only and punctuation-only lines excluded), 86 methods. 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: X11Window src/Avalonia.X11/X11Window.cs:0 — TooManyMethods — 1204 significant lines (blank, comment-only and punctuation-only lines excluded), 80 methods, declared across 2 files: Avalonia.X11/X11Window.cs (66), Avalonia.X11/X11Window.Ime.cs (14). 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: NavigationPage src/Avalonia.Controls/Page/NavigationPage.cs:0 — TooManyMethods — 1127 significant lines (blank, comment-only and punctuation-only lines excluded), 79 methods. 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: Dispatcher src/Avalonia.Base/Threading/Dispatcher.Invoke.cs:0 — TooManyMethods — 658 significant lines (blank, comment-only and punctuation-only lines excluded), 75 methods, declared across 7 files: Threading/Dispatcher.Invoke.cs (29), Threading/Dispatcher.Queue.cs (16), Threading/Dispatcher.MainLoop.cs (8), Threading/Dispatcher.Timers.cs (7), +3 more file(s). 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: AutomationPeer src/Avalonia.Controls/Automation/Peers/AutomationPeer.cs:0 — TooManyMethods — 117 significant lines (blank, comment-only and punctuation-only lines excluded), 70 methods. 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: VirtualizingCarouselPanel src/Avalonia.Controls/VirtualizingCarouselPanel.cs:0 — TooManyMethods — 975 significant lines (blank, comment-only and punctuation-only lines excluded), 69 methods. 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: AutomationNode src/Windows/Avalonia.Win32.Automation/AutomationNode.cs:0 — TooManyMethods — 319 significant lines (blank, comment-only and punctuation-only lines excluded), 66 methods, declared across 7 files: Avalonia.Win32.Automation/AutomationNode.cs (33), Avalonia.Win32.Automation/AutomationNode.Scroll.cs (9), Avalonia.Win32.Automation/AutomationNode.Selection.cs (8), Avalonia.Win32.Automation/AutomationNode.RangeValue.cs (7), +3 more file(s). 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: Calendar src/Avalonia.Controls/Calendar/Calendar.cs:0 — TooManyMethods — 882 significant lines (blank, comment-only and punctuation-only lines excluded), 61 methods. 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: TextBox src/Avalonia.Controls/TextBox.cs:0 — TooManyMethods — 1197 significant lines (blank, comment-only and punctuation-only lines excluded), 60 methods. 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: ThrowHelper src/Avalonia.Base/Collections/Pooled/ThrowHelper.cs:0 — TooManyMethods — 368 significant lines (blank, comment-only and punctuation-only lines excluded), 60 methods. 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: AutoCompleteBox src/Avalonia.Controls/AutoCompleteBox/AutoCompleteBox.cs:0 — TooManyMethods — 572 significant lines (blank, comment-only and punctuation-only lines excluded), 59 methods. 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: ValueStore src/Avalonia.Base/PropertyStore/ValueStore.cs:0 — TooManyMethods — 637 significant lines (blank, comment-only and punctuation-only lines excluded), 58 methods. 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: SelectingItemsControl src/Avalonia.Controls/Primitives/SelectingItemsControl.cs:0 — TooManyMethods — 626 significant lines (blank, comment-only and punctuation-only lines excluded), 55 methods. 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: NumericUpDown src/Avalonia.Controls/NumericUpDown/NumericUpDown.cs:0 — TooManyMethods — 456 significant lines (blank, comment-only and punctuation-only lines excluded), 53 methods. 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: AvaloniaObject src/Avalonia.Base/AvaloniaObject.cs:0 — TooManyMethods — 303 significant lines (blank, comment-only and punctuation-only lines excluded), 53 methods. 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: AvnAutomationPeer src/Avalonia.Native/AvnAutomationPeer.cs:0 — TooManyMethods — 143 significant lines (blank, comment-only and punctuation-only lines excluded), 53 methods. 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: InputElement src/Avalonia.Base/Input/InputElement.cs:0 — TooManyMethods — 520 significant lines (blank, comment-only and punctuation-only lines excluded), 52 methods, declared across 2 files: Input/InputElement.cs (47), Input/InputElement.Gestures.cs (5). 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 src/Avalonia.Controls/ScrollViewer.cs:0 — TooManyMethods — 304 significant lines (blank, comment-only and punctuation-only lines excluded), 52 methods. 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: Window src/Avalonia.Controls/Window.cs:0 — TooManyMethods — 652 significant lines (blank, comment-only and punctuation-only lines excluded), 50 methods. 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: LineBreakEnumerator src/Avalonia.Base/Media/TextFormatting/Unicode/LineBreakEnumerator.cs:0 — TooManyMethods — 596 significant lines (blank, comment-only and punctuation-only lines excluded), 50 methods. 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: StyledElement src/Avalonia.Base/StyledElement.cs:0 — TooManyMethods — 419 significant lines (blank, comment-only and punctuation-only lines excluded), 50 methods. 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: DrawingContext src/Avalonia.Base/Media/DrawingContext.cs:0 — TooManyMethods — 133 significant lines (blank, comment-only and punctuation-only lines excluded), 50 methods. 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: DrawingContextImpl src/Skia/Avalonia.Skia/DrawingContextImpl.cs:0 — TooManyMethods — 701 significant lines (blank, comment-only and punctuation-only lines excluded), 49 methods, declared across 2 files: Avalonia.Skia/DrawingContextImpl.cs (46), Avalonia.Skia/DrawingContextImpl.Effects.cs (3). 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.
  • + 55 more in this group — see findings.md.
D17 · Explicit Debt · CommentedOutCode · ×66
  • CommentedOutCode src/Avalonia.Base/Input/Navigation/XYFocus.Impl.cs:309 — 7 consecutive commented-code lines
  • CommentedOutCode src/Avalonia.OpenGL/GlConsts.cs:1104 — 7 consecutive commented-code lines
  • CommentedOutCode src/Avalonia.Base/Input/Navigation/XYFocus.Impl.cs:407 — 5 consecutive commented-code lines
  • CommentedOutCode src/Avalonia.OpenGL/Egl/EglConsts.cs:56 — 5 consecutive commented-code lines
  • CommentedOutCode src/Avalonia.OpenGL/Egl/EglConsts.cs:71 — 5 consecutive commented-code lines
  • CommentedOutCode src/Avalonia.OpenGL/GlConsts.cs:115 — 5 consecutive commented-code lines
  • CommentedOutCode src/Avalonia.OpenGL/GlConsts.cs:788 — 5 consecutive commented-code lines
  • CommentedOutCode src/Avalonia.Base/Utilities/FrugalList.cs:1991 — 3 consecutive commented-code lines
  • CommentedOutCode src/Avalonia.OpenGL/Egl/EglConsts.cs:21 — 3 consecutive commented-code lines
  • CommentedOutCode src/Avalonia.OpenGL/Egl/EglConsts.cs:101 — 3 consecutive commented-code lines
  • CommentedOutCode src/Avalonia.OpenGL/Egl/EglConsts.cs:134 — 3 consecutive commented-code lines
  • CommentedOutCode src/Avalonia.OpenGL/Egl/EglConsts.cs:139 — 3 consecutive commented-code lines
  • CommentedOutCode src/Avalonia.OpenGL/GlConsts.cs:111 — 3 consecutive commented-code lines
  • CommentedOutCode src/Avalonia.OpenGL/GlConsts.cs:478 — 3 consecutive commented-code lines
  • CommentedOutCode src/Avalonia.OpenGL/GlConsts.cs:534 — 3 consecutive commented-code lines
  • CommentedOutCode src/Avalonia.OpenGL/GlConsts.cs:1168 — 3 consecutive commented-code lines
  • CommentedOutCode src/Avalonia.OpenGL/GlConsts.cs:3377 — 3 consecutive commented-code lines
  • CommentedOutCode src/Avalonia.OpenGL/GlConsts.cs:3381 — 3 consecutive commented-code lines
  • CommentedOutCode src/Avalonia.OpenGL/GlConsts.cs:3487 — 3 consecutive commented-code lines
  • CommentedOutCode tests/Avalonia.Controls.UnitTests/GridTests.cs:1304 — 3 consecutive commented-code lines
  • CommentedOutCode tests/Avalonia.Controls.UnitTests/GridTests.cs:1316 — 3 consecutive commented-code lines
  • CommentedOutCode src/Avalonia.OpenGL/Egl/EglConsts.cs:32 — 6 consecutive commented-code lines
  • CommentedOutCode src/Avalonia.OpenGL/Egl/EglConsts.cs:214 — 6 consecutive commented-code lines
  • CommentedOutCode src/Avalonia.OpenGL/GlConsts.cs:448 — 6 consecutive commented-code lines
  • CommentedOutCode src/Avalonia.OpenGL/GlConsts.cs:1117 — 6 consecutive commented-code lines
  • + 41 more in this group — see findings.md.
D17 · Explicit Debt · BarePragmaDisable · ×41
  • BarePragmaDisable src/Android/Avalonia.Android/AndroidDispatcherImpl.cs:159 — #pragma warning disable CA1416 — the disable has no matching restore, 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. Close it with the matching restore directive immediately after the construct it covers, or fix the cause and drop the directive entirely.
  • BarePragmaDisable src/Browser/Avalonia.Browser/BrowserAppBuilder.cs:109 — #pragma warning disable CA1416 — the disable has no matching restore, 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. Close it with the matching restore directive immediately after the construct it covers, or fix the cause and drop the directive entirely.
  • BarePragmaDisable src/Browser/Avalonia.Browser/WindowingPlatform.cs:45 — #pragma warning disable CA1416 — the disable has no matching restore, 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. Close it with the matching restore directive immediately after the construct it covers, or fix the cause and drop the directive entirely.
  • BarePragmaDisable src/iOS/Avalonia.iOS/InputHandler.cs:61 — #pragma warning disable CA1416 — the disable has no matching restore, 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. Close it with the matching restore directive immediately after the construct it covers, or fix the cause and drop the directive entirely.
  • BarePragmaDisable src/iOS/Avalonia.iOS/InputHandler.cs:163 — #pragma warning disable CA1416 — the disable has no matching restore, 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. Close it with the matching restore directive immediately after the construct it covers, or fix the cause and drop the directive entirely.
  • BarePragmaDisable src/iOS/Avalonia.iOS/InputHandler.cs:384 — #pragma warning disable CA1416 — the disable has no matching restore, 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. Close it with the matching restore directive immediately after the construct it covers, or fix the cause and drop the directive entirely.
  • BarePragmaDisable src/Avalonia.Base/Collections/Pooled/IReadOnlyPooledList.cs:16 — #pragma warning disable CS0419 — the disable has no matching restore, 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. Close it with the matching restore directive immediately after the construct it covers, or fix the cause and drop the directive entirely.
  • BarePragmaDisable src/Avalonia.Base/Collections/Pooled/PooledList.cs:502 — #pragma warning disable CS0419 — the disable has no matching restore, 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. Close it with the matching restore directive immediately after the construct it covers, or fix the cause and drop the directive entirely.
  • BarePragmaDisable src/Avalonia.Base/Data/Converters/MethodToCommandConverter.cs:78 — #pragma warning disable 0067 — the disable has no matching restore, 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. Close it with the matching restore directive immediately after the construct it covers, or fix the cause and drop the directive entirely.
  • BarePragmaDisable src/Avalonia.Base/Media/FontWeight.cs:1 — #pragma warning disable CA1069 — the disable has no matching restore, 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. Close it with the matching restore directive immediately after the construct it covers, or fix the cause and drop the directive entirely.
  • BarePragmaDisable src/Avalonia.Base/Platform/Storage/FallbackStorageProvider.cs:7 — #pragma warning disable CA1823 — the disable has no matching restore, 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. Close it with the matching restore directive immediately after the construct it covers, or fix the cause and drop the directive entirely.
  • BarePragmaDisable src/Avalonia.Vulkan/UnmanagedInterop/VulkanStructs.cs:7 — #pragma warning disable CA1823 — the disable has no matching restore, 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. Close it with the matching restore directive immediately after the construct it covers, or fix the cause and drop the directive entirely.
  • BarePragmaDisable src/Browser/Avalonia.Browser/Rendering/BrowserSoftwareRenderTarget.cs:8 — #pragma warning disable CA1823 — the disable has no matching restore, 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. Close it with the matching restore directive immediately after the construct it covers, or fix the cause and drop the directive entirely.
  • BarePragmaDisable src/Avalonia.Base/Rendering/Composition/Expressions/ExpressionParser.cs:79 — #pragma warning disable CS8509 — the disable has no matching restore, 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. Close it with the matching restore directive immediately after the construct it covers, or fix the cause and drop the directive entirely.
  • BarePragmaDisable src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs:297 — #pragma warning disable CS8509 — the disable has no matching restore, 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. Close it with the matching restore directive immediately after the construct it covers, or fix the cause and drop the directive entirely.
  • BarePragmaDisable src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs:331 — #pragma warning disable CS8509 — the disable has no matching restore, 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. Close it with the matching restore directive immediately after the construct it covers, or fix the cause and drop the directive entirely.
  • BarePragmaDisable src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs:486 — #pragma warning disable CS8509 — the disable has no matching restore, 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. Close it with the matching restore directive immediately after the construct it covers, or fix the cause and drop the directive entirely.
  • BarePragmaDisable src/Avalonia.Controls/NumericUpDown/NumericUpDown.cs:116 — #pragma warning disable AVP1013 — the disable has no matching restore, 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. Close it with the matching restore directive immediately after the construct it covers, or fix the cause and drop the directive entirely.
  • BarePragmaDisable src/Avalonia.Controls/TextBlock.cs:962 — #pragma warning disable CA1815 — the disable has no matching restore, 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. Close it with the matching restore directive immediately after the construct it covers, or fix the cause and drop the directive entirely.
  • BarePragmaDisable src/Avalonia.Vulkan/UnmanagedInterop/VulkanStructs.cs:5 — #pragma warning disable CS0649 — the disable has no matching restore, 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. Close it with the matching restore directive immediately after the construct it covers, or fix the cause and drop the directive entirely.
  • BarePragmaDisable src/Windows/Avalonia.Win32/DirectX/DirectXStructs.cs:4 — #pragma warning disable CS0649 — the disable has no matching restore, 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. Close it with the matching restore directive immediately after the construct it covers, or fix the cause and drop the directive entirely.
  • BarePragmaDisable tests/Avalonia.RenderTests/Media/BitmapTests.cs:15 — #pragma warning disable CS0649 — the disable has no matching restore, 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. Close it with the matching restore directive immediately after the construct it covers, or fix the cause and drop the directive entirely.
  • BarePragmaDisable tests/Avalonia.RenderTests/Media/BoxShadowTests.cs:5 — #pragma warning disable CS0649 — the disable has no matching restore, 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. Close it with the matching restore directive immediately after the construct it covers, or fix the cause and drop the directive entirely.
  • BarePragmaDisable tests/Avalonia.RenderTests/Media/DrawingContextTests.cs:7 — #pragma warning disable CS0649 — the disable has no matching restore, 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. Close it with the matching restore directive immediately after the construct it covers, or fix the cause and drop the directive entirely.
  • BarePragmaDisable tests/Avalonia.RenderTests/Media/EffectTests.cs:6 — #pragma warning disable CS0649 — the disable has no matching restore, 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. Close it with the matching restore directive immediately after the construct it covers, or fix the cause and drop the directive entirely.
  • + 16 more in this group — see findings.md.
D3 · God Classes · FileTooLong · ×38
  • FileTooLong: Avalonia.X11/Keysyms.cs src/Avalonia.X11/Keysyms.cs:0 — FileTooLong — 2101 significant lines (blank, comment-only and punctuation-only lines excluded). 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: Interop/UnmanagedMethods.cs src/Windows/Avalonia.Win32/Interop/UnmanagedMethods.cs:0 — FileTooLong — 2036 significant lines (blank, comment-only and punctuation-only lines excluded). 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: Avalonia.X11/X11Structs.cs src/Avalonia.X11/X11Structs.cs:0 — FileTooLong — 1628 significant lines (blank, comment-only and punctuation-only lines excluded). 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: Avalonia.Controls/Grid.cs src/Avalonia.Controls/Grid.cs:0 — FileTooLong — 1318 significant lines (blank, comment-only and punctuation-only lines excluded). 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: Avalonia.Controls/TextBox.cs src/Avalonia.Controls/TextBox.cs:0 — FileTooLong — 1239 significant lines (blank, comment-only and punctuation-only lines excluded). 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: Page/NavigationPage.cs src/Avalonia.Controls/Page/NavigationPage.cs:0 — FileTooLong — 1146 significant lines (blank, comment-only and punctuation-only lines excluded). 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: Utilities/FrugalList.cs src/Avalonia.Base/Utilities/FrugalList.cs:0 — FileTooLong — 1091 significant lines (blank, comment-only and punctuation-only lines excluded). 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: Avalonia.X11/X11Window.cs src/Avalonia.X11/X11Window.cs:0 — FileTooLong — 1043 significant lines (blank, comment-only and punctuation-only lines excluded). 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: ColorSpectrum/ColorSpectrum.cs src/Avalonia.Controls.ColorPicker/ColorSpectrum/ColorSpectrum.cs:0 — FileTooLong — 1032 significant lines (blank, comment-only and punctuation-only lines excluded). 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: Avalonia.Controls/VirtualizingCarouselPanel.cs src/Avalonia.Controls/VirtualizingCarouselPanel.cs:0 — FileTooLong — 997 significant lines (blank, comment-only and punctuation-only lines excluded). 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: Calendar/Calendar.cs src/Avalonia.Controls/Calendar/Calendar.cs:0 — FileTooLong — 914 significant lines (blank, comment-only and punctuation-only lines excluded). 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: Avalonia.Win32/WindowImpl.cs src/Windows/Avalonia.Win32/WindowImpl.cs:0 — FileTooLong — 904 significant lines (blank, comment-only and punctuation-only lines excluded). 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: Avalonia.Remote.Protocol/MetsysBson.cs src/Avalonia.Remote.Protocol/MetsysBson.cs:0 — FileTooLong — 886 significant lines (blank, comment-only and punctuation-only lines excluded). 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: Avalonia.Win32/WindowImpl.AppWndProc.cs src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs:0 — FileTooLong — 822 significant lines (blank, comment-only and punctuation-only lines excluded). 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: Avalonia.Skia/DrawingContextImpl.cs src/Skia/Avalonia.Skia/DrawingContextImpl.cs:0 — FileTooLong — 800 significant lines (blank, comment-only and punctuation-only lines excluded). 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: Avalonia.Controls/VirtualizingStackPanel.cs src/Avalonia.Controls/VirtualizingStackPanel.cs:0 — FileTooLong — 768 significant lines (blank, comment-only and punctuation-only lines excluded). 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: Unicode/LineBreakEnumerator.cs src/Avalonia.Base/Media/TextFormatting/Unicode/LineBreakEnumerator.cs:0 — FileTooLong — 746 significant lines (blank, comment-only and punctuation-only lines excluded). 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: TextFormatting/TextLineImpl.cs src/Avalonia.Base/Media/TextFormatting/TextLineImpl.cs:0 — FileTooLong — 707 significant lines (blank, comment-only and punctuation-only lines excluded). 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: Unicode/BiDiAlgorithm.cs src/Avalonia.Base/Media/TextFormatting/Unicode/BiDiAlgorithm.cs:0 — FileTooLong — 684 significant lines (blank, comment-only and punctuation-only lines excluded). 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: Avalonia.Controls/Window.cs src/Avalonia.Controls/Window.cs:0 — FileTooLong — 684 significant lines (blank, comment-only and punctuation-only lines excluded). 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: Media/FormattedText.cs src/Avalonia.Base/Media/FormattedText.cs:0 — FileTooLong — 675 significant lines (blank, comment-only and punctuation-only lines excluded). 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: AutoCompleteBox/AutoCompleteBox.cs src/Avalonia.Controls/AutoCompleteBox/AutoCompleteBox.cs:0 — FileTooLong — 663 significant lines (blank, comment-only and punctuation-only lines excluded). 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: PropertyStore/ValueStore.cs src/Avalonia.Base/PropertyStore/ValueStore.cs:0 — FileTooLong — 661 significant lines (blank, comment-only and punctuation-only lines excluded). 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: Primitives/SelectingItemsControl.cs src/Avalonia.Controls/Primitives/SelectingItemsControl.cs:0 — FileTooLong — 649 significant lines (blank, comment-only and punctuation-only lines excluded). 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: CompilerExtensions/XamlIlBindingPathHelper.cs src/Markup/Avalonia.Markup.Xaml.Loader/CompilerExtensions/XamlIlBindingPathHelper.cs:0 — FileTooLong — 610 significant lines (blank, comment-only and punctuation-only lines excluded). 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.
  • + 13 more in this group — see findings.md.
D6 · Cohesion (LCOM4) · Low cohesion · ×37
  • Low cohesion: NavigationPageAppearancePage (LCOM4 10) samples/ControlCatalog/Pages/NavigationPage/NavigationPageAppearancePage.xaml.cs:9 — NavigationPageAppearancePage's methods form 10 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: TextInputResponder (LCOM4 10) src/iOS/Avalonia.iOS/TextInputResponder.cs:20 — TextInputResponder's methods form 10 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: EmbeddedView (LCOM4 9) samples/WinUIEmbedSample/EmbeddedView.axaml.cs:14 — EmbeddedView's methods form 9 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: Control (LCOM4 9) src/Avalonia.Controls/Control.cs:27 — Control's methods form 9 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: ClipboardPage (LCOM4 8) samples/ControlCatalog/Pages/ClipboardPage.xaml.cs:18 — ClipboardPage's methods form 8 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: ShowWindowTest (LCOM4 7) samples/IntegrationTestApp/ShowWindowTest.axaml.cs:30 — ShowWindowTest's methods form 7 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: PlatformRenderInterface (LCOM4 7) src/Skia/Avalonia.Skia/PlatformRenderInterface.cs:20 — PlatformRenderInterface's methods form 7 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: MainView (LCOM4 6) samples/ControlCatalog/MainView.xaml.cs:13 — MainView's methods form 6 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: GlyphTypeface (LCOM4 6) src/Avalonia.Base/Media/GlyphTypeface.cs:23 — GlyphTypeface's methods form 6 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: MenuItem (LCOM4 6) src/Avalonia.Controls/MenuItem.cs:24 — MenuItem's methods form 6 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: WindowBase (LCOM4 6) src/Avalonia.Controls/WindowBase.cs:18 — WindowBase's methods form 6 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: WindowBaseImpl (LCOM4 6) src/Avalonia.Wayland/WindowImplBase.cs:28 — WindowBaseImpl's methods form 6 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: AvaloniaView (LCOM4 6) src/iOS/Avalonia.iOS/AvaloniaView.cs:29 — AvaloniaView's methods form 6 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: App (LCOM4 5) samples/ControlCatalog/App.xaml.cs:15 — App's methods form 5 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: CarouselGalleryAppPage (LCOM4 5) samples/ControlCatalog/Pages/CarouselPage/CarouselGalleryAppPage.xaml.cs:9 — CarouselGalleryAppPage's methods form 5 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: NavigationPerformanceMonitorHelper (LCOM4 5) samples/ControlCatalog/Pages/NavigationPerformanceMonitorHelper.cs:16 — NavigationPerformanceMonitorHelper's methods form 5 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: AvaloniaActivity (LCOM4 5) src/Android/Avalonia.Android/AvaloniaActivity.cs:23 — AvaloniaActivity's methods form 5 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: InputElement (LCOM4 5) src/Avalonia.Base/Input/InputElement.cs:18 — InputElement's methods form 5 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: ServerCompositionVisual (LCOM4 5) src/Avalonia.Base/Rendering/Composition/Server/ServerCompositionVisual/ServerCompositionVisual.ComputedProperties.cs:7 — ServerCompositionVisual's methods form 5 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: ItemsControl (LCOM4 5) src/Avalonia.Controls/ItemsControl.cs:25 — ItemsControl's methods form 5 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: ScrollViewer (LCOM4 5) src/Avalonia.Controls/ScrollViewer.cs:15 — ScrollViewer's methods form 5 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: Win32Platform (LCOM4 5) src/Windows/Avalonia.Win32/Win32Platform.cs:39 — Win32Platform's methods form 5 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: GestureSwipePage (LCOM4 4) samples/ControlCatalog/Pages/Gestures/GestureSwipePage.xaml.cs:11 — GestureSwipePage's methods form 4 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: MainViewModel (LCOM4 4) samples/SafeAreaDemo/ViewModels/MainViewModel.cs:11 — MainViewModel's methods form 4 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: AvaloniaObject (LCOM4 4) src/Avalonia.Base/AvaloniaObject.cs:23 — AvaloniaObject's methods form 4 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • + 12 more in this group — see findings.md.
D3 · God Classes · ClassTooLong · ×16
  • ClassTooLong: UnmanagedMethods src/Windows/Avalonia.Win32/Interop/UnmanagedMethods.cs:0 — ClassTooLong — 1561 significant lines (blank, comment-only and punctuation-only lines excluded), 212 methods. Its members are declarations rather than behaviour over shared data — the type holds no instance state — so there is nothing to group them by and nothing to delegate. To reduce it, split it by area instead: move each cohesive group of declarations onto its own smaller type, so no one type has to be read whole to change one of them.
  • ClassTooLong: ColorSpectrum src/Avalonia.Controls.ColorPicker/ColorSpectrum/ColorSpectrum.cs:0 — ClassTooLong — 1096 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. 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: TextLineImpl src/Avalonia.Base/Media/TextFormatting/TextLineImpl.cs:0 — ClassTooLong — 701 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. 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: BidiAlgorithm src/Avalonia.Base/Media/TextFormatting/Unicode/BiDiAlgorithm.cs:0 — ClassTooLong — 651 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. 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: XLib src/Avalonia.X11/XLib.cs:0 — ClassTooLong — 563 significant lines (blank, comment-only and punctuation-only lines excluded), 198 methods, declared across 2 files: Avalonia.X11/XLib.cs (195), Avalonia.X11/XLib.Helpers.cs (3). Its members are declarations rather than behaviour over shared data — the type holds no instance state — so there is nothing to group them by and nothing to delegate. To reduce it, split it by area instead: move each cohesive group of declarations onto its own smaller type, so no one type has to be read whole to change one of them.
  • ClassTooLong: TextFormatterImpl src/Avalonia.Base/Media/TextFormatting/TextFormatterImpl.cs:0 — ClassTooLong — 538 significant lines (blank, comment-only and punctuation-only lines excluded), 17 methods. 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: ExpressionVariant src/Avalonia.Base/Rendering/Composition/Expressions/ExpressionVariant.cs:0 — ClassTooLong — 497 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. 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: XkbKeyTransform src/Avalonia.Wayland/XkbKeyTransform.cs:0 — ClassTooLong — 490 significant lines (blank, comment-only and punctuation-only lines excluded), 5 methods. 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: XamlCompilerTaskExecutor src/Avalonia.Build.Tasks/XamlCompilerTaskExecutor.cs:0 — ClassTooLong — 475 significant lines (blank, comment-only and punctuation-only lines excluded), 7 methods, declared across 2 files: Avalonia.Build.Tasks/XamlCompilerTaskExecutor.cs (5), Avalonia.Build.Tasks/XamlCompilerTaskExecutor.Helpers.cs (2). 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: EllipticalArc src/Avalonia.Base/Media/PreciseEllipticArcHelper.cs:0 — ClassTooLong — 470 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. 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: ConnectedAnimation src/Avalonia.Controls/Animation/ConnectedAnimation.cs:0 — ClassTooLong — 449 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. 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: Handler src/Avalonia.X11/Selections/DragDrop/X11DragSource.cs:0 — ClassTooLong — 427 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. 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: OleDataObjectHelper src/Windows/Avalonia.Win32/OleDataObjectHelper.cs:0 — ClassTooLong — 409 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. 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: CompileAnalyzer src/tools/Avalonia.Analyzers.CSharp/AvaloniaPropertyAnalyzer.CompileAnalyzer.cs:0 — ClassTooLong — 409 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. 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: SbomGenerator nukebuild/SbomGenerator.cs:0 — ClassTooLong — 405 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. 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: Build nukebuild/Build.cs:0 — ClassTooLong — 405 significant lines (blank, comment-only and punctuation-only lines excluded), 12 methods, declared across 2 files: nukebuild/Build.cs (10), nukebuild/Shims.cs (2). 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 (12 lines × 2) · ×11
  • Duplicated block (12 lines × 2) src/Avalonia.Base/Data/Core/Plugins/TaskStreamPlugin.cs:47 — src/Avalonia.Base/Data/Core/Plugins/TaskStreamPlugin.cs:47-58 | src/Avalonia.Base/Data/Core/Plugins/TaskStreamPlugin`1.cs:23-34 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/Avalonia.Base/Data/Core/Plugins/TaskStreamPlugin.cs:47` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) src/Avalonia.Base/Styling/AndQuery.cs:58 — src/Avalonia.Base/Styling/AndQuery.cs:58-69 | src/Avalonia.Base/Styling/OrQuery.cs:58-69 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/Avalonia.Base/Styling/AndQuery.cs:58` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) src/Avalonia.Base/Styling/ScreenQueries.cs:23 — src/Avalonia.Base/Styling/ScreenQueries.cs:23-34 | src/Avalonia.Base/Styling/ScreenQueries.cs:104-115 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/Avalonia.Base/Styling/ScreenQueries.cs:23` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (12 lines × 2) src/Avalonia.Controls/Automation/Peers/EmbeddableControlRootAutomationPeer.cs:61 — src/Avalonia.Controls/Automation/Peers/EmbeddableControlRootAutomationPeer.cs:61-72 | src/Avalonia.Controls/Automation/Peers/WindowBaseAutomationPeer.cs:69-80 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/Avalonia.Controls/Automation/Peers/EmbeddableControlRootAutomationPeer.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.
  • Duplicated block (12 lines × 2) src/Avalonia.Controls/PullToRefresh/ScrollViewerIRefreshInfoProviderAdapter.cs:174 — src/Avalonia.Controls/PullToRefresh/ScrollViewerIRefreshInfoProviderAdapter.cs:174-185 | src/Avalonia.Controls/PullToRefresh/ScrollViewerIRefreshInfoProviderAdapter.cs:191-203 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/Avalonia.Controls/PullToRefresh/ScrollViewerIRefreshInfoProviderAdapter.cs:174` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) src/Avalonia.Controls/RelativePanel.cs:418 — src/Avalonia.Controls/RelativePanel.cs:418-429 | src/Avalonia.Controls/RelativePanel.cs:449-460 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/Avalonia.Controls/RelativePanel.cs:418` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (12 lines × 2) src/Avalonia.Controls/RelativePanel.cs:434 — src/Avalonia.Controls/RelativePanel.cs:434-445 | src/Avalonia.Controls/RelativePanel.cs:464-475 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/Avalonia.Controls/RelativePanel.cs:434` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (12 lines × 2) src/Avalonia.Controls/TickBar.cs:311 — src/Avalonia.Controls/TickBar.cs:311-322 | src/Avalonia.Controls/TickBar.cs:364-375 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/Avalonia.Controls/TickBar.cs:311` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) src/Avalonia.Controls/VirtualizingCarouselPanel.cs:804 — src/Avalonia.Controls/VirtualizingCarouselPanel.cs:804-815 | src/Avalonia.Controls/VirtualizingStackPanel.cs:1019-1030 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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 (12 lines × 2) src/Avalonia.Controls/VirtualizingCarouselPanel.cs:820 — src/Avalonia.Controls/VirtualizingCarouselPanel.cs:820-831 | src/Avalonia.Controls/VirtualizingStackPanel.cs:1035-1046 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/Avalonia.Controls/VirtualizingCarouselPanel.cs:820` it does not close everything it opens, so those 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 (12 lines × 2) src/Android/Avalonia.Android/Platform/Storage/AndroidStorageItem.cs:279 — src/Android/Avalonia.Android/Platform/Storage/AndroidStorageItem.cs:279-290 | src/Android/Avalonia.Android/Platform/Storage/AndroidStorageItem.cs:570-581 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/Android/Avalonia.Android/Platform/Storage/AndroidStorageItem.cs:279` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D15 · Churn × Complexity Hotspots · Hotspot · ×10
  • Hotspot: src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs — src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs changed 3 times in last 90 days, max complexity 182. 1 of those changes was a fix/bug commit, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, 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.
  • Hotspot: src/Avalonia.X11/X11Window.cs src/Avalonia.X11/X11Window.cs — src/Avalonia.X11/X11Window.cs changed 6 times in last 90 days, max complexity 65. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, 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.
  • Hotspot: src/Avalonia.Controls/TextBox.cs src/Avalonia.Controls/TextBox.cs — src/Avalonia.Controls/TextBox.cs changed 4 times in last 90 days, max complexity 63. 1 of those changes was a fix/bug commit, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, 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.
  • Hotspot: src/Markup/Avalonia.Markup.Xaml.Loader/CompilerExtensions/XamlIlBindingPathHelper.cs src/Markup/Avalonia.Markup.Xaml.Loader/CompilerExtensions/XamlIlBindingPathHelper.cs — src/Markup/Avalonia.Markup.Xaml.Loader/CompilerExtensions/XamlIlBindingPathHelper.cs changed 3 times in last 90 days, max complexity 65. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, 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.
  • Hotspot: src/Avalonia.Build.Tasks/XamlCompilerTaskExecutor.cs src/Avalonia.Build.Tasks/XamlCompilerTaskExecutor.cs — src/Avalonia.Build.Tasks/XamlCompilerTaskExecutor.cs changed 2 times in last 90 days, max complexity 96. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first.
  • Hotspot: src/Windows/Avalonia.Win32.Automation/AutomationNode.cs src/Windows/Avalonia.Win32.Automation/AutomationNode.cs — src/Windows/Avalonia.Win32.Automation/AutomationNode.cs changed 4 times in last 90 days, max complexity 45. 1 of those changes was a fix/bug commit, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, 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.
  • Hotspot: src/Windows/Avalonia.Win32/WindowImpl.cs src/Windows/Avalonia.Win32/WindowImpl.cs — src/Windows/Avalonia.Win32/WindowImpl.cs changed 6 times in last 90 days, max complexity 30. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, 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.
  • Hotspot: src/Avalonia.Base/Rendering/Composition/Server/ServerCompositionTarget.cs src/Avalonia.Base/Rendering/Composition/Server/ServerCompositionTarget.cs — src/Avalonia.Base/Rendering/Composition/Server/ServerCompositionTarget.cs changed 5 times in last 90 days, max complexity 30. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first.
  • Hotspot: src/Avalonia.Base/Media/TextFormatting/TextFormatterImpl.cs src/Avalonia.Base/Media/TextFormatting/TextFormatterImpl.cs — src/Avalonia.Base/Media/TextFormatting/TextFormatterImpl.cs changed 3 times in last 90 days, max complexity 34. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, 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.
  • Hotspot: src/Avalonia.Base/Media/TextFormatting/Unicode/LineBreakEnumerator.cs src/Avalonia.Base/Media/TextFormatting/Unicode/LineBreakEnumerator.cs — src/Avalonia.Base/Media/TextFormatting/Unicode/LineBreakEnumerator.cs changed 2 times in last 90 days, max complexity 46. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first.
D35 · Change Coupling · Change coupling · ×10
  • Change coupling: FcitxICWrapper.cs ↔ IBusX11TextInputMethod.cs src/Avalonia.FreeDesktop/DBusIme/Fcitx/FcitxICWrapper.cs — `src/Avalonia.FreeDesktop/DBusIme/Fcitx/FcitxICWrapper.cs` and `src/Avalonia.FreeDesktop/DBusIme/IBus/IBusX11TextInputMethod.cs` change together 85% of the time (11 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). 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.
  • Change coupling: FcitxICWrapper.cs ↔ DBusMenuExporter.cs src/Avalonia.FreeDesktop/DBusIme/Fcitx/FcitxICWrapper.cs — `src/Avalonia.FreeDesktop/DBusIme/Fcitx/FcitxICWrapper.cs` and `src/Avalonia.FreeDesktop/DBusMenuExporter.cs` change together 77% of the time (10 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). 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.
  • Change coupling: FcitxICWrapper.cs ↔ DBusTrayIconImpl.cs src/Avalonia.FreeDesktop/DBusIme/Fcitx/FcitxICWrapper.cs — `src/Avalonia.FreeDesktop/DBusIme/Fcitx/FcitxICWrapper.cs` and `src/Avalonia.FreeDesktop/DBusTrayIconImpl.cs` change together 77% of the time (10 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). 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.
  • Change coupling: FcitxICWrapper.cs ↔ DBusSystemDialog.cs src/Avalonia.FreeDesktop/DBusIme/Fcitx/FcitxICWrapper.cs — `src/Avalonia.FreeDesktop/DBusIme/Fcitx/FcitxICWrapper.cs` and `src/Avalonia.FreeDesktop/DBusSystemDialog.cs` change together 69% of the time (9 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). 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.
  • Change coupling: MouseDevice.cs ↔ PenDevice.cs src/Avalonia.Base/Input/MouseDevice.cs — `src/Avalonia.Base/Input/MouseDevice.cs` and `src/Avalonia.Base/Input/PenDevice.cs` change together 68% of the time (15 of the 22 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). 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.
  • Change coupling: IBusX11TextInputMethod.cs ↔ DBusSystemDialog.cs src/Avalonia.FreeDesktop/DBusIme/IBus/IBusX11TextInputMethod.cs — `src/Avalonia.FreeDesktop/DBusIme/IBus/IBusX11TextInputMethod.cs` and `src/Avalonia.FreeDesktop/DBusSystemDialog.cs` change together 67% of the time (12 of the 18 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). 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.
  • Change coupling: IBusX11TextInputMethod.cs ↔ DBusMenuExporter.cs src/Avalonia.FreeDesktop...

    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.