Executive summary
Read through the Template lens: this is a template / kata / sample / demo — code meant to be read or copied, not operated. The ship-it and operate-it dimensions (CI/CD, observability, ADRs, architecture docs, deployment security) are N/A, and the colour bands on what remains are relaxed to what an example needs. Code correctness stays near-strict; the score is absolute and comparable across repos.
draphyz/DDD is sound in substance but carries real gaps (69%). 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 (87%) — the structure is clean and changes stay contained. Security (79%) is solid too.
The area that most needs attention is Readiness (61%) — 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.
Leadership focus, highest impact first: 1 Dormant codebase finding(s) in Knowledge Freshness (Knowledge Freshness); 8 High CVE finding(s) in Dependency Vulnerabilities (Dependency Vulnerabilities); 7 Medium CVE finding(s) in Dependency Vulnerabilities (Dependency Vulnerabilities).
For scale: Medium (~33,416 production lines); rebuilding it from scratch would take roughly ~0.5 person-years (~1 engineer). Approximate, ±~30%.
Encouragingly, the gaps are in documentation and release process — not in the code's correctness, structure or security, which are strong. They're low-risk to close, and doing so would lift the grade without re-engineering anything that already works.
New since the last scan (36+)
- D19 · Low XML-doc coverage: DDD.Core.Abstractions(net48) Src/DDD.Core.Abstractions/DDD.Core.Abstractions.csproj
- D19 · Low XML-doc coverage: DDD.Core.Abstractions(netstandard2.1) Src/DDD.Core.Abstractions/DDD.Core.Abstractions.csproj
- D19 · Low XML-doc coverage: DDD.Core.Dapper(net48) Src/DDD.Core.Dapper/DDD.Core.Dapper.csproj
- D19 · Low XML-doc coverage: DDD.Core.Dapper(netstandard2.1) Src/DDD.Core.Dapper/DDD.Core.Dapper.csproj
- D19 · Low XML-doc coverage: DDD.Core(net48) Src/DDD.Core/DDD.Core.csproj
- D19 · Low XML-doc coverage: DDD.Core(netstandard2.1) Src/DDD.Core/DDD.Core.csproj
- D19 · Low XML-doc coverage: DDD.HealthcareDelivery(net48) Src/DDD.HealthcareDelivery/DDD.HealthcareDelivery.csproj
- D19 · Low XML-doc coverage: DDD.HealthcareDelivery(netstandard2.1) Src/DDD.HealthcareDelivery/DDD.HealthcareDelivery.csproj
- D19 · Low XML-doc coverage: DDD.Common(net48) Src/DDD.Common/DDD.Common.csproj
- D19 · Low XML-doc coverage: DDD.Common(netstandard2.1) Src/DDD.Common/DDD.Common.csproj
- D19 · Low XML-doc coverage: DDD.Core.EntityFramework(net48) Src/DDD.Core.EntityFramework/DDD.Core.EntityFramework.csproj
- D19 · Low XML-doc coverage: DDD.Core.EntityFramework(netstandard2.1) Src/DDD.Core.EntityFramework/DDD.Core.EntityFramework.csproj
- D19 · Low XML-doc coverage: DDD.Core.FluentValidation(net48) Src/DDD.Core.FluentValidation/DDD.Core.FluentValidation.csproj
- D19 · Low XML-doc coverage: DDD.Core.FluentValidation(netstandard2.1) Src/DDD.Core.FluentValidation/DDD.Core.FluentValidation.csproj
- D19 · Low XML-doc coverage: DDD.Core.Newtonsoft(net48) Src/DDD.Core.Newtonsoft/DDD.Core.Newtonsoft.csproj
- D19 · Low XML-doc coverage: DDD.Core.Newtonsoft(netstandard2.1) Src/DDD.Core.Newtonsoft/DDD.Core.Newtonsoft.csproj
- D19 · Low XML-doc coverage: DDD.Core.Messages(net48) Src/DDD.Core.Messages/DDD.Core.Messages.csproj
- D19 · Low XML-doc coverage: DDD.Core.Messages(netstandard2.1) Src/DDD.Core.Messages/DDD.Core.Messages.csproj
- D19 · Low XML-doc coverage: DDD.HealthcareDelivery.Messages(net48) Src/DDD.HealthcareDelivery.Messages/DDD.HealthcareDelivery.Messages.csproj
- D19 · Low XML-doc coverage: DDD.HealthcareDelivery.Messages(netstandard2.1) Src/DDD.HealthcareDelivery.Messages/DDD.HealthcareDelivery.Messages.csproj
- D19 · Low XML-doc coverage: DDD.Common.Messages(net48) Src/DDD.Common.Messages/DDD.Common.Messages.csproj
- D19 · Low XML-doc coverage: DDD.Common.Messages(netstandard2.1) Src/DDD.Common.Messages/DDD.Common.Messages.csproj
- D19 · Low XML-doc coverage: DDD.Core.SimpleInjector(net48) Src/DDD.Core.SimpleInjector/DDD.Core.SimpleInjector.csproj
- D19 · Low XML-doc coverage: DDD.Core.SimpleInjector(netstandard2.1) Src/DDD.Core.SimpleInjector/DDD.Core.SimpleInjector.csproj
- D19 · Low XML-doc coverage: DDD.Core.Polly(net48) Src/DDD.Core.Polly/DDD.Core.Polly.csproj
- D19 · Low XML-doc coverage: DDD.Core.Polly(netstandard2.1) Src/DDD.Core.Polly/DDD.Core.Polly.csproj
- D19 · Low XML-doc coverage: DDD.Core.Dapper.Oracle(net48) Src/DDD.Core.Dapper.Oracle/DDD.Core.Dapper.Oracle.csproj
- D19 · Low XML-doc coverage: DDD.Core.Dapper.Oracle(netstandard2.1) Src/DDD.Core.Dapper.Oracle/DDD.Core.Dapper.Oracle.csproj
- D19 · Low XML-doc coverage: DDD.Core.Cronos(net48) Src/DDD.Core.Cronos/DDD.Core.Cronos.csproj
- D19 · Low XML-doc coverage: DDD.Core.Cronos(netstandard2.1) Src/DDD.Core.Cronos/DDD.Core.Cronos.csproj
- D19 · Low XML-doc coverage: DDD.Core.SimpleInjector.FluentValidation(net48) Src/DDD.Core.SimpleInjector.FluentValidation/DDD.Core.SimpleInjector.FluentValidation.csproj
- D19 · Low XML-doc coverage: DDD.Core.SimpleInjector.FluentValidation(netstandard2.1) Src/DDD.Core.SimpleInjector.FluentValidation/DDD.Core.SimpleInjector.FluentValidation.csproj
- D19 · Low XML-doc coverage: DDD.Core.SimpleInjector.EntityFramework(net48) Src/DDD.Core.SimpleInjector.EntityFramework/DDD.Core.SimpleInjector.EntityFramework.csproj
- D19 · Low XML-doc coverage: DDD.Core.SimpleInjector.EntityFramework(netstandard2.1) Src/DDD.Core.SimpleInjector.EntityFramework/DDD.Core.SimpleInjector.EntityFramework.csproj
- ED5 · Non-idempotent mutation: Prescriptions.PharmaceuticalPrescriptionCreator.HandleAsync Src/DDD.HealthcareDelivery/Application/Prescriptions/PharmaceuticalPrescriptionCreator.cs
- ED5 · Non-idempotent mutation: Prescriptions.PharmaceuticalPrescriptionCreator.HandleAsync Src/DDD.HealthcareDelivery/Application/Prescriptions/PharmaceuticalPrescriptionCreator.cs
Rebuild cost & value ~ Modeled — €23,000–€120,000
| Cost to rebuild | €23,000–€120,000 |
| Domain complexity | Standard |
| Quality factor | 1.0× (at 69% quality) |
| Size & shape | Medium · 55% boilerplate · 34% straight-line · 11% branching logic |
This codebase represents roughly ~0.5 person-years of build effort (about ~€70,000 to rebuild). Its weakest lens is Readiness at 61% — the part of that asset most exposed by the findings below.
Top priorities
Diagnosis — what's actually going on
Architecture — module dependency graph
At a glance — Code Health
At a glance — Architecture
At a glance — Maturity
At a glance — Readiness
At a glance — Security
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A06:2021 — Vulnerable & Outdated Components | 15 | High / Critical |
Roadmap
Begin by addressing the dormant codebase to ensure knowledge freshness. Next, resolve all eight high-severity and seven medium-severity dependency vulnerabilities to secure the project. Then, establish a changelog to track release history. Finally, add a build and run section to the root README to help new contributors get started quickly.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Resolve the 1 Dormant codebase finding(s) in Knowledge Freshness. | +2.5 pts | Low | Knowledge Freshness |
| Resolve the 8 High CVE finding(s) in Dependency Vulnerabilities. | +2.2 pts | Low | Dependency Vulnerabilities |
| Resolve the 7 Medium CVE finding(s) in Dependency Vulnerabilities. | +2.0 pts | Low | Dependency Vulnerabilities |
| Resolve the 3 redundant comment finding(s) in Comment Value — start with BelgianSocialSecurityNumberTests.cs (2), SqlServerEventConfiguration.cs. | +1.3 pts | Low | Comment Value |
| Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release. | +1.7 pts | Medium | Release Hygiene |
| Add a build/run (quick start) section to the root README — the first thing a newcomer needs. | +1.7 pts | Medium | Documentation (README) |
| Resolve the 26 Deprecated finding(s) in Dependency Hygiene. | +1.5 pts | Medium | Dependency Hygiene |
| Adopt EF migrations (dotnet ef migrations add + Migrate() on startup) as the explicit, versioned schema strategy — no migration mechanism was detected. | +1.3 pts | Medium | Schema migrations |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| Src/DDD.HealthcareDelivery/DDD.HealthcareDelivery.csproj | 3.6 | Mixed | Explicit Debt: NoWarnInCsproj |
| Src/DDD.Core/DDD.Core.csproj | 3.6 | Mixed | Explicit Debt: NoWarnInCsproj |
| Src/DDD.Core.SimpleInjector/DDD.Core.SimpleInjector.csproj | 3.6 | Mixed | Explicit Debt: NoWarnInCsproj |
| Src/DDD.Core.SimpleInjector.FluentValidation/DDD.Core.SimpleInjector.FluentValidation.csproj | 3.6 | Mixed | Explicit Debt: NoWarnInCsproj |
| Src/DDD.Core.Polly/DDD.Core.Polly.csproj | 3.6 | Mixed | Explicit Debt: NoWarnInCsproj |
| Src/DDD.Core.FluentValidation/DDD.Core.FluentValidation.csproj | 3.6 | Mixed | Explicit Debt: NoWarnInCsproj |
| Src/DDD.Core.EntityFramework/DDD.Core.EntityFramework.csproj | 3.6 | Mixed | Explicit Debt: NoWarnInCsproj |
| Src/DDD.Core.Dapper/DDD.Core.Dapper.csproj | 3.6 | Mixed | Explicit Debt: NoWarnInCsproj |
| Src/DDD.Core.Abstractions/DDD.Core.Abstractions.csproj | 3.6 | Mixed | Explicit Debt: NoWarnInCsproj |
| Src/DDD.Common/DDD.Common.csproj | 3.6 | Mixed | Explicit Debt: NoWarnInCsproj |
| Src/DDD.Core.Xunit/DDD.Core.Xunit.csproj | 5.8 | Mixed | Explicit Debt: NoWarnInCsproj |
| Src/DDD.Core/Infrastructure/DependencyInjection/AppRegistrationOptions.cs | 6.3 | Near-clean | God Classes: TooManyMethods: Builder |
| Src/DDD.Common/Domain/Enumeration.cs | 6.3 | Near-clean | God Classes: TooManyMethods: Enumeration |
| Test/DDD.HealthcareDelivery.UnitTests/Domain/Prescriptions/PrescriptionTests.cs | 7.0 | Near-clean | Test Quality: No assertions: Revoke_RevocablePrescription_AddsPrescriptionRevokedEvent |
| Src/DDD.Common/Domain/FlagsEnumeration.cs | 7.8 | Near-clean | God Classes: TooManyMethods: FlagsEnumeration |
| Src/DDD.Core/Application/ContextualQueryProcessor.cs | 7.8 | Near-clean | Code Duplication: Duplicated block (7 lines × 2) |
| Src/DDD.Core/Domain/DomainEntity.cs | 7.8 | Near-clean | Cohesion (LCOM4): Low cohesion: DomainEntity (LCOM4 4) |
| Src/DDD.Core.Newtonsoft/DDD.Core.Newtonsoft.csproj | 7.8 | Near-clean | Documentation Quality: Low XML-doc coverage: DDD.Core.Newtonsoft(net48) |
| Src/DDD.Core.Messages/DDD.Core.Messages.csproj | 7.8 | Near-clean | Documentation Quality: Low XML-doc coverage: DDD.Core.Messages(net48) |
| Src/DDD.HealthcareDelivery.Messages/DDD.HealthcareDelivery.Messages.csproj | 7.8 | Near-clean | Documentation Quality: Low XML-doc coverage: DDD.HealthcareDelivery.Messages(net48) |
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. 41 of 45 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 4 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.7 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
What we checked — 45 dimensions across the health lenses
- 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, 165 of 397 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line.
- 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.
- 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.
Tools & methods
| Method | Backs | Version | Evaluator |
|---|---|---|---|
| Roslyn static analysis | Complexity, cohesion, coupling, dead code, API surface, layering | 5.3.0 | ✓ deterministic |
| Native secret scanner | Hardcoded secrets / credentials | 1.0.0 | ✓ deterministic |
| jscpd | Code duplication | — | ✓ deterministic |
| Coverage (coverlet / dotnet-coverage) | Line & branch coverage | 10.0.301 | ✓ deterministic |
| NuGet / dotnet | Outdated, vulnerable & deprecated dependencies | 10.0.301 | ✓ deterministic |
| git / LibGit2Sharp | Churn hotspots, knowledge concentration, history | 2.43.0 · 0.31.0 | ✓ deterministic |
| gitleaks · semgrep · trivy · checkov | Secrets in history, SAST, CVEs, IaC & container, PII / GDPR | 1.86.0 · 0.69.3 | ✓ deterministic |
| LLM (sampled · advisory) | Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurement | Qwen/Qwen3.5-35B-A3B | ◐ LLM · sampled · advisory |
Run transparency — what happened this run
- D31 IaC & Container Security — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.
- D32 Data Compliance (PII/GDPR) — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.
- D33 JS/npm Dependency Vulnerabilities — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.
- D36 Supply-chain Provenance & Signing — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.
- D37 Vulnerability-disclosure Policy — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.
- D38 OSV Dependency Vulnerabilities — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.
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
- D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
- D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
- D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
- D4 Code Duplication: Duplication is token-similarity (jscpd) — it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (EF migration scaffolds, *.Designer.cs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only; the generated footprint is reported separately under Solution Shape.
- D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
- D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
- D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
- D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
- D11 Test Reliability: Flakiness is inferred from history/markers — Watchdog runs the suite once (for coverage), not the repeated runs under varied conditions that reveal nondeterminism, so a flaky test never recorded as failing is invisible here.
- D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
- D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
- D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
- D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
- 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 (EF migrations, designer files, snapshots) is excluded — it is never the team's dead code to delete.
- D18 Solution Shape: Build integrity reflects whether the solution compiled in this environment — a build that needs a private feed, a specific SDK, or a generated file absent from the repo can read as broken when it is merely unreproducible here.
- D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement.
- D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
- D22 Internal API Consistency: API-surface coherence is an LLM judgement over a sample of the public surface — consistency of intent across the whole API is approximated, not exhaustively verified.
- D24 Comment Value: Comment value (WHY vs WHAT) is an LLM judgement over a bounded sample — it is advisory and cannot weigh a comment against the precise code change it was written to explain.
- D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
- D27 Navigability: Indirection/navigability is structural — it measures hops to follow a call, not whether that indirection buys real flexibility or just ceremony.
- D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
- D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
- 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.
- 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.
- AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
- ED5 Idempotency: Idempotency is judged from the handler body's visible writes and guards — a guard enforced by a database unique constraint, a broker's exactly-once delivery, or a domain method whose no-op-when-applied logic the scan can't follow may read as at-risk; the at-risk candidates are confirmed by a SAMPLED LLM verdict (advisory, not exhaustive) and degrade to heuristic-only when no model is configured. It flags the at-least-once double-apply SHAPE, not a runtime proof of a duplicate effect.
- M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
- P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
The LLM boundary
Dimensions
D1 · Cyclomatic Complexity
0 method(s) exceeded the cyclomatic complexity threshold of 15.
D2 · Cognitive Complexity
1 method(s) exceeded the cognitive complexity threshold of 15; the worst was ComparableValueObject.CompareTo at 17.
D3 · God Classes
9 god class(es) detected.
What to do
- Resolve the 9 TooManyMethods finding(s) in God Classes — start with AppRegistrationOptions.cs, BelgianSocialSecurityNumber.cs, ContainerExtensions.cs. — One of this dimension's main actionable groups (9 warning-level).
- Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D4 · Code Duplication
15 duplicated block group(s) detected.
D5 · Coupling
58 projects, 0 dependency cycle(s), 0 unstable depended-on project(s).
What to do
- Resolve the 10 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (10 warning-level).
- Enforce Coupling in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D6 · Cohesion (LCOM4)
6 of 174 classes have LCOM4 above 3.
D9 · Test Distribution
774 test methods: 688 unit, 86 integration, 0 BDD, 0 e2e.
D10 · Test Quality
2 skipped (2 with a documented reason), 2 zero-assertion, 8 mock references across 774 tests.
D11 · Test Reliability
0 flaky across 3 measured tier(s). unit: measured (0 flaky); integration: measured (0 flaky); other: measured (0 flaky).
D12 · Dependency Hygiene
149 outdated, 4 vulnerable, 26 deprecated packages.
What to do
- Resolve the 26 Deprecated finding(s) in Dependency Hygiene. — One of this dimension's main actionable groups (26 warning-level).
- Resolve the 4 Vulnerable finding(s) in Dependency Hygiene. — One of this dimension's main actionable groups (4 issue-level).
- Enforce Dependency Hygiene in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D13 · Secret Scanning
Secret scan ran and found no leaked secrets.
D14 · License Compliance
0 of 21 packages use a banned license.
D15 · Churn × Complexity Hotspots
No churn × complexity hotspots in the window.
D17 · Explicit Debt
33 deducted debt markers + 10 dead symbols across 33416 LoC (0.7/KLoC) → score 8.6.
What to do
- Resolve the 22 NoWarnInCsproj finding(s) in Explicit Debt — start with DDD.Common.csproj (2), DDD.Core.Abstractions.csproj (2), DDD.Core.Dapper.csproj (2). — One of this dimension's main actionable groups (22 issue-level).
- Resolve the 11 DuplicateNoWarn finding(s) in Explicit Debt — start with DDD.Common.csproj, DDD.Core.Abstractions.csproj, DDD.Core.Dapper.csproj. — One of this dimension's main actionable groups (11 recommendation-level).
- Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D18 · Solution Shape
58 projects, 1216 .cs files, 53546 hand-written lines of code (33416 production / 20130 test), plus 2722 generated (EF migrations / designer / snapshots, excluded from quality), 210 inter-project edges.
D19 · Documentation Quality
The project contains a single README file that provides a high-level overview of the Domain-Driven Design example. While it outlines the architectural patterns (DDD, CQRS, Hexagonal) and goals, it lacks critical practical information such as setup instructions, build steps, or contribution guidelines. The XML documentation coverage is extremely low across most projects, with many modules at 0-15% coverage, indicating a significant lack of inline code documentation.
What to do
- Resolve the 34 Low XML-doc coverage finding(s) in Documentation Quality — start with DDD.Common.Messages.csproj (2), DDD.Common.csproj (2), DDD.Core.Abstractions.csproj (2). — One of this dimension's main actionable groups (34 warning-level).
D21 · Naming Consistency
0 naming inconsistencies across 200 sampled symbols.
D22 · Internal API Consistency
No public API surface exposed; nothing to be inconsistent.
D24 · Comment Value
4 valuable / 96 redundant across 200 sampled comments; 4 shown with locations.
What to do
- Resolve the 3 redundant comment finding(s) in Comment Value — start with BelgianSocialSecurityNumberTests.cs (2), SqlServerEventConfiguration.cs. — One of this dimension's main actionable groups (3 recommendation-level).
D26 · Project Cohesion
2 of 58 projects flagged as possibly oversized/incoherent.
D27 · Navigability
63 % of calls cross a namespace and 12 % go through an interface, but 100 % of collaborators are co-located — so a call's collaborators sit together and tracing stays easy. Baseline: medium — clean/modular boundaries expected.
What to do
- Improve Navigability — currently 8.8/10. — 63 % of calls cross a namespace and 12 % go through an interface, but 100 % of collaborators are co-located — so a call's collaborators sit together and tracing stays easy. Baseline: medium — clean/modular boundaries expected.
D28 · Secrets (history)
gitleaks scanned the full history AND the current working tree and found no secrets.
D29 · Static Analysis (SAST)
semgrep found no security issues.
D30 · Dependency Vulnerabilities
15 vulnerable package(s): 0 critical, 8 high, 7 medium, 0 low.
What to do
- Resolve the 8 High CVE finding(s) in Dependency Vulnerabilities. — One of this dimension's main actionable groups (8 issue-level).
- Resolve the 7 Medium CVE finding(s) in Dependency Vulnerabilities. — One of this dimension's main actionable groups (7 warning-level).
D34 · Knowledge Freshness
78 of 78 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is Src/DDD.Core.SimpleInjector/ContainerExtensions.cs.
What to do
- Resolve the 1 Dormant codebase finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).
D35 · Change Coupling
No strong hidden change-coupling between production files.
Frontend & cross-cutting dimensions
AX10 · Code composition
AX3 · Project dependency cycles
AX4 · Dependency direction
AX5 · Architecture & structure
AX6 · Interface segregation
AX8 · Test isolation
AX9 · CQS / query purity
ED5 · Idempotency
- `Prescriptions.PharmaceuticalPrescriptionCreator.HandleAsync` mutates persistent state (a database save) with no idempotency guard, and the model confirms a re-run would double-apply it. A retry or at-least-once redelivery means it can run twice — add an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write. (×2) — PharmaceuticalPrescriptionCreator.cs:61, PharmaceuticalPrescriptionCreator.cs:61
What to do
- Make retry-prone mutations idempotent — guard each write with an exists/dedup check, an upsert, an idempotency-key/inbox, or a versioned write, so a re-run doesn't double-apply.
GD1 · Unfinished & placeholder code
IC1 · Incompleteness & stubs
- `GetResult` has an empty body — confirm it's an intentional no-op and not an unfinished method. (×2) — SynchronizationContextRemover.cs:24, SynchronizationContextRemover.cs:24
- A test is skipped ("This test recreates the database and thus can cause conflicts with other tests.") — coverage that looks present but never runs in any gate. If it's an opt-in suite, document how it runs; otherwise re-enable or delete it. (×2) — DbHealthcareDeliveryContextTests.cs:41, DbHealthcareDeliveryContextTests.cs:41
What to do
- Clear the softer debt: remove commented-out code and dead branches, re-enable or delete skipped tests, and replace blanket warning suppressions with targeted ones.
M1 · Documentation (README)
What to do
- Add a build/run (quick start) section to the root README — the first thing a newcomer needs.
- Add a 'Testing' section to the root README — how to run the test suite.
- Add a README to the 29 of 29 project(s) that lack one — worth up to 2 pts.
M3 · Folder & project structure
M4 · Documentation accuracy
P6 · Release Hygiene
- No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
What to do
- Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.
P8 · Schema migrations
- EF Core is used but neither migrations nor EnsureCreated were detected — confirm how the production schema is created and evolved.
What to do
- Adopt EF migrations (dotnet ef migrations add + Migrate() on startup) as the explicit, versioned schema strategy — no migration mechanism was detected.
X1 · Async correctness
- Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Make the caller `async` and `await` instead. (×8) — EventConsumer.cs:98, EventConsumer.cs:109, RecurringCommandManager.cs:119, …
What to do
- Sync-over-async (deadlock risk)
X2 · Cancellation propagation
- Only 28/130 async methods accept a CancellationToken, so requests can't be cancelled cleanly under load or on client disconnect. In Blazor Server circuits and other short-write hosts, omitting it can be an accepted convention — judge against your hosting model.
- No CancellationToken parameter — work can't be cancelled cleanly on disconnect/shutdown. (×25) — EventStreamPositionUpdater.cs:73, EventStreamReader.cs:69, EventStreamsFinder.cs:66, …
What to do
- Thread a CancellationToken through async methods so work stops promptly on cancellation.
X3 · Exception handling
X4 · Structured logging
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 76% | Healthy | Solid. |
| Architecture | 87% | Exemplary | Strongest area. |
| Maturity | 73% | Fair — gated by D34 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 61% | Healthy | Largest drag on the score — prioritise here. |
| Security | 79% | Fair — gated by D30 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
Not included — 46 check(s) not relevant to this codebase
- 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
- AX7 Slice cohesion — not applicable — not a vertical-slice architecture
- C1 Data Protection — This is a dotnet-new template — at-rest encryption and key-vaulting are deferred to the application you build from it. Add ASP.NET Data Protection / column encryption + a key vault for your real data store when you productionise.
- C2 Access Controls — This is a dotnet-new template — authorization is deferred to the application you build from it. Add [Authorize]/policies (or imperative guards) when you wire up real users; until then there are no real endpoints to protect.
- C3 Audit Trail — Repo shows no audit-logging mechanism (IAuditable, an immutable audit log, an EF SaveChanges interceptor) for sensitive changes — absence of evidence is not evidence of a working control. Record an audit trail in code (or document where it lives) so this dimension can be scored.
- C4 Data Retention — Repo shows no data-retention / TTL / cleanup mechanism for personal data — absence of evidence is not evidence of a working control. Define retention periods and a purge/cleanup job (or TTL) in code, or document where retention is enforced, so this dimension can be scored.
- C5 Data-Subject Rights — Repo shows no corroborated data-subject-rights mechanism (erasure / export-portability / consent) tied to a subject id or GDPR vocabulary — absence of evidence is not evidence of a working control. Implement erasure, data export/portability and consent tracking over the subject's records.
- D16 Bus Factor — single-maintainer — knowledge-concentration (bus factor) risk
- D20 ADR Quality — N/A — this repo declares itself a template / kata / sample / demo; a formal ADR log is deferred to a real application built from it.
- D23 Boundary Type-Coupling — Bounded contexts not declared
- D25 ADR Conformance — no ADRs to check
- D31 IaC & Container Security — Not applicable
- D32 Data Compliance (PII/GDPR) — Not applicable
- D33 JS/npm Dependency Vulnerabilities — Not applicable
- D36 Supply-chain Provenance & Signing — Not applicable
- D37 Vulnerability-disclosure Policy — Not applicable
- D38 OSV Dependency Vulnerabilities — Not applicable
- D7 Architectural Integrity — No checkable ADRs to assess
- D8 Code Coverage — Coverage not measured
- DM1 Domain Modelling — applicable but skipped (2/3 markers — below the conservative bar): 4 domain event(s); a Domain/Aggregates/ValueObjects layer
- ED1 Event-Driven — applicable but skipped (2/3 markers — below the conservative bar): 12 event handler(s); 112 CQRS handler(s)
- ES1 Event Sourcing — not run — 0/3 markers found
- M2 Architecture documentation — This repo declares itself a template / kata / sample / demo — formal architecture documentation (ADRs, C4 diagrams) is deferred to a real application built from it, so its absence is not a defect here.
- P1 CI/CD gates — This repo declares itself a template / kata / sample / demo — code meant to be read or copied, not operated. Automated CI/CD gates are deferred to the application you build from it, so their absence is not a defect here. The dimension reactivates once the repo becomes a real app.
- P12 CI test-gate honesty — no CI workflow found
- P2 Observability — This repo is a library, not a deployed service — it has no process to operate, so production observability (structured logging, tracing/metrics, health checks) is N/A. A library may log via an injected ILogger, but the absence of operational telemetry is not a defect here. If it grows a host (web API, worker), the dimension reactivates.
- P3 Security & performance tooling — This repo declares itself a template / kata / sample / demo — code meant to be read or copied, not operated. SAST, secret/dependency scanning and performance benchmarks are deferred to the application you build from it, so their absence is not a defect here. The dimension reactivates once the repo becomes a real app.
- P4 Deployment & Rollback — not evidenced — no deploy/rollback/approval signal in the repo; absence of evidence is not evidence of a manual release
- P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
- P7 Outbound HTTP resilience — not applicable — this isn't a service/API/worker
- P9 Domain vs controller coverage — no coverage report found on disk — run tests with `--collect:"XPlat Code Coverage"` (or in 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.
- X5 Nullable reference types — no NRT-eligible projects
- X6 Hand-rolled structured-format parsing — no data
- X7 Silent fallback defaults — no data
Appendix A — Findings (grouped)
Issue — 36 finding(s)
- NoWarnInCsproj Src/DDD.HealthcareDelivery/DDD.HealthcareDelivery.csproj:9
- NoWarnInCsproj Src/DDD.HealthcareDelivery/DDD.HealthcareDelivery.csproj:13
- NoWarnInCsproj Src/DDD.Core/DDD.Core.csproj:10
- NoWarnInCsproj Src/DDD.Core/DDD.Core.csproj:14
- NoWarnInCsproj Src/DDD.Core.Xunit/DDD.Core.Xunit.csproj:10
- NoWarnInCsproj Src/DDD.Core.Xunit/DDD.Core.Xunit.csproj:14
- NoWarnInCsproj Src/DDD.Core.SimpleInjector/DDD.Core.SimpleInjector.csproj:10
- NoWarnInCsproj Src/DDD.Core.SimpleInjector/DDD.Core.SimpleInjector.csproj:13
- NoWarnInCsproj Src/DDD.Core.SimpleInjector.FluentValidation/DDD.Core.SimpleInjector.FluentValidation.csproj:10
- NoWarnInCsproj Src/DDD.Core.SimpleInjector.FluentValidation/DDD.Core.SimpleInjector.FluentValidation.csproj:13
- NoWarnInCsproj Src/DDD.Core.Polly/DDD.Core.Polly.csproj:10
- NoWarnInCsproj Src/DDD.Core.Polly/DDD.Core.Polly.csproj:14
- NoWarnInCsproj Src/DDD.Core.FluentValidation/DDD.Core.FluentValidation.csproj:10
- NoWarnInCsproj Src/DDD.Core.FluentValidation/DDD.Core.FluentValidation.csproj:14
- NoWarnInCsproj Src/DDD.Core.EntityFramework/DDD.Core.EntityFramework.csproj:10
- NoWarnInCsproj Src/DDD.Core.EntityFramework/DDD.Core.EntityFramework.csproj:14
- NoWarnInCsproj Src/DDD.Core.Dapper/DDD.Core.Dapper.csproj:10
- NoWarnInCsproj Src/DDD.Core.Dapper/DDD.Core.Dapper.csproj:14
- NoWarnInCsproj Src/DDD.Core.Abstractions/DDD.Core.Abstractions.csproj:10
- NoWarnInCsproj Src/DDD.Core.Abstractions/DDD.Core.Abstractions.csproj:14
- NoWarnInCsproj Src/DDD.Common/DDD.Common.csproj:9
- NoWarnInCsproj Src/DDD.Common/DDD.Common.csproj:13
- High CVE: System.Net.Http 4.3.0
- High CVE: System.Text.RegularExpressions 4.3.0
- High CVE: Microsoft.Data.SqlClient 1.1.3
- High CVE: Newtonsoft.Json 10.0.1
- High CVE: Oracle.ManagedDataAccess.Core 2.19.130
- High CVE: Microsoft.Data.SqlClient 5.1.0
- High CVE: Azure.Identity 1.7.0
- High CVE: System.Formats.Asn1 5.0.0
- Vulnerable: Microsoft.Data.SqlClient
- Vulnerable: Microsoft.Data.SqlClient
- Vulnerable: Microsoft.Data.SqlClient
- Vulnerable: Microsoft.Data.SqlClient
- No assertions: Revoke_RevocablePrescription_AddsPrescriptionRevokedEvent Test/DDD.HealthcareDelivery.UnitTests/Domain/Prescriptions/PrescriptionTests.cs:42
- No assertions: Revoke_RevocablePrescription_AddsPrescriptionRevokedEvent Test/DDD.HealthcareDelivery.UnitTests/Domain/Prescriptions/PrescriptionTests.cs:42
Warning — 110 finding(s)
- Low XML-doc coverage: DDD.Core.Abstractions(net48) Src/DDD.Core.Abstractions/DDD.Core.Abstractions.csproj
- Low XML-doc coverage: DDD.Core.Abstractions(netstandard2.1) Src/DDD.Core.Abstractions/DDD.Core.Abstractions.csproj
- Low XML-doc coverage: DDD.Core.Dapper(net48) Src/DDD.Core.Dapper/DDD.Core.Dapper.csproj
- Low XML-doc coverage: DDD.Core.Dapper(netstandard2.1) Src/DDD.Core.Dapper/DDD.Core.Dapper.csproj
- Low XML-doc coverage: DDD.Core(net48) Src/DDD.Core/DDD.Core.csproj
- Low XML-doc coverage: DDD.Core(netstandard2.1) Src/DDD.Core/DDD.Core.csproj
- Low XML-doc coverage: DDD.HealthcareDelivery(net48) Src/DDD.HealthcareDelivery/DDD.HealthcareDelivery.csproj
- Low XML-doc coverage: DDD.HealthcareDelivery(netstandard2.1) Src/DDD.HealthcareDelivery/DDD.HealthcareDelivery.csproj
- Low XML-doc coverage: DDD.Common(net48) Src/DDD.Common/DDD.Common.csproj
- Low XML-doc coverage: DDD.Common(netstandard2.1) Src/DDD.Common/DDD.Common.csproj
- Low XML-doc coverage: DDD.Core.EntityFramework(net48) Src/DDD.Core.EntityFramework/DDD.Core.EntityFramework.csproj
- Low XML-doc coverage: DDD.Core.EntityFramework(netstandard2.1) Src/DDD.Core.EntityFramework/DDD.Core.EntityFramework.csproj
- Low XML-doc coverage: DDD.Core.FluentValidation(net48) Src/DDD.Core.FluentValidation/DDD.Core.FluentValidation.csproj
- Low XML-doc coverage: DDD.Core.FluentValidation(netstandard2.1) Src/DDD.Core.FluentValidation/DDD.Core.FluentValidation.csproj
- Low XML-doc coverage: DDD.Core.Newtonsoft(net48) Src/DDD.Core.Newtonsoft/DDD.Core.Newtonsoft.csproj
- Low XML-doc coverage: DDD.Core.Newtonsoft(netstandard2.1) Src/DDD.Core.Newtonsoft/DDD.Core.Newtonsoft.csproj
- Low XML-doc coverage: DDD.Core.Messages(net48) Src/DDD.Core.Messages/DDD.Core.Messages.csproj
- Low XML-doc coverage: DDD.Core.Messages(netstandard2.1) Src/DDD.Core.Messages/DDD.Core.Messages.csproj
- Low XML-doc coverage: DDD.HealthcareDelivery.Messages(net48) Src/DDD.HealthcareDelivery.Messages/DDD.HealthcareDelivery.Messages.csproj
- Low XML-doc coverage: DDD.HealthcareDelivery.Messages(netstandard2.1) Src/DDD.HealthcareDelivery.Messages/DDD.HealthcareDelivery.Messages.csproj
- Low XML-doc coverage: DDD.Common.Messages(net48) Src/DDD.Common.Messages/DDD.Common.Messages.csproj
- Low XML-doc coverage: DDD.Common.Messages(netstandard2.1) Src/DDD.Common.Messages/DDD.Common.Messages.csproj
- Low XML-doc coverage: DDD.Core.SimpleInjector(net48) Src/DDD.Core.SimpleInjector/DDD.Core.SimpleInjector.csproj
- Low XML-doc coverage: DDD.Core.SimpleInjector(netstandard2.1) Src/DDD.Core.SimpleInjector/DDD.Core.SimpleInjector.csproj
- Low XML-doc coverage: DDD.Core.Polly(net48) Src/DDD.Core.Polly/DDD.Core.Polly.csproj
- Deprecated: xunit
- Deprecated: xunit
- Deprecated: xunit.core
- Deprecated: xunit.core
- Deprecated: xunit
- Deprecated: xunit
- Deprecated: xunit
- Deprecated: xunit
- Deprecated: Microsoft.Data.SqlClient
- Deprecated: xunit
- Deprecated: Microsoft.Data.SqlClient
- Deprecated: xunit
- Deprecated: xunit
- Deprecated: xunit
- Deprecated: xunit
- Deprecated: xunit
- Deprecated: Microsoft.Data.SqlClient
- Deprecated: xunit
- Deprecated: Microsoft.Data.SqlClient
- Deprecated: xunit
- Deprecated: xunit
- Deprecated: xunit
- Deprecated: xunit
- Deprecated: xunit
- Deprecated: xunit
- Off the main sequence: DDD.Core.Dapper.Oracle(net48)
- Off the main sequence: DDD.Core.Dapper.Oracle(netstandard2.1)
- Off the main sequence: DDD.Core.NSubstitute(net48)
- Off the main sequence: DDD.Core.NSubstitute(netstandard2.1)
- Off the main sequence: DDD.Core.Newtonsoft(net48)
- Off the main sequence: DDD.Core.Newtonsoft(netstandard2.1)
- Off the main sequence: DDD.Core.Messages(net48)
- Off the main sequence: DDD.Core.Messages(netstandard2.1)
- Off the main sequence: DDD.Core.Abstractions(net48)
- Off the main sequence: DDD.Core.Abstractions(netstandard2.1)
- TooManyMethods: EventConsumer Src/DDD.Core/Application/EventConsumer.cs:0
- TooManyMethods: ICommandProcessorExtensions Src/DDD.Core/Application/ICommandProcessorExtensions.cs:0
- TooManyMethods: IQueryProcessorExtensions Src/DDD.Core/Application/IQueryProcessorExtensions.cs:0
- TooManyMethods: Builder Src/DDD.Core/Infrastructure/DependencyInjection/AppRegistrationOptions.cs:0
- TooManyMethods: BelgianSocialSecurityNumber Src/DDD.Common/Domain/BelgianSocialSecurityNumber.cs:0
- TooManyMethods: Enumeration Src/DDD.Common/Domain/Enumeration.cs:0
- TooManyMethods: FlagsEnumeration Src/DDD.Common/Domain/FlagsEnumeration.cs:0
- TooManyMethods: EFRepository Src/DDD.Core.EntityFramework/EFRepository.cs:0
- TooManyMethods: ContainerExtensions Src/DDD.Core.SimpleInjector/ContainerExtensions.cs:0
- Medium CVE: Microsoft.Data.SqlClient 1.1.3
- Medium CVE: Microsoft.IdentityModel.JsonWebTokens 5.5.0
- Medium CVE: System.IdentityModel.Tokens.Jwt 5.5.0
- Medium CVE: Azure.Identity 1.7.0
- Medium CVE: Azure.Identity 1.7.0
- Medium CVE: Microsoft.IdentityModel.JsonWebTokens 6.24.0
- Medium CVE: System.IdentityModel.Tokens.Jwt 6.24.0
- Duplicated block (8 lines × 2) Src/DDD.Core/Application/AsyncCommandHandlerWithLogging.cs:41
- Duplicated block (8 lines × 2) Src/DDD.Core/Application/AsyncQueryHandlerWithLogging.cs:36
- Duplicated block (8 lines × 2) Src/DDD.Core/Application/SyncCommandHandlerWithLogging.cs:40
- Duplicated block (8 lines × 2) Src/DDD.Core/Application/SyncQueryHandlerWithLogging.cs:34
- Duplicated block (8 lines × 2) Src/DDD.Core/Infrastructure/Data/OracleToCommandExceptionTranslator.cs:18
- Duplicated block (8 lines × 2) Src/DDD.Core/Infrastructure/Data/OracleToQueryExceptionTranslator.cs:18
- Low cohesion: DomainEntity (LCOM4 4) Src/DDD.Core/Domain/DomainEntity.cs:10
- Low cohesion: Builder (LCOM4 4) Src/DDD.Core/Infrastructure/DependencyInjection/AppRegistrationOptions.cs:61
- Low cohesion: DomainEntity (LCOM4 4) Src/DDD.Core/Domain/DomainEntity.cs:10
- Low cohesion: Builder (LCOM4 4) Src/DDD.Core/Infrastructure/DependencyInjection/AppRegistrationOptions.cs:61
- Low cohesion: Enumeration (LCOM4 4) Src/DDD.Common/Domain/Enumeration.cs:12
- Low cohesion: Enumeration (LCOM4 4) Src/DDD.Common/Domain/Enumeration.cs:12
- Duplicated block (7 lines × 2) Src/DDD.Core/Application/ContextualQueryProcessor.cs:79
- Duplicated block (7 lines × 2) Src/DDD.Core/Infrastructure/Data/OracleToRepositoryExceptionTranslator.cs:21
- Duplicated block (7 lines × 2) Src/DDD.Common/Domain/FlagsEnumeration.cs:88
- Duplicated block (5 lines × 2) Src/DDD.Core/Application/CommandException.cs:45
- Duplicated block (5 lines × 2) Src/DDD.Core/Application/QueryException.cs:52
- Duplicated block (5 lines × 2) Src/DDD.Core/Domain/DomainServiceException.cs:52
- Duplicated block (6 lines × 2) Src/DDD.Core.Abstractions/StringExtensions.cs:77
- Duplicated block (6 lines × 2) Src/DDD.Core/Application/ContextualQueryProcessor.cs:56
- single-maintainer — knowledge-concentration (bus factor) risk
- ComparableValueObject.CompareTo (cognitive 17) Src/DDD.Core/Domain/ComparableValueObject.cs:36
- Duplicated block (8 lines × 3) Src/DDD.Core/Application/CommandInvalidException.cs:68
- Coverage not measured
Recommendation — 26 finding(s)
- DuplicateNoWarn Src/DDD.HealthcareDelivery/DDD.HealthcareDelivery.csproj:13
- DuplicateNoWarn Src/DDD.Core/DDD.Core.csproj:14
- DuplicateNoWarn Src/DDD.Core.Xunit/DDD.Core.Xunit.csproj:14
- DuplicateNoWarn Src/DDD.Core.SimpleInjector/DDD.Core.SimpleInjector.csproj:13
- DuplicateNoWarn Src/DDD.Core.SimpleInjector.FluentValidation/DDD.Core.SimpleInjector.FluentValidation.csproj:13
- DuplicateNoWarn Src/DDD.Core.Polly/DDD.Core.Polly.csproj:14
- DuplicateNoWarn Src/DDD.Core.FluentValidation/DDD.Core.FluentValidation.csproj:14
- DuplicateNoWarn Src/DDD.Core.EntityFramework/DDD.Core.EntityFramework.csproj:14
- DuplicateNoWarn Src/DDD.Core.Dapper/DDD.Core.Dapper.csproj:14
- DuplicateNoWarn Src/DDD.Core.Abstractions/DDD.Core.Abstractions.csproj:14
- DuplicateNoWarn Src/DDD.Common/DDD.Common.csproj:13
- redundant comment Test/DDD.Common.UnitTests/Domain/BelgianSocialSecurityNumberTests.cs:74
- redundant comment Test/DDD.Common.UnitTests/Domain/BelgianSocialSecurityNumberTests.cs:110
- redundant comment Src/DDD.Core.EntityFramework/SqlServerEventConfiguration.cs:16
- Bounded contexts not declared
- no ADRs to check
- Split DDD.Core(net48)
- Split DDD.Core(netstandard2.1)
- Not applicable
- Not applicable
- Not applicable
- Dormant codebase
- Not applicable
- Not applicable
- Not applicable
- No checkable ADRs to assess
Info — 225 finding(s)
- Outdated: FluentAssertions
- Outdated: Microsoft.NET.Test.Sdk
- Outdated: SimpleInjector
- Outdated: System.Threading.Tasks.Extensions
- Outdated: System.ValueTuple
- Outdated: xunit
- Outdated: xunit.runner.visualstudio
- Outdated: FluentAssertions
- Outdated: Microsoft.NET.Test.Sdk
- Outdated: SimpleInjector
- Outdated: System.Threading.Tasks.Extensions
- Outdated: System.ValueTuple
- Outdated: xunit
- Outdated: xunit.runner.visualstudio
- Outdated: xunit.core
- Outdated: System.Configuration.ConfigurationManager
- Outdated: xunit.core
- Outdated: Dapper
- Outdated: Dapper
- Outdated: FluentAssertions
- Outdated: Microsoft.NET.Test.Sdk
- Outdated: NSubstitute
- Outdated: System.Threading.Tasks.Extensions
- Outdated: System.ValueTuple
- Outdated: xunit
- Mock framework: NSubstitute
- Mock framework: NSubstitute
- Mock framework: NSubstitute
- Mock framework: NSubstitute
- Mock framework: NSubstitute
- Mock framework: NSubstitute
- Mock framework: NSubstitute
- Mock framework: NSubstitute
- Skipped (documented): CreateDatabase_DoesNotThrowException Test/DDD.HealthcareDelivery.IntegrationTests/Infrastructure/DbHealthcareDeliveryContextTests.cs:41
- Skipped (documented): CreateDatabase_DoesNotThrowException Test/DDD.HealthcareDelivery.IntegrationTests/Infrastructure/DbHealthcareDeliveryContextTests.cs:41
- XML-doc coverage: DDD.Core.NSubstitute(net48) Src/DDD.Core.NSubstitute/DDD.Core.NSubstitute.csproj
- XML-doc coverage: DDD.Core.NSubstitute(netstandard2.1) Src/DDD.Core.NSubstitute/DDD.Core.NSubstitute.csproj
- Licenses scanned
- DDD.Core.Abstractions(net48) (Production) Src/DDD.Core.Abstractions/DDD.Core.Abstractions.csproj
- DDD.Core.Abstractions(netstandard2.1) (Production) Src/DDD.Core.Abstractions/DDD.Core.Abstractions.csproj
- DDD.Core.UnitTests(net48) (Test) Test/DDD.Core.UnitTests/DDD.Core.UnitTests.csproj
- DDD.Core.UnitTests(net6.0) (Test) Test/DDD.Core.UnitTests/DDD.Core.UnitTests.csproj
- DDD.Core.Xunit(net48) (Test) Src/DDD.Core.Xunit/DDD.Core.Xunit.csproj
- DDD.Core.Xunit(netstandard2.1) (Test) Src/DDD.Core.Xunit/DDD.Core.Xunit.csproj
- DDD.Core.Dapper(net48) (Production) Src/DDD.Core.Dapper/DDD.Core.Dapper.csproj
- DDD.Core.Dapper(netstandard2.1) (Production) Src/DDD.Core.Dapper/DDD.Core.Dapper.csproj
- DDD.Core.Abstractions.UnitTests(net48) (Test) Test/DDD.Core.Abstractions.UnitTests/DDD.Core.Abstractions.UnitTests.csproj
- DDD.Core.Abstractions.UnitTests(net6.0) (Test) Test/DDD.Core.Abstractions.UnitTests/DDD.Core.Abstractions.UnitTests.csproj
- DDD.Core(net48) (Production) Src/DDD.Core/DDD.Core.csproj
- DDD.Core(netstandard2.1) (Production) Src/DDD.Core/DDD.Core.csproj
- DDD.HealthcareDelivery(net48) (Production) Src/DDD.HealthcareDelivery/DDD.HealthcareDelivery.csproj
- DDD.HealthcareDelivery(netstandard2.1) (Production) Src/DDD.HealthcareDelivery/DDD.HealthcareDelivery.csproj
- DDD.Common(net48) (Production) Src/DDD.Common/DDD.Common.csproj
- DDD.Common(netstandard2.1) (Production) Src/DDD.Common/DDD.Common.csproj
- DDD.Common.UnitTests(net48) (Test) Test/DDD.Common.UnitTests/DDD.Common.UnitTests.csproj
- DDD.Common.UnitTests(net6.0) (Test) Test/DDD.Common.UnitTests/DDD.Common.UnitTests.csproj
- DDD.Core.EntityFramework(net48) (Production) Src/DDD.Core.EntityFramework/DDD.Core.EntityFramework.csproj
- DDD.Core.EntityFramework(netstandard2.1) (Production) Src/DDD.Core.EntityFramework/DDD.Core.EntityFramework.csproj
- DDD.HealthcareDelivery.IntegrationTests(net48) (Test) Test/DDD.HealthcareDelivery.IntegrationTests/DDD.HealthcareDelivery.IntegrationTests.csproj
- DDD.HealthcareDelivery.IntegrationTests(net6.0) (Test) Test/DDD.HealthcareDelivery.IntegrationTests/DDD.HealthcareDelivery.IntegrationTests.csproj
- DDD.Core.FluentValidation(net48) (Production) Src/DDD.Core.FluentValidation/DDD.Core.FluentValidation.csproj
- DDD.Core.FluentValidation(netstandard2.1) (Production) Src/DDD.Core.FluentValidation/DDD.Core.FluentValidation.csproj
- DDD.HealthcareDelivery.UnitTests(net48) (Test) Test/DDD.HealthcareDelivery.UnitTests/DDD.HealthcareDelivery.UnitTests.csproj
- DDD.HealthcareDelivery.UnitTests(net6.0) (Test) Test/DDD.HealthcareDelivery.UnitTests/DDD.HealthcareDelivery.UnitTests.csproj
- DDD.Core.Newtonsoft(net48) (Production) Src/DDD.Core.Newtonsoft/DDD.Core.Newtonsoft.csproj
- DDD.Core.Newtonsoft(netstandard2.1) (Production) Src/DDD.Core.Newtonsoft/DDD.Core.Newtonsoft.csproj
- DDD.Core.Messages(net48) (Production) Src/DDD.Core.Messages/DDD.Core.Messages.csproj
- DDD.Core.Messages(netstandard2.1) (Production) Src/DDD.Core.Messages/DDD.Core.Messages.csproj
- DDD.HealthcareDelivery.Messages(net48) (Production) Src/DDD.HealthcareDelivery.Messages/DDD.HealthcareDelivery.Messages.csproj
- DDD.HealthcareDelivery.Messages(netstandard2.1) (Production) Src/DDD.HealthcareDelivery.Messages/DDD.HealthcareDelivery.Messages.csproj
- DDD.Common.Messages(net48) (Production) Src/DDD.Common.Messages/DDD.Common.Messages.csproj
- DDD.Common.Messages(netstandard2.1) (Production) Src/DDD.Common.Messages/DDD.Common.Messages.csproj
- DDD.Core.SimpleInjector(net48) (Production) Src/DDD.Core.SimpleInjector/DDD.Core.SimpleInjector.csproj
- DDD.Core.SimpleInjector(netstandard2.1) (Production) Src/DDD.Core.SimpleInjector/DDD.Core.SimpleInjector.csproj
- DDD.Core.Polly(net48) (Production) Src/DDD.Core.Polly/DDD.Core.Polly.csproj
- DDD.Core.Polly(netstandard2.1) (Production) Src/DDD.Core.Polly/DDD.Core.Polly.csproj
- DDD.Core.Newtonsoft.UnitTests(net48) (Test) Test/DDD.Core.Newtonsoft.UnitTests/DDD.Core.Newtonsoft.UnitTests.csproj
- DDD.Core.Newtonsoft.UnitTests(net6.0) (Test) Test/DDD.Core.Newtonsoft.UnitTests/DDD.Core.Newtonsoft.UnitTests.csproj
- DDD.Core.Dapper.IntegrationTests(net48) (Test) Test/DDD.Core.Dapper.IntegrationTests/DDD.Core.Dapper.IntegrationTests.csproj
- DDD.Core.Dapper.IntegrationTests(net6.0) (Test) Test/DDD.Core.Dapper.IntegrationTests/DDD.Core.Dapper.IntegrationTests.csproj
- DDD.Core.Dapper.Oracle(net48) (Production) Src/DDD.Core.Dapper.Oracle/DDD.Core.Dapper.Oracle.csproj
- DDD.Core.Dapper.Oracle(netstandard2.1) (Production) Src/DDD.Core.Dapper.Oracle/DDD.Core.Dapper.Oracle.csproj
- DDD.Core.NSubstitute(net48) (Production) Src/DDD.Core.NSubstitute/DDD.Core.NSubstitute.csproj
- DDD.Core.NSubstitute(netstandard2.1) (Production) Src/DDD.Core.NSubstitute/DDD.Core.NSubstitute.csproj
- DDD.Core.Cronos(net48) (Production) Src/DDD.Core.Cronos/DDD.Core.Cronos.csproj
- DDD.Core.Cronos(netstandard2.1) (Production) Src/DDD.Core.Cronos/DDD.Core.Cronos.csproj
- DDD.Core.SimpleInjector.FluentValidation(net48) (Production) Src/DDD.Core.SimpleInjector.FluentValidation/DDD.Core.SimpleInjector.FluentValidation.csproj
- DDD.Core.SimpleInjector.FluentValidation(netstandard2.1) (Production) Src/DDD.Core.SimpleInjector.FluentValidation/DDD.Core.SimpleInjector.FluentValidation.csproj
- DDD.Core.SimpleInjector.UnitTests(net48) (Test) Test/DDD.Core.SimpleInjector.UnitTests/DDD.Core.SimpleInjector.UnitTests.csproj
- DDD.Core.SimpleInjector.UnitTests(net6.0) (Test) Test/DDD.Core.SimpleInjector.UnitTests/DDD.Core.SimpleInjector.UnitTests.csproj
- DDD.Core.SimpleInjector.FluentValidation.UnitTests(net48) (Test) Test/DDD.Core.SimpleInjector.FluentValidation.UnitTests/DDD.Core.SimpleInjector.FluentValidation.UnitTests.csproj
- DDD.Core.SimpleInjector.FluentValidation.UnitTests(net6.0) (Test) Test/DDD.Core.SimpleInjector.FluentValidation.UnitTests/DDD.Core.SimpleInjector.FluentValidation.UnitTests.csproj
- DDD.Core.SimpleInjector.EntityFramework(net48) (Production) Src/DDD.Core.SimpleInjector.EntityFramework/DDD.Core.SimpleInjector.EntityFramework.csproj
- DDD.Core.SimpleInjector.EntityFramework(netstandard2.1) (Production) Src/DDD.Core.SimpleInjector.EntityFramework/DDD.Core.SimpleInjector.EntityFramework.csproj
- DDD.Core.SimpleInjector.EntityFramework.UnitTests(net48) (Test) Test/DDD.Core.SimpleInjector.EntityFramework.UnitTests/DDD.Core.SimpleInjector.EntityFramework.UnitTests.csproj
- DDD.Core.SimpleInjector.EntityFramework.UnitTests(net6.0) (Test) Test/DDD.Core.SimpleInjector.EntityFramework.UnitTests/DDD.Core.SimpleInjector.EntityFramework.UnitTests.csproj
- No exposed public API
- Unit tests
- Integration tests
- BDD tests
- E2E tests
Appendix B — Reproduction & audit trail
| Dimension | Tool | Version | Command | Findings | Raw output |
|---|---|---|---|---|---|
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-banner --report-format json --report-path /dev/stdout --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-history.json |
| D29 · Static Analysis (SAST) | semgrep | — | semgrep --config auto --json --quiet --timeout 0 --metrics off . | 0 | — |
| D30 · Dependency Vulnerabilities | dotnet | — | dotnet list DDD.sln package --vulnerable --include-transitive --format json | 15 | artifacts/raw/dotnet-vulnerable.json |
| D31 · IaC & Container Security | trivy | — | trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Terraform, Kubernetes/Helm, CloudFormation); nothing to scan. | 0 | — |
| D32 · Data Compliance (PII/GDPR) | semgrep | — | semgrep: not applicable — No PII/GDPR-handling patterns detected (p/gdpr ruleset) — no data-compliance surface to assess. | 0 | — |
| D33 · JS/npm Dependency Vulnerabilities | trivy | — | trivy: not applicable — No JS/npm manifest or lockfile found outside bin/obj (package.json, package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb); no JS dependencies to scan. | 0 | — |
| D36 · Supply-chain Provenance & Signing | provenance | — | provenance: not applicable — No CI/build pipeline found (.github/workflows, .gitlab-ci.yml, azure-pipelines.yml, Jenkinsfile, .circleci); there is no build to attest provenance for. | 0 | — |
| D37 · Vulnerability-disclosure Policy | disclosure | — | disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md, .github/SECURITY.md, docs/SECURITY.md, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed. | 0 | — |
| D38 · OSV Dependency Vulnerabilities | osv-scanner | — | osv-scanner: not applicable — No JS/npm lockfile found outside bin/obj (package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb); nothing for OSV to scan. | 0 | — |
Appendix C — Personal-data map
Name — 12 field(s)
- FullName.FirstName Src/DDD.Common/Domain/FullName.cs:26
- FullName.LastName Src/DDD.Common/Domain/FullName.cs:28
- FullNameState.FirstName Src/DDD.Common/Domain/FullNameState.cs:8
- FullNameState.LastName Src/DDD.Common/Domain/FullNameState.cs:10
- CreatePharmaceuticalPrescription.PatientFirstName Src/DDD.HealthcareDelivery.Messages/Application/Prescriptions/CreatePharmaceuticalPrescription.cs:31
- CreatePharmaceuticalPrescription.PatientLastName Src/DDD.HealthcareDelivery.Messages/Application/Prescriptions/CreatePharmaceuticalPrescription.cs:35
- CreatePharmaceuticalPrescription.PrescriberFirstName Src/DDD.HealthcareDelivery.Messages/Application/Prescriptions/CreatePharmaceuticalPrescription.cs:49
- CreatePharmaceuticalPrescription.PrescriberLastName Src/DDD.HealthcareDelivery.Messages/Application/Prescriptions/CreatePharmaceuticalPrescription.cs:55
- Patient.FullName Src/DDD.HealthcareDelivery/Domain/Patients/Patient.cs:41
- PatientState.FullName Src/DDD.HealthcareDelivery/Domain/Patients/PatientState.cs:16
- HealthcarePractitioner.FullName Src/DDD.HealthcareDelivery/Domain/Practitioners/HealthcarePractitioner.cs:45
- HealthcarePractitionerState.FullName Src/DDD.HealthcareDelivery/Domain/Practitioners/HealthcarePractitionerState.cs:14
Email — 6 field(s)
- ContactInformation.PrimaryEmailAddress Src/DDD.Common/Domain/ContactInformation.cs:49
- ContactInformation.SecondaryEmailAddress Src/DDD.Common/Domain/ContactInformation.cs:53
- ContactInformationState.PrimaryEmailAddress Src/DDD.Common/Domain/ContactInformationState.cs:12
- ContactInformationState.SecondaryEmailAddress Src/DDD.Common/Domain/ContactInformationState.cs:16
- CreatePharmaceuticalPrescription.PrescriberPrimaryEmailAddress Src/DDD.HealthcareDelivery.Messages/Application/Prescriptions/CreatePharmaceuticalPrescription.cs:61
- CreatePharmaceuticalPrescription.PrescriberSecondaryEmailAddress Src/DDD.HealthcareDelivery.Messages/Application/Prescriptions/CreatePharmaceuticalPrescription.cs:65
Government ID (SSN / passport / tax) — 6 field(s)
- CreatePharmaceuticalPrescription.PatientSocialSecurityNumber Src/DDD.HealthcareDelivery.Messages/Application/Prescriptions/CreatePharmaceuticalPrescription.cs:39
- CreatePharmaceuticalPrescription.PrescriberSocialSecurityNumber Src/DDD.HealthcareDelivery.Messages/Application/Prescriptions/CreatePharmaceuticalPrescription.cs:69
- Patient.SocialSecurityNumber Src/DDD.HealthcareDelivery/Domain/Patients/Patient.cs:47
- PatientState.SocialSecurityNumber Src/DDD.HealthcareDelivery/Domain/Patients/PatientState.cs:22
- HealthcarePractitioner.SocialSecurityNumber Src/DDD.HealthcareDelivery/Domain/Practitioners/HealthcarePractitioner.cs:53
- HealthcarePractitionerState.SocialSecurityNumber Src/DDD.HealthcareDelivery/Domain/Practitioners/HealthcarePractitionerState.cs:22
Phone — 6 field(s)
- ContactInformation.PrimaryTelephoneNumber Src/DDD.Common/Domain/ContactInformation.cs:51
- ContactInformation.SecondaryTelephoneNumber Src/DDD.Common/Domain/ContactInformation.cs:55
- ContactInformationState.PrimaryTelephoneNumber Src/DDD.Common/Domain/ContactInformationState.cs:14
- ContactInformationState.SecondaryTelephoneNumber Src/DDD.Common/Domain/ContactInformationState.cs:18
- CreatePharmaceuticalPrescription.PrescriberPrimaryTelephoneNumber Src/DDD.HealthcareDelivery.Messages/Application/Prescriptions/CreatePharmaceuticalPrescription.cs:63
- CreatePharmaceuticalPrescription.PrescriberSecondaryTelephoneNumber Src/DDD.HealthcareDelivery.Messages/Application/Prescriptions/CreatePharmaceuticalPrescription.cs:67
Address — 3 field(s)
- PostalAddress.PostalCode Src/DDD.Common/Domain/PostalAddress.cs:45
- PostalAddressState.PostalCode Src/DDD.Common/Domain/PostalAddressState.cs:16
- CreatePharmaceuticalPrescription.PrescriberPostalCode Src/DDD.HealthcareDelivery.Messages/Application/Prescriptions/CreatePharmaceuticalPrescription.cs:59
Date of birth — 3 field(s)
- CreatePharmaceuticalPrescription.PatientBirthdate Src/DDD.HealthcareDelivery.Messages/Application/Prescriptions/CreatePharmaceuticalPrescription.cs:29
- Patient.Birthdate Src/DDD.HealthcareDelivery/Domain/Patients/Patient.cs:37
- PatientState.Birthdate Src/DDD.HealthcareDelivery/Domain/Patients/PatientState.cs:12