Public report — FSharpx.Collections, published 6 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 06-08-2026 @ 04:19 UTC Public
Code Health Audit

Fsprojects/FSharpx.Collections

56% Adequate
CriticalWeakAdequateStrongExemplary
lower third — near Weak

Hobby · 88 LoC · 1 projects · weakest lens: Readiness (48%)

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

38/41dimensions tool-verifieddeterministic · confidence 1.0 · 3 LLM-assisted, advisory
96findings with an exact file:lineof 114 — the remainder are repo-wide signals (a dimension-level measurement, not a single line); open any file:line and verify
41/96dimensions across the health lenses88 LoC · 1 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.

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

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

The area that most needs attention is Readiness (48%) — releases are harder to depend on — versioning, release notes and dependency hygiene are thin, so consumers can't easily tell what changed or trust an upgrade. Maturity (56%) 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: Automate the release in CI (Deployment & Rollback); Expand the README with getting-started (Documentation (README)); Record significant decisions one document per decision (Architecture documentation).

For scale: Hobby (~88 production lines); rebuilding it from scratch would take roughly ~0.2 person-years (~1 engineer). Approximate, ±~30%.

It builds on a genuinely strong Architecture foundation (96%); 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.
Readiness 48% · 47% weightMaturity 56% · 26% weightSecurity 66% · 14% weightCode Health 67% · 8% weightArchitecture 96% · 4% weight

Raise Readiness 48 → 70 (the Healthy floor) ⇒ headline 56 → ~63.

Code composition — where the lines go
Plumbing 0%Tests 100%
Rebuild cost & value ~ Modeled — €8,000–€40,000
Cost to rebuild€8,000–€40,000 (0.1–0.3 person-years (134–425 h), ~1 engineer)
Domain complexityLow — harder problems cost more per line
Quality factor0.8× (at 56% quality) — the last 20% of quality is most of the work
Size & shapeHobby · 31% boilerplate · 69% straight-line · 0% branching logic

How we model this: boilerplate at a scaffolding rate + logic × domain Low (×0.9) — library/CLI × a 0.8× quality factor, at €60–95/h; indicative, ±~30% · size measured directly from source. 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
Automate the release in CI — a deploy stage for a service (Helm/Kubernetes manifests or an equivalent rollout), or a tag-triggered publish job for an artifact — so releases are repeatable and reversible.
+9.1 pts · Medium effort · Deployment & Rollback
2
Resolve the 1 No ADRs found finding(s) in ADR Quality.
+3.9 pts · Low effort · ADR Quality
3
Resolve the 3 redundant comment finding(s) in Comment Value — start with PersistentHashMap.cs (3).
+3.6 pts · Low effort · Comment Value

Diagnosis — what's actually going on

Highest-leverage move · Medium · Leverage
Of everything flagged, the best return on effort is: Automate the release in CI — a deploy stage for a service (Helm/Kubernetes manifests or an equivalent rollout), or a tag-triggered publish job for an artifact — so releases are repeatable and reversible. The rest can wait behind it.
Evidence: priority ranking: top of 5 ranked by impact/effort
→ Automate the release in CI — a deploy stage for a service (Helm/Kubernetes manifests or an equivalent rollout), or a tag-triggered publish job for an artifact — so releases are repeatable and reversible.

Architecture — module dependency matrix

9 modules, 7 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.)

CSharpFSharpx.Collections…x.Collections.Mutable…px.Collections.TaggedSystem…lections.Experimental…rpx.Collections.Tests(global)…ns.Experimental.TestsCSharp1FSharpx.Collections2…x.Collections.Mutable3…px.Collections.Tagged4System5…lections.Experimental6…rpx.Collections.Tests7(global)8…ns.Experimental.Tests91519421134

At a glance — Code Health · 67% · Adequate · gated by X5

At a glance — Architecture · 96% · Exemplary

At a glance — Maturity · 56% · Adequate · gated by D34, M2

At a glance — Readiness · 48% · Weak · gated by P3, P4

At a glance — Security · 66% · Adequate · gated by 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 — Injection4High / Critical
A06:2021 — Vulnerable & Outdated Components4High / Critical
A02:2021 — Cryptographic Failures1Medium

Roadmap

First, establish automated, repeatable, and reversible deployment processes to ensure stable releases. Next, expand the README with a project map, architecture overview, and getting-started guide to improve onboarding. Then, create and maintain architecture decision records to document significant technical choices. Finally, eliminate redundant comments to improve code clarity.

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

Do thisHelpsEffortDimension
Automate the release in CI — a deploy stage for a service (Helm/Kubernetes manifests or an equivalent rollout), or a tag-triggered publish job for an artifact — so releases are repeatable and reversible.+9.1 ptsMediumDeployment & Rollback
Resolve the 1 No ADRs found finding(s) in ADR Quality.+3.9 ptsLowADR Quality
Resolve the 3 redundant comment finding(s) in Comment Value — start with PersistentHashMap.cs (3).+3.6 ptsLowComment Value
Resolve the 3 Largest orphaned file finding(s) in Knowledge Freshness — start with TaggedCollections.fs, IntMap.fs, RealTimeDeque.fs.+3.4 ptsLowKnowledge Freshness
Expand the README with getting-started, architecture overview and a project map.+5.3 ptsMediumDocumentation (README)
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).+5.3 ptsMediumArchitecture documentation
Resolve the 1 Concentrated knowledge decay finding(s) in Knowledge Freshness.+1.6 ptsLowKnowledge Freshness
Enable <Nullable>enable</Nullable> across all projects and resolve warnings rather than suppressing with `!`.+2.5 ptsMediumNullable reference types

File quality

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

FileScoreBandWorst signal
.github/workflows/dotnet.yml4.8MixedStatic Analysis (SAST): High: github-actions-mutable-action-tag
src/FSharpx.Collections/PersistentHashMap.fs7.0MixedCognitive Complexity: BitmapIndexedNode.FSharpx.Collections.INode.assoc (cognitive 41)
src/FSharpx.Collections.Experimental/BankersDeque.fs7.0MixedCode Duplication: Duplicated block (14 lines × 4)
src/FSharpx.Collections.Experimental/IntMap.fs7.0MixedCyclomatic Complexity: IntMap.mergeWithKey' (cyclomatic 27)
src/FSharpx.Collections.Experimental/BatchedDeque.fs7.0MixedCode Duplication: Duplicated block (15 lines × 2)
src/FSharpx.Collections/RandomAccessList.fs7.1MixedCode Duplication: Duplicated block (13 lines × 2)
src/FSharpx.Collections.Experimental/Deque.fs7.1MixedCode Duplication: Duplicated block (8 lines × 2)
src/FSharpx.Collections/TaggedCollections.fs7.2MixedCognitive Complexity: SetTree.rebalance (cognitive 28)
src/FSharpx.Collections/Deque.fs7.2MixedCode Duplication: Duplicated block (15 lines × 2)
src/FSharpx.Collections.Experimental/ChampHashMap.fs7.4MixedCyclomatic Complexity: Node.remove (cyclomatic 17)
src/FSharpx.Collections/PersistentVector.fs7.4MixedCode Duplication: Duplicated block (12 lines × 2)
src/FSharpx.Collections/DList.fs7.4MixedCode Duplication: Duplicated block (10 lines × 2)
src/FSharpx.Collections.Experimental/RealTimeDeque.fs7.4MixedCode Duplication: Duplicated block (8 lines × 2)
src/FSharpx.Collections/PriorityQueue.fs7.8MixedCognitive Complexity: Heap`1.ofSeq (cognitive 18)
src/FSharpx.Collections.Experimental/BatchedQueue.fs7.8MixedCode Duplication: Duplicated block (16 lines × 2)
src/FSharpx.Collections.Experimental/BinomialHeap.fs7.8MixedCode Duplication: Duplicated block (12 lines × 2)
src/FSharpx.Collections.Experimental/LeftistHeap.fs8.5Near-cleanCognitive Complexity: LeftistHeap`1.merge (cognitive 18)
src/FSharpx.Collections.Experimental/BinaryRandomAccessList.fs8.5Near-cleanCode Duplication: Duplicated block (15 lines × 2)
src/FSharpx.Collections.Experimental/BankersQueue.fs8.5Near-cleanCode Duplication: Duplicated block (13 lines × 4)
src/FSharpx.Collections.Experimental/DList.fs8.5Near-cleanCode Duplication: Duplicated block (11 lines × 2)

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

Every figure here is one of three kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact; ◐ Advisory — an LLM prose judgement. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10; ◐ Sampled · advisory marks an LLM verdict over a bounded sample — advisory, never a deterministic measurement.

What we checked — 41 dimensions across the health lenses
D1D2D4D5D13D14D15D16D17D19D20D21D24D26D28D29D30D33D34D35D36D38D39AX10AX3AX4AX5GD1IC1M1M2M3M4P1P3P4P6X1X3X4X5

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, 96 of 114 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 019fd54c-231c-7e7f-abc5-55ca9b0734f2.

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

Run transparency — what happened this run

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

  • D3 God Classes — evaluation did not complete — God Classes not included (check did not complete) — excluded from the score.

Repo exclusion declarations: 1 pattern(s) declared (.gitattributes linguist-generated/vendored, .editorconfig generated_code) excluded 0 source file(s) from code-quality scoring. Declarations are the repo's own visible statement that a tree is machine-written or vendored — auditable in any diff, honored by GitHub the same way.

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.
  • 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.
  • D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
  • D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
  • D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
  • D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
  • D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
  • 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.
  • D20 ADR Quality: ADR quality is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
  • D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
  • 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").
  • D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and the advisory database — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen.
  • D33 JS/npm Dependency Vulnerabilities: JS/npm CVE matching reads package manifests and lockfiles — risk from how a dependency is used, and advisories not yet published, fall outside this scan.
  • D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
  • D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
  • AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
  • 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 (5): D19, D20, 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 Complexity9.2 / 10Exemplary✓ 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 9.2 / 10 · rule-coverage 100% · ceiling Prevented

2 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was IntMap.mergeWithKey' at 27. A further 1 method(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being IntMap.submapCmp at 18 — they are counted neither in the figure above nor in this dimension's score.

IntMap.mergeWithKey' (cyclomatic 27)src/FSharpx.Collections.Experimental/IntMap.fs:333
Node.remove (cyclomatic 17)src/FSharpx.Collections.Experimental/ChampHashMap.fs:212

✓ On the Gold path — maintain.

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

D2 · Cognitive Complexity8.1 / 10Strong✓ 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 8.1 / 10 · rule-coverage 100% · ceiling Prevented

11 method(s) exceeded the cognitive complexity threshold of 15; the worst was BitmapIndexedNode.FSharpx.Collections.INode.assoc at 41.

BitmapIndexedNode.FSharpx.Collections.INode.without (cognitive 24) · ×2src/FSharpx.Collections/PersistentHashMap.fs:646
BitmapIndexedNode.FSharpx.Collections.INode.assoc (cognitive 41)src/FSharpx.Collections/PersistentHashMap.fs:569
BitmapIndexedNode.FSharpx.Collections.INode.assoc (cognitive 34)src/FSharpx.Collections/PersistentHashMap.fs:500
SetTree.rebalance (cognitive 28)src/FSharpx.Collections/TaggedCollections.fs:71
MapTree.rebalance (cognitive 28)src/FSharpx.Collections/TaggedCollections.fs:847

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

What to do

  1. Resolve the 2 BitmapIndexedNode.FSharpx.Collections.INode.without (cognitive 24) finding(s) in Cognitive Complexity — start with PersistentHashMap.fs (2). — One of this dimension's main actionable groups (2 warning-level).
  2. Resolve the 1 BitmapIndexedNode.FSharpx.Collections.INode.assoc (cognitive 41) finding(s) in Cognitive Complexity — start with PersistentHashMap.fs. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 BitmapIndexedNode.FSharpx.Collections.INode.assoc (cognitive 34) finding(s) in Cognitive Complexity — start with PersistentHashMap.fs. — 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.

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

72 duplicated block group(s) detected.

Duplicated block (8 lines × 2) · ×13src/FSharpx.Collections.Experimental/BankersDeque.fs:321
Duplicated block (7 lines × 2) · ×10src/FSharpx.Collections.Experimental/BankersDeque.fs:112
Duplicated block (6 lines × 2) · ×9src/FSharpx.Collections.Experimental/BankersDeque.fs:49
Duplicated block (9 lines × 2) · ×7src/FSharpx.Collections.Experimental/BankersDeque.fs:170
Duplicated block (5 lines × 2) · ×7src/FSharpx.Collections.Experimental/BankersDeque.fs:33

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

What to do

  1. Resolve the 13 Duplicated block (8 lines × 2) finding(s) in Code Duplication — start with PersistentHashMap.fs (4), BatchedDeque.fs (3), Deque.fs (2). — One of this dimension's main actionable groups (13 warning-level).
  2. Resolve the 10 Duplicated block (7 lines × 2) finding(s) in Code Duplication — start with BankersDeque.fs (4), Deque.fs (3), IntMap.fs. — One of this dimension's main actionable groups (10 warning-level).
  3. Resolve the 9 Duplicated block (6 lines × 2) finding(s) in Code Duplication — start with Deque.fs (3), DList.fs (2), BankersDeque.fs. — One of this dimension's main actionable groups (9 warning-level).
  4. Enforce Code Duplication in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

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

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

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

What to do

  1. 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.

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

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

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

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

Secret scan ran and found no leaked secrets.

✓ On the Gold path — maintain.

Detailed fixes: d13_recommendation.md.

D14 · License Compliance10.0 / 10Exemplary○ Nothing flagged

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

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

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

0 of 1 packages use a banned license.

✓ On the Gold path — maintain.

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

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

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

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

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

4 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is src/FSharpx.Collections/PersistentHashMap.fs.

Off-boarding risk: anonymized user #1

✓ On the Gold path — maintain.

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

D17 · Explicit Debt6.2 / 10Adequate✓ 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 6.2 / 10 · rule-coverage 100% · ceiling Prevented

4 deducted debt markers + 0 dead symbols across 88 LoC (1.9/KLoC) → score 6.2.

What to do

  1. 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.

D19 · Documentation Quality / 10Strong◐ 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 Strong / 10 · rule-coverage 100% · ceiling Documented

The documentation is clear and complete for a library project: the README (two versions) gives build status, maintainer history, and links to the home page and API docs; an architecture doc outlines Purely Functional/Data.Mutable namespaces, structure type/module conventions, property/method distinction, Try/Option handling, length/count/isEmpty members, IEnumerable sequencing, and naming standards. The outline is visible in the clipped middle of the README, so all listed sections exist and must not be flagged as missing. Contributing and copyright content also exists but does not contradict the Purely Functional focus.

XML-doc coverage: csharpdocs/csharp/csharp.csproj

What to do

  1. Improve Documentation Quality — currently 8.0/10. — The documentation is clear and complete for a library project: the README (two versions) gives build status, maintainer history, and links to the home page and API docs; an architecture doc outlines Purely Functional/Data.Mutable namespaces, structure type/module conventions, property/method distinction, Try/Option handling, length/count/isEmpty members, IEnumerable sequencing, and naming standards. The outline is visible in the clipped middle of the README, so all listed sections exist and must not be flagged as missing. Contributing and copyright content also exists but does not contradict the Purely Functional focus.

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

D20 · ADR Quality / 10Critical◐ Sampled · advisory

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

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

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

No architecture decision records were found.

No ADRs found

What to do

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

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

D21 · Naming Consistency / 10Exemplary◐ Sampled · advisory

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

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

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

0 naming inconsistencies across 8 sampled symbols.

✓ On the Gold path — maintain.

Detailed fixes: d21_recommendation.md.

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

0 valuable / 3 redundant across 26 sampled comments; 3 shown with locations.

redundant comment · ×3docs/csharp/PersistentHashMap.cs:15

What to do

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

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

D26 · Project Cohesion10.0 / 10Exemplary✓ Tool-verified

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

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

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

0 of 1 projects flagged as possibly oversized/incoherent.

✓ On the Gold path — maintain.

Detailed fixes: d26_recommendation.md.

D28 · Secrets (history)5.0 / 10Adequate✓ Tool-verified

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

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

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

gitleaks produced no output — a clean scan reports `[]`, so this is a scan that did not run, not a repo without secrets

Scanner output unparseable — not a clean resultdetected by gitleaks (parse failure)

What to do

  1. Resolve the 1 Scanner output unparseable finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).

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

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

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

High: github-actions-mutable-action-tag · ×4.github/workflows/dotnet.yml:29detected by semgrep finding

What to do

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

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

D30 · Dependency Vulnerabilities8.7 / 10Strong✓ Tool-verified

What it measures: Whether any dependencies have known published vulnerabilities (CVEs), direct or transitive.

Method: NuGet CVE scan via dotnet list package --vulnerable including transitive; severity tally (Critical/High/Medium/Low) to 0-10 tight normalizer. Exhaustive, deterministic; degrades when absent.

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

4 vulnerable package(s): 0 critical, 2 high, 0 medium, 2 low.

High CVE: System.Net.Http 4.1.0 · ×2detected by dotnet list package --vulnerable
Low CVE: NuGet.Packaging 7.0.1 · ×2detected by dotnet list package --vulnerable

What to do

  1. Resolve the 2 High CVE finding(s) in Dependency Vulnerabilities. — One of this dimension's main actionable groups (2 issue-level).
  2. Resolve the 2 Low CVE finding(s) in Dependency Vulnerabilities. — One of this dimension's main actionable groups (2 recommendation-level).

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

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

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

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

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

No known-vulnerable JS/npm dependencies.

✓ On the Gold path — maintain.

Detailed fixes: d33_recommendation.md.

D34 · Knowledge Freshness2.6 / 10Weak✓ 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 2.6 / 10 · rule-coverage 100% · ceiling Documented

32 of 43 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is src/FSharpx.Collections/TaggedCollections.fs.

Largest orphaned file · ×3src/FSharpx.Collections/TaggedCollections.fs
Concentrated knowledge decay

What to do

  1. Resolve the 3 Largest orphaned file finding(s) in Knowledge Freshness — start with TaggedCollections.fs, IntMap.fs, RealTimeDeque.fs. — One of this dimension's main actionable groups (3 recommendation-level).
  2. Resolve the 1 Concentrated knowledge decay finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).

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

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

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

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

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

Unpinned build actions
Secret passed as a command-line argument
No build provenance
No artifact signing
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 Secret passed as a command-line argument 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.

D38 · OSV Dependency Vulnerabilities10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether dependencies have known published vulnerabilities (CVEs) per the OSV database — read natively from whatever lockfile the repository ships (Cargo, npm, Go, Python, Maven, RubyGems, …). D33 and D30 add ecosystem-specific scanners on top for npm and .NET.

Method: Multi-ecosystem dependency-CVE scan via osv-scanner --recursive (queries the osv.dev database + parses lockfiles natively across ecosystems: npm package-lock/yarn/pnpm/bun, Go go.mod, Rust Cargo.lock, Maven/Gradle pom.xml/gradle.lockfile, PyPI requirements.txt/poetry.lock/Pipfile.lock, Composer composer.lock, RubyGems Gemfile.lock, Hex mix.lock, pub pubspec.lock, Swift Package.resolved); severity tally (Critical/High/Medium/Low) to 0-10 tight normalizer (8.0). NotApplicable only when the repo declares no supported non-.NET dependency lockfile (a NuGet-only repo stays NotApplicable — .NET CVEs are D30's domain); coverage needs a resolved lockfile. Additive to D33 (trivy fs); exhaustive + deterministic, DB kept fresh.

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

No known-vulnerable dependencies (OSV).

✓ On the Gold path — maintain.

Detailed fixes: d38_recommendation.md.

D39 · IL Efficiency10.0 / 10Exemplary✓ Tool-verified

Method: IL instruction count per method, read from the BUILT first-party assemblies via Mono.Cecil (the target is compiled on a deep run); scored on the fraction of methods whose emitted IL body exceeds the size threshold. Sees compiler-generated bloat source can't; not-applicable when the target fails to build. Deterministic.

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

0 of 6 first-party methods have an oversized IL body.

✓ On the Gold path — maintain.

Detailed fixes: d39_recommendation.md.

Frontend & cross-cutting dimensions

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

AX10 · Code composition10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified.

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.

AX4 · Dependency direction10.0 / 10Exemplary✓ Tool-verified

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

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

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.

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.

M1 · Documentation (README)4.7 / 10Weak✓ 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.

  • The root README is 105 words — likely missing build/run/architecture context.

What to do

  • Expand the README with getting-started, architecture overview and a project map.
  • 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 1 of 1 project(s) that lack one — worth up to 2 pts.
M2 · Architecture documentation2.0 / 10Critical✓ Tool-verified

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

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

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

What to do

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

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

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

M4 · Documentation 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.

P3 · Security & performance tooling0.0 / 10Critical✓ Tool-verified

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

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

  • No static application security testing detected. For this repository's stack, add `semgrep --config=auto` plus gitleaks for committed secrets (F# is not a CodeQL language and has no language-specific SAST engine) as a CI step.

What to do

  • Add a SAST step to CI running what this repository's stack ships: `semgrep --config=auto` plus gitleaks for committed secrets (F# is not a CodeQL language and has no language-specific SAST engine) — so a security regression fails the build instead of landing.
  • Enable Dependabot/Renovate or a dependency-review gate.
  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback2.0 / 10Critical✓ 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.

  • No release automation was found in CI — neither a deploy stage (Helm/Kubernetes/compose manifests, an orchestrated rollout) nor a publish job that ships the built artifact. Releases appear to be run by hand, which is slower, less repeatable and harder to reverse.

What to do

  • Automate the release in CI — a deploy stage for a service (Helm/Kubernetes manifests or an equivalent rollout), or a tag-triggered publish job for an artifact — so releases are repeatable and reversible.
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 correctness10.0 / 10Exemplary○ Nothing flagged

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.

X3 · Exception handling10.0 / 10Exemplary○ Nothing flagged

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.

X4 · Structured logging10.0 / 10Exemplary○ Nothing flagged

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

Method: Roslyn syntax scan: every log call-site counted; interpolated-string first-argument violations flagged. Population is all log calls, not estimated. Deterministic.

X5 · Nullable reference types2.0 / 10Critical✓ Tool-verified

Other · Code Health — Whether nullable reference types are enabled and not undermined by heavy `!` suppression.

Method: Roslyn compiler-options scan: NullableContextOptions per project; null-forgiving (!) suppression density per 1k syntax nodes. Deterministic, adoption plus suppression penalty.

  • 0/1 NRT-eligible project(s) enable <Nullable>enable</Nullable> (projects targeting a pre-C#-8 framework are excluded — NRTs aren't available there). NRTs catch a whole class of null-deref bugs at compile time.

What to do

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

Reference — by lens

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

LensScoreRatingImpact
Code Health67%Adequate — gated by X5Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture96%ExemplaryStrongest area.
Maturity56%Adequate — gated by D34, M2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness48%Weak — gated by P3, P4Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security66%Adequate — gated by D36Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Not included — 55 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
  • AX6 Interface segregation — no public interfaces
  • 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 — ~28131 lines of test source are present (.fs) but the test-quality collector reads C# only, so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
  • D11 Test Reliability — Test reliability not included
  • D12 Dependency Hygiene — Dependency hygiene not measured — no packages were read
  • D18 Solution Shape — D18 scores the shape of a C#/VB .NET solution, but this repository's production source is mostly .fs, which the C#/VB workspace does not load — the projects that loaded are an immaterial minority, so solution shape was not assessed for this repository. Not scored — this is a gap in the analyzer's reach, not a verdict about this repository.
  • D22 Internal API Consistency — No exposed public API
  • D23 Boundary Type-Coupling — At only 13811 LoC across a single project the codebase is trivially small and has no boundaries to declare.
  • D25 ADR Conformance — no ADRs to check
  • D27 Navigability — No calls could be sampled, so navigability was not assessed — tracing effort is measured over resolved call sites and this target exposed none. Not scored — this is a gap in the analyzer's reach, not a verdict about this repository.
  • D3 God Classes — God Classes not included (check did not complete)
  • 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.
  • D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
  • D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
  • D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
  • D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
  • D6 Cohesion (LCOM4) — Cohesion (LCOM4) is measured over a C#/VB class graph, and this repository's production source is mostly .fs, which this pass does not read, so cohesion was not assessed for this repository. Not scored — this is a gap in the analyzer, not a finding about this repository.
  • D7 Architectural Integrity — no checkable ADRs and no dependency cycles — architectural integrity not assessed
  • D8 Code Coverage — Coverage not measured — test suite did not build
  • D9 Test Distribution — Test source is present (.fs) but the test-pyramid classifier reads C# only, so its unit/integration/BDD/E2E split couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
  • DM1 Domain Modelling — not scored — this repository shows only 1 of the 3 signals this check looks for (20 value object(s))
  • ED1 Event-Driven — not scored — this repository shows none of the 3 signals this check looks for
  • ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
  • ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this check looks for
  • P12 CI test-gate honesty — Reported, not scored — 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'.
  • P2 Observability — Observability was not assessed: this check reads a source model that does not carry this repository's product — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of a logging idiom this check recognises is NOT evidence that this repo lacks structured logging (it may log through its own ecosystem's logger). This is a gap in the analyzer, not a finding about this repository.
  • 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.
  • X2 Cancellation propagation — no async methods found
  • 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 — 6 finding(s)
D29 · Static Analysis (SAST) · High · ×4
  • High: github-actions-mutable-action-tag .github/workflows/dotnet.yml:29 — 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@v6`; resolve the SHA it points at today with `gh api repos/actions/checkout/commits/v6 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/dotnet.yml:35 — 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-node@<40-character SHA>`. This step references `actions/setup-node@v6`; resolve the SHA it points at today with `gh api repos/actions/setup-node/commits/v6 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/dotnet.yml:39 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/setup-dotnet@<40-character SHA>`. This step references `actions/setup-dotnet@v5`; resolve the SHA it points at today with `gh api repos/actions/setup-dotnet/commits/v5 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/dotnet.yml:43 — 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@v4`; resolve the SHA it points at today with `gh api repos/actions/cache/commits/v4 --jq .sha`.
D30 · Dependency Vulnerabilities · High CVE · ×2
  • High CVE: System.Net.Http 4.1.0 — System.Net.Http 4.1.0 (transitive) has a High advisory. https://github.com/advisories/[GHSA redacted]
  • High CVE: System.Security.Cryptography.X509Certificates 4.1.0 — System.Security.Cryptography.X509Certificates 4.1.0 (transitive) has a High advisory. https://github.com/advisories/[GHSA redacted]
Warning — 88 finding(s)
D4 · Code Duplication · Duplicated block (8 lines × 2) · ×13
  • Duplicated block (8 lines × 2) src/FSharpx.Collections.Experimental/BankersDeque.fs:321 — src/FSharpx.Collections.Experimental/BankersDeque.fs:321-328 | src/FSharpx.Collections.Experimental/RealTimeDeque.fs:433-440 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (8 lines × 2) src/FSharpx.Collections.Experimental/BatchedDeque.fs:191 — src/FSharpx.Collections.Experimental/BatchedDeque.fs:191-198 | src/FSharpx.Collections.Experimental/Deque.fs:203-210 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (8 lines × 2) src/FSharpx.Collections.Experimental/BatchedDeque.fs:283 — src/FSharpx.Collections.Experimental/BatchedDeque.fs:283-290 | src/FSharpx.Collections.Experimental/BatchedDeque.fs:309-316 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) src/FSharpx.Collections.Experimental/BatchedDeque.fs:312 — src/FSharpx.Collections.Experimental/BatchedDeque.fs:312-319 | src/FSharpx.Collections.Experimental/Deque.fs:311-318 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (8 lines × 2) src/FSharpx.Collections.Experimental/IntMap.fs:179 — src/FSharpx.Collections.Experimental/IntMap.fs:179-186 | src/FSharpx.Collections.Experimental/IntMap.fs:209-216 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (8 lines × 2) src/FSharpx.Collections.Experimental/Deque.fs:171 — src/FSharpx.Collections.Experimental/Deque.fs:171-180 | src/FSharpx.Collections.Experimental/Deque.fs:200-207 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) src/FSharpx.Collections.Experimental/Deque.fs:282 — src/FSharpx.Collections.Experimental/Deque.fs:282-289 | src/FSharpx.Collections.Experimental/Deque.fs:308-315 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) src/FSharpx.Collections.Experimental/RealTimeDeque.fs:461 — src/FSharpx.Collections.Experimental/RealTimeDeque.fs:461-469 | src/FSharpx.Collections.Experimental/RealTimeDeque.fs:478-485 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) src/FSharpx.Collections/RandomAccessList.fs:369 — src/FSharpx.Collections/RandomAccessList.fs:369-376 | src/FSharpx.Collections/PersistentVector.fs:392-399 — 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.
  • Duplicated block (8 lines × 2) src/FSharpx.Collections/PersistentHashMap.fs:147 — src/FSharpx.Collections/PersistentHashMap.fs:147-155 | src/FSharpx.Collections/PersistentHashMap.fs:429-436 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) src/FSharpx.Collections/PersistentHashMap.fs:502 — src/FSharpx.Collections/PersistentHashMap.fs:502-509 | src/FSharpx.Collections/PersistentHashMap.fs:571-578 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (8 lines × 2) src/FSharpx.Collections/PersistentHashMap.fs:542 — src/FSharpx.Collections/PersistentHashMap.fs:542-549 | src/FSharpx.Collections/PersistentHashMap.fs:619-626 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) src/FSharpx.Collections/PersistentHashMap.fs:647 — src/FSharpx.Collections/PersistentHashMap.fs:647-654 | src/FSharpx.Collections/PersistentHashMap.fs:674-682 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (7 lines × 2) · ×10
  • Duplicated block (7 lines × 2) src/FSharpx.Collections.Experimental/BankersDeque.fs:112 — src/FSharpx.Collections.Experimental/BankersDeque.fs:112-118 | src/FSharpx.Collections.Experimental/RealTimeDeque.fs:183-189 — 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.
  • Duplicated block (7 lines × 2) src/FSharpx.Collections.Experimental/BankersDeque.fs:119 — src/FSharpx.Collections.Experimental/BankersDeque.fs:119-125 | src/FSharpx.Collections.Experimental/RealTimeDeque.fs:190-196 — 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.
  • Duplicated block (7 lines × 2) src/FSharpx.Collections.Experimental/BankersDeque.fs:149 — src/FSharpx.Collections.Experimental/BankersDeque.fs:149-155 | src/FSharpx.Collections.Experimental/RealTimeDeque.fs:236-242 — 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.
  • Duplicated block (7 lines × 2) src/FSharpx.Collections.Experimental/BankersDeque.fs:156 — src/FSharpx.Collections.Experimental/BankersDeque.fs:156-162 | src/FSharpx.Collections.Experimental/RealTimeDeque.fs:243-249 — 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.
  • Duplicated block (7 lines × 2) src/FSharpx.Collections.Experimental/IntMap.fs:158 — src/FSharpx.Collections.Experimental/IntMap.fs:158-164 | src/FSharpx.Collections.Experimental/IntMap.fs:194-201 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) src/FSharpx.Collections.Experimental/Deque.fs:191 — src/FSharpx.Collections.Experimental/Deque.fs:191-198 | src/FSharpx.Collections.Experimental/Deque.fs:204-210 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (7 lines × 2) src/FSharpx.Collections.Experimental/Deque.fs:274 — src/FSharpx.Collections.Experimental/Deque.fs:274-280 | src/FSharpx.Collections.Experimental/Deque.fs:286-292 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) src/FSharpx.Collections.Experimental/RealTimeDeque.fs:433 — src/FSharpx.Collections.Experimental/RealTimeDeque.fs:433-440 | src/FSharpx.Collections.Experimental/RealTimeDeque.fs:447-453 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) src/FSharpx.Collections/Deque.fs:151 — src/FSharpx.Collections/Deque.fs:151-157 | src/FSharpx.Collections/PriorityQueue.fs:220-227 — 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.
  • Duplicated block (7 lines × 2) src/FSharpx.Collections/TaggedCollections.fs:851 — src/FSharpx.Collections/TaggedCollections.fs:851-857 | src/FSharpx.Collections/TaggedCollections.fs:865-872 — both copies are in the same file, so extract the 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 (6 lines × 2) · ×9
  • Duplicated block (6 lines × 2) src/FSharpx.Collections.Experimental/BankersDeque.fs:49 — src/FSharpx.Collections.Experimental/BankersDeque.fs:49-54 | src/FSharpx.Collections.Experimental/RealTimeDeque.fs:98-103 — 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.
  • Duplicated block (6 lines × 2) src/FSharpx.Collections.Experimental/IntMap.fs:363 — src/FSharpx.Collections.Experimental/IntMap.fs:363-368 | src/FSharpx.Collections.Experimental/IntMap.fs:375-380 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (6 lines × 2) src/FSharpx.Collections.Experimental/Deque.fs:301 — src/FSharpx.Collections.Experimental/Deque.fs:301-306 | src/FSharpx.Collections.Experimental/Deque.fs:313-318 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) src/FSharpx.Collections/Deque.fs:55 — src/FSharpx.Collections/Deque.fs:55-60 | src/FSharpx.Collections/Deque.fs:69-74 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) src/FSharpx.Collections/Deque.fs:74 — src/FSharpx.Collections/Deque.fs:74-79 | src/FSharpx.Collections/Deque.fs:124-129 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) src/FSharpx.Collections/DList.fs:120 — src/FSharpx.Collections/DList.fs:120-125 | src/FSharpx.Collections/DList.fs:132-137 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) src/FSharpx.Collections/DList.fs:171 — src/FSharpx.Collections/DList.fs:171-176 | src/FSharpx.Collections/PriorityQueue.fs:220-226 — 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.
  • Duplicated block (6 lines × 2) src/FSharpx.Collections/RandomAccessList.fs:423 — src/FSharpx.Collections/RandomAccessList.fs:423-428 | src/FSharpx.Collections/PersistentVector.fs:184-190 — 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.
  • Duplicated block (6 lines × 2) src/FSharpx.Collections/TaggedCollections.fs:704 — src/FSharpx.Collections/TaggedCollections.fs:704-709 | src/FSharpx.Collections/TaggedCollections.fs:712-717 — both copies are in the same file, so extract the 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 (9 lines × 2) · ×7
  • Duplicated block (9 lines × 2) src/FSharpx.Collections.Experimental/BankersDeque.fs:170 — src/FSharpx.Collections.Experimental/BankersDeque.fs:170-178 | src/FSharpx.Collections.Experimental/RealTimeDeque.fs:257-265 — 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.
  • Duplicated block (9 lines × 2) src/FSharpx.Collections.Experimental/BankersDeque.fs:195 — src/FSharpx.Collections.Experimental/BankersDeque.fs:195-203 | src/FSharpx.Collections.Experimental/RealTimeDeque.fs:282-290 — 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.
  • Duplicated block (9 lines × 2) src/FSharpx.Collections.Experimental/BankersDeque.fs:206 — src/FSharpx.Collections.Experimental/BankersDeque.fs:206-214 | src/FSharpx.Collections.Experimental/RealTimeDeque.fs:293-301 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (9 lines × 2) src/FSharpx.Collections.Experimental/BankersDeque.fs:234 — src/FSharpx.Collections.Experimental/BankersDeque.fs:234-242 | src/FSharpx.Collections.Experimental/RealTimeDeque.fs:321-329 — 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.
  • Duplicated block (9 lines × 2) src/FSharpx.Collections.Experimental/IntMap.fs:714 — src/FSharpx.Collections.Experimental/IntMap.fs:714-722 | src/FSharpx.Collections.Experimental/IntMap.fs:728-736 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) src/FSharpx.Collections.Experimental/ChampHashMap.fs:87 — src/FSharpx.Collections.Experimental/ChampHashMap.fs:87-95 | src/FSharpx.Collections.Experimental/ChampHashMap.fs:110-118 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) src/FSharpx.Collections/PersistentHashMap.fs:95 — src/FSharpx.Collections/PersistentHashMap.fs:95-103 | src/FSharpx.Collections/PersistentHashMap.fs:106-114 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (5 lines × 2) · ×7
  • Duplicated block (5 lines × 2) src/FSharpx.Collections.Experimental/BankersDeque.fs:33 — src/FSharpx.Collections.Experimental/BankersDeque.fs:33-37 | src/FSharpx.Collections.Experimental/RealTimeDeque.fs:82-86 — 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.
  • Duplicated block (5 lines × 2) src/FSharpx.Collections.Experimental/BankersDeque.fs:39 — src/FSharpx.Collections.Experimental/BankersDeque.fs:39-43 | src/FSharpx.Collections.Experimental/RealTimeDeque.fs:88-92 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `src/FSharpx.Collections.Experimental/BankersDeque.fs:39` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) src/FSharpx.Collections.Experimental/BinomialHeap.fs:128 — src/FSharpx.Collections.Experimental/BinomialHeap.fs:128-132 | src/FSharpx.Collections.Experimental/PairingHeap.fs:41-45 — 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.
  • Duplicated block (5 lines × 2) src/FSharpx.Collections.Experimental/IntMap.fs:151 — src/FSharpx.Collections.Experimental/IntMap.fs:151-155 | src/FSharpx.Collections.Experimental/IntMap.fs:187-191 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) src/FSharpx.Collections.Experimental/IntMap.fs:172 — src/FSharpx.Collections.Experimental/IntMap.fs:172-176 | src/FSharpx.Collections.Experimental/IntMap.fs:202-206 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) src/FSharpx.Collections.Experimental/IntMap.fs:467 — src/FSharpx.Collections.Experimental/IntMap.fs:467-471 | src/FSharpx.Collections.Experimental/IntMap.fs:480-484 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) src/FSharpx.Collections.Experimental/RealTimeDeque.fs:69 — src/FSharpx.Collections.Experimental/RealTimeDeque.fs:69-73 | src/FSharpx.Collections.Experimental/RealTimeDeque.fs:87-91 — both copies are in the same file, so extract the 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 (12 lines × 2) · ×6
  • Duplicated block (12 lines × 2) src/FSharpx.Collections.Experimental/BatchedDeque.fs:31 — src/FSharpx.Collections.Experimental/BatchedDeque.fs:31-42 | src/FSharpx.Collections.Experimental/Deque.fs:55-66 — 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.
  • Duplicated block (12 lines × 2) src/FSharpx.Collections.Experimental/BatchedDeque.fs:321 — src/FSharpx.Collections.Experimental/BatchedDeque.fs:321-332 | src/FSharpx.Collections.Experimental/Deque.fs:320-331 — 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.
  • Duplicated block (12 lines × 2) src/FSharpx.Collections.Experimental/BinomialHeap.fs:266 — src/FSharpx.Collections.Experimental/BinomialHeap.fs:266-277 | src/FSharpx.Collections.Experimental/PairingHeap.fs:247-258 — 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.
  • Duplicated block (12 lines × 2) src/FSharpx.Collections/RandomAccessList.fs:93 — src/FSharpx.Collections/RandomAccessList.fs:93-104 | src/FSharpx.Collections/PersistentVector.fs:82-93 — 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.
  • Duplicated block (12 lines × 2) src/FSharpx.Collections/RandomAccessList.fs:237 — src/FSharpx.Collections/RandomAccessList.fs:237-248 | src/FSharpx.Collections/PersistentVector.fs:272-283 — 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.
  • Duplicated block (12 lines × 2) src/FSharpx.Collections/PersistentVector.fs:88 — src/FSharpx.Collections/PersistentVector.fs:88-99 | src/FSharpx.Collections/PersistentVector.fs:278-289 — both copies are in the same file, so extract the 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) · ×5
  • Duplicated block (11 lines × 2) src/FSharpx.Collections.Experimental/BankersDeque.fs:246 — src/FSharpx.Collections.Experimental/BankersDeque.fs:246-256 | src/FSharpx.Collections.Experimental/RealTimeDeque.fs:333-343 — 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.
  • Duplicated block (11 lines × 2) src/FSharpx.Collections.Experimental/DList.fs:86 — src/FSharpx.Collections.Experimental/DList.fs:86-96 | src/FSharpx.Collections.Experimental/DList.fs:99-109 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (11 lines × 2) src/FSharpx.Collections/PersistentVector.fs:72 — src/FSharpx.Collections/PersistentVector.fs:72-82 | src/FSharpx.Collections/PersistentVector.fs:262-272 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) src/FSharpx.Collections/PersistentVector.fs:146 — src/FSharpx.Collections/PersistentVector.fs:146-156 | src/FSharpx.Collections/PersistentVector.fs:342-352 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (11 lines × 2) src/FSharpx.Collections/PersistentHashMap.fs:782 — src/FSharpx.Collections/PersistentHashMap.fs:782-792 | src/FSharpx.Collections/PersistentHashMap.fs:877-887 — both copies are in the same file, so extract the 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 (15 lines × 2) · ×3
  • Duplicated block (15 lines × 2) src/FSharpx.Collections.Experimental/BatchedDeque.fs:397 — src/FSharpx.Collections.Experimental/BatchedDeque.fs:397-411 | src/FSharpx.Collections.Experimental/Deque.fs:396-410 — 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.
  • Duplicated block (15 lines × 2) src/FSharpx.Collections.Experimental/BinaryRandomAccessList.fs:303 — src/FSharpx.Collections.Experimental/BinaryRandomAccessList.fs:303-317 | src/FSharpx.Collections.Experimental/SkewBinaryRandomAccessList.fs:288-302 — 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.
  • Duplicated block (15 lines × 2) src/FSharpx.Collections/Deque.fs:12 — src/FSharpx.Collections/Deque.fs:12-26 | src/FSharpx.Collections/Queue.fs:8-22 — 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.
D4 · Code Duplication · Duplicated block (13 lines × 2) · ×3
  • Duplicated block (13 lines × 2) src/FSharpx.Collections.Experimental/BatchedDeque.fs:85 — src/FSharpx.Collections.Experimental/BatchedDeque.fs:85-97 | src/FSharpx.Collections.Experimental/Deque.fs:95-107 — 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.
  • Duplicated block (13 lines × 2) src/FSharpx.Collections.Experimental/BatchedDeque.fs:243 — src/FSharpx.Collections.Experimental/BatchedDeque.fs:243-255 | src/FSharpx.Collections.Experimental/Deque.fs:242-254 — 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.
  • Duplicated block (13 lines × 2) src/FSharpx.Collections/RandomAccessList.fs:184 — src/FSharpx.Collections/RandomAccessList.fs:184-196 | src/FSharpx.Collections/PersistentVector.fs:208-220 — 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.
D4 · Code Duplication · Duplicated block (10 lines × 2) · ×3
  • Duplicated block (10 lines × 2) src/FSharpx.Collections.Experimental/BankersDeque.fs:218 — src/FSharpx.Collections.Experimental/BankersDeque.fs:218-227 | src/FSharpx.Collections.Experimental/RealTimeDeque.fs:305-314 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (10 lines × 2) src/FSharpx.Collections.Experimental/BankersDeque.fs:360 — src/FSharpx.Collections.Experimental/BankersDeque.fs:360-369 | src/FSharpx.Collections.Experimental/RealTimeDeque.fs:472-481 — 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.
  • Duplicated block (10 lines × 2) src/FSharpx.Collections/DList.fs:52 — src/FSharpx.Collections/DList.fs:52-61 | src/FSharpx.Collections/DList.fs:67-76 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D2 · Cognitive Complexity · BitmapIndexedNode.FSharpx.Collections.INode.without (cognitive 24) · ×2
  • BitmapIndexedNode.FSharpx.Collections.INode.without (cognitive 24) src/FSharpx.Collections/PersistentHashMap.fs:646 — BitmapIndexedNode.FSharpx.Collections.INode.without has cognitive complexity 24 (threshold 15). Drivers by points: if/else 24 (nesting depth added 12). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
  • BitmapIndexedNode.FSharpx.Collections.INode.without (cognitive 24) src/FSharpx.Collections/PersistentHashMap.fs:673 — BitmapIndexedNode.FSharpx.Collections.INode.without has cognitive complexity 24 (threshold 15). Drivers by points: if/else 24 (nesting depth added 12). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
D1 · Cyclomatic Complexity · IntMap.mergeWithKey' (cyclomatic 27) · ×1
  • IntMap.mergeWithKey' (cyclomatic 27) src/FSharpx.Collections.Experimental/IntMap.fs:333 — IntMap.mergeWithKey' has cyclomatic complexity 27 (threshold 15). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
D1 · Cyclomatic Complexity · Node.remove (cyclomatic 17) · ×1
  • Node.remove (cyclomatic 17) src/FSharpx.Collections.Experimental/ChampHashMap.fs:212 — Node.remove 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.
D2 · Cognitive Complexity · BitmapIndexedNode.FSharpx.Collections.INode.assoc (cognitive 41) · ×1
  • BitmapIndexedNode.FSharpx.Collections.INode.assoc (cognitive 41) src/FSharpx.Collections/PersistentHashMap.fs:569 — BitmapIndexedNode.FSharpx.Collections.INode.assoc has cognitive complexity 41 (threshold 15). Drivers by points: if/else 37, loops 4 (nesting depth added 23). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
D2 · Cognitive Complexity · BitmapIndexedNode.FSharpx.Collections.INode.assoc (cognitive 34) · ×1
  • BitmapIndexedNode.FSharpx.Collections.INode.assoc (cognitive 34) src/FSharpx.Collections/PersistentHashMap.fs:500 — BitmapIndexedNode.FSharpx.Collections.INode.assoc has cognitive complexity 34 (threshold 15). Drivers by points: if/else 31, loops 3 (nesting depth added 18). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
D2 · Cognitive Complexity · SetTree.rebalance (cognitive 28) · ×1
  • SetTree.rebalance (cognitive 28) src/FSharpx.Collections/TaggedCollections.fs:71 — SetTree.rebalance has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14, match/switch 14 (nesting depth added 16). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
D2 · Cognitive Complexity · MapTree.rebalance (cognitive 28) · ×1
  • MapTree.rebalance (cognitive 28) src/FSharpx.Collections/TaggedCollections.fs:847 — MapTree.rebalance has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14, match/switch 14 (nesting depth added 16). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
D2 · Cognitive Complexity · Node.remove (cognitive 27) · ×1
  • Node.remove (cognitive 27) src/FSharpx.Collections.Experimental/ChampHashMap.fs:212 — Node.remove has cognitive complexity 27 (threshold 15). Drivers by points: if/else 19, match/switch 6, boolean chains 2 (nesting depth added 13). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · PersistentHashMap`2.Add (cognitive 20) · ×1
  • PersistentHashMap`2.Add (cognitive 20) src/FSharpx.Collections/PersistentHashMap.fs:833 — PersistentHashMap`2.Add has cognitive complexity 20 (threshold 15). Drivers by points: if/else 19, boolean chains 1 (nesting depth added 7). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
D2 · Cognitive Complexity · LeftistHeap`1.merge (cognitive 18) · ×1
  • LeftistHeap`1.merge (cognitive 18) src/FSharpx.Collections.Experimental/LeftistHeap.fs:26 — LeftistHeap`1.merge has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, match/switch 2 (nesting depth added 9). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
D2 · Cognitive Complexity · Heap`1.ofSeq (cognitive 18) · ×1
  • Heap`1.ofSeq (cognitive 18) src/FSharpx.Collections/PriorityQueue.fs:93 — Heap`1.ofSeq has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, match/switch 2 (nesting depth added 9). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
D2 · Cognitive Complexity · Heap`1.Tail (cognitive 17) · ×1
  • Heap`1.Tail (cognitive 17) src/FSharpx.Collections/PriorityQueue.fs:167 — Heap`1.Tail has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, match/switch 6 (nesting depth added 7). This file's own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes — or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages.
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. 4 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 · Secret passed as a command-line argument · ×1
  • Secret passed as a command-line argument — 2 CI command(s) pass a credential as a bare command-line argument, where it is visible in the runner's process table to any other process on the host (and to anything that logs a command line): repo-assist.lock.yml: header=$(printf "x-access-token:%s" "${GH_AW_FETCH_TOKEN}" | base64 -w 0); repo-assist.lock.yml: header=$(printf "x-access-token:%s" "${GH_AW_FETCH_TOKEN}" | base64 -w 0). Pass the credential through the environment instead (an `env:` mapping on the step, read by the tool from its own variable) or on stdin, so it never appears in an argument vector.
D4 · Code Duplication · Duplicated block (16 lines × 2) · ×1
  • Duplicated block (16 lines × 2) src/FSharpx.Collections.Experimental/BatchedQueue.fs:41 — src/FSharpx.Collections.Experimental/BatchedQueue.fs:41-56 | src/FSharpx.Collections.Experimental/HoodMelvilleQueue.fs:86-101 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (14 lines × 4) · ×1
  • Duplicated block (14 lines × 4) src/FSharpx.Collections.Experimental/BankersDeque.fs:397 — src/FSharpx.Collections.Experimental/BankersDeque.fs:397-410 | src/FSharpx.Collections.Experimental/BatchedDeque.fs:340-353 | src/FSharpx.Collections.Experimental/Deque.fs:339-352 | src/FSharpx.Collections.Experimental/RealTimeDeque.fs:509-522 — 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.
D4 · Code Duplication · Duplicated block (14 lines × 3) · ×1
  • Duplicated block (14 lines × 3) src/FSharpx.Collections.Experimental/BatchedQueue.fs:90 — src/FSharpx.Collections.Experimental/BatchedQueue.fs:90-103 | src/FSharpx.Collections.Experimental/HoodMelvilleQueue.fs:147-160 | src/FSharpx.Collections.Experimental/PhysicistQueue.fs:134-147 — 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.
D4 · Code Duplication · Duplicated block (13 lines × 4) · ×1
  • Duplicated block (13 lines × 4) src/FSharpx.Collections.Experimental/BankersQueue.fs:108 — src/FSharpx.Collections.Experimental/BankersQueue.fs:108-120 | src/FSharpx.Collections.Experimental/BatchedQueue.fs:94-106 | src/FSharpx.Collections.Experimental/HoodMelvilleQueue.fs:151-163 | src/FSharpx.Collections.Experimental/PhysicistQueue.fs:138-150 — 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.
D4 · Code Duplication · Duplicated block (10 lines × 4) · ×1
  • Duplicated block (10 lines × 4) src/FSharpx.Collections.Experimental/BatchedDeque.fs:56 — src/FSharpx.Collections.Experimental/BatchedDeque.fs:56-65 | src/FSharpx.Collections.Experimental/BatchedDeque.fs:75-84 | src/FSharpx.Collections.Experimental/BatchedDeque.fs:214-223 | src/FSharpx.Collections.Experimental/BatchedDeque.fs:233-242 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (9 lines × 4) · ×1
  • Duplicated block (9 lines × 4) src/FSharpx.Collections.Experimental/BankersDeque.fs:331 — src/FSharpx.Collections.Experimental/BankersDeque.fs:331-339 | src/FSharpx.Collections.Experimental/BankersDeque.fs:362-370 | src/FSharpx.Collections.Experimental/RealTimeDeque.fs:443-451 | src/FSharpx.Collections.Experimental/RealTimeDeque.fs:474-482 — there are 4 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart.
D8 · Code Coverage · Coverage not measured · ×1
  • Coverage not measured — test suite did not build — Coverage NOT MEASURED: this repository did not build in our analyzer environment (a C#/MSBuild compiler error), so no coverage could be collected. It is excluded from the score rather than counted as a near-zero defect. We did not read WHERE the failing diagnostic is, so this does not claim the fault is in your test code — a repository written for an older SDK band can compile for you and not for us. Run `dotnet build` on this commit; if it succeeds, the gap is ours. Committing the Cobertura/OpenCover/lcov report your CI already produces also lets us measure real coverage without building anything.
Recommendation — 17 finding(s)
D24 · Comment Value · redundant comment · ×3
  • redundant comment docs/csharp/PersistentHashMap.cs:15 — "[create-hashmap]" — delete - the [/create-hashmap] marker already labels this section
  • redundant comment docs/csharp/PersistentHashMap.cs:16 — "Create an empty PersistentHashMap and add some elements" — delete - the code is self-evident; keep only the /[/...] markers for navigation
  • redundant comment docs/csharp/PersistentHashMap.cs:25 — "Check no. of elements in the PersistentHashMap" — delete - count() already says this
D34 · Knowledge Freshness · Largest orphaned file · ×3
  • Largest orphaned file src/FSharpx.Collections/TaggedCollections.fs — One of the largest files with no living knowledge remaining — a reasonable place to start a read-through before the aggregate risk above bites.
  • Largest orphaned file src/FSharpx.Collections.Experimental/IntMap.fs — One of the largest files with no living knowledge remaining — a reasonable place to start a read-through before the aggregate risk above bites.
  • Largest orphaned file src/FSharpx.Collections.Experimental/RealTimeDeque.fs — One of the largest files with no living knowledge remaining — a reasonable place to start a read-through before the aggregate risk above bites.
D30 · Dependency Vulnerabilities · Low CVE · ×2
  • Low CVE: NuGet.Packaging 7.0.1 — NuGet.Packaging 7.0.1 (direct) has a Low advisory. https://github.com/advisories/[GHSA redacted]
  • Low CVE: NuGet.Protocol 7.0.1 — NuGet.Protocol 7.0.1 (direct) has a Low advisory. https://github.com/advisories/[GHSA redacted]
D11 · Test Reliability · Test reliability not included · ×1
  • Test reliability not included — Test source is present (.fs) but the built-in reliability runner does not support this repository's ecosystem, so flakiness couldn't be assessed. Not scored — this is a gap in the analyzer's language coverage, not a finding about this repository.
D16 · Bus Factor · Off-boarding risk · ×1
  • Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 1 significant file(s) lose their only recent owner: src/FSharpx.Collections/Collections.fs. Pair on, review, or document these before any departure.
D20 · ADR Quality · No ADRs found · ×1
  • No ADRs found — No ADRs found at common paths; consider documenting architectural decisions in Docs/ADL/ or similar.
D28 · Secrets (history) · Scanner output unparseable · ×1
  • Scanner output unparseable — not a clean result — gitleaks produced no output — a clean scan reports `[]`, so this is a scan that did not run, not a repo without secrets. The scanner ran but its output could not be parsed into the expected shape, so this is reported as a measurement gap rather than a clean pass.
D3 · God Classes · God Classes not included (check did not complete) · ×1
  • God Classes not included (check did not complete) — God Classes could not be assessed in this run — the check did not complete, so it is not scored. This is a gap in the analyzer, not a finding about this repository.
D34 · Knowledge Freshness · Concentrated knowledge decay · ×1
  • Concentrated knowledge decay — 32 of 43 significant files have no living knowledge, while the repository is still being changed at a low rate (21 commit(s) in the last 90 days) — so this is one repo-wide knowledge-decay state, not 32 separate risks. The code moved on without the people who understood these files: document them or schedule a read-through before the next change lands in them.
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 artifact signing · ×1
  • No artifact signing — No artifact signing found in CI — sign your released artifacts with whatever your ecosystem ships (a GPG/minisign detached signature — or `cosign sign-blob` — over the release archives, or over a checksum file published alongside them, Authenticode via signtool, or `dotnet nuget sign` for packages) so consumers can verify what you built.
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.
Info — 3 finding(s)
D12 · Dependency Hygiene · Dependency hygiene not measured · ×1
  • Dependency hygiene not measured — no packages were read — This repository's projects (.fs) are MSBuild/NuGet projects and their `<PackageReference>` dependencies are exactly what this dimension assesses — but `dotnet list package` returned no packages for them, so there was nothing to assess. Zero packages read is NOT a clean dependency tree, so this is NOT SCORED. This is a gap in the analysis run (restore or project-load failed for these projects), not a verdict about this repository.
D19 · Documentation Quality · XML-doc coverage · ×1
  • XML-doc coverage: csharp docs/csharp/csharp.csproj — csharp: 0 % XML-doc coverage (0/2).
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 .0
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 .4artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiesdotnetdotnet list FSharpx.Collections.sln package --vulnerable --include-transitive --format json4artifacts/raw/dotnet-vulnerable.json
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 fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update0
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 --format json --recursive .0artifacts/raw/osv-scanner.json
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 019fd54c-231c-7e7f-abc5-55ca9b0734f2 · 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