Public report — Notepads, 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 @ 12:14 UTC Public
Code Health Audit

0X7c13/Notepads

51% Weak
CriticalWeakAdequateStrongExemplary
lower third — near Weak

Medium · 28,654 LoC · 2 projects · rebuild ~0.5 person-years · weakest lens: Security (44%)

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

36/40dimensions tool-verifieddeterministic · confidence 1.0 · 4 LLM-assisted, advisory
119findings with an exact file:lineof 132 — the remainder are repo-wide signals (a dimension-level measurement, not a single line); open any file:line and verify
40/96dimensions across the health lenses28654 LoC · 2 projects — wide & deep

Executive summary

Read through the Production lens — the standard calibration. *Green* means good enough to run in production. The score is absolute and comparable across repos.

0x7c13/Notepads carries serious gaps (51%). Several issues below can materially affect correctness, security, or the cost of changing it — and propagate to everything that depends on it.

It is strongest in Architecture (86%) — the structure is clean and changes stay contained.

The area that most needs attention is Security (44%) — exposure to security and compliance incidents is elevated. Maturity (54%) is the next concern — onboarding is slow — key decisions and the architecture aren't written down, so contributors have to reverse-engineer the intent.

Leadership focus, highest impact first: 15 High finding(s) (Static Analysis (SAST)); Record significant decisions one document per decision (Architecture documentation); build/run (quick start) section to the root README (Documentation (README)).

For scale: Medium (~28,654 production lines); rebuilding it from scratch would take roughly ~0.5 person-years (~1 engineer). Approximate, ±~30%.

It builds on a genuinely strong Architecture foundation (86%); the priorities above are the highest-leverage way to bring the rest up to that level.

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.
Security 44% · 47% weightMaturity 54% · 26% weightReadiness 58% · 14% weightCode Health 59% · 8% weightArchitecture 86% · 4% weight

Raise Security 44 → 70 (the Healthy floor) ⇒ headline 51 → ~58.

Code composition — where the lines go
Business logic 47%Plumbing 53%
Rebuild cost & value ~ Modeled — €24,000–€120,000
Cost to rebuild€24,000–€120,000 (0.2–0.8 person-years (394–1,281 h), ~1 engineer)
Domain complexityStandard — harder problems cost more per line
Quality factor0.7× (at 51% quality) — the last 20% of quality is most of the work
Size & shapeMedium · 39% boilerplate · 14% straight-line · 47% branching logic

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

How we model this: boilerplate at a scaffolding rate + logic × domain Standard (×1.2) — library/CLI, CQRS, high decision density × a 0.7× 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
Resolve the 15 High finding(s) in Static Analysis (SAST) — start with main.yml (14), dependabot.yml.
+7.0 pts · Medium effort · Static Analysis (SAST)
2
Resolve the 1 No build provenance finding(s) in Supply-chain Provenance & Signing.
+3.0 pts · Low effort · Supply-chain Provenance & Signing
3
Resolve the 1 Unpinned build actions finding(s) in Supply-chain Provenance & Signing.
+3.0 pts · Low effort · Supply-chain Provenance & Signing

Diagnosis — what's actually going on

Value concentrated against a weak lens · High · Value at risk
This is a Medium asset (~0.5 person-years to rebuild), and its weakest lens is Security at 44%. The operational and business risk on an asset this size concentrates there — that's where remediation buys the most protection.
Evidence: valuation: Medium, ~0.5 person-years rebuild (28,654 LoC) · weakest lens: Security 44%
→ Direct remediation budget at Security 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: Resolve the 15 High finding(s) in Static Analysis (SAST) — start with main.yml (14), dependabot.yml. The rest can wait behind it.
Evidence: priority ranking: top of 5 ranked by impact/effort
→ Resolve the 15 High finding(s) in Static Analysis (SAST) — start with main.yml (14), dependabot.yml.

Architecture — module dependency graph

Project dependencies, layered top-to-bottom; arrows show direction. Any dashed red edge points upward or sideways — a layering smell or cycle. A clean layered graph has none.

arch Notepads Notepads Notepads.Controls Controls Notepads->Notepads.Controls

Architecture — module dependency matrix

22 modules, 36 dependencies — 1 dependency cycle, 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.)

NotepadsNotepads.BrushesNotepads.Commands…epads.Controls.DialogNotepads.Controls.GoTo…pads.Controls.HelpersNotepads.Settings…s.Controls.DiffViewer…ntrols.FindAndReplace…ore.SessionDataModelsNotepads.ModelsNotepads.CoreNotepads.UtilitiesNotepads.ExtensionsNotepads.Services…tepads.Views.Settings…s.Controls.TextEditor…s.Controls.FilePicker…ads.Controls.Markdown…tepads.Controls.Print…tepads.Views.MainPageNotepads.ControlsNotepads1Notepads.Brushes2Notepads.Commands3…epads.Controls.Dialog4Notepads.Controls.GoTo5…pads.Controls.Helpers6Notepads.Settings7…s.Controls.DiffViewer8…ntrols.FindAndReplace9…ore.SessionDataModels10Notepads.Models11Notepads.Core12Notepads.Utilities13Notepads.Extensions14Notepads.Services15…tepads.Views.Settings16…s.Controls.TextEditor17…s.Controls.FilePicker18…ads.Controls.Markdown19…tepads.Controls.Print20…tepads.Views.MainPage21Notepads.Controls22211122314411221121413252111121121113

At a glance — Code Health · 59% · Adequate

At a glance — Architecture · 86% · Adequate · gated by D26

At a glance — Maturity · 54% · Adequate · gated by M2

At a glance — Readiness · 58% · Adequate · gated by D8, D9

At a glance — Security · 44% · Weak · gated by D29, D36

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

Roadmap

Begin by resolving the 15 high-severity findings in Static Analysis, focusing first on main.yml and dependabot.yml. Next, establish an architecture decision record system to document significant design choices and their consequences. Then, add a build and run quick-start section to the root README to assist new contributors. Finally, address supply-chain risks by ensuring build provenance and pinning build actions to specific versions.

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

Do thisHelpsEffortDimension
Resolve the 15 High finding(s) in Static Analysis (SAST) — start with main.yml (14), dependabot.yml.+7.0 ptsMediumStatic Analysis (SAST)
Resolve the 1 No build provenance finding(s) in Supply-chain Provenance & Signing.+3.0 ptsLowSupply-chain Provenance & Signing
Resolve the 1 Unpinned build actions finding(s) in Supply-chain Provenance & Signing.+3.0 ptsLowSupply-chain Provenance & Signing
Resolve the 1 Workflow token permissions not restricted finding(s) in Supply-chain Provenance & Signing.+3.0 ptsLowSupply-chain Provenance & Signing
Resolve the 1 No automated tests finding(s) in Code Coverage.+2.9 ptsLowCode Coverage
Resolve the 1 No tests found finding(s) in Test Distribution.+2.9 ptsLowTest Distribution
Resolve the 1 redundant comment finding(s) in Comment Value — start with DropShadowPanel.Properties.cs.+2.1 ptsLowComment Value
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).+4.0 ptsMediumArchitecture documentation

File quality

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

FileScoreBandWorst signal
src/Notepads.Controls/MarkdownTextBlock/Markdown/Render/MarkdownRenderer.Inlines.cs3.4SlopExplicit Debt: EmptyCatchBlock
src/Notepads/Views/MainPage/NotepadsMainPage.IO.cs4.3MixedExplicit Debt: EmptyCatchBlock
.github/workflows/main.yml4.4MixedStatic Analysis (SAST): High: github-actions-mutable-action-tag
src/Notepads/Core/NotepadsCore.cs4.8MixedExplicit Debt: EmptyCatchBlock
src/Notepads.Controls/SetsView/SetsView.HeaderLayout.cs6.0MixedExplicit Debt: TodoComment
src/Notepads.Controls/SetsView/SetsView.cs6.0MixedExplicit Debt: TodoComment
src/Notepads/Notepads.csproj6.1MixedExplicit Debt: NoWarnInCsproj repeated 21 times in 2 files
src/Notepads/Controls/TextEditor/TextEditor.xaml.cs6.3MixedGod Classes: TooManyMethods: TextEditor
src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/TextRunInline.cs6.7MixedExplicit Debt: HackComment
src/Notepads.Controls/MarkdownTextBlock/Markdown/Render/MarkdownTable.cs6.7MixedExplicit Debt: TodoComment
src/Notepads/Controls/TextEditor/TextEditorCore.cs6.7MixedExplicit Debt: CommentedOutCode
src/Notepads.Controls/MarkdownTextBlock/MarkdownTextBlock.Methods.cs6.7MixedExplicit Debt: CommentedOutCode
src/Notepads.Controls/MarkdownTextBlock/MarkdownTextBlock.cs6.9MixedExplicit Debt: CommentedOutCode
src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/HyperlinkInline.cs7.2MixedCyclomatic Complexity: HyperlinkInline.ParseEmailAddress (cyclomatic 32)
src/Notepads.Controls/MarkdownTextBlock/Markdown/Helpers/Common.cs7.2MixedCyclomatic Complexity: Common.FindNextInlineElement (cyclomatic 31)
src/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/TableBlock.cs7.2MixedCyclomatic Complexity: TableRow.ParseContents (cyclomatic 25)
.github/dependabot.yml7.2MixedStatic Analysis (SAST): High: dependabot-missing-cooldown
src/Notepads.Controls/Helpers/ThemeListener.cs7.3MixedExplicit Debt: TodoComment
src/Notepads/Services/AnalyticsService.cs7.3MixedExplicit Debt: CommentedOutCode
src/Notepads/App.xaml.cs7.3MixedExplicit Debt: TodoComment

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. 36 of 40 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.5 — 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 — 40 dimensions across the health lenses
D1D2D3D4D5D6D8D9D12D13D15D17D18D19D21D24D26D28D29D34D35D36AX10AX3AX5AX6GD1IC1M1M2M3M4P1P2P3P4P6X1X2X3

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, 119 of 132 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 019fd1d8-a8fb-740f-8c07-42e024b69acb.

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

A clean run — every tool resolved and ran, and every applicable dimension was measured at full confidence. No scanner was unavailable, no analysis timed out or crashed, and nothing fell back to a degraded estimate.

When something does degrade — a missing scanner, a shallow clone, an LLM hiccup — it is named here explicitly and its exact cause recorded in diagnostics.md, never absorbed silently into the score.

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.
  • D8 Code Coverage: Coverage is measured by building and running the test suite inside Watchdog's isolated image — the target repo is never modified, and nothing on your systems runs. So coverage exists only when the suite builds and runs within the inline time budget; one that needs external services, can't build, or exceeds the budget yields no coverage (D8 then degrades to not-measured, not a low score). Line coverage also says nothing about assertion quality.
  • 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.
  • 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").
  • D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
  • D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
  • D18 Solution Shape: Build integrity reflects whether the solution compiled in this environment — a build that needs a private feed, a specific SDK, or a generated file absent from the repo can read as broken when it is merely unreproducible here.
  • D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement.
  • 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.
  • 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.
  • 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").
  • 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.
  • 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.
  • P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
  • P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.

The LLM boundary

LLM-set scores this run (4): D19, D21, 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 Complexity7.2 / 10Strong✓ 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 7.2 / 10 · rule-coverage 100% · ceiling Prevented

17 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was MarkdownDocument.Parse at 61.

MarkdownDocument.Parse (cyclomatic 61)src/Notepads.Controls/MarkdownTextBlock/Markdown/MarkdownDocument.cs:91
HyperlinkInline.ParseEmailAddress (cyclomatic 32)src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/HyperlinkInline.cs:319
Common.FindNextInlineElement (cyclomatic 31)src/Notepads.Controls/MarkdownTextBlock/Markdown/Helpers/Common.cs:82
MarkdownLinkInline.Parse (cyclomatic 29)src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/MarkdownLinkInline.cs:60
CodeBlock.Parse (cyclomatic 25)src/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/CodeBlock.cs:45

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

What to do

  1. Resolve the 1 MarkdownDocument.Parse (cyclomatic 61) finding(s) in Cyclomatic Complexity — start with MarkdownDocument.cs. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 HyperlinkInline.ParseEmailAddress (cyclomatic 32) finding(s) in Cyclomatic Complexity — start with HyperlinkInline.cs. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 Common.FindNextInlineElement (cyclomatic 31) finding(s) in Cyclomatic Complexity — start with Common.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.0 / 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.0 / 10 · rule-coverage 100% · ceiling Prevented

34 method(s) exceeded the cognitive complexity threshold of 15; the worst was MarkdownDocument.Parse at 143.

MarkdownDocument.Parse (cognitive 143)src/Notepads.Controls/MarkdownTextBlock/Markdown/MarkdownDocument.cs:91
SetsView.SetsView_SizeChanged (cognitive 75)src/Notepads.Controls/SetsView/SetsView.HeaderLayout.cs:39
CodeBlock.Parse (cognitive 69)src/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/CodeBlock.cs:45
SideBySideDiffViewer.RenderDiff (cognitive 57)src/Notepads/Controls/DiffViewer/SideBySideDiffViewer.xaml.cs:162
ListBlock.Parse (cognitive 56)src/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/ListBlock.cs:46

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

What to do

  1. Resolve the 1 MarkdownDocument.Parse (cognitive 143) finding(s) in Cognitive Complexity — start with MarkdownDocument.cs. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 SetsView.SetsView_SizeChanged (cognitive 75) finding(s) in Cognitive Complexity — start with SetsView.HeaderLayout.cs. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 CodeBlock.Parse (cognitive 69) finding(s) in Cognitive Complexity — start with CodeBlock.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.5 / 10Strong✓ Tool-verified

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

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

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

10 god class(es) detected.

TooManyMethods: TextEditorCore · ×6src/Notepads/Controls/TextEditor/TextEditorCore.cs:0
ClassTooLong: EmojiInline · ×3src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/EmojiInline.cs:0
FileTooLong: TextEditor/TextEditor.xaml.cssrc/Notepads/Controls/TextEditor/TextEditor.xaml.cs:0

What to do

  1. Resolve the 6 TooManyMethods finding(s) in God Classes — start with TextEditorCore.cs, NotepadsMainPage.StatusBar.cs, TextEditor.xaml.cs. — One of this dimension's main actionable groups (6 warning-level).
  2. Resolve the 3 ClassTooLong finding(s) in God Classes — start with EmojiInline.cs, MarkdownTextBlock.Methods.cs, MarkdownRenderer.Inlines.cs. — One of this dimension's main actionable groups (3 warning-level).
  3. Resolve the 1 FileTooLong finding(s) in God Classes — start with TextEditor.xaml.cs. — One of this dimension's main actionable groups (1 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

7 duplicated block group(s) detected.

Duplicated block (17 lines × 2) · ×3src/Notepads/Controls/TextEditor/TextEditorCore.FindAndReplace.cs:268
Duplicated block (29 lines × 2)src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/BoldItalicTextInline.cs:67
Duplicated block (16 lines × 2)src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/HyperlinkInline.cs:346
Duplicated block (12 lines × 2)src/Notepads/Controls/Print/PrintArgs.cs:437
Duplicated block (11 lines × 2)src/Notepads/Extensions/StringExtensions.cs:34

✓ On the Gold path — maintain.

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

D5 · Coupling6.0 / 10Adequate✓ 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 6.0 / 10 · rule-coverage 100% · ceiling Prevented

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

Off the main sequence: Notepads.Controls

What to do

  1. Resolve the 1 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (1 warning-level).
  2. Enforce Coupling in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D6 · Cohesion (LCOM4)8.8 / 10Strong✓ Tool-verified

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

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

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

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

4 of 40 classes have LCOM4 above 3.

Low cohesion: GoToControl (LCOM4 7) · ×4src/Notepads/Controls/GoTo/GoToControl.xaml.cs:19

What to do

  1. Resolve the 4 Low cohesion finding(s) in Cohesion (LCOM4) — start with GoToControl.xaml.cs, FindAndReplaceControl.xaml.cs, TextAndEditorSettingsPage.xaml.cs. — One of this dimension's main actionable groups (4 warning-level).
  2. Enforce Cohesion (LCOM4) in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

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

D8 · Code Coverage0.0 / 10Critical✓ Tool-verified

What it measures: How much of the code is actually exercised by tests.

Method: Coverage from coverlet runs or committed reports (Cobertura/OpenCover/lcov), computed per-file with structured exclusions for generated, trivial, and glue code. When the suite can't be built/run in-image AND no report is committed, coverage is reported NOT-MEASURED (excluded from the score) with the precondition to make it measurable — never a LoC-ratio proxy folded in as if measured. Deterministic.

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

No automated tests — no test code was found in this repository.

No automated tests

What to do

  1. Resolve the 1 No automated tests finding(s) in Code Coverage. — One of this dimension's main actionable groups (1 issue-level).
  2. Enforce Code Coverage in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

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

D9 · Test Distribution0.0 / 10Critical✓ 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 0.0 / 10 · rule-coverage 100% · ceiling Documented

No test suite found.

No tests found

What to do

  1. Resolve the 1 No tests found finding(s) in Test Distribution. — One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d9_recommendation.md · top locations in Appendix A, every location in findings.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.

D15 · Churn × Complexity Hotspots10.0 / 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 10.0 / 10 · rule-coverage 100% · ceiling Documented

No churn × complexity hotspots in the window.

✓ On the Gold path — maintain.

Detailed fixes: d15_recommendation.md.

D17 · Explicit Debt8.1 / 10Strong✓ 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 8.1 / 10 · rule-coverage 100% · ceiling Prevented

48 deducted debt markers + 0 dead symbols across 28654 LoC (1.0/KLoC) → score 8.1.

EmptyCatchBlock · ×5src/Notepads.Controls/MarkdownTextBlock/Markdown/Render/MarkdownRenderer.Inlines.cs:332
NoWarnInCsproj repeated 21 times in 2 filessrc/Notepads/Notepads.csproj:34
TodoComment · ×10src/Notepads.Controls/Helpers/ThemeListener.cs:94
CommentedOutCode · ×8src/Notepads.Controls/MarkdownTextBlock/MarkdownTextBlock.Methods.cs:314
HackComment · ×4src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/TextRunInline.cs:387

What to do

  1. Resolve the 5 EmptyCatchBlock finding(s) in Explicit Debt — start with MarkdownRenderer.Inlines.cs, NotepadsCore.cs, ThemeSettingsService.cs. — One of this dimension's main actionable groups (5 issue-level).
  2. Resolve the 1 NoWarnInCsproj repeated 21 times in 2 files finding(s) in Explicit Debt — start with Notepads.csproj. — One of this dimension's main actionable groups (1 issue-level).
  3. Resolve the 10 TodoComment finding(s) in Explicit Debt — start with ThemeListener.cs (2), SetsView.HeaderLayout.cs (2), MarkdownTable.cs. — One of this dimension's main actionable groups (10 warning-level).
  4. Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D18 · Solution Shape10.0 / 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 10.0 / 10 · rule-coverage 100% · ceiling Documented

2 projects, 213 source files, 28654 hand-written lines of code (28654 production / 0 test), 1 inter-project edges (build failed).

Build did not complete in the analyzer

✓ On the Gold path — maintain.

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

D19 · Documentation Quality / 10Adequate◐ Sampled · advisory

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

Method: Judged by language model at low temperature (0.0-0.1) on a deterministic doc sample (READMEs plus first 25 architecture docs), with two-pass stability filtering. Advisory, sampled.

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

The Notepads README is a strong personal motivation-driven document with an engaging cover image and a clear release link. It states the purpose (a modern lightweight notepad that is blazingly fast and appeals to everyone) and lists features such as a built-in tab system, multi-line handwriting support, Markdown live preview, diff viewer, session snapshot, and multi-pane layout, before being cut by the scanner. The visible content is strong for its intent; the outline promises many more sections (shortcuts, platform limitations, downloads, changelog, privacy policy, contributing, dependencies) but they are not shown in the clipped text.

Low XML-doc coverage: Notepadssrc/Notepads/Notepads.csproj
XML-doc coverage: Notepads.Controlssrc/Notepads.Controls/Notepads.Controls.csproj

What to do

  1. Resolve the 1 Low XML-doc coverage finding(s) in Documentation Quality — start with Notepads.csproj. — One of this dimension's main actionable groups (1 warning-level).

Detailed fixes: d19_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.

D24 · Comment Value / 10Adequate◐ 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 Adequate / 10 · rule-coverage 100% · ceiling Documented

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

redundant commentsrc/Notepads.Controls/DropShadowPanel/DropShadowPanel.Properties.cs:1

What to do

  1. Resolve the 1 redundant comment finding(s) in Comment Value — start with DropShadowPanel.Properties.cs. — One of this dimension's main actionable groups (1 recommendation-level).

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

D26 · Project Cohesion0.0 / 10Critical✓ 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 0.0 / 10 · rule-coverage 100% · ceiling Documented

1 of 2 projects flagged as possibly oversized/incoherent.

Split Notepads

What to do

  1. Resolve the 1 Split Notepads finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).

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

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

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

Method: 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 10.0 / 10 · rule-coverage 100% · ceiling Documented

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

✓ On the Gold path — maintain.

Detailed fixes: d28_recommendation.md.

D29 · Static Analysis (SAST)0.7 / 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.7 / 10 · rule-coverage 100% · ceiling Documented

15 finding(s): 0 critical, 15 high, 0 medium, 0 low.

High: dependabot-missing-cooldown · ×15.github/dependabot.yml:3detected by semgrep finding

What to do

  1. Resolve the 15 High finding(s) in Static Analysis (SAST) — start with main.yml (14), dependabot.yml. — One of this dimension's main actionable groups (15 issue-level).

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

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

3 of 115 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is src/Notepads/Controls/Print/PrintArgs.cs.

Orphaned knowledgesrc/Notepads/Controls/Print/PrintArgs.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 Coupling10.0 / 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 10.0 / 10 · rule-coverage 100% · ceiling Documented

No strong hidden change-coupling between production files.

✓ On the Gold path — maintain.

Detailed fixes: d35_recommendation.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
Workflow token permissions not restricted
No build provenance
No SBOM

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 Workflow token permissions not restricted 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.

Frontend & cross-cutting dimensions

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

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

  • `ITextEditor` declares 61 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. — ITextEditor.cs:19
  • `INotepadsCore` declares 39 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. — INotepadsCore.cs:21

What to do

  • Split fat interfaces into focused role-interfaces so clients depend only on what they use.
GD1 · Unfinished & placeholder code10.0 / 10Exemplary○ Nothing flagged

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.

IC1 · Incompleteness & stubs10.0 / 10Exemplary○ Nothing flagged

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.

  • A line of code has been commented out rather than removed — dead weight that rots and confuses. Delete it (version control remembers). (×30) — InAppNotification.cs:51, MarkdownTextBlock.Methods.cs:314, MarkdownTextBlock.Methods.cs:317, …

What to do

  • 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.0 / 10Adequate✓ 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 build/run (quick start) section to the root README — the first thing a newcomer needs.
  • 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 2 of 2 project(s) that lack one — worth up to 2 pts.
M2 · Architecture documentation0.0 / 10Critical✓ Tool-verified

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

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

  • No Architecture Decision Records found — no conventional ADR directory, no `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.
  • No C4/PlantUML/Mermaid diagram or architecture.md — the high-level shape isn't documented.

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).
  • Add a C4 context/container diagram (Structurizr, PlantUML or Mermaid) or an architecture.md overview.
M3 · Folder & project structure8.0 / 10Strong✓ 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.

  • No test surface was found — there are no tests here to separate from production code, so the folder question hasn't been reached yet.

What to do

  • Start a test surface where your build system looks for one (tests/, test/, spec/, or your ecosystem's test source set) — the separation follows from putting the first tests in the right place.
M4 · Documentation accuracy10.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.

P2 · Observability7.0 / 10Strong✓ Tool-verified

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

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

What to do

  • Consider OpenTelemetry tracing/metrics and a health-check endpoint for operability.
P3 · Security & performance tooling7.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.
P4 · Deployment & Rollback7.0 / 10Strong✓ Tool-verified

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

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

P6 · Release Hygiene10.0 / 10Exemplary✓ Tool-verified

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

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

X1 · Async correctness4.2 / 10Weak✓ Tool-verified

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

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

  • `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. (×25) — FindAndReplaceControl.xaml.cs:70, GoToControl.xaml.cs:57, TextEditorCore.ExternalEventListener.cs:45, …

What to do

  • async void method: ThemeSettingsService_OnAccentColorChanged
X2 · Cancellation propagation4.0 / 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 1/118 async methods accept a CancellationToken, so in-flight work can't be stopped early when the caller gives up — whatever ends it in your host (shutdown signal, timeout, abandoned request, user cancel). Thread a token through the call chain and honour it at each await and loop; where a method genuinely cannot be interrupted, omitting it is a deliberate choice — judge against your hosting model.
  • No CancellationToken parameter — this work can't be stopped early once started. (×25) — FindAndReplaceControl.xaml.cs:70, GoToControl.xaml.cs:57, PrintArgs.cs:410, …

What to do

  • Thread a CancellationToken through async methods so work stops promptly on cancellation.
X3 · Exception handling6.7 / 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. (×5) — NotepadsCore.cs:634, NotepadsMainPage.IO.cs:114, ThemeSettingsService.cs:382, …

What to do

  • Swallowed exception (empty catch)

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 Health59%AdequateStrongest area.
Architecture86%Adequate — gated by D26Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Maturity54%Adequate — gated by M2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness58%Adequate — gated by D8, D9Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security44%Weak — gated by D29, D36Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Not included — 56 check(s) not relevant to this codebase

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

  • AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
  • AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
  • AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
  • AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
  • AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
  • AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
  • AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
  • AX1 Captive dependencies — no DI registrations detected
  • AX2 Stateful singletons — no singleton implementations detected
  • AX4 Dependency direction — not applicable to a CQRS architecture (the inward-dependency rule is for layered/clean styles)
  • AX7 Slice cohesion — not applicable — not a vertical-slice architecture
  • AX8 Test isolation — no test/production split to check
  • AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
  • C1 Data Protection — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
  • C2 Access Controls — No access-control surface detected in the analyzed source — no web/app surface to authorize (no HTTP API or web-UI project) and no authorization code at all (no [Authorize]/policies, no imperative guard methods). Access control is therefore N/A here — this is a library/CLI, which is authorized by its CALLER, not by itself. If this codebase grows request handlers, the dimension reactivates and a default-deny posture is expected then.
  • C3 Audit Trail — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
  • C4 Data Retention — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
  • C5 Data-Subject Rights — No personal data detected in the analyzed source — no PII-typed entity/column names (Email, FirstName, DateOfBirth, …), no ASP.NET Identity / user-account model, and no stored user credentials. GDPR data-protection controls are therefore N/A here. If this is intentional, record the no-PII posture in an ADR; if the app does process personal data, name those fields conventionally so this dimension activates.
  • D10 Test Quality — No tests were found in the analyzed repository to assess for quality.
  • D11 Test Reliability — Test reliability not included
  • D14 License Compliance — license scan produced no result — the tool ran but its JSON output could not be parsed; the offline NuGet fallback resolved nothing
  • D16 Bus Factor — dormant codebase — no living knowledge left to concentrate
  • D20 ADR Quality — N/A — ADRs are expected on deployable products with a user-facing host, not consumed libraries; no ADR log is required here.
  • D22 Internal API Consistency — No exposed public API
  • D23 Boundary Type-Coupling — At only 28654 LoC across 2 projects the codebase is small and single-purpose despite its name, so explicit boundaries are not needed.
  • D25 ADR Conformance — no ADRs to check
  • D27 Navigability — symbol resolution incomplete — navigability not assessed
  • 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.
  • D33 JS/npm Dependency Vulnerabilities — No JS/npm manifest or lockfile found outside build output (package.json, package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb); no JS dependencies to scan.
  • D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
  • D38 OSV Dependency Vulnerabilities — No supported non-.NET dependency lockfile found outside build output (npm package-lock/yarn/pnpm/bun, Go go.mod, Rust Cargo.lock, Maven pom.xml, Gradle lockfiles, Python requirements.txt/poetry.lock/Pipfile.lock/pdm.lock, PHP composer.lock, Ruby Gemfile.lock, Elixir mix.lock, Dart pubspec.lock, Swift Package.resolved); nothing for OSV to scan. A NuGet-only repo stays NotApplicable — .NET CVEs are D30's domain.
  • 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
  • DM1 Domain Modelling — not scored — this repository shows none of the 3 signals this check looks for
  • ED1 Event-Driven — not scored — this repository shows only 1 of the 3 signals this check looks for (4 CQRS handler(s))
  • 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 — and nothing was matched here. The coverage check applies to any stack, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
  • 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
  • PF1 Benchmark discipline — Performance is assessed only for perf-relevant repos — a packaged library, one that ships benchmarks, or one already using allocation-aware APIs. This repo isn't one, so the Performance lens is not applicable and is excluded from the score.
  • PF2 Allocation hygiene — Performance is assessed only for perf-relevant repos — a packaged library, one that ships benchmarks, or one already using allocation-aware APIs. This repo isn't one, so the Performance lens is not applicable and is excluded from the score.
  • PF3 Async & latency hygiene — Performance is assessed only for perf-relevant repos — a packaged library, one that ships benchmarks, or one already using allocation-aware APIs. This repo isn't one, so the Performance lens is not applicable and is excluded from the score.
  • S1 Web-Security Posture — No web surface detected in the analyzed source — no HTTP API or web-UI project (no controllers/minimal-API endpoints, no Razor/Blazor views) and no web middleware (HTTPS redirection, HSTS, security headers, cookies). Transport security, security headers, secure cookies, CSRF/input-validation and middleware-order controls are therefore N/A here — this is a library/CLI/worker, not a web app. Crypto hygiene was still checked and found nothing to flag. If this codebase becomes web-facing, the dimension reactivates automatically.
  • 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
  • X5 Nullable reference types — no NRT-eligible projects
  • 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 — 23 finding(s)
D29 · Static Analysis (SAST) · High · ×15
  • 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. This configuration file has 2 such entries; one cooldown decision clears them all — reported once.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:148 — 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-java@<40-character SHA>`. This step references `actions/setup-java@v5`; resolve the SHA it points at today with `gh api repos/actions/setup-java/commits/v5 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:154 — 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: microsoft/setup-msbuild@<40-character SHA>`. This step references `microsoft/setup-msbuild@v3`; resolve the SHA it points at today with `gh api repos/microsoft/setup-msbuild/commits/v3 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:158 — 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: NuGet/setup-nuget@<40-character SHA>`. This step references `NuGet/setup-nuget@v3.0.0`; resolve the SHA it points at today with `gh api repos/NuGet/setup-nuget/commits/v3.0.0 --jq .sha`. Note that `v3.0.0` is an exact release tag rather than a floating major: it is still mutable (a tag can be repointed), but by convention it moves only on a force-push, so pin the floating-major and branch references in this file first.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:162 — 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@v5`; resolve the SHA it points at today with `gh api repos/actions/checkout/commits/v5 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:171 — 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: al-cheb/configure-pagefile-action@<40-character SHA>`. This step references `al-cheb/configure-pagefile-action@v1.5`; resolve the SHA it points at today with `gh api repos/al-cheb/configure-pagefile-action/commits/v1.5 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:198 — 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/cache@<40-character SHA>`. This step references `actions/cache@v5.0.4`; resolve the SHA it points at today with `gh api repos/actions/cache/commits/v5.0.4 --jq .sha`. Note that `v5.0.4` is an exact release tag rather than a floating major: it is still mutable (a tag can be repointed), but by convention it moves only on a force-push, so pin the floating-major and branch references in this file first.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:207 — 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/cache@<40-character SHA>`. This step references `actions/cache@v5.0.4`; resolve the SHA it points at today with `gh api repos/actions/cache/commits/v5.0.4 --jq .sha`. Note that `v5.0.4` is an exact release tag rather than a floating major: it is still mutable (a tag can be repointed), but by convention it moves only on a force-push, so pin the floating-major and branch references in this file first.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:267 — 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: github/codeql-action/init@<40-character SHA>`. This step references `github/codeql-action/init@v4`; resolve the SHA it points at today with `gh api repos/github/codeql-action/commits/v4 --jq .sha`. `github/codeql-action/init` is hosted INSIDE the `github/codeql-action` repository (a subdirectory action or a reusable workflow), so the SHA to pin is that repository's commit — keep the full `github/codeql-action/init` path in `uses:` and query only `github/codeql-action`.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:317 — 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: github/codeql-action/analyze@<40-character SHA>`. This step references `github/codeql-action/analyze@v4`; resolve the SHA it points at today with `gh api repos/github/codeql-action/commits/v4 --jq .sha`. `github/codeql-action/analyze` is hosted INSIDE the `github/codeql-action` repository (a subdirectory action or a reusable workflow), so the SHA to pin is that repository's commit — keep the full `github/codeql-action/analyze` path in `uses:` and query only `github/codeql-action`.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:334 — 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/upload-artifact@<40-character SHA>`. This step references `actions/upload-artifact@v4`; resolve the SHA it points at today with `gh api repos/actions/upload-artifact/commits/v4 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:351 — 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@v5`; resolve the SHA it points at today with `gh api repos/actions/checkout/commits/v5 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:355 — 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/download-artifact@<40-character SHA>`. This step references `actions/download-artifact@v6`; resolve the SHA it points at today with `gh api repos/actions/download-artifact/commits/v6 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:371 — 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: mrchief/universal-changelog-action@<40-character SHA>`. This step references `mrchief/universal-changelog-action@v1.3.2`; resolve the SHA it points at today with `gh api repos/mrchief/universal-changelog-action/commits/v1.3.2 --jq .sha`. Note that `v1.3.2` is an exact release tag rather than a floating major: it is still mutable (a tag can be repointed), but by convention it moves only on a force-push, so pin the floating-major and branch references in this file first.
  • High: github-actions-mutable-action-tag .github/workflows/main.yml:380 — 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: ncipollo/release-action@<40-character SHA>`. This step references `ncipollo/release-action@v1.20.0`; resolve the SHA it points at today with `gh api repos/ncipollo/release-action/commits/v1.20.0 --jq .sha`. Note that `v1.20.0` is an exact release tag rather than a floating major: it is still mutable (a tag can be repointed), but by convention it moves only on a force-push, so pin the floating-major and branch references in this file first.
D17 · Explicit Debt · EmptyCatchBlock · ×5
  • EmptyCatchBlock src/Notepads.Controls/MarkdownTextBlock/Markdown/Render/MarkdownRenderer.Inlines.cs:332 — 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/Notepads/Core/NotepadsCore.cs:634 — 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/Notepads/Services/ThemeSettingsService.cs:382 — 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/Notepads/Utilities/SessionUtility.cs:94 — 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/Notepads/Views/MainPage/NotepadsMainPage.IO.cs:114 — 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.
D17 · Explicit Debt · NoWarnInCsproj repeated 21 times in 2 files · ×1
  • NoWarnInCsproj repeated 21 times in 2 files src/Notepads/Notepads.csproj:34 — The identical NoWarnInCsproj (`2008`) appears 21 times in 2 files — one decision applied repeatedly (e.g. the same rule silenced on every overload of a fluent API), not 21 independent debts. Decide it once — at the type or project level, or by fixing the underlying pattern — rather than occurrence-by-occurrence. (Every occurrence still counts toward the score and metrics.)
D34 · Knowledge Freshness · Orphaned knowledge · ×1
  • Orphaned knowledge src/Notepads/Controls/Print/PrintArgs.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.
D8 · Code Coverage · No automated tests · ×1
  • No automated tests — No automated tests — no test code was found in this repository. Untested code is the largest single risk to changing it safely.
Warning — 99 finding(s)
D17 · Explicit Debt · TodoComment · ×10
  • TodoComment src/Notepads.Controls/Helpers/ThemeListener.cs:94 — // TODO: This doesn't stop the multiple calls if we're in our faked 'White' HighContrast Mode below. — 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/Notepads.Controls/Helpers/ThemeListener.cs:117 — // TODO: Not sure if HighContrastScheme names are localized? — 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/Notepads.Controls/MarkdownTextBlock/Markdown/Render/MarkdownTable.cs:128 — // TODO: we can skip this step if none of the column widths changed, and just re-use — 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/Notepads.Controls/SetsView/SetsView.HeaderLayout.cs:125 — // TODO: Consolidate this logic with above better? — 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/Notepads.Controls/SetsView/SetsView.HeaderLayout.cs:148 — //// TODO: If it's less, should we move the selected set to only be the one shown by default? — 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/Notepads.Controls/SetsView/SetsView.cs:30 — // TODO: Should this be based on SetsWidthMode — 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/Notepads/App.xaml.cs:196 — // TODO: Load state from previously suspended application — 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/Notepads/Core/TabContextFlyout.cs:264 — // TODO: Use Content Dialog to display error message — 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/Notepads/Views/MainPage/NotepadsMainPage.IO.cs:257 — // TODO: Use Content Dialog to display error message — 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/Notepads/Services/AnalyticsService.cs:33 — // TODO: Simplify this to use a single line, reduce complexity of properties by all the callers — 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.
D17 · Explicit Debt · CommentedOutCode · ×8
  • CommentedOutCode src/Notepads.Controls/MarkdownTextBlock/MarkdownTextBlock.Methods.cs:314 — 5 consecutive commented-code lines
  • CommentedOutCode src/Notepads.Controls/MarkdownTextBlock/MarkdownTextBlock.cs:43 — 7 consecutive commented-code lines
  • CommentedOutCode src/Notepads.Controls/MarkdownTextBlock/MarkdownTextBlock.cs:74 — 7 consecutive commented-code lines
  • CommentedOutCode src/Notepads/Controls/TextEditor/TextEditorCore.cs:822 — 7 consecutive commented-code lines
  • CommentedOutCode src/Notepads.Controls/MarkdownTextBlock/MarkdownTextBlock.cs:112 — 3 consecutive commented-code lines
  • CommentedOutCode src/Notepads/Services/AnalyticsService.cs:34 — 3 consecutive commented-code lines
  • CommentedOutCode src/Notepads/App.xaml.cs:316 — 10 consecutive commented-code lines
  • CommentedOutCode src/Notepads/Controls/Markdown/MarkdownExtensionView.xaml.cs:126 — 6 consecutive commented-code lines
D3 · God Classes · TooManyMethods · ×6
  • TooManyMethods: TextEditorCore src/Notepads/Controls/TextEditor/TextEditorCore.cs:0 — TooManyMethods — 1197 significant lines (blank, comment-only and punctuation-only lines excluded), 100 methods, declared across 12 files: TextEditor/TextEditorCore.cs (53), TextEditor/TextEditorCore.ExternalEventListener.cs (11), TextEditor/TextEditorCore.FindAndReplace.cs (10), TextEditor/TextEditorCore.LineNumbers.cs (8), +8 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: NotepadsMainPage src/Notepads/Views/MainPage/NotepadsMainPage.StatusBar.cs:0 — TooManyMethods — 945 significant lines (blank, comment-only and punctuation-only lines excluded), 81 methods, declared across 7 files: MainPage/NotepadsMainPage.StatusBar.cs (33), MainPage/NotepadsMainPage.xaml.cs (23), MainPage/NotepadsMainPage.IO.cs (12), MainPage/NotepadsMainPage.Theme.cs (4), +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: TextEditor src/Notepads/Controls/TextEditor/TextEditor.xaml.cs:0 — TooManyMethods — 585 significant lines (blank, comment-only and punctuation-only lines excluded), 65 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: NotepadsCore src/Notepads/Core/NotepadsCore.cs:0 — TooManyMethods — 433 significant lines (blank, comment-only and punctuation-only lines excluded), 49 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: SetsView src/Notepads.Controls/SetsView/SetsView.cs:0 — TooManyMethods — 453 significant lines (blank, comment-only and punctuation-only lines excluded), 39 methods, declared across 4 files: SetsView/SetsView.cs (24), SetsView/SetsView.HeaderLayout.cs (6), SetsView/SetsView.ItemSources.cs (5), SetsView/SetsView.Properties.cs (4). 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: GridSplitter src/Notepads.Controls/GridSplitter/GridSplitter.Helper.cs:0 — TooManyMethods — 473 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods, declared across 4 files: GridSplitter/GridSplitter.Helper.cs (14), GridSplitter/GridSplitter.Events.cs (8), GridSplitter/GridSplitter.cs (8), GridSplitter/GridSplitter.Options.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.
D17 · Explicit Debt · HackComment · ×4
  • HackComment src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/TextRunInline.cs:387 — // HACK: in case end < start happens — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
  • HackComment src/Notepads.Controls/MarkdownTextBlock/Markdown/Render/MarkdownRenderer.Inlines.cs:117 — // HACK: Superscript is not allowed within a hyperlink. But if we switch it around, so — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
  • HackComment src/Notepads.Controls/MarkdownTextBlock/Markdown/Render/MarkdownRenderer.Inlines.cs:157 — // THE HACK IS ON! — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
  • HackComment src/Notepads.Controls/SetsView/SetsView.cs:486 — // HACK: Simulate left most and right most (tab) edge shadow — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
D6 · Cohesion (LCOM4) · Low cohesion · ×4
  • Low cohesion: GoToControl (LCOM4 7) src/Notepads/Controls/GoTo/GoToControl.xaml.cs:19 — GoToControl'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: FindAndReplaceControl (LCOM4 6) src/Notepads/Controls/FindAndReplace/FindAndReplaceControl.xaml.cs:21 — FindAndReplaceControl'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: TextAndEditorSettingsPage (LCOM4 6) src/Notepads/Views/Settings/TextAndEditorSettingsPage.xaml.cs:34 — TextAndEditorSettingsPage'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: TextEditor (LCOM4 4) src/Notepads/Controls/TextEditor/TextEditor.xaml.cs:39 — TextEditor'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.
D3 · God Classes · ClassTooLong · ×3
  • ClassTooLong: EmojiInline src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/EmojiInline.cs:0 — ClassTooLong — 854 significant lines (blank, comment-only and punctuation-only lines excluded), 3 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: MarkdownTextBlock src/Notepads.Controls/MarkdownTextBlock/MarkdownTextBlock.Methods.cs:0 — ClassTooLong — 833 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods, declared across 3 files: MarkdownTextBlock/MarkdownTextBlock.Methods.cs (9), MarkdownTextBlock/MarkdownTextBlock.cs (5), MarkdownTextBlock/MarkdownTextBlock.Events.cs (4). 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: MarkdownRenderer src/Notepads.Controls/MarkdownTextBlock/Markdown/Render/MarkdownRenderer.Inlines.cs:0 — ClassTooLong — 649 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods, declared across 3 files: Render/MarkdownRenderer.Inlines.cs (12), Render/MarkdownRenderer.Blocks.cs (9), Render/MarkdownRenderer.cs (8). 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 (17 lines × 2) · ×3
  • Duplicated block (17 lines × 2) src/Notepads/Controls/TextEditor/TextEditorCore.FindAndReplace.cs:268 — src/Notepads/Controls/TextEditor/TextEditorCore.FindAndReplace.cs:268-284 | src/Notepads/Controls/TextEditor/TextEditorCore.FindAndReplace.cs:305-321 — both copies are in the same file, so extract the 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/Notepads/Controls/TextEditor/TextEditorCore.FindAndReplace.cs:268` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) src/Notepads/Controls/TextEditor/TextEditorCore.Indentation.cs:74 — src/Notepads/Controls/TextEditor/TextEditorCore.Indentation.cs:74-90 | src/Notepads/Controls/TextEditor/TextEditorCore.Indentation.cs:197-213 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `src/Notepads/Controls/TextEditor/TextEditorCore.Indentation.cs:74` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/HyperlinkInline.cs:206 — src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/HyperlinkInline.cs:206-222 | src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/HyperlinkInline.cs:258-274 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note 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.
D1 · Cyclomatic Complexity · MarkdownDocument.Parse (cyclomatic 61) · ×1
  • MarkdownDocument.Parse (cyclomatic 61) src/Notepads.Controls/MarkdownTextBlock/Markdown/MarkdownDocument.cs:91 — MarkdownDocument.Parse has cyclomatic complexity 61 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · HyperlinkInline.ParseEmailAddress (cyclomatic 32) · ×1
  • HyperlinkInline.ParseEmailAddress (cyclomatic 32) src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/HyperlinkInline.cs:319 — HyperlinkInline.ParseEmailAddress has cyclomatic complexity 32 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · Common.FindNextInlineElement (cyclomatic 31) · ×1
  • Common.FindNextInlineElement (cyclomatic 31) src/Notepads.Controls/MarkdownTextBlock/Markdown/Helpers/Common.cs:82 — Common.FindNextInlineElement has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MarkdownLinkInline.Parse (cyclomatic 29) · ×1
  • MarkdownLinkInline.Parse (cyclomatic 29) src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/MarkdownLinkInline.cs:60 — MarkdownLinkInline.Parse has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CodeBlock.Parse (cyclomatic 25) · ×1
  • CodeBlock.Parse (cyclomatic 25) src/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/CodeBlock.cs:45 — CodeBlock.Parse has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · LinkReferenceBlock.Parse (cyclomatic 25) · ×1
  • LinkReferenceBlock.Parse (cyclomatic 25) src/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/LinkReferenceBlock.cs:43 — LinkReferenceBlock.Parse has cyclomatic complexity 25 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table.
D1 · Cyclomatic Complexity · TableRow.ParseContents (cyclomatic 25) · ×1
  • TableRow.ParseContents (cyclomatic 25) src/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/TableBlock.cs:195 — TableRow.ParseContents has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · NotepadsCore.Sets_Drop (cyclomatic 24) · ×1
  • NotepadsCore.Sets_Drop (cyclomatic 24) src/Notepads/Core/NotepadsCore.cs:684 — NotepadsCore.Sets_Drop has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SideBySideDiffViewer.RenderDiff (cyclomatic 24) · ×1
  • SideBySideDiffViewer.RenderDiff (cyclomatic 24) src/Notepads/Controls/DiffViewer/SideBySideDiffViewer.xaml.cs:162 — SideBySideDiffViewer.RenderDiff has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 2 of the 24 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 178, 233, 196, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · SetsView.SetsView_SizeChanged (cyclomatic 24) · ×1
  • SetsView.SetsView_SizeChanged (cyclomatic 24) src/Notepads.Controls/SetsView/SetsView.HeaderLayout.cs:39 — SetsView.SetsView_SizeChanged has cyclomatic complexity 24 (threshold 15). Of this number, 23 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ImageInline.Parse (cyclomatic 23) · ×1
  • ImageInline.Parse (cyclomatic 23) src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/ImageInline.cs:73 — ImageInline.Parse has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TextEditorCore.RemoveIndentation (cyclomatic 22) · ×1
  • TextEditorCore.RemoveIndentation (cyclomatic 22) src/Notepads/Controls/TextEditor/TextEditorCore.Indentation.cs:98 — TextEditorCore.RemoveIndentation has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TableBlock.Parse (cyclomatic 20) · ×1
  • TableBlock.Parse (cyclomatic 20) src/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/TableBlock.cs:46 — TableBlock.Parse has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · NotepadsMainPage.Sets_Loaded (cyclomatic 18) · ×1
  • NotepadsMainPage.Sets_Loaded (cyclomatic 18) src/Notepads/Views/MainPage/NotepadsMainPage.xaml.cs:202 — NotepadsMainPage.Sets_Loaded has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · YamlHeaderBlock.Parse (cyclomatic 17) · ×1
  • YamlHeaderBlock.Parse (cyclomatic 17) src/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/YamlHeaderBlock.cs:42 — YamlHeaderBlock.Parse has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SessionManager.SaveSessionAsync (cyclomatic 16) · ×1
  • SessionManager.SaveSessionAsync (cyclomatic 16) src/Notepads/Core/SessionManager.cs:168 — SessionManager.SaveSessionAsync has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SuperscriptTextInline.Parse (cyclomatic 16) · ×1
  • SuperscriptTextInline.Parse (cyclomatic 16) src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/SuperscriptTextInline.cs:44 — SuperscriptTextInline.Parse has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D16 · Bus Factor · dormant codebase · ×1
  • dormant codebase — no living knowledge left to concentrate — All 65 significant source file(s) were last meaningfully changed so long ago that no living knowledge remains — nothing since has been substantial enough to re-establish ownership (a broad, mechanical sweep that touches many files shallowly does not count, and neither does no activity at all). There is no concentration to measure, so the bus factor is not scored. This is not a clean bill: nobody currently holds working knowledge of this code (see D34 Knowledge Freshness).
D19 · Documentation Quality · Low XML-doc coverage · ×1
  • Low XML-doc coverage: Notepads src/Notepads/Notepads.csproj — Notepads: 3 % XML-doc coverage (18/585).
D2 · Cognitive Complexity · MarkdownDocument.Parse (cognitive 143) · ×1
  • MarkdownDocument.Parse (cognitive 143) src/Notepads.Controls/MarkdownTextBlock/Markdown/MarkdownDocument.cs:91 — MarkdownDocument.Parse has cognitive complexity 143 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · SetsView.SetsView_SizeChanged (cognitive 75) · ×1
  • SetsView.SetsView_SizeChanged (cognitive 75) src/Notepads.Controls/SetsView/SetsView.HeaderLayout.cs:39 — SetsView.SetsView_SizeChanged has cognitive complexity 75 (threshold 15). Of this number, 73 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · CodeBlock.Parse (cognitive 69) · ×1
  • CodeBlock.Parse (cognitive 69) src/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/CodeBlock.cs:45 — CodeBlock.Parse has cognitive complexity 69 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · SideBySideDiffViewer.RenderDiff (cognitive 57) · ×1
  • SideBySideDiffViewer.RenderDiff (cognitive 57) src/Notepads/Controls/DiffViewer/SideBySideDiffViewer.xaml.cs:162 — SideBySideDiffViewer.RenderDiff has cognitive complexity 57 (threshold 15). Most of this is not in the body itself: 1 of the 57 points is its own statement and the rest belongs to 6 function literals inside it that branch (lines 178, 233, 196, …). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · ListBlock.Parse (cognitive 56) · ×1
  • ListBlock.Parse (cognitive 56) src/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/ListBlock.cs:46 — ListBlock.Parse has cognitive complexity 56 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · MarkdownLinkInline.Parse (cognitive 53) · ×1
  • MarkdownLinkInline.Parse (cognitive 53) src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/MarkdownLinkInline.cs:60 — MarkdownLinkInline.Parse has cognitive complexity 53 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Common.FindNextInlineElement (cognitive 51) · ×1
  • Common.FindNextInlineElement (cognitive 51) src/Notepads.Controls/MarkdownTextBlock/Markdown/Helpers/Common.cs:82 — Common.FindNextInlineElement has cognitive complexity 51 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · TextEditorCore.RemoveIndentation (cognitive 43) · ×1
  • TextEditorCore.RemoveIndentation (cognitive 43) src/Notepads/Controls/TextEditor/TextEditorCore.Indentation.cs:98 — TextEditorCore.RemoveIndentation has cognitive complexity 43 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · TableRow.ParseContents (cognitive 39) · ×1
  • TableRow.ParseContents (cognitive 39) src/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/TableBlock.cs:195 — TableRow.ParseContents has cognitive complexity 39 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · ImageInline.Parse (cognitive 36) · ×1
  • ImageInline.Parse (cognitive 36) src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/ImageInline.cs:73 — ImageInline.Parse has cognitive complexity 36 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · Common.ParseLines (cognitive 35) · ×1
  • Common.ParseLines (cognitive 35) src/Notepads.Controls/MarkdownTextBlock/Markdown/Helpers/Common.cs:347 — Common.ParseLines has cognitive complexity 35 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · NotepadsCore.Sets_Drop (cognitive 29) · ×1
  • NotepadsCore.Sets_Drop (cognitive 29) src/Notepads/Core/NotepadsCore.cs:684 — NotepadsCore.Sets_Drop has cognitive complexity 29 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · LinkReferenceBlock.Parse (cognitive 28) · ×1
  • LinkReferenceBlock.Parse (cognitive 28) src/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/LinkReferenceBlock.cs:43 — LinkReferenceBlock.Parse has cognitive complexity 28 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · TableBlock.Parse (cognitive 27) · ×1
  • TableBlock.Parse (cognitive 27) src/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/TableBlock.cs:46 — TableBlock.Parse has cognitive complexity 27 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SuperscriptTextInline.Parse (cognitive 27) · ×1
  • SuperscriptTextInline.Parse (cognitive 27) src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/SuperscriptTextInline.cs:44 — SuperscriptTextInline.Parse has cognitive complexity 27 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TextRunInline.Parse (cognitive 26) · ×1
  • TextRunInline.Parse (cognitive 26) src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/TextRunInline.cs:299 — TextRunInline.Parse has cognitive complexity 26 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · HyperlinkInline.ParseEmailAddress (cognitive 25) · ×1
  • HyperlinkInline.ParseEmailAddress (cognitive 25) src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/HyperlinkInline.cs:319 — HyperlinkInline.ParseEmailAddress has cognitive complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · TextEditorCore.TryFindNextAndSelect (cognitive 24) · ×1
  • TextEditorCore.TryFindNextAndSelect (cognitive 24) src/Notepads/Controls/TextEditor/TextEditorCore.FindAndReplace.cs:47 — TextEditorCore.TryFindNextAndSelect has cognitive complexity 24 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · TextEditorCore.TryFindPreviousAndSelect (cognitive 24) · ×1
  • TextEditorCore.TryFindPreviousAndSelect (cognitive 24) src/Notepads/Controls/TextEditor/TextEditorCore.FindAndReplace.cs:103 — TextEditorCore.TryFindPreviousAndSelect has cognitive complexity 24 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · NotepadsMainPage.Sets_Loaded (cognitive 24) · ×1
  • NotepadsMainPage.Sets_Loaded (cognitive 24) src/Notepads/Views/MainPage/NotepadsMainPage.xaml.cs:202 — NotepadsMainPage.Sets_Loaded has cognitive complexity 24 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · YamlHeaderBlock.Parse (cognitive 24) · ×1
  • YamlHeaderBlock.Parse (cognitive 24) src/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/YamlHeaderBlock.cs:42 — YamlHeaderBlock.Parse has cognitive complexity 24 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · FileSystemUtility.AnalyzeAndGuessEncoding (cognitive 21) · ×1
  • FileSystemUtility.AnalyzeAndGuessEncoding (cognitive 21) src/Notepads/Utilities/FileSystemUtility.cs:471 — FileSystemUtility.AnalyzeAndGuessEncoding has cognitive complexity 21 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GridSplitter.VerticalMove (cognitive 21) · ×1
  • GridSplitter.VerticalMove (cognitive 21) src/Notepads.Controls/GridSplitter/GridSplitter.Events.cs:170 — GridSplitter.VerticalMove has cognitive complexity 21 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GridSplitter.HorizontalMove (cognitive 21) · ×1
  • GridSplitter.HorizontalMove (cognitive 21) src/Notepads.Controls/GridSplitter/GridSplitter.Events.cs:236 — GridSplitter.HorizontalMove has cognitive complexity 21 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Common.SkipQuoteCharacters (cognitive 21) · ×1
  • Common.SkipQuoteCharacters (cognitive 21) src/Notepads.Controls/MarkdownTextBlock/Markdown/Helpers/Common.cs:444 — Common.SkipQuoteCharacters has cognitive complexity 21 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SessionManager.SaveSessionAsync (cognitive 20) · ×1
  • SessionManager.SaveSessionAsync (cognitive 20) src/Notepads/Core/SessionManager.cs:168 — SessionManager.SaveSessionAsync has cognitive complexity 20 (threshold 15). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · NotepadsMainPage.SaveAsync (cognitive 18) · ×1
  • NotepadsMainPage.SaveAsync (cognitive 18) src/Notepads/Views/MainPage/NotepadsMainPage.IO.cs:159 — NotepadsMainPage.SaveAsync has cognitive complexity 18 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ListBlock.ReplaceStringBuilders (cognitive 18) · ×1
  • ListBlock.ReplaceStringBuilders (cognitive 18) src/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/ListBlock.cs:312 — ListBlock.ReplaceStringBuilders has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · MarkdownTable.MeasureOverride (cognitive 18) · ×1
  • MarkdownTable.MeasureOverride (cognitive 18) src/Notepads.Controls/MarkdownTextBlock/Markdown/Render/MarkdownTable.cs:80 — MarkdownTable.MeasureOverride has cognitive complexity 18 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function.
D2 · Cognitive Complexity · NotepadsCore.Sets_DragOver (cognitive 17) · ×1
  • NotepadsCore.Sets_DragOver (cognitive 17) src/Notepads/Core/NotepadsCore.cs:579 — NotepadsCore.Sets_DragOver has cognitive complexity 17 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ListBlock.ParseItemPreamble (cognitive 17) · ×1
  • ListBlock.ParseItemPreamble (cognitive 17) src/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/ListBlock.cs:216 — ListBlock.ParseItemPreamble has cognitive complexity 17 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · FileSystemUtility.GetAbsolutePathFromCommandLine (cognitive 16) · ×1
  • FileSystemUtility.GetAbsolutePathFromCommandLine (cognitive 16) src/Notepads/Utilities/FileSystemUtility.cs:186 — FileSystemUtility.GetAbsolutePathFromCommandLine has cognitive complexity 16 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · FileSystemUtility.RemoveExecutableNameOrPathFromCommandLineArgs (cognitive 16) · ×1
  • FileSystemUtility.RemoveExecutableNameOrPathFromCommandLineArgs (cognitive 16) src/Notepads/Utilities/FileSystemUtility.cs:243 — FileSystemUtility.RemoveExecutableNameOrPathFromCommandLineArgs has cognitive complexity 16 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MarkdownRenderer.AllTextIsSuperscript (cognitive 16) · ×1
  • MarkdownRenderer.AllTextIsSuperscript (cognitive 16) src/Notepads.Controls/MarkdownTextBlock/Markdown/Render/MarkdownRenderer.cs:136 — MarkdownRenderer.AllTextIsSuperscript has cognitive complexity 16 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D3 · God Classes · FileTooLong · ×1
  • FileTooLong: TextEditor/TextEditor.xaml.cs src/Notepads/Controls/TextEditor/TextEditor.xaml.cs:0 — FileTooLong — 615 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.
D36 · Supply-chain Provenance & Signing · Unpinned build actions · ×1
  • Unpinned build actions — CI references GitHub Actions by a floating ref (@main / @tag) rather than a pinned commit SHA, weakening build integrity. 14 floating ref(s) across 1 workflow file(s). Each floating ref is itemized at file:line by the SAST (D29) lens.
D36 · Supply-chain Provenance & Signing · Workflow token permissions not restricted · ×1
  • Workflow token permissions not restricted — No workflow declares a `permissions:` block, so every job runs with the repository's default GITHUB_TOKEN scope (2 workflow file(s) checked). On a repository whose default is read/write, a compromised action or a malicious pull request inherits write access to code, issues, releases and packages. Declare a least-privilege `permissions:` block — `permissions: {contents: read}` at the top of each workflow, widened per job only where a job genuinely writes.
D4 · Code Duplication · Duplicated block (29 lines × 2) · ×1
  • Duplicated block (29 lines × 2) src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/BoldItalicTextInline.cs:67 — src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/BoldItalicTextInline.cs:67-101 | src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/BoldTextInline.cs:62-90 — 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (16 lines × 2) · ×1
  • Duplicated block (16 lines × 2) src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/HyperlinkInline.cs:346 — src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/HyperlinkInline.cs:346-361 | src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/HyperlinkInline.cs:371-386 — both copies are in the same file, so extract the 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/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/HyperlinkInline.cs:346` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (12 lines × 2) · ×1
  • Duplicated block (12 lines × 2) src/Notepads/Controls/Print/PrintArgs.cs:437 — src/Notepads/Controls/Print/PrintArgs.cs:437-448 | src/Notepads/Controls/Print/PrintArgs.cs:456-467 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×1
  • Duplicated block (11 lines × 2) src/Notepads/Extensions/StringExtensions.cs:34 — src/Notepads/Extensions/StringExtensions.cs:34-44 | src/Notepads/Extensions/StringExtensions.cs:56-66 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note 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.
D5 · Coupling · Off the main sequence · ×1
  • Off the main sequence: Notepads.Controls — Notepads.Controls: abstractness 0.18, instability 0.00, distance 0.82 — zone of pain — concrete and depended on by 1 project(s), so it's rigid to change.
Recommendation — 7 finding(s)
D11 · Test Reliability · Test reliability not included · ×1
  • Test reliability not included — No test suite was found, so reliability couldn't be assessed.
D24 · Comment Value · redundant comment · ×1
  • redundant comment src/Notepads.Controls/DropShadowPanel/DropShadowPanel.Properties.cs:1 — "Licensed to the .NET Foundation under one or more agreements." — keep as license header, but duplicate in file-level comments; no action needed
D26 · Project Cohesion · Split Notepads · ×1
  • Split Notepads — A 'Notepads' project at 14k LoC and 95 types across 19 unrelated namespaces is a sprawling grab-bag. Suggested: by namespace: NotePadEditor, NotePadHistory, NotePadSync
D34 · Knowledge Freshness · Further orphaned files (smaller) · ×1
  • Further orphaned files (smaller) — 2 smaller file(s) also have no living knowledge — folded into the freshness score and metrics rather than listed individually (3 orphaned of 115 analysed files in total, counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first).
D36 · Supply-chain Provenance & Signing · No build provenance · ×1
  • No build provenance — No SLSA provenance generation or build attestation found in CI — nothing binds a released artifact to the build that produced it, so a consumer cannot tell your artifact from a substituted one. On GitHub Actions, `actions/attest-build-provenance` (or slsa-github-generator) emits one from the job's own OIDC identity; elsewhere, run `cosign attest` over the released artifact from the release pipeline and publish the attestation beside it.
D36 · Supply-chain Provenance & Signing · No SBOM · ×1
  • No SBOM — No SBOM generation or committed SBOM found — produce one with what your ecosystem ships (`sbom-tool generate` (install it with `dotnet tool install --global Microsoft.Sbom.DotNetTool`) or `dotnet CycloneDX` over the solution, `syft` (or `anchore/sbom-action` in CI) over the source tree or released image). Publish it as a release asset (`*.spdx.json` / `*.cdx.json`) so consumers can see what they are installing.
D9 · Test Distribution · No tests found · ×1
  • No tests found — No test suite could be collected — nothing here references a test framework (xUnit, NUnit or MSTest), so there were no discoverable tests to count. Tests written as plain executables or shell/PowerShell harnesses are not collectible this way and are not scored here.
Info — 3 finding(s)
D18 · Solution Shape · Build did not complete in the analyzer · ×1
  • Build did not complete in the analyzer — `dotnet build` reported 2 error(s) but no C# compiler diagnostic, so this is a build-environment gap rather than a code defect. The usual causes are a project that targets a platform this run cannot build (a Windows-only target framework on a Linux worker) or a build step that shells out to a tool the image does not carry. Solution Shape is scored on structure and is NOT capped. Semantic analysis is independent of this build and covers every project that loaded — but a project whose restore did not complete has no resolved references, so treat its results as absent rather than clean. Worth checking on your side too: a build that needs undeclared host tooling, or that cannot run off its own platform, is the same wall a new contributor hits.
D19 · Documentation Quality · XML-doc coverage · ×1
  • XML-doc coverage: Notepads.Controls src/Notepads.Controls/Notepads.Controls.csproj — Notepads.Controls: 96 % XML-doc coverage (606/632).
D22 · Internal API Consistency · No exposed public API · ×1
  • No exposed public API — No intentionally-exposed types (IsPackable or .Contracts) to evaluate.

Appendix B — Reproduction & audit trail

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

DimensionToolVersionCommandFindingsRaw output
D28 · Secrets (history)gitleaksgitleaks detect --no-banner --report-format json --report-path /dev/stdout --exit-code 0 --source .0artifacts/raw/gitleaks-history.json
D29 · Static Analysis (SAST)semgrepsemgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --json --quiet --timeout 0 --metrics off .15artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiesdotnetdotnet: not applicable — 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 solution0
D31 · IaC & Container Securitytrivytrivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Terraform, Kubernetes/Helm, CloudFormation); nothing to scan.0
D32 · Data Compliance (PII/GDPR)semgrepsemgrep: not applicable — No PII/GDPR-handling patterns detected (p/gdpr ruleset) — no data-compliance surface to assess.0
D33 · JS/npm Dependency Vulnerabilitiestrivytrivy: not applicable — No JS/npm manifest or lockfile found outside build output (package.json, package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb); no JS dependencies to scan.0
D37 · Vulnerability-disclosure Policydisclosuredisclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.0
D38 · OSV Dependency Vulnerabilitiesosv-scannerosv-scanner: not applicable — No supported non-.NET dependency lockfile found outside build output (npm package-lock/yarn/pnpm/bun, Go go.mod, Rust Cargo.lock, Maven pom.xml, Gradle lockfiles, Python requirements.txt/poetry.lock/Pipfile.lock/pdm.lock, PHP composer.lock, Ruby Gemfile.lock, Elixir mix.lock, Dart pubspec.lock, Swift Package.resolved); nothing for OSV to scan. A NuGet-only repo stays NotApplicable — .NET CVEs are D30's domain.0
D40 · Network Egress Confinementruntime-hardeningruntime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.0
D41 · Kernel & Syscall Confinementruntime-hardeningruntime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.0
D42 · Runtime Threat Enforcementruntime-hardeningruntime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.0

Run 019fd1d8-a8fb-740f-8c07-42e024b69acb · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.

Downloadable artifacts

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

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