Public report — server, published 18 Jun 2026. Concrete security findings (CVE IDs, secret matches, dependency versions) are hidden in this version; ask the repo owner for the full report.
Watchdog 18-06-2026 @ 20:03 UTC Public
Code Health Audit

Bitwarden/server

No baseline yet — first run single-maintainer
54% Poor

Large · 205,017 LoC · 57 projects · rebuild ~7.5 person-years · weakest lens: Readiness (42%)

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

69/69dimensions tool-verifieddeterministic · confidence 1.0
1772findings with an exact file:lineof 2119 — the remainder are repo-wide signals (a dimension-level measurement, not a single line); open any file:line and verify
69/94dimensions across the health lenses205017 LoC · 57 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.

bitwarden/server carries serious risk (54%). Several issues below can materially affect reliability, security, or the cost of change and warrant near-term attention.

It is strongest in Event-Driven (100%) — its messaging keeps components properly decoupled. Architecture (83%) is solid too.

The area that most needs attention is Readiness (42%) — operating, monitoring and recovering the system safely is harder. Code Health (61%) is the next concern — changes there are slower and more error-prone.

Leadership focus, highest impact first: 1 No ADRs found finding(s) in ADR Quality (ADR Quality); Name events in the past tense (Event naming); Raise allocation-aware density on the hot paths (Allocation hygiene).

For scale: Large (~205,017 production lines); rebuilding it from scratch would take roughly ~7.5 person-years (~4–15 engineers). Approximate, ±~30%.

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

Code composition — where the lines go
Business logic 5%Plumbing 11%Tests 18%Generated 66%
Rebuild cost & value ~ Modeled — €360,000–€1,800,000
Cost to rebuild€360,000–€1,800,000 (3.6–11.5 person-years (5,998–19,277 h), ~4–15 engineers)
Domain complexityVery high — harder problems cost more per line
Quality factor0.8× (at 54% quality) — the last 20% of quality is most of the work
Size & shapeLarge · 37% boilerplate · 30% straight-line · 32% branching logic

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

How we model this: boilerplate at a scaffolding rate + logic × domain Very high (×2.0) — microservices, DDD/clean architecture, CQRS, event-driven integration × a 0.8× quality factor, at €60–95/h; indicative, ±~30%. Indicative only — most sensitive to the hourly rate and the domain tier (both tunable in config).

Top priorities

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

1
Resolve the 1 No ADRs found finding(s) in ADR Quality.
+3.1 pts · Low effort · ADR Quality
2
Name events in the past tense — they record facts that already happened.
+1.9 pts · Medium effort · Event naming
3
Raise allocation-aware density on the hot paths — currently 12 use(s) across 1,022,061 production line(s) (~0.0/1k). More Span/Memory, pooling (ArrayPool/ObjectPool), stackalloc and ValueTask on the allocation-heavy paths climbs this toward 10.
+1.7 pts · Medium effort · Allocation hygiene

Diagnosis — what's actually going on

Value concentrated against a weak lens · High · Value at risk
This is a Large asset (~7.5 person-years to rebuild), and its weakest lens is Readiness at 42%. The operational and business risk on an asset this size concentrates there — that's where remediation buys the most protection.
Evidence: valuation: Large, ~7.5 person-years rebuild (205,017 LoC) · weakest lens: Readiness 42%
→ Direct remediation budget at Readiness first — highest risk-reduction per euro on an asset this size.
Highest-leverage move · Medium · Leverage
Of everything flagged, the best return on effort is: Resolve the 1 No ADRs found finding(s) in ADR Quality. The rest can wait behind it.
Evidence: priority ranking: top of 5 ranked by impact/effort
→ Resolve the 1 No ADRs found finding(s) in ADR Quality.
Coverage is high but aimed at the wrong layer · Medium · Contradiction
Overall coverage looks healthy (D8 9.6/10) yet it's concentrated on controllers/endpoints, not the domain — the headline coverage number is reassuring but misleading about where the real risk sits.
Evidence: D8 coverage: 9.6/10 · P9: domain under-tested vs controllers

Architecture — bounded-context dependency graph

Each box is a bounded context (its layer projects grouped, or a project count when large); arrows show dependencies between contexts. A shared kernel is where many arrows converge.

arch Admin Admin ctx:Core Core Core Admin->ctx:Core ctx:SharedWeb SharedWeb SharedWeb Admin->ctx:SharedWeb ctx:bitwarden_license bitwarden_license Core · EntityFramework Admin->ctx:bitwarden_license ctx:util util Migrator · MySqlMigrations · PostgresMigrations · RustSdk … Admin->ctx:util Test Test Api Api Api->ctx:Core Api->ctx:SharedWeb Api->ctx:bitwarden_license IntegrationTest IntegrationTest Api.Test Api.Test AppHost AppHost Billing Billing Billing->ctx:Core Billing->ctx:SharedWeb Billing->ctx:bitwarden_license Billing.Test Billing.Test Core.Test Core.Test Common Common Core.IntegrationTest Core.IntegrationTest Core.Test (2) Core.Test (2) Events Events Events->ctx:Core Events->ctx:SharedWeb Events.IntegrationTest Events.IntegrationTest Events.Test Events.Test EventsProcessor EventsProcessor EventsProcessor->ctx:Core EventsProcessor->ctx:SharedWeb EventsProcessor.Test EventsProcessor.Test Icons Icons Icons->ctx:Core Icons->ctx:SharedWeb Icons.Test Icons.Test Identity Identity Identity->ctx:Core Identity->ctx:SharedWeb Identity.IntegrationTest Identity.IntegrationTest Identity.Test Identity.Test Dapper.Test Dapper.Test EFIntegration.Test EFIntegration.Test Infrastructure.IntegrationTest Infrastructure.IntegrationTest MicroBenchmarks MicroBenchmarks MsSqlMigratorUtility MsSqlMigratorUtility MsSqlMigratorUtility->ctx:util Notifications Notifications Notifications->ctx:Core Notifications->ctx:SharedWeb Notifications.Test Notifications.Test SSO.Test SSO.Test Scim Scim Scim->ctx:Core Scim->ctx:SharedWeb Scim.IntegrationTest Scim.IntegrationTest Scim.Test Scim.Test SeederApi SeederApi SeederApi->ctx:Core SeederApi->ctx:SharedWeb SeederApi->ctx:util SeederApi.IntegrationTest SeederApi.IntegrationTest SeederUtility SeederUtility SeederUtility->ctx:util Server Server Server.IntegrationTest Server.IntegrationTest Setup Setup Setup->ctx:Core Setup->ctx:util Setup.Test Setup.Test SharedWeb.Test SharedWeb.Test Sso Sso Sso->ctx:Core Sso->ctx:SharedWeb Sso.IntegrationTest Sso.IntegrationTest ctx:Dapper Dapper Dapper ctx:Dapper->ctx:Core ctx:EntityFramework EntityFramework EntityFramework ctx:EntityFramework->ctx:Core ctx:SharedWeb->ctx:Core ctx:SharedWeb->ctx:Dapper ctx:SharedWeb->ctx:EntityFramework ctx:bitwarden_license->ctx:Core ctx:bitwarden_license->ctx:EntityFramework ctx:util->ctx:Core ctx:util->ctx:EntityFramework ctx:util->ctx:SharedWeb

At a glance — Code Health · 61% · Fair · gated by IC1

At a glance — Architecture · 83% · Healthy

At a glance — Maturity · 72% · Healthy

At a glance — Readiness · 42% · Poor · gated by D12, P7, P9

At a glance — Security · 63% · Fair · gated by D31, D33, D36, D38

At a glance — Event-Driven · 100% · Exemplary

At a glance — Accessibility · 65% · Fair

At a glance — Performance · 67% · Fair

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
A06:2021 — Vulnerable & Outdated Components59High / Critical
A05:2021 — Security Misconfiguration20High / Critical
A02:2021 — Cryptographic Failures4High / Critical

Roadmap

Top priorities: Resolve the 1 No ADRs found finding(s) in ADR Quality; Name events in the past tense — they record facts that already happened; Raise allocation-aware density on the hot paths — currently 12 use(s) across 1,022,061 production line(s) (~0.0/1k). More Span/Memory, pooling (ArrayPool/ObjectPool), stackalloc and ValueTask on the allocation-heavy paths climbs this toward 10.

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

Do thisHelpsEffortDimension
Resolve the 1 No ADRs found finding(s) in ADR Quality.+3.1 ptsLowADR Quality
Name events in the past tense — they record facts that already happened.+1.9 ptsMediumEvent naming
Raise allocation-aware density on the hot paths — currently 12 use(s) across 1,022,061 production line(s) (~0.0/1k). More Span/Memory, pooling (ArrayPool/ObjectPool), stackalloc and ValueTask on the allocation-heavy paths climbs this toward 10.+1.7 ptsMediumAllocation hygiene
Make the call chain async end-to-end and await it — never block on a Task with .Wait()/.GetAwaiter().GetResult() in library code.+1.7 ptsMediumAsync & latency hygiene
Start an ADR log (docs/adr/) recording significant decisions and their rationale.+1.6 ptsMediumArchitecture documentation
Enforce accessibility in the toolchain: add eslint-plugin-jsx-a11y (or vuejs-accessibility), assert with jest-axe / playwright-axe in tests, then gate axe/pa11y/Lighthouse in CI.+1.5 ptsMediumA11y enforcement
Add a build/run (quick start) section to the root README — the first thing a newcomer needs.+1.1 ptsMediumDocumentation (README)
Declare <html lang>, a document <title> and a <main> landmark, keep headings in order, leave zoom enabled, title iframes and drop meta-refresh.+1.1 ptsMediumPage structure

File quality

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

FileScoreBandWorst signal
src/Core/MailTemplates/Mjml/package-lock.json0.2SlopJS/npm Dependency Vulnerabilities: High CVE: [CVE redacted]
src/Admin/package-lock.json0.6SlopOSV Dependency Vulnerabilities: High CVE: [GHSA redacted]
bitwarden_license/src/Sso/package-lock.json1.4SlopOSV Dependency Vulnerabilities: High CVE: [GHSA redacted]
src/Core/Settings/GlobalSettings.cs3.9SlopSecrets (history): Secret: jwt
src/Core/Core.csproj4.1MixedExplicit Debt: NoWarnInCsproj
src/Api/Api.csproj4.2MixedExplicit Debt: NoWarnInCsproj
util/SeederApi/Dockerfile5.1MixedIaC & Container Security: High IaC: DS-0002
test/Api.Test/Auth/Controllers/AccountsControllerTests.cs5.3MixedTest Quality: No assertions: PostKdf_ChangeKdfSuccess_NoError
util/Setup/Setup.csproj5.5MixedExplicit Debt: NoWarnInCsproj
src/Api/Utilities/ApiHelpers.cs5.8MixedExplicit Debt: EmptyCatchBlock
util/RustSdk/rust/Cargo.lock5.8MixedOSV Dependency Vulnerabilities: Medium CVE: RUSTSEC-2026-0097
src/Infrastructure.Dapper/Tools/Repositories/SendRepository.cs5.9MixedCode Duplication: Duplicated block (16 lines × 2)
src/Events/Controllers/CollectController.cs6.0MixedExplicit Debt: FixmeComment
src/Core/Billing/Organizations/Models/OrganizationLicense.cs6.0MixedExplicit Debt: FixmeComment
src/Core/OrganizationFeatures/OrganizationSubscriptions/UpgradeOrganizationPlanCommand.cs6.0MixedExplicit Debt: FixmeComment
src/Core/Auth/Models/Api/Request/Accounts/RegisterFinishRequestModel.cs6.0MixedExplicit Debt: TodoComment
src/Admin/AdminConsole/Controllers/OrganizationsController.cs6.0MixedExplicit Debt: FixmeComment
src/Core/Platform/Mail/HandlebarsMailService.cs6.0MixedExplicit Debt: TodoComment
src/Core/AdminConsole/Models/Data/Organizations/SelfHostedOrganizationDetails.cs6.0MixedExplicit Debt: FixmeComment
src/Billing/Controllers/PayPalController.cs6.0MixedExplicit Debt: FixmeComment

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. 69 of 69 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); none rely on LLM judgement. Overall confidence is 0.8 — 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 — 69 dimensions across the health lenses
D1D2D3D4D5D6D8D9D10D11D12D13D15D17D18D20D22D27D28D29D30D31D33D36D37D38AC2AC3AC5AC6AC7AX1AX10AX2AX3AX4AX5AX6AX8AX9C1C2C4C5ED3ED4GD1IC1M1M2M3P1P2P3P4P5P6P7P8P9PF1PF2PF3S1X1X2X3X4X5

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, 1772 of 2119 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.300✓ deterministic
NuGet / dotnetOutdated, vulnerable & deprecated dependencies10.0.300✓ deterministic
git / LibGit2SharpChurn hotspots, knowledge concentration, history2.43.0 · 0.31.0✓ deterministic
gitleaks · semgrep · trivy · checkovSecrets 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 measurementopenai-compatible◐ LLM · sampled · advisory

Every finding is locatable in findings.md. Run 019edc54-9318-7f7a-b632-43f7b15f2661.

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

Run transparency — what happened this run

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

  • D19 Documentation Quality — LLM provider failed — The model provider was unreachable or errored, so this LLM-assisted dimension fell back to a measurement gap (confidence 0) rather than a penalty. Re-run with a reachable provider to score it.
  • D21 Naming Consistency — LLM provider failed — The model provider was unreachable or errored, so this LLM-assisted dimension fell back to a measurement gap (confidence 0) rather than a penalty. Re-run with a reachable provider to score it.
  • D23 Boundary Type-Coupling — evaluation did not complete — Dimension evaluation failed — excluded from the score.
  • D24 Comment Value — LLM provider failed — The model provider was unreachable or errored, so this LLM-assisted dimension fell back to a measurement gap (confidence 0) rather than a penalty. Re-run with a reachable provider to score it.
  • D26 Project Cohesion — evaluation did not complete — Dimension evaluation failed — excluded from the score.
  • 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.

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

Limitations & what we did not check

Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.

Per-dimension blind spots

For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.

  • D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
  • D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
  • D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
  • D4 Code Duplication: Duplication is token-similarity (jscpd) — it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (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.
  • D8 Code Coverage: Coverage is measured by building and running the suite (`dotnet test --collect`) inside Watchdog's isolated image — the target repo is never modified, and nothing on your systems runs. So coverage exists only when the suite builds and runs within the inline time budget; one that needs external services, can't build, or exceeds the budget yields no coverage (D8 then degrades to not-measured, not a low score). Line coverage also says nothing about assertion quality.
  • D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
  • 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").
  • 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.
  • 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.
  • 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.
  • 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.
  • D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
  • 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.
  • AC2 Forms & labels: Label association is read from static markup — a label wired up at runtime (JS-set aria-labelledby, framework-injected ids) reads as missing, a present label says nothing about whether its text is correct, and component-wrapped fields (e.g. a <TextField>) are skipped. A clean result is "no unlabelled native control found", not a labelling proof.
  • AC3 Page structure: Page structure is read from the static markup tree — landmarks, headings and lang injected at runtime aren't seen, heading ORDER is checked structurally (not against the rendered visual hierarchy), and lang/title/main fire only on full documents, never partials. Static readiness, not conformance.
  • AC5 ARIA correctness: ARIA correctness is checked against the static role/attribute shape — roles/attributes set dynamically aren't seen, a valid role says nothing about whether it matches the element's real behaviour, and required-state checks are suppressed when a JSX spread could supply them.
  • AC6 Visual & motion safety: Contrast and motion safety are PARTIAL by construction — only literal inline colours and in-repo <style>-block CSS are read; external stylesheets, CSS-in-JS, computed/runtime/theme colour, and image contrast are all out of reach, so a clean result is bounded by what the markup itself shows.
  • AC7 A11y enforcement: Enforcement is scored from in-repo config/CI evidence only — an a11y gate enforced in external tooling with no in-repo trace can't be credited, and a configured linter is presence, not proof the rules actually run or block a merge.
  • 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 ADVISORY: an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being unhealthy.
  • AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
  • C4 Data Retention: This control is scored from in-repo evidence only — its real-world effectiveness, exercised only at runtime, is outside a static scan.
  • C5 Data-Subject Rights: This control is scored from in-repo evidence only — absence of evidence here means the scan found no in-repo trace, not that the control does not exist.
  • 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".
  • P5 DR & Backup: Backup/restore and disaster-recovery readiness is judged from in-repo evidence — a config that exists is not a tested restore, so the absence of positive evidence is reported as "not evidenced", never scored as present.
  • 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 (2): D20, D22 (model: openai-compatible). 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 Complexity6.6 / 10Fair✓ 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 6.6 / 10 · rule-coverage 100% · ceiling Prevented

67 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was CollectController.Post at 55.

CollectController.Post (cyclomatic 55)src/Events/Controllers/CollectController.cs:41
OrganizationLicense.GetDataBytes (cyclomatic 54)src/Core/Billing/Organizations/Models/OrganizationLicense.cs:182
HubHelpers.SendNotificationToHubAsync (cyclomatic 50)src/Notifications/HubHelpers.cs:28
UpgradeOrganizationPlanCommand.UpgradePlanAsync (cyclomatic 49)src/Core/OrganizationFeatures/OrganizationSubscriptions/UpgradeOrganizationPlanCommand.cs:85
OrganizationLicense.ObsoleteVerifyData (cyclomatic 42)src/Core/Billing/Organizations/Models/OrganizationLicense.cs:503

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

What to do

  1. Resolve the 1 CollectController.Post (cyclomatic 55) finding(s) in Cyclomatic Complexity — start with CollectController.cs. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 OrganizationLicense.GetDataBytes (cyclomatic 54) finding(s) in Cyclomatic Complexity — start with OrganizationLicense.cs. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 HubHelpers.SendNotificationToHubAsync (cyclomatic 50) finding(s) in Cyclomatic Complexity — start with HubHelpers.cs. — One of this dimension's main actionable groups (1 warning-level).
  4. Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D2 · Cognitive Complexity6.5 / 10Fair✓ 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 6.5 / 10 · rule-coverage 100% · ceiling Prevented

97 method(s) exceeded the cognitive complexity threshold of 15; the worst was UpgradeOrganizationPlanCommand.UpgradePlanAsync at 63.

UpgradeOrganizationPlanCommand.UpgradePlanAsync (cognitive 63)src/Core/OrganizationFeatures/OrganizationSubscriptions/UpgradeOrganizationPlanCommand.cs:85
Context.LoadConfiguration (cognitive 61)util/Setup/Context.cs:67
CoreHelpers.BuildIdentityClaims (cognitive 57)src/Core/Utilities/CoreHelpers.cs:716
CollectController.Post (cognitive 54)src/Events/Controllers/CollectController.cs:41
RegisterFinishRequestModel.Validate (cognitive 46)src/Core/Auth/Models/Api/Request/Accounts/RegisterFinishRequestModel.cs:167

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

What to do

  1. Resolve the 1 UpgradeOrganizationPlanCommand.UpgradePlanAsync (cognitive 63) finding(s) in Cognitive Complexity — start with UpgradeOrganizationPlanCommand.cs. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 Context.LoadConfiguration (cognitive 61) finding(s) in Cognitive Complexity — start with Context.cs. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 CoreHelpers.BuildIdentityClaims (cognitive 57) finding(s) in Cognitive Complexity — start with CoreHelpers.cs. — One of this dimension's main actionable groups (1 warning-level).
  4. Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D3 · God Classes9.1 / 10Exemplary✓ Tool-verified

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

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

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

32 god class(es) detected.

TooManyMethods: HostBuilderExtensions · ×19root/.nuget/packages/bitwarden.server.sdk/1.5.2/Content/HostBuilderExtensions.cs:0
FileTooLong: Controllers/OrganizationsController.cs · ×16src/Admin/AdminConsole/Controllers/OrganizationsController.cs:0
ClassTooLong: OrganizationsController · ×13src/Admin/AdminConsole/Controllers/OrganizationsController.cs:0

✓ On the Gold path — maintain.

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

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

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

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

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

65 duplicated block group(s) detected.

Duplicated block (11 lines × 2) · ×9src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/AutoConfirmUser/AutomaticallyConfirmOrganizationUserCommand.cs:151
Duplicated block (8 lines × 2) · ×6src/Core/AdminConsole/OrganizationFeatures/Policies/PolicyEventHandlers/SingleOrgPolicyEventHandler.cs:76
Duplicated block (13 lines × 2) · ×4src/Core/AdminConsole/OrganizationFeatures/Groups/CreateGroupCommand.cs:85
Duplicated block (12 lines × 2) · ×4src/Admin/AdminConsole/Controllers/OrganizationsController.cs:180
Duplicated block (9 lines × 2) · ×4src/Api/Utilities/ExceptionHandlerFilterAttribute.cs:167

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

✓ On the Gold path — maintain.

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

D5 · Coupling10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether volatile projects sit underneath others that depend on them (so their churn ripples upward), and whether project dependencies form cycles. A widely-depended-on but stable shared/kernel project is healthy, not penalised.

Method: Dependency cycles via elementary-DFS over real .csproj references, plus Martin instability (afferent/efferent) per project. Exhaustive over the reference graph, deterministic.

Coverage: Exhaustive · type-level: afferent/efferent coupling + cycles computed over every production type — the population is all types, not a name convention.

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

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

Off the main sequence: AppHost · ×10

✓ On the Gold path — maintain.

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

D6 · Cohesion (LCOM4)9.2 / 10Exemplary✓ Tool-verified

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

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

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

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

35 of 506 classes have LCOM4 above 3.

Low cohesion: OrganizationUserRepository (LCOM4 34) · ×35src/Infrastructure.Dapper/AdminConsole/Repositories/OrganizationUserRepository.cs:21

✓ On the Gold path — maintain.

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

D8 · Code Coverage9.6 / 10Exemplary✓ Tool-verified

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

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

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

Line coverage 66.3%.

✓ On the Gold path — maintain.

Detailed fixes: d8_recommendation.md.

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

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

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

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

7709 test methods: 7677 unit, 32 integration, 0 BDD, 0 e2e.

Unit tests
Integration tests
BDD tests
E2E tests

✓ On the Gold path — maintain.

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

D10 · Test Quality9.8 / 10Exemplary✓ Tool-verified

What it measures: Whether the tests truly assert behaviour rather than just running the code.

Method: Per-test assertions, skips, and mock references analyzed via Roslyn; structured skip-reason tags (BUG:/ENV:) separate documented deferrals from debt. Deterministic.

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

49 skipped (47 with a documented reason), 72 zero-assertion, 15 mock references across 7709 tests (1 harness-style project(s) excluded from the assertion penalty).

No assertions: UpdateAsync_Success · ×52bitwarden_license/test/Commercial.Core.Test/AdminConsole/Services/ProviderServiceTests.cs:169
Skipped test: GetIconAsync_Success · ×2test/Icons.Test/Services/IconFetchingServiceTests.cs:8
No direct assertions: Post_UserClientExportedVault_Success · ×20test/Events.IntegrationTest/Controllers/CollectControllerTests.cs:57
Skipped (documented): ExternalCallback_WithInvalidProviderGuid_ReturnsError · ×47bitwarden_license/test/Sso.IntegrationTest/Controllers/AccountControllerTests.cs:613
Mock framework: NSubstitute · ×15

✓ On the Gold path — maintain.

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

D11 · Test Reliability10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether the tests pass reliably, with no flakiness.

Method: Suite re-run N times within tiered wall-clock budgets (unit to e2e); tests failing non-deterministically across runs flagged; guarded tests retried when #if guards detected.

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

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

Tier not included (time budget)

✓ On the Gold path — maintain.

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

D12 · Dependency Hygiene1.9 / 10Critical✓ Tool-verified

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

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

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

267 outdated, 3 vulnerable, 24 deprecated packages.

Vulnerable: AutoMapper · ×3
Deprecated: xunit · ×24
Outdated: Aspire.Hosting.AppHost · ×267

What to do

  1. Resolve the 24 Deprecated finding(s) in Dependency Hygiene. — One of this dimension's main actionable groups (24 warning-level).
  2. Resolve the 3 Vulnerable finding(s) in Dependency Hygiene. — One of this dimension's main actionable groups (3 issue-level).
  3. Enforce Dependency Hygiene in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

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

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

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

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

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

Secret scan ran and found no leaked secrets.

✓ On the Gold path — maintain.

Detailed fixes: d13_recommendation.md.

D15 · Churn × Complexity Hotspots10.0 / 10Exemplary✓ Tool-verified

What it measures: Files that change often and are also complex — the riskiest hotspots.

Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.

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

No churn × complexity hotspots in the window.

git history depth insufficient

✓ On the Gold path — maintain.

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

D17 · Explicit Debt7.8 / 10Healthy✓ 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 7.8 / 10 · rule-coverage 100% · ceiling Prevented

1171 deducted debt markers + 0 dead symbols across 174039 LoC (1.1/KLoC) → score 7.8.

NoWarnInCsproj · ×18src/Core/Core.csproj:11
EmptyCatchBlock · ×2src/Api/Utilities/ApiHelpers.cs:26
FixmeComment · ×695src/Admin/AdminConsole/Controllers/OrganizationsController.cs:1
TodoComment · ×238src/Admin/HostedServices/AzureQueueMailHostedService.cs:87
ObsoleteWithCallers · ×117src/Api/AdminConsole/Controllers/OrganizationUsersController.cs:678

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

What to do

  1. Resolve the 18 NoWarnInCsproj finding(s) in Explicit Debt — start with Core.csproj (8), Api.csproj (6), Setup.csproj (4). — One of this dimension's main actionable groups (18 issue-level).
  2. Resolve the 2 EmptyCatchBlock finding(s) in Explicit Debt — start with ApiHelpers.cs, ApplicationCacheHostedService.cs. — One of this dimension's main actionable groups (2 issue-level).
  3. Resolve the 695 FixmeComment finding(s) in Explicit Debt — start with AccountController.cs (7), GroupsController.cs (3), OrganizationsController.cs (3). — One of this dimension's main actionable groups (695 warning-level).
  4. Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D18 · Solution Shape10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether the solution is laid out in a sensible, conventional structure.

Method: Solution structure: project count, decomposition, shell-project detection, build success (confirmed failures cap the score); traced to actual .sln files and binaries. Deterministic.

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

57 projects, 4827 .cs files, 397882 hand-written lines of code (174039 production / 223843 test), plus 847170 generated (EF migrations / designer / snapshots, excluded from quality), 278 inter-project edges (build failed).

Build did not complete in the analyzer
AppHost (Production)AppHost/AppHost.csproj
MicroBenchmarks (Production)perf/MicroBenchmarks/MicroBenchmarks.csproj
Admin (Production)src/Admin/Admin.csproj
Api (Production)src/Api/Api.csproj

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

✓ On the Gold path — maintain.

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

D20 · ADR Quality / 10Critical◐ Sampled · advisory

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

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

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

No architecture decision records were found.

No ADRs found

What to do

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

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

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

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

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

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

No public API surface exposed; nothing to be inconsistent.

No exposed public API

✓ On the Gold path — maintain.

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

D27 · Navigability6.3 / 10Fair✓ Tool-verified

What it measures: How far you must trace to follow a call — low indirection and co-located slices read easier.

Method: Call indirection (interface hops, cross-namespace calls, slice-locality scaled) over a sampled set of method invocations, size-aware baseline. Sampled; confidence discounted by symbol-resolution gaps.

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

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

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

What to do

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

Detailed fixes: d27_recommendation.md.

D28 · Secrets (history)7.0 / 10Healthy✓ 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 7.0 / 10 · rule-coverage 100% · ceiling Documented

3 finding(s): 0 critical, 3 high, 0 medium, 0 low. Remediation is credential rotation — the secrets remain in history regardless of later deletion.

Secret: jwt · ×3src/Core/Settings/GlobalSettings.cs:516detected by gitleaks finding
Rotate the exposed credentials — git history can't be un-committed

What to do

  1. Resolve the 3 Secret finding(s) in Secrets (history) — start with GlobalSettings.cs, SshKeyDataGenerator.cs, rsa_keys.rs. — One of this dimension's main actionable groups (3 issue-level).
  2. Resolve the 1 Rotate the exposed credentials 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)10.0 / 10Exemplary○ Nothing flagged

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

Method: Polyglot static analysis via semgrep --config auto across the repo; severity rules (ERROR/WARNING/INFO) map to a 0-10 wide normalizer. 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 10.0 / 10 · rule-coverage 100% · ceiling Documented

semgrep found no security issues.

✓ On the Gold path — maintain.

Detailed fixes: d29_recommendation.md.

D30 · Dependency Vulnerabilities7.5 / 10Healthy✓ 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 7.5 / 10 · rule-coverage 100% · ceiling Documented

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

High CVE: MessagePack 2.5.192 · ×4detected by dotnet list package --vulnerable

What to do

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

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

D31 · IaC & Container Security3.9 / 10Poor✓ Tool-verified

What it measures: Whether Dockerfiles / Terraform / Kubernetes config follow security best practices.

Method: IaC/container misconfiguration scan via trivy config (Dockerfile/Terraform/K8s/Helm/CloudFormation); severity rules to 0-10 moderate normalizer. NotApplicable without manifests. Exhaustive, deterministic.

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

20 finding(s): 0 critical, 18 high, 0 medium, 2 low.

High IaC: DS-0002 · ×18bitwarden_license/src/Scim/Dockerfiledetected by trivy finding
Low IaC: DS-0026 · ×2util/MsSqlMigratorUtility/Dockerfiledetected by trivy finding

What to do

  1. Resolve the 18 High IaC finding(s) in IaC & Container Security — start with Dockerfile (18). — One of this dimension's main actionable groups (18 issue-level).
  2. Resolve the 2 Low IaC finding(s) in IaC & Container Security — start with Dockerfile (2). — One of this dimension's main actionable groups (2 recommendation-level).

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

D33 · JS/npm Dependency Vulnerabilities2.2 / 10Critical✓ Tool-verified

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

16 finding(s): 0 critical, 11 high, 5 medium, 0 low.

High CVE: [CVE redacted] · ×11src/Core/MailTemplates/Mjml/package-lock.jsondetected by trivy finding
Medium CVE: [CVE redacted] · ×5src/Core/MailTemplates/Mjml/package-lock.jsondetected by trivy finding

What to do

  1. Resolve the 11 High CVE finding(s) in JS/npm Dependency Vulnerabilities — start with package-lock.json (11). — One of this dimension's main actionable groups (11 issue-level).
  2. Resolve the 5 Medium CVE finding(s) in JS/npm Dependency Vulnerabilities — start with package-lock.json (5). — One of this dimension's main actionable groups (5 warning-level).

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

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

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

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

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

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

Unpinned build actions
No build provenance
No SBOM

What to do

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

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

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

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

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

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

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

✓ On the Gold path — maintain.

Detailed fixes: d37_recommendation.md.

D38 · OSV Dependency Vulnerabilities0.0 / 10Critical✓ Tool-verified

What it measures: Whether dependencies have known published vulnerabilities (CVEs) per the OSV database — npm and other lockfile ecosystems, parsed natively. Complements D33 (npm via trivy) and D30 (.NET via dotnet).

Method: npm/multi-ecosystem CVE scan via osv-scanner (queries the osv.dev database + parses lockfiles natively: package-lock/yarn/pnpm/bun); severity tally (Critical/High/Medium/Low) to 0-10 tight normalizer (8.0). NotApplicable without a JS lockfile. Additive to D33 (trivy fs); exhaustive + deterministic, DB kept fresh.

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

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

High CVE: [GHSA redacted] · ×22bitwarden_license/src/Sso/package-lock.jsondetected by osv-scanner finding
Medium CVE: [GHSA redacted] · ×15bitwarden_license/src/Sso/package-lock.jsondetected by osv-scanner finding
Low CVE: [GHSA redacted] · ×2util/RustSdk/rust/Cargo.lockdetected by osv-scanner finding

What to do

  1. Resolve the 22 High CVE finding(s) in OSV Dependency Vulnerabilities — start with package-lock.json (22). — One of this dimension's main actionable groups (22 issue-level).
  2. Resolve the 15 Medium CVE finding(s) in OSV Dependency Vulnerabilities — start with package-lock.json (13), Cargo.lock (2). — One of this dimension's main actionable groups (15 warning-level).
  3. Resolve the 2 Low CVE finding(s) in OSV Dependency Vulnerabilities — start with Cargo.lock (2). — One of this dimension's main actionable groups (2 recommendation-level).

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

Frontend & cross-cutting dimensions

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

AC2 · Forms & labels7.4 / 10Healthy✓ Tool-verified

Other · Accessibility — Whether form controls have a programmatic label (an associated label, aria-label or aria-labelledby), buttons have text, fieldsets have a legend, and a placeholder isn't used as the only label. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: inputs/selects/textareas checked for an associated label[for]/wrapping label/aria-label/aria-labelledby (per document), buttons for accessible text, fieldsets for a legend; placeholder-only labelling flagged. Deterministic, hard fact per control.

  • This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it. (×3) — _OrganizationForm.cshtml:36, _OrganizationForm.cshtml:40, Index.cshtml:21
  • This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label. — Index.cshtml:19

What to do

  • Give every control a programmatic label (a <label for> / wrapping <label> / aria-label) and every button text — a placeholder is not a label.
AC3 · Page structure5.7 / 10Fair✓ Tool-verified

Other · Accessibility — Whether pages declare a language and title, expose a main landmark and a sane heading order, keep zoom enabled, title their iframes and avoid meta-refresh. Static markup readiness, not a WCAG conformance claim.

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

  • A page with no <title> gives no name in the tab, history or screen-reader page list. Add a descriptive <title> in <head>. (×3) — _Layout.cshtml:0, _Layout.cshtml:0, Redirect.cshtml:0
  • No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>. (×2) — _Layout.cshtml:0, Redirect.cshtml:0
  • Skipping heading levels breaks the document outline assistive tech relies on. Don't jump levels — increase by at most one. (×2) — Edit.cshtml:157, Edit.cshtml:28
  • The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en"). (×2) — _Layout.cshtml:0, Redirect.cshtml:0

What to do

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

Other · Accessibility — Whether ARIA is used correctly — valid non-abstract roles, the ARIA state a role requires, and no aria-hidden on a focusable element. Static markup readiness, not a WCAG conformance claim.

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

AC6 · Visual & motion safety10.0 / 10Exemplary○ Nothing flagged

Other · Accessibility — Whether focus outlines aren't removed without a replacement, motion respects prefers-reduced-motion, and literal CSS colour pairs meet contrast — PARTIAL: only inline styles and in-repo CSS literals are visible, never computed or runtime colour. Static markup readiness, not a WCAG conformance claim.

Method: Static markup/CSS scan: inline outline:none/0, literal inline colour/background contrast against the 4.5:1 AA floor, and <style>-block animation without a prefers-reduced-motion guard. Deterministic but PARTIAL — only inline styles and in-repo CSS literals are visible.

AC7 · A11y enforcement4.0 / 10Poor✓ Tool-verified

Other · Accessibility — Whether accessibility is ENFORCED in the toolchain — an a11y linter (eslint-plugin-jsx-a11y / vuejs-accessibility) configured, and axe/pa11y/Lighthouse wired into tests or CI — on the Documented→Verified→Prevented ladder.

Method: Repo config/CI scan: an a11y linter (eslint-plugin-jsx-a11y / vuejs-accessibility) configured, and axe/pa11y/Lighthouse in tests or CI, graded on the Documented→Verified→Prevented rungs. Deterministic, presence/rung detection.

  • No accessibility enforcement found — no a11y linter (eslint-plugin-jsx-a11y / vuejs-accessibility) and no axe/pa11y/Lighthouse in tests or CI. Start with the linter to catch issues at author time.

What to do

  • Enforce accessibility in the toolchain: add eslint-plugin-jsx-a11y (or vuejs-accessibility), assert with jest-axe / playwright-axe in tests, then gate axe/pa11y/Lighthouse in CI.
AX1 · Captive dependencies7.7 / 10Healthy✓ Tool-verified

Other · Architecture — Whether any singleton service captures a scoped/transient dependency — a silent lifetime/threading bug.

Method: Roslyn scan: DI registrations parsed from AddSingleton/Scoped/Transient; each singleton checked for captured shorter-lifetime dependencies. Exhaustive, deterministic.

  • `LicensingService` is registered as a SINGLETON but its constructor takes `ILicenseClaimsFactory organizationLicenseClaimsFactory`, which is registered as Transient. The singleton captures one instance of the transient dependency forever — defeating its lifetime (a per-request DbContext shared across all requests is a classic data-corruption/threading bug). Make the singleton resolve `ILicenseClaimsFactory` per-use (inject `IServiceScopeFactory` or a factory func), or align the lifetimes. — LicensingService.cs:32
  • `LicensingService` is registered as a SINGLETON but its constructor takes `ILicenseClaimsFactory userLicenseClaimsFactory`, which is registered as Transient. The singleton captures one instance of the transient dependency forever — defeating its lifetime (a per-request DbContext shared across all requests is a classic data-corruption/threading bug). Make the singleton resolve `ILicenseClaimsFactory` per-use (inject `IServiceScopeFactory` or a factory func), or align the lifetimes. — LicensingService.cs:32

What to do

  • Don't inject scoped/transient services into singletons; resolve them per-use via IServiceScopeFactory or a factory delegate, or align the lifetimes.
AX10 · Code composition5.0 / 10Poor✓ 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).
AX2 · Stateful singletons6.4 / 10Fair✓ Tool-verified

Other · Architecture — Whether singleton services avoid mutable shared instance state that concurrent callers would race on.

Method: Roslyn scan: singleton field mutations unguarded by lock or Interlocked, per type; syntax-based guard detection. Deterministic, traceable per field.

  • `JobsHostedService` is a singleton (one shared instance) but mutates instance state outside any lock (_adHocScheduler; e.g. `_adHocScheduler` at line 56). — JobsHostedService.cs:8
  • `InMemoryApplicationCacheService` is a singleton (one shared instance) but mutates instance state outside any lock (_providerAbilities, _orgAbilities, _lastOrgAbilityRefresh; e.g. `_providerAbilities` at line 81). (×2) — InMemoryApplicationCacheService.cs:14, InMemoryApplicationCacheService.cs:14
  • `ConnectionCounter` is a singleton (one shared instance) but mutates instance state outside any lock (_count; e.g. `_count` at line 19). — ConnectionCounter.cs:3
  • `HandlebarsMailService` is a singleton (one shared instance) but mutates instance state outside any lock (_templateCache, _registeredHelpersAndPartials; e.g. `_templateCache` at line 924). — HandlebarsMailService.cs:36
  • `LicensingService` is a singleton (one shared instance) but mutates instance state outside any lock (_userCheckCache; e.g. `_userCheckCache` at line 244). — LicensingService.cs:32
  • `AzureAttachmentStorageService` is a singleton (one shared instance) but mutates instance state outside any lock (_attachmentContainers; e.g. `_attachmentContainers` at line 268). — AzureAttachmentStorageService.cs:13
  • `AzureSendFileStorageService` is a singleton (one shared instance) but mutates instance state outside any lock (_sendFilesContainerClient; e.g. `_sendFilesContainerClient` at line 196). — AzureSendFileStorageService.cs:16
  • `AzureOrganizationReportStorageService` is a singleton (one shared instance) but mutates instance state outside any lock (_containerClient; e.g. `_containerClient` at line 133). — AzureOrganizationReportStorageService.cs:12
  • `GlobalSettings` is a singleton (one shared instance) but mutates instance state outside any lock (_licenseDirectory, _mailTemplateDirectory; e.g. `_licenseDirectory` at line 33). — GlobalSettings.cs:10
  • `DynamicAuthenticationSchemeProvider` is a singleton (one shared instance) but mutates instance state outside any lock (_schemesCopy, _handlerSchemesCopy, _lastSchemeLoad, _cachedSchemes, _cachedHandlerSchemes; e.g. `_schemesCopy` at line 180). — DynamicAuthenticationSchemeProvider.cs:27

What to do

  • Keep singletons stateless or back their state with thread-safe types (Concurrent*/Immutable*); otherwise concurrent callers race.
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.

AX6 · Interface segregation9.8 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether interfaces stay focused rather than fat — the Interface-Segregation principle (SOLID 'I').

Method: Roslyn scan: public interface member counts; fat-interface threshold (over 15 members) flagged per type. Deterministic, type-level.

  • `IStripeFacade` declares 21 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — IStripeFacade.cs:9
  • `IProfileOrganizationDetails` declares 147 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — IProfileOrganizationDetails.cs:10
  • `IProviderService` declares 17 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — IProviderService.cs:12
  • `ICurrentContext` declares 75 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — ICurrentContext.cs:21
  • `ISubscriber` declares 21 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — ISubscriber.cs:7
  • `IEvent` declares 66 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — IEvent.cs:8
  • `IMailQueueMessage` declares 18 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — IMailQueueMessage.cs:3
  • `ICollectionRepository` declares 18 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — ICollectionRepository.cs:8
  • `IOrganizationRepository` declares 22 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — IOrganizationRepository.cs:12
  • `IOrganizationUserRepository` declares 43 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — IOrganizationUserRepository.cs:14
  • `IUserRepository` declares 25 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — IUserRepository.cs:9
  • `IOrganizationService` declares 18 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — IOrganizationService.cs:13
  • `IEventService` declares 28 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — IEventService.cs:15
  • `IMailService` declares 68 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — IMailService.cs:15
  • `IAttachmentStorageService` declares 16 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — IAttachmentStorageService.cs:8
  • `IUserService` declares 47 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — IUserService.cs:16
  • `IGrant` declares 30 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — IGrant.cs:6
  • `IEmergencyAccessService` declares 18 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — IEmergencyAccessService.cs:13
  • `IBaseServiceUriSettings` declares 55 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — IBaseServiceUriSettings.cs:4
  • `IGlobalSettings` declares 90 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — IGlobalSettings.cs:5
  • `ILicense` declares 33 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — ILicense.cs:5
  • `IStripeAdapter` declares 52 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — IStripeAdapter.cs:11
  • `IStripePaymentService` declares 16 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — IStripePaymentService.cs:13
  • `IIntegrationListenerConfiguration` declares 18 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — IIntegrationListenerConfiguration.cs:5
  • `ICipherRepository` declares 35 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — ICipherRepository.cs:11
  • `ICipherService` declares 25 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — ICipherService.cs:5
  • `IPushNotificationService` declares 25 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — IPushNotificationService.cs:22
  • `ISecretRepository` declares 19 members. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — ISecretRepository.cs:11

What to do

  • Split fat interfaces into focused role-interfaces so clients depend only on what they use.
AX8 · Test isolation10.0 / 10Exemplary✓ Tool-verified

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

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

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

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

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

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

C1 · Data Protection6.5 / 10Fair✓ Tool-verified

Other · Security — Whether sensitive data is encrypted at rest and in transit and keys are vaulted.

Method: Roslyn plus filesystem scan: encryption presence (EF ColumnEncryption, key-vault references, HTTPS enforcement) and key-derivation KDF detection. Deterministic.

  • No in-app HTTPS enforcement, but ForwardedHeaders / 127.0.0.1 binding indicates a reverse-proxy topology — adding UseHttpsRedirection in the app would be wrong in this layout. Verify the reverse proxy enforces TLS. — Startup.cs:146

What to do

  • Strengthen data-at-rest protection: vault your keys (Azure Key Vault / AWS KMS / IDataProtector key ring) and encrypt the most sensitive columns (EF HasConversion encryption or provider-native column encryption) — partial coverage still leaves gaps.
C2 · Access Controls10.0 / 10Exemplary○ Nothing flagged

Other · Security — Whether access is authorized by default — [Authorize]/policies or imperative guard methods (throw-on-violation) called from handlers.

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

C4 · Data Retention10.0 / 10Exemplary✓ Tool-verified

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

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

C5 · Data-Subject Rights4.0 / 10Poor✓ Tool-verified

Other · Security — Whether GDPR data-subject requests are supported in code — erasure, export/portability, consent.

Method: Roslyn scan: GDPR data-subject-rights corroboration (erasure/export/consent vocabulary co-occurring with subject-id store crossing or explicit GDPR pattern). Deterministic, gated by PII.

  • Corroborated rights: erasure ✓ · export ✗ · consent ✗. The missing right(s) would have to be fulfilled manually.

What to do

  • Implement data export/portability for a data subject (a machine-readable export of their personal data).
  • Track GDPR consent (lawful basis) alongside the personal data it authorises.
ED3 · Event naming7.0 / 10Healthy✓ Tool-verified

Other · Event-Driven — Whether events are named in the past tense (a clarity nudge — low weight).

Method: Roslyn scan (event-driven gated): domain and integration events checked for past-tense naming (-ed/-en suffix or irregular set). Naming nudge, low-weight advisory.

  • `IntegrationMessage` reads as an instruction, not a fact that happened. Events describe something that already occurred — name them in the past tense (e.g. `OrderPlaced`, `PaymentCaptured`) so the ubiquitous language stays clear. (×2) — IntegrationMessage.cs:6, IntegrationMessage.cs:32

What to do

  • Name events in the past tense — they record facts that already happened.
ED4 · Outbox / dual-write10.0 / 10Exemplary○ Nothing flagged

Other · Event-Driven — Whether state changes and message publishes are atomic (a transactional outbox) rather than a crash-unsafe dual write.

Method: Roslyn semantic scan (event-driven gated): event-handler methods scanned for DB-save plus bus-publish without a transactional outbox reference. Deterministic, semantic-resolved.

GD1 · Unfinished & placeholder code10.0 / 10Exemplary✓ Tool-verified

Other · Code Health — Unreviewed-generation residue: shipped members still throwing NotImplementedException, and placeholder string literals left in non-test, non-generated code. Scored as a quality signature, never as a claim about authorship.

Method: Roslyn syntax scan: NotImplementedException throws and placeholder string literals in non-test, non-generated shipped code. Deterministic, code-shape signature.

  • A shipped member still throws NotImplementedException — generated scaffolding that was never completed. Implement it or remove the dead surface. (×25) — HomeController.cs:61, ReadOnlyIdentityUserStore.cs:17, ReadOnlyIdentityUserStore.cs:23, …

What to do

  • Finish or delete NotImplementedException stubs and replace placeholder literals before shipping.
IC1 · Incompleteness & stubs3.7 / 10Poor✓ Tool-verified

Other · Code Health — Unfinished work detected by code SHAPE, not keywords: members that only throw a "not implemented" exception, methods that take inputs and return a constant, async methods that never await, dead `if (false)` / `#if false` branches, and skeleton types most of whose members are holes. A real, objective slice of technical debt.

Method: Roslyn syntax scan: incompleteness by code shape (constant-returning methods, async-never-await, #if false branches, skeleton types), not keyword-gated. Deterministic, code-shape heuristic.

  • `StopAsync` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — DatabaseMigrationHostedService.cs:50
  • `CreateAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — ReadOnlyIdentityUserStore.cs:14
  • `DeleteAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — ReadOnlyIdentityUserStore.cs:20
  • `SetEmailAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — ReadOnlyIdentityUserStore.cs:74
  • `SetEmailConfirmedAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — ReadOnlyIdentityUserStore.cs:80
  • `SetUserNameAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — ReadOnlyIdentityUserStore.cs:100
  • `SetSecurityStampAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — ReadOnlyIdentityUserStore.cs:112
  • `ToOrganizationUser` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — MemberCreateRequestModel.cs:26
  • `OnResourceExecuted` takes parameters but its body is empty — it accepts inputs and does nothing. Either implement it or remove it. — DisableFormValueModelBindingAttribute.cs:17
  • `GetFundingBankTransferTypeAsync` is declared `async` but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop `async` or do the real async work. — StripeEventUtilityService.cs:436
  • `NotifyOrganizationAbilityUpsertedAsync` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — NoOpApplicationCacheMessaging.cs:7
  • `NotifyOrganizationAbilityDeletedAsync` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — NoOpApplicationCacheMessaging.cs:12
  • `NotifyProviderAbilityDeletedAsync` looks like it should compute a result but its body just returns a constant — a placeholder return that was never filled in. — NoOpApplicationCacheMessaging.cs:17
  • `NoopProviderService` has 18 unfinished members out of 18 — a scaffolded type that was never implemented. — NoopProviderService.cs:12
  • `CompleteSetupAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — NoopProviderService.cs:14
  • `UpdateAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — NoopProviderService.cs:16
  • `InviteUserAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — NoopProviderService.cs:18
  • `ResendInvitesAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — NoopProviderService.cs:20
  • `AcceptUserAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — NoopProviderService.cs:22
  • `ConfirmUsersAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — NoopProviderService.cs:24
  • `SaveUserAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — NoopProviderService.cs:26
  • `DeleteUsersAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — NoopProviderService.cs:28
  • `AddOrganization` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — NoopProviderService.cs:30
  • `AddOrganizationsToReseller` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — NoopProviderService.cs:32
  • `CreateOrganizationAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — NoopProviderService.cs:34
  • `RemoveOrganizationAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — NoopProviderService.cs:36
  • `LogProviderAccessToOrganizationAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — NoopProviderService.cs:38
  • `ResendProviderSetupInviteEmailAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — NoopProviderService.cs:40
  • `SendProviderSetupInviteEmailAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — NoopProviderService.cs:41
  • `InitiateDeleteAsync` is a shipped member whose whole body throws NotImplementedException — scaffolding that was never completed. Implement it or remove the dead surface. — NoopProviderService.cs:42

What to do

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

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

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

What to do

  • Add a build/run (quick start) section to the root README — the first thing a newcomer needs.
  • Add a 'Testing' section to the root README — how to run the test suite.
  • Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
  • Add a README to the 47 of 57 project(s) that lack one — worth up to 1.6 pts.
M2 · Architecture documentation5.0 / 10Fair✓ 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 — decisions aren't captured for future maintainers.

What to do

  • Start an ADR log (docs/adr/) recording significant decisions and their rationale.
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.

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

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

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

P2 · Observability9.2 / 10Exemplary✓ Tool-verified

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

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

  • Only 21/28 service-like projects use logging (pure contract/DTO projects are excluded — they have nothing to log).

What to do

  • Extend structured logging to the remaining service-like projects so the whole executable surface is diagnosable in production.
P3 · Security & performance tooling5.0 / 10Fair✓ Tool-verified

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

Method: Filesystem/Roslyn scan: CodeQL, Dependabot, secret-scanning, and BenchmarkDotNet presence in pipelines and projects. Exhaustive, deterministic.

What to do

  • Enable Dependabot/Renovate or a dependency-review gate.
  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback7.0 / 10Healthy✓ 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.

  • Deployment automation exists but no readiness/liveness probes, rolling-update strategy, lifecycle hooks or migration job were evidenced — a bad release is harder to detect and reverse.

What to do

  • Add readiness/liveness probes and a rolling-update (or blue/green) strategy so a bad release is caught and rolled back automatically.
P5 · DR & Backup7.0 / 10Healthy✓ Tool-verified

Readiness · Readiness — Whether disaster recovery is planned and codified — backups, geo-recovery, RTO/RPO, persistence guarantees — from IaC + container manifests + docs, never the live cloud.

Method: Filesystem scan: disaster recovery, backup, geo-recovery, RTO/RPO, persistence guarantees from IaC, manifests, and docs. Exhaustive, deterministic, never a live environment.

What to do

  • Document RTO/RPO and a tested restore procedure (a backup config alone isn't disaster recovery).
P6 · Release Hygiene5.0 / 10Fair✓ Tool-verified

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

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

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

What to do

  • Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.
P7 · Outbound HTTP resilience3.0 / 10Poor✓ Tool-verified

Readiness · Readiness — Whether outbound HTTP calls are wrapped in resilience (retry/timeout/circuit-breaker) so a failing dependency doesn't cascade.

Method: Roslyn scan: Polly resilience markers (Retry, CircuitBreaker, Timeout) on outbound HTTP invocations. Computed per type, deterministic.

  • The app makes outbound HTTP calls but no resilience handler was detected (Polly / AddStandardResilienceHandler / circuit-breaker). A slow or failing dependency will cascade — add timeouts, retries with back-off, and a circuit breaker.

What to do

  • Add `AddStandardResilienceHandler()` (or Polly policies) to your HttpClient registrations so a flaky dependency can't take the app down.
P8 · Schema migrations10.0 / 10Exemplary○ Nothing flagged

Readiness · Readiness — Whether EF Core schema changes go through versioned migrations rather than the un-evolvable EnsureCreated().

Method: Roslyn scan: EF Core DbContext for a versioned migrations directory versus bare EnsureCreated usage. Exhaustive per project, deterministic.

P9 · Domain vs controller coverage3.0 / 10Poor✓ Tool-verified

Readiness · Readiness — Whether test coverage concentrates on the domain (business rules) rather than the trivial web/controller layer — a focus check a generic tool can't make.

Method: Roslyn plus test-execution analysis: domain-layer versus trivial web/controller coverage ratio. Computed metric, deterministic.

  • Domain coverage is 23% but the web/controller layer is at 52% — the trivial layer is better tested than the business rules. Coverage effort should concentrate where the invariants and decisions live (the domain), not on thin controllers/endpoints.

What to do

  • Shift coverage toward the domain: aim to cover aggregates/domain services above the web layer, since that's where the costly bugs are.
PF1 · Benchmark discipline9.0 / 10Exemplary✓ Tool-verified

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

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

PF2 · Allocation hygiene6.0 / 10Fair✓ Tool-verified

Readiness · Performance — Whether the code is written to minimise allocations so it doesn't pressure its host's GC — Span/Memory, pooling (ArrayPool/ObjectPool), stackalloc, ValueTask, value-type structs and buffer writers. Reward-only: credited where present, never penalised where a simpler style is fine.

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

What to do

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

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

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

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

What to do

  • Make the call chain async end-to-end and await it — never block on a Task with .Wait()/.GetAwaiter().GetResult() in library code.
S1 · Web-Security Posture8.5 / 10Healthy✓ Tool-verified

Other · Security — Transport security, security headers, secure cookies, input validation, middleware order and crypto hygiene (presence, not runtime).

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

  • Password-hash field compared with `==` — use a constant-time compare to avoid timing oracles (CryptographicOperations.FixedTimeEquals). — RegisterFinishRequestModel.cs:170

What to do

  • Compare password hashes with `CryptographicOperations.FixedTimeEquals` (constant time, no timing oracle).
X1 · Async correctness7.9 / 10Healthy✓ Tool-verified

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

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

  • Blocking on a Task with `.Wait()`/`.GetAwaiter().GetResult()` can deadlock (and wastes a thread). Make the caller `async` and `await` instead. (×9) — LicensingService.cs:76, LicensingService.cs:80, LicensingService.cs:93, …

What to do

  • Sync-over-async (deadlock risk)
X2 · Cancellation propagation4.1 / 10Poor✓ Tool-verified

Other · Code Health — Whether async methods accept a CancellationToken so work can be cancelled (adoption curve).

Method: Roslyn scan: every async method (excluding framework-fixed overrides/Blazor handlers) checked for CancellationToken parameter presence. Deterministic, adoption percentage.

  • Only 66/3078 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) — PersistedGrantStoreTests.cs:91, OrganizationsController.cs:147, OrganizationsController.cs:177, …

What to do

  • Thread a CancellationToken through async methods so work stops promptly on cancellation.
X3 · Exception handling7.8 / 10Healthy✓ Tool-verified

Other · Code Health — Whether exceptions are handled rather than silently swallowed or rethrown with lost stack traces.

Method: Roslyn syntax scan: every catch clause counted; empty catches and bare rethrows flagged. Population is all catch clauses, not estimated. Deterministic, hard fact.

  • An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it. (×2) — ApiHelpers.cs:26, ApplicationCacheHostedService.cs:89

What to do

  • Swallowed exception (empty catch)
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 types9.9 / 10Exemplary✓ 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 `!` suppressions per 1k syntax nodes — each one tells the compiler to trust you about null, suppressing the very safety NRTs provide.

What to do

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

WCAG coverage — what static analysis assessed

Statically assessed 10 of 55 WCAG 2.2 Level A/AA success criteria — partial signal only (a clean result is necessary, not sufficient; static analysis fully verifies none). This is accessibility readiness, not a conformance claim — a WCAG conformance claim requires manual evaluation (WCAG-EM 1.0).

DimensionWCAG 2.2 A/AA criteriaCoverage
AC2 · Forms & labels1.3.1, 3.3.2, 4.1.2Partial signal
AC3 · Page structure1.4.4, 2.2.1, 2.4.1, 2.4.2, 3.1.1, 4.1.2Partial signal
AC5 · ARIA correctness4.1.2Partial signal
AC6 · Visual & motion safety1.4.3, 2.4.7Partial — literal CSS only
AC7 · A11y enforcementenforcement — no page criterionEnforcement posture (process)

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 Health61%Fair — gated by IC1Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture83%HealthySolid.
Maturity72%HealthySolid.
Readiness42%Poor — gated by D12, P7, P9Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security63%Fair — gated by D31, D33, D36, D38Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Event-Driven100%ExemplaryStrongest area.
Accessibility65%FairAcceptable, with room to improve.
Performance67%FairAcceptable, with room to improve.
Not included — 25 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 image/media element found in the parsed markup — AC1 not applicable here.
  • AC4 Keyboard semantics — No interactive element found in the parsed markup — AC4 not applicable here.
  • AX7 Slice cohesion — not applicable — not a vertical-slice architecture
  • 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.
  • D14 License Compliance — License scan unavailable
  • D16 Bus Factor — single-maintainer — knowledge-concentration (bus factor) risk
  • D19 Documentation Quality — LLM evaluation failed
  • D21 Naming Consistency — LLM evaluation failed
  • D23 Boundary Type-Coupling — Dimension evaluation failed
  • D24 Comment Value — LLM evaluation failed
  • D25 ADR Conformance — no ADRs to check
  • D26 Project Cohesion — Dimension evaluation failed
  • D32 Data Compliance (PII/GDPR) — Not applicable
  • D34 Knowledge Freshness — early-stage repository — too little history to judge knowledge freshness
  • D35 Change Coupling — no production change history to mine for change-coupling
  • D7 Architectural Integrity — No checkable ADRs to assess
  • DM1 Domain Modelling — not run — only 2/3 markers (18 value object(s); a Domain/Aggregates/ValueObjects layer)
  • ED1 Handler temporal coupling — no event handlers detected — temporal-coupling check not applicable
  • ED2 Event/command shape — no command-shaped messages detected — single-handler-per-command check not applicable
  • ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
  • ES1 Event Sourcing — not run — 0/3 markers found
  • M4 Documentation accuracy — LLM accuracy check could not reach the model — accuracy is advisory and stays neutral.
  • P12 CI test-gate honesty — no data
  • X6 Hand-rolled structured-format parsing — no data
  • X7 Silent fallback defaults — no data

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 — 135 finding(s)
D10 · Test Quality · No assertions · ×52
  • No assertions: UpdateAsync_Success bitwarden_license/test/Commercial.Core.Test/AdminConsole/Services/ProviderServiceTests.cs:169 — Test method has no assertions — it may not test anything.
  • No assertions: Handler_SupportedProjectOperationRequirement_DoesNotThrow bitwarden_license/test/Commercial.Core.Test/SecretsManager/AuthorizationHandlers/Projects/ProjectAuthorizationHandlerTests.cs:74 — Test method has no assertions — it may not test anything.
  • No assertions: Handler_SupportedSecretOperationRequirement_Throws bitwarden_license/test/Commercial.Core.Test/SecretsManager/AuthorizationHandlers/Secrets/SecretAuthorizationHandlerTests.cs:75 — Test method has no assertions — it may not test anything.
  • No assertions: Handler_SupportedServiceAccountOperationRequirement_DoesNotThrow bitwarden_license/test/Commercial.Core.Test/SecretsManager/AuthorizationHandlers/ServiceAccounts/ServiceAccountAuthorizationHandlerTests.cs:68 — Test method has no assertions — it may not test anything.
  • No assertions: ValidateAdminRequest_UserHasManageResetPasswordPermissions_DoesNotThrow test/Api.Test/AdminConsole/Controllers/OrganizationAuthRequestsControllerTests.cs:29 — Test method has no assertions — it may not test anything.
  • No assertions: UpdateManyAuthRequests_ValidInput_DoesNotThrow test/Api.Test/AdminConsole/Controllers/OrganizationAuthRequestsControllerTests.cs:40 — Test method has no assertions — it may not test anything.
  • No assertions: ConnectionEnabled_RequiresBothSelfHostAndCommunications test/Api.Test/AdminConsole/Controllers/OrganizationConnectionsControllerTests.cs:33 — Test method has no assertions — it may not test anything.
  • No assertions: DeleteConnection_Success test/Api.Test/AdminConsole/Controllers/OrganizationConnectionsControllerTests.cs:398 — Test method has no assertions — it may not test anything.
  • No assertions: PostKdf_ChangeKdfSuccess_NoError test/Api.Test/Auth/Controllers/AccountsControllerTests.cs:723 — Test method has no assertions — it may not test anything.
  • No assertions: CheckForDistinctAccessPolicies_DistinctPolicies_Success test/Api.Test/SecretsManager/Utilities/AccessPolicyHelpersTests.cs:53 — Test method has no assertions — it may not test anything.
  • No assertions: CheckAccessPoliciesHaveReadPermission_AllReadIsTrue_Success test/Api.Test/SecretsManager/Utilities/AccessPolicyHelpersTests.cs:88 — Test method has no assertions — it may not test anything.
  • No assertions: SendEmailAsync_Succeeds_WhenCertIsSelfSigned_ServerIsTrusted test/Core.IntegrationTest/MailKitSmtpMailDeliveryServiceTests.cs:118 — Test method has no assertions — it may not test anything.
  • No assertions: SendEmailAsync_Succeeds_WhenServerNeedsToAuthenticate test/Core.IntegrationTest/MailKitSmtpMailDeliveryServiceTests.cs:246 — Test method has no assertions — it may not test anything.
  • No assertions: Process_NoProcessors_Handled test/Core.Test/AdminConsole/OrganizationAuth/Models/BatchAuthRequestUpdateProcessorTests.cs:14 — Test method has no assertions — it may not test anything.
  • No assertions: SignUpOrganizationAsync_WithTrialLengthAtMinimum_Succeeds test/Core.Test/AdminConsole/OrganizationFeatures/Organizations/OrganizationSignUp/CloudOrganizationSignUpCommandTests.cs:409 — Test method has no assertions — it may not test anything.
  • No assertions: SignUpOrganizationAsync_WithTrialLengthAtMaximum_Succeeds test/Core.Test/AdminConsole/OrganizationFeatures/Organizations/OrganizationSignUp/CloudOrganizationSignUpCommandTests.cs:435 — Test method has no assertions — it may not test anything.
  • No assertions: SignUpOrganizationAsync_WithoutTrialLength_Succeeds test/Core.Test/AdminConsole/OrganizationFeatures/Organizations/OrganizationSignUp/CloudOrganizationSignUpCommandTests.cs:461 — Test method has no assertions — it may not test anything.
  • No assertions: InviteUsers_WithCustomType_WhenUseCustomPermissionsIsTrue_Passes test/Core.Test/AdminConsole/Services/OrganizationServiceTests.cs:187 — Test method has no assertions — it may not test anything.
  • No assertions: InviteUsers_WithNonCustomType_WhenUseCustomPermissionsIsFalse_Passes test/Core.Test/AdminConsole/Services/OrganizationServiceTests.cs:223 — Test method has no assertions — it may not test anything.
  • No assertions: InviteUsers_NoPermissionsObject_Passes test/Core.Test/AdminConsole/Services/OrganizationServiceTests.cs:319 — Test method has no assertions — it may not test anything.
  • No assertions: ValidateSecretsManagerPlan_ValidPlan_NoExceptionThrown test/Core.Test/AdminConsole/Services/OrganizationServiceTests.cs:948 — Test method has no assertions — it may not test anything.
  • No assertions: ValidateOrganizationUserUpdatePermissions_WithCustomPermission_WhenSavingUserHasCustomPermission_Passes test/Core.Test/AdminConsole/Services/OrganizationServiceTests.cs:970 — Test method has no assertions — it may not test anything.
  • No assertions: ValidateOrganizationCustomPermissionsEnabledAsync_WithNotCustomType_IsValid test/Core.Test/AdminConsole/Services/OrganizationServiceTests.cs:1058 — Test method has no assertions — it may not test anything.
  • No assertions: ValidateOrganizationCustomPermissionsEnabledAsync_WithUseCustomPermissionsEnabled_IsValid test/Core.Test/AdminConsole/Services/OrganizationServiceTests.cs:1095 — Test method has no assertions — it may not test anything.
  • No assertions: RunCanGenerateTwoFactorTokenAsync test/Core.Test/Auth/Identity/AuthenticationTwoFactorTokenProviderTests.cs:32 — Test method has no assertions — it may not test anything.
  • + 27 more in this group — see findings.md.
D38 · OSV Dependency Vulnerabilities · High CVE · ×22
  • High CVE: [GHSA redacted] bitwarden_license/src/Sso/package-lock.json — fast-uri: [GHSA redacted]
  • High CVE: [GHSA redacted] bitwarden_license/src/Sso/package-lock.json — fast-uri: [GHSA redacted]
  • High CVE: [GHSA redacted] bitwarden_license/src/Sso/package-lock.json — picomatch: [GHSA redacted]
  • High CVE: [GHSA redacted] src/Admin/package-lock.json — fast-uri: [GHSA redacted]
  • High CVE: [GHSA redacted] src/Admin/package-lock.json — fast-uri: [GHSA redacted]
  • High CVE: [GHSA redacted] src/Admin/package-lock.json — immutable: [GHSA redacted]
  • High CVE: [GHSA redacted] src/Admin/package-lock.json — picomatch: [GHSA redacted]
  • High CVE: [GHSA redacted] src/Admin/package-lock.json — serialize-javascript: [GHSA redacted]
  • High CVE: [GHSA redacted] src/Core/MailTemplates/Mjml/package-lock.json — glob: [GHSA redacted]
  • High CVE: [GHSA redacted] src/Core/MailTemplates/Mjml/package-lock.json — html-minifier: [GHSA redacted]
  • High CVE: [GHSA redacted] src/Core/MailTemplates/Mjml/package-lock.json — js-cookie: [GHSA redacted]
  • High CVE: [GHSA redacted] src/Core/MailTemplates/Mjml/package-lock.json — lodash: [GHSA redacted]
  • High CVE: [GHSA redacted] src/Core/MailTemplates/Mjml/package-lock.json — minimatch: [GHSA redacted]
  • High CVE: [GHSA redacted] src/Core/MailTemplates/Mjml/package-lock.json — minimatch: [GHSA redacted]
  • High CVE: [GHSA redacted] src/Core/MailTemplates/Mjml/package-lock.json — minimatch: [GHSA redacted]
  • High CVE: [GHSA redacted] src/Core/MailTemplates/Mjml/package-lock.json — minimatch: [GHSA redacted]
  • High CVE: [GHSA redacted] src/Core/MailTemplates/Mjml/package-lock.json — minimatch: [GHSA redacted]
  • High CVE: [GHSA redacted] src/Core/MailTemplates/Mjml/package-lock.json — minimatch: [GHSA redacted]
  • High CVE: [GHSA redacted] src/Core/MailTemplates/Mjml/package-lock.json — minimatch: [GHSA redacted]
  • High CVE: [GHSA redacted] src/Core/MailTemplates/Mjml/package-lock.json — minimatch: [GHSA redacted]
  • High CVE: [GHSA redacted] src/Core/MailTemplates/Mjml/package-lock.json — minimatch: [GHSA redacted]
  • High CVE: [GHSA redacted] src/Core/MailTemplates/Mjml/package-lock.json — picomatch: [GHSA redacted]
D17 · Explicit Debt · NoWarnInCsproj · ×18
  • NoWarnInCsproj src/Core/Core.csproj:11 — 1701
  • NoWarnInCsproj src/Core/Core.csproj:11 — 1702
  • NoWarnInCsproj src/Core/Core.csproj:11 — 1591
  • NoWarnInCsproj src/Core/Core.csproj:11 — 1573
  • NoWarnInCsproj src/Core/Core.csproj:15 — 1701
  • NoWarnInCsproj src/Core/Core.csproj:15 — 1702
  • NoWarnInCsproj src/Core/Core.csproj:15 — 1591
  • NoWarnInCsproj src/Core/Core.csproj:15 — 1573
  • NoWarnInCsproj src/Api/Api.csproj:14 — 1701
  • NoWarnInCsproj src/Api/Api.csproj:14 — 1702
  • NoWarnInCsproj src/Api/Api.csproj:14 — 1591
  • NoWarnInCsproj src/Api/Api.csproj:18 — 1701
  • NoWarnInCsproj src/Api/Api.csproj:18 — 1702
  • NoWarnInCsproj src/Api/Api.csproj:18 — 1591
  • NoWarnInCsproj util/Setup/Setup.csproj:5 — 1701
  • NoWarnInCsproj util/Setup/Setup.csproj:5 — 1702
  • NoWarnInCsproj util/Setup/Setup.csproj:5 — 1705
  • NoWarnInCsproj util/Setup/Setup.csproj:5 — NU1701
D31 · IaC & Container Security · High IaC · ×18
  • High IaC: DS-0002 bitwarden_license/src/Scim/Dockerfile — Image user should not be 'root'
  • High IaC: DS-0002 bitwarden_license/src/Sso/Dockerfile — Image user should not be 'root'
  • High IaC: DS-0002 src/Admin/Dockerfile — Image user should not be 'root'
  • High IaC: DS-0002 src/Api/Dockerfile — Image user should not be 'root'
  • High IaC: DS-0002 src/Billing/Dockerfile — Image user should not be 'root'
  • High IaC: DS-0002 src/Events/Dockerfile — Image user should not be 'root'
  • High IaC: DS-0002 src/EventsProcessor/Dockerfile — Image user should not be 'root'
  • High IaC: DS-0002 src/Icons/Dockerfile — Image user should not be 'root'
  • High IaC: DS-0002 src/Identity/Dockerfile — Image user should not be 'root'
  • High IaC: DS-0002 src/Notifications/Dockerfile — Image user should not be 'root'
  • High IaC: DS-0002 util/Attachments/Dockerfile — Image user should not be 'root'
  • High IaC: DS-0002 util/MsSql/Dockerfile — Image user should not be 'root'
  • High IaC: DS-0002 util/MsSqlMigratorUtility/Dockerfile — Image user should not be 'root'
  • High IaC: DS-0002 util/Nginx/Dockerfile — Image user should not be 'root'
  • High IaC: DS-0002 util/SeederApi/Dockerfile — Image user should not be 'root'
  • High IaC: DS-0029 util/SeederApi/Dockerfile — 'apt-get' missing '--no-install-recommends'
  • High IaC: DS-0029 util/SeederApi/Dockerfile — 'apt-get' missing '--no-install-recommends'
  • High IaC: DS-0002 util/Setup/Dockerfile — Image user should not be 'root'
D33 · JS/npm Dependency Vulnerabilities · High CVE · ×11
  • High CVE: [CVE redacted] src/Core/MailTemplates/Mjml/package-lock.json — glob: [CVE redacted]
  • High CVE: [CVE redacted] src/Core/MailTemplates/Mjml/package-lock.json — html-minifier: [CVE redacted]
  • High CVE: [CVE redacted] src/Core/MailTemplates/Mjml/package-lock.json — js-cookie: [CVE redacted]
  • High CVE: [CVE redacted] src/Core/MailTemplates/Mjml/package-lock.json — lodash: [CVE redacted]
  • High CVE: [CVE redacted] src/Core/MailTemplates/Mjml/package-lock.json — minimatch: [CVE redacted]
  • High CVE: [CVE redacted] src/Core/MailTemplates/Mjml/package-lock.json — minimatch: [CVE redacted]
  • High CVE: [CVE redacted] src/Core/MailTemplates/Mjml/package-lock.json — minimatch: [CVE redacted]
  • High CVE: [CVE redacted] src/Core/MailTemplates/Mjml/package-lock.json — minimatch: [CVE redacted]
  • High CVE: [CVE redacted] src/Core/MailTemplates/Mjml/package-lock.json — minimatch: [CVE redacted]
  • High CVE: [CVE redacted] src/Core/MailTemplates/Mjml/package-lock.json — minimatch: [CVE redacted]
  • High CVE: [CVE redacted] src/Core/MailTemplates/Mjml/package-lock.json — picomatch: [CVE redacted]
D30 · Dependency Vulnerabilities · High CVE · ×4
  • High CVE: MessagePack 2.5.192 — MessagePack 2.5.192 (transitive) has a High advisory. https://github.com/advisories/[GHSA redacted]
  • High CVE: AutoMapper 14.0.0 — AutoMapper 14.0.0 (transitive) has a High advisory; affects 41 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • High CVE: SQLitePCLRaw.lib.e_sqlite3 2.1.6 — SQLitePCLRaw.lib.e_sqlite3 2.1.6 (transitive) has a High advisory; affects 41 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
  • High CVE: Microsoft.AspNetCore.SignalR.Protocols.MessagePack 10.0.8 — Microsoft.AspNetCore.SignalR.Protocols.MessagePack 10.0.8 (direct) has a High advisory; affects 2 projects — one upgrade fixes all. https://github.com/advisories/[GHSA redacted]
D12 · Dependency Hygiene · Vulnerable · ×3
  • Vulnerable: AutoMapper — AutoMapper 14.0.0 — High severity. https://github.com/advisories/[GHSA redacted]
  • Vulnerable: Microsoft.AspNetCore.SignalR.Protocols.MessagePack — Microsoft.AspNetCore.SignalR.Protocols.MessagePack 10.0.8 — High severity. https://github.com/advisories/[GHSA redacted]
  • Vulnerable: AutoMapper — AutoMapper 14.0.0 — High severity. https://github.com/advisories/[GHSA redacted]
D28 · Secrets (history) · Secret · ×3
  • Secret: jwt src/Core/Settings/GlobalSettings.cs:516 — matched rule 'jwt'
  • Secret: private-key util/Seeder/Data/Generators/SshKeyDataGenerator.cs:12 — matched rule 'private-key'
  • Secret: private-key util/RustSdk/rust/src/rsa_keys.rs:7 — matched rule 'private-key'
D17 · Explicit Debt · EmptyCatchBlock · ×2
  • EmptyCatchBlock src/Api/Utilities/ApiHelpers.cs:26 — empty catch block
  • EmptyCatchBlock src/Core/HostedServices/ApplicationCacheHostedService.cs:89 — empty catch block
D23 · Boundary Type-Coupling · Dimension evaluation failed · ×1
  • Dimension evaluation failed — Dimension threw: Name or service not known (canine-dgx1:80)
D26 · Project Cohesion · Dimension evaluation failed · ×1
  • Dimension evaluation failed — Dimension threw: Name or service not known (canine-dgx1:80)
Warning — 1431 finding(s)
D17 · Explicit Debt · FixmeComment · ×695
  • FixmeComment src/Admin/AdminConsole/Controllers/OrganizationsController.cs:1 — // FIXME: Update this file to be null safe and then delete the line below — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment src/Admin/AdminConsole/Controllers/ProvidersController.cs:1 — // FIXME: Update this file to be null safe and then delete the line below — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment src/Admin/AdminConsole/Models/CreateBusinessUnitProviderModel.cs:1 — // FIXME: Update this file to be null safe and then delete the line below — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment src/Admin/AdminConsole/Models/CreateMspProviderModel.cs:1 — // FIXME: Update this file to be null safe and then delete the line below — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment src/Admin/AdminConsole/Models/CreateResellerProviderModel.cs:1 — // FIXME: Update this file to be null safe and then delete the line below — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment src/Admin/AdminConsole/Models/OrganizationEditModel.cs:1 — // FIXME: Update this file to be null safe and then delete the line below — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment src/Admin/AdminConsole/Models/OrganizationInitiateDeleteModel.cs:1 — // FIXME: Update this file to be null safe and then delete the line below — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment src/Admin/AdminConsole/Models/OrganizationsModel.cs:1 — // FIXME: Update this file to be null safe and then delete the line below — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment src/Admin/AdminConsole/Models/OrganizationUnassignedToProviderSearchViewModel.cs:1 — // FIXME: Update this file to be null safe and then delete the line below — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment src/Admin/AdminConsole/Models/OrganizationViewModel.cs:1 — // FIXME: Update this file to be null safe and then delete the line below — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment src/Admin/AdminConsole/Models/ProviderEditModel.cs:1 — // FIXME: Update this file to be null safe and then delete the line below — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment src/Admin/AdminConsole/Models/ProvidersModel.cs:1 — // FIXME: Update this file to be null safe and then delete the line below — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment src/Admin/AdminConsole/Models/ProviderViewModel.cs:1 — // FIXME: Update this file to be null safe and then delete the line below — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment src/Admin/AdminSettings.cs:1 — // FIXME: Update this file to be null safe and then delete the line below — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment src/Admin/Auth/Controllers/LoginController.cs:1 — // FIXME: Update this file to be null safe and then delete the line below — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment src/Admin/Auth/Models/LoginModel.cs:1 — // FIXME: Update this file to be null safe and then delete the line below — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment src/Admin/Billing/Controllers/ProcessStripeEventsController.cs:1 — // FIXME: Update this file to be null safe and then delete the line below — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment src/Admin/Billing/Models/ProcessStripeEvents/EventsFormModel.cs:1 — // FIXME: Update this file to be null safe and then delete the line below — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment src/Admin/Billing/Models/ProcessStripeEvents/EventsRequestBody.cs:1 — // FIXME: Update this file to be null safe and then delete the line below — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment src/Admin/Billing/Models/ProcessStripeEvents/EventsResponseBody.cs:1 — // FIXME: Update this file to be null safe and then delete the line below — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment src/Admin/Controllers/HomeController.cs:1 — // FIXME: Update this file to be null safe and then delete the line below — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment src/Admin/Controllers/ToolsController.cs:1 — // FIXME: Update this file to be null safe and then delete the line below — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment src/Admin/HostedServices/AzureQueueMailHostedService.cs:1 — // FIXME: Update this file to be null safe and then delete the line below — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment src/Admin/IdentityServer/ReadOnlyEnvIdentityUserStore.cs:1 — // FIXME: Update this file to be null safe and then delete the line below — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • FixmeComment src/Admin/IdentityServer/ReadOnlyIdentityUserStore.cs:1 — // FIXME: Update this file to be null safe and then delete the line below — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • + 670 more in this group — see findings.md.
D17 · Explicit Debt · TodoComment · ×238
  • TodoComment src/Admin/HostedServices/AzureQueueMailHostedService.cs:87 — // TODO: retries? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Admin/HostedServices/DatabaseMigrationHostedService.cs:30 — // TODO: Maybe flip a flag somewhere to indicate migration is complete?? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Api/AdminConsole/Controllers/OrganizationsController.cs:174 — // Todo: Cannot use PolicyRequirements until PM-34092 is complete — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Api/AdminConsole/Controllers/OrganizationUsersController.cs:247 — // TODO Reset Password - Revisit this and create SPROC to reduce DB calls — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Api/AdminConsole/Controllers/OrganizationUsersController.cs:736 — // TODO: https://bitwarden.atlassian.net/browse/PM-17000 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Api/Auth/Controllers/AccountsController.cs:266 — // TODO removed with https://bitwarden.atlassian.net/browse/PM-27327 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Api/Auth/Controllers/AccountsController.cs:506 — // Todo: Drop this after a transition period. This will drop no-account-keys requests. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Api/Auth/Models/Request/Accounts/SetInitialPasswordRequestModel.cs:13 — // TODO will be removed with https://bitwarden.atlassian.net/browse/PM-27327 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Api/Auth/Models/Request/Accounts/SetInitialPasswordRequestModel.cs:46 — // TODO removed with https://bitwarden.atlassian.net/browse/PM-27327 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Api/Auth/Models/Request/Accounts/SetInitialPasswordRequestModel.cs:74 — // TODO removed with https://bitwarden.atlassian.net/browse/PM-27327 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Api/Auth/Models/Request/OrganizationSsoRequestModel.cs:142 — // TODO: On server, make public certificate required for SAML2 SSO: https://bitwarden.atlassian.net/browse/PM-26028 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Api/Billing/Controllers/AccountsBillingController.cs:17 — // TODO: Migrate to Query / AccountBillingVNextController — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Api/Billing/Controllers/AccountsBillingController.cs:32 — // TODO: Migrate to Query / AccountBillingVNextController — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Api/Billing/Controllers/AccountsBillingController.cs:51 — // TODO: Migrate to Query / AccountBillingVNextController — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Api/Billing/Controllers/AccountsController.cs:33 — /* * TODO: A new version of this exists in the AccountBillingVNextController. * The individual-self-hosting-license-uploader.component needs to be updated to use it. * Then, this can be removed. */ — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Api/Billing/Controllers/AccountsController.cs:57 — // TODO: Migrate to Command / AccountBillingVNextController as DELETE /account/billing/vnext/subscription — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Api/Billing/Controllers/OrganizationBillingController.cs:25 — // TODO: Migrate to Query / OrganizationBillingVNextController — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Api/Billing/Controllers/OrganizationBillingController.cs:46 — // TODO: Migrate to Query / OrganizationBillingVNextController — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Api/Billing/Controllers/OrganizationBillingController.cs:71 — // TODO: Migrate to Query / OrganizationBillingVNextController — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Api/Billing/Controllers/OrganizationBillingController.cs:95 — // TODO: Can be removed once we do away with the organization-plans.component. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Api/Billing/Controllers/OrganizationBillingController.cs:119 — // TODO: Migrate to Command / OrganizationBillingVNextController — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Api/Billing/Controllers/OrganizationBillingController.cs:148 — // TODO: Migrate to Command / OrganizationBillingVNextController — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Api/Billing/Controllers/ProviderBillingController.cs:35 — // TODO: Migrate to Query / ProviderBillingVNextController — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Api/Billing/Controllers/ProviderBillingController.cs:56 — // TODO: Migrate to Query / ProviderBillingVNextController — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/Api/Billing/Controllers/ProviderBillingController.cs:79 — // TODO: Migrate to Query / ProviderBillingVNextController — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • + 213 more in this group — see findings.md.
D17 · Explicit Debt · ObsoleteWithCallers · ×117
  • ObsoleteWithCallers src/Api/AdminConsole/Controllers/OrganizationUsersController.cs:678 — [Obsolete] RestoreAsync
  • ObsoleteWithCallers src/Api/AdminConsole/Models/Request/Organizations/OrganizationUserResetPasswordRequestModel.cs:15 — [Obsolete] NewMasterPasswordHash
  • ObsoleteWithCallers src/Api/AdminConsole/Models/Request/Organizations/OrganizationUserResetPasswordRequestModel.cs:18 — [Obsolete] Key
  • ObsoleteWithCallers src/Api/AdminConsole/Models/Response/Organizations/OrganizationUserResponseModel.cs:92 — [Obsolete] ManagedByOrganization
  • ObsoleteWithCallers src/Api/Auth/Models/Request/Accounts/PasswordRequestModel.cs:12 — [Obsolete] NewMasterPasswordHash
  • ObsoleteWithCallers src/Api/Auth/Models/Request/Accounts/PasswordRequestModel.cs:15 — [Obsolete] Key
  • ObsoleteWithCallers src/Api/Auth/Models/Request/Accounts/SetInitialPasswordRequestModel.cs:14 — [Obsolete] MasterPasswordHash
  • ObsoleteWithCallers src/Api/Auth/Models/Request/Accounts/SetInitialPasswordRequestModel.cs:18 — [Obsolete] Key
  • ObsoleteWithCallers src/Api/Auth/Models/Request/Accounts/SetInitialPasswordRequestModel.cs:21 — [Obsolete] Keys
  • ObsoleteWithCallers src/Api/Auth/Models/Request/Accounts/SetInitialPasswordRequestModel.cs:24 — [Obsolete] Kdf
  • ObsoleteWithCallers src/Api/Auth/Models/Request/Accounts/SetInitialPasswordRequestModel.cs:27 — [Obsolete] KdfIterations
  • ObsoleteWithCallers src/Api/Auth/Models/Request/Accounts/SetInitialPasswordRequestModel.cs:30 — [Obsolete] KdfMemory
  • ObsoleteWithCallers src/Api/Auth/Models/Request/Accounts/SetInitialPasswordRequestModel.cs:33 — [Obsolete] KdfParallelism
  • ObsoleteWithCallers src/Api/Auth/Models/Request/Accounts/UpdateTdeOffboardingPasswordRequestModel.cs:10 — [Obsolete] NewMasterPasswordHash
  • ObsoleteWithCallers src/Api/Auth/Models/Request/Accounts/UpdateTdeOffboardingPasswordRequestModel.cs:13 — [Obsolete] Key
  • ObsoleteWithCallers src/Api/Auth/Models/Request/Accounts/UpdateTempPasswordRequestModel.cs:10 — [Obsolete] NewMasterPasswordHash
  • ObsoleteWithCallers src/Api/Auth/Models/Request/Accounts/UpdateTempPasswordRequestModel.cs:13 — [Obsolete] Key
  • ObsoleteWithCallers src/Api/Auth/Models/Request/EmergencyAccessRequestModels.cs:50 — [Obsolete] NewMasterPasswordHash
  • ObsoleteWithCallers src/Api/Auth/Models/Request/EmergencyAccessRequestModels.cs:53 — [Obsolete] Key
  • ObsoleteWithCallers src/Api/Auth/Models/Request/OrganizationSsoRequestModel.cs:49 — [Obsolete] KeyConnectorEnabled
  • ObsoleteWithCallers src/Api/Controllers/DevicesController.cs:290 — [Obsolete] GetByEmailAndIdentifier
  • ObsoleteWithCallers src/Api/Dirt/Controllers/OrganizationIntegrationConfigurationController.cs:82 — [Obsolete] PostDeleteAsync
  • ObsoleteWithCallers src/Api/Dirt/Controllers/OrganizationIntegrationController.cs:93 — [Obsolete] PostDeleteAsync
  • ObsoleteWithCallers src/Api/KeyManagement/Models/Requests/SetKeyConnectorKeyRequestModel.cs:15 — [Obsolete] Key
  • ObsoleteWithCallers src/Api/KeyManagement/Models/Requests/SetKeyConnectorKeyRequestModel.cs:18 — [Obsolete] Keys
  • + 92 more in this group — see findings.md.
D6 · Cohesion (LCOM4) · Low cohesion · ×35
  • Low cohesion: OrganizationUserRepository (LCOM4 34) src/Infrastructure.Dapper/AdminConsole/Repositories/OrganizationUserRepository.cs:21 — OrganizationUserRepository's methods form 34 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: OrganizationRepository (LCOM4 22) src/Infrastructure.EntityFramework/AdminConsole/Repositories/OrganizationRepository.cs:22 — OrganizationRepository's methods form 22 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: OrganizationRepository (LCOM4 21) src/Infrastructure.Dapper/AdminConsole/Repositories/OrganizationRepository.cs:20 — OrganizationRepository's methods form 21 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: UserStore (LCOM4 20) src/Core/Auth/Identity/UserStore.cs:13 — UserStore's methods form 20 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: StripeAdapter (LCOM4 19) src/Core/Billing/Services/Implementations/StripeAdapter.cs:16 — StripeAdapter's methods form 19 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: User (LCOM4 14) src/Core/Entities/User.cs:14 — User's methods form 14 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: NoopAttachmentStorageService (LCOM4 14) src/Core/Vault/Services/NoopImplementations/NoopAttachmentStorageService.cs:11 — NoopAttachmentStorageService's methods form 14 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: UserRepository (LCOM4 13) src/Infrastructure.Dapper/Repositories/UserRepository.cs:20 — UserRepository's methods form 13 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: StripeFacade (LCOM4 11) src/Billing/Services/Implementations/StripeFacade.cs:10 — StripeFacade's methods form 11 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: Organization (LCOM4 11) src/Core/AdminConsole/Entities/Organization.cs:21 — Organization's methods form 11 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: Provider (LCOM4 11) src/Core/AdminConsole/Entities/Provider/Provider.cs:18 — Provider's methods form 11 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: ToolsController (LCOM4 10) src/Admin/Controllers/ToolsController.cs:23 — ToolsController's methods form 10 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: DeviceRepository (LCOM4 10) src/Infrastructure.EntityFramework/Repositories/DeviceRepository.cs:15 — DeviceRepository's methods form 10 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: DeviceRepository (LCOM4 9) src/Infrastructure.Dapper/Repositories/DeviceRepository.cs:15 — DeviceRepository's methods form 9 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: UserService (LCOM4 8) src/Core/Services/Implementations/UserService.cs:44 — UserService's methods form 8 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: SsoConfigurationData (LCOM4 7) src/Core/Auth/Models/Data/SsoConfigurationData.cs:10 — SsoConfigurationData's methods form 7 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: MaskedPaymentMethod (LCOM4 7) src/Core/Billing/Payment/Models/MaskedPaymentMethod.cs:31 — MaskedPaymentMethod's methods form 7 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: NoopSendFileStorageService (LCOM4 7) src/Core/Tools/Services/NoopImplementations/NoopSendFileStorageService.cs:9 — NoopSendFileStorageService's methods form 7 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: ResourceOwnerPasswordValidator (LCOM4 7) src/Identity/IdentityServer/RequestValidators/ResourceOwnerPasswordValidator.cs:21 — ResourceOwnerPasswordValidator's methods form 7 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: WebAuthnGrantValidator (LCOM4 7) src/Identity/IdentityServer/RequestValidators/WebAuthnGrantValidator.cs:24 — WebAuthnGrantValidator's methods form 7 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: NoopOrganizationReportStorageService (LCOM4 6) src/Core/Dirt/Reports/Services/NoopOrganizationReportStorageService.cs:7 — NoopOrganizationReportStorageService's methods form 6 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: CustomTokenRequestValidator (LCOM4 6) src/Identity/IdentityServer/RequestValidators/CustomTokenRequestValidator.cs:23 — CustomTokenRequestValidator's methods form 6 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: AuthRequestRepository (LCOM4 6) src/Infrastructure.Dapper/Auth/Repositories/AuthRequestRepository.cs:15 — AuthRequestRepository's methods form 6 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: AuthRequestRepository (LCOM4 6) src/Infrastructure.EntityFramework/Auth/Repositories/AuthRequestRepository.cs:16 — AuthRequestRepository's methods form 6 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • Low cohesion: SendRepository (LCOM4 6) src/Infrastructure.EntityFramework/Tools/Repositories/SendRepository.cs:19 — SendRepository's methods form 6 groups that share no state and don't call each other — a sign it may have several responsibilities. Review whether it splits into focused classes.
  • + 10 more in this group — see findings.md.
D12 · Dependency Hygiene · Deprecated · ×24
  • Deprecated: xunit — xunit 2.6.6 — Legacy xunit.v3 >= 0.0.0
  • Deprecated: xunit — xunit 2.6.6 — Legacy xunit.v3 >= 0.0.0
  • Deprecated: xunit — xunit 2.6.6 — Legacy xunit.v3 >= 0.0.0
  • Deprecated: xunit — xunit 2.6.6 — Legacy xunit.v3 >= 0.0.0
  • Deprecated: xunit — xunit 2.6.6 — Legacy xunit.v3 >= 0.0.0
  • Deprecated: xunit — xunit 2.6.6 — Legacy xunit.v3 >= 0.0.0
  • Deprecated: xunit — xunit 2.6.6 — Legacy xunit.v3 >= 0.0.0
  • Deprecated: xunit — xunit 2.6.6 — Legacy xunit.v3 >= 0.0.0
  • Deprecated: xunit — xunit 2.6.6 — Legacy xunit.v3 >= 0.0.0
  • Deprecated: xunit — xunit 2.6.6 — Legacy xunit.v3 >= 0.0.0
  • Deprecated: Rnwood.SmtpServer — Rnwood.SmtpServer 3.1.0-ci0868 — Legacy
  • Deprecated: xunit — xunit 2.9.3 — Legacy xunit.v3 >= 0.0.0
  • Deprecated: xunit — xunit 2.6.6 — Legacy xunit.v3 >= 0.0.0
  • Deprecated: xunit — xunit 2.6.6 — Legacy xunit.v3 >= 0.0.0
  • Deprecated: xunit — xunit 2.6.6 — Legacy xunit.v3 >= 0.0.0
  • Deprecated: xunit — xunit 2.6.6 — Legacy xunit.v3 >= 0.0.0
  • Deprecated: xunit — xunit 2.6.6 — Legacy xunit.v3 >= 0.0.0
  • Deprecated: xunit — xunit 2.6.6 — Legacy xunit.v3 >= 0.0.0
  • Deprecated: xunit — xunit 2.6.6 — Legacy xunit.v3 >= 0.0.0
  • Deprecated: xunit — xunit 2.9.3 — Legacy xunit.v3 >= 0.0.0
  • Deprecated: xunit — xunit 2.6.6 — Legacy xunit.v3 >= 0.0.0
  • Deprecated: xunit — xunit 2.6.6 — Legacy xunit.v3 >= 0.0.0
  • Deprecated: xunit — xunit 2.6.6 — Legacy xunit.v3 >= 0.0.0
  • Deprecated: xunit — xunit 2.6.6 — Legacy xunit.v3 >= 0.0.0
D3 · God Classes · TooManyMethods · ×19
  • TooManyMethods: HostBuilderExtensions root/.nuget/packages/bitwarden.server.sdk/1.5.2/Content/HostBuilderExtensions.cs:0 — TooManyMethods — 620 lines, 40 methods.
  • TooManyMethods: OrganizationUsersController src/Api/AdminConsole/Controllers/OrganizationUsersController.cs:0 — TooManyMethods — 519 lines, 46 methods.
  • TooManyMethods: AccountsController src/Api/Auth/Controllers/AccountsController.cs:0 — TooManyMethods — 442 lines, 36 methods.
  • TooManyMethods: TwoFactorController src/Api/Auth/Controllers/TwoFactorController.cs:0 — TooManyMethods — 323 lines, 37 methods.
  • TooManyMethods: CiphersController src/Api/Vault/Controllers/CiphersController.cs:0 — TooManyMethods — 874 lines, 82 methods.
  • TooManyMethods: StripeAdapter src/Core/Billing/Services/Implementations/StripeAdapter.cs:0 — TooManyMethods — 155 lines, 53 methods.
  • TooManyMethods: CurrentContext src/Core/Context/CurrentContext.cs:0 — TooManyMethods — 256 lines, 39 methods.
  • TooManyMethods: EventService src/Core/Dirt/Services/Implementations/EventService.cs:0 — TooManyMethods — 421 lines, 38 methods.
  • TooManyMethods: HandlebarsMailService src/Core/Platform/Mail/HandlebarsMailService.cs:0 — TooManyMethods — 1036 lines, 86 methods.
  • TooManyMethods: NoopMailService src/Core/Platform/Mail/NoopMailService.cs:0 — TooManyMethods — 162 lines, 68 methods.
  • TooManyMethods: UserService src/Core/Services/Implementations/UserService.cs:0 — TooManyMethods — 614 lines, 53 methods.
  • TooManyMethods: CoreHelpers src/Core/Utilities/CoreHelpers.cs:0 — TooManyMethods — 438 lines, 54 methods.
  • TooManyMethods: CipherService src/Core/Vault/Services/Implementations/CipherService.cs:0 — TooManyMethods — 616 lines, 40 methods.
  • TooManyMethods: OrganizationUserRepository src/Infrastructure.Dapper/AdminConsole/Repositories/OrganizationUserRepository.cs:0 — TooManyMethods — 411 lines, 44 methods.
  • TooManyMethods: UserRepository src/Infrastructure.Dapper/Repositories/UserRepository.cs:0 — TooManyMethods — 343 lines, 34 methods.
  • TooManyMethods: CipherRepository src/Infrastructure.Dapper/Vault/Repositories/CipherRepository.cs:0 — TooManyMethods — 561 lines, 43 methods.
  • TooManyMethods: OrganizationUserRepository src/Infrastructure.EntityFramework/AdminConsole/Repositories/OrganizationUserRepository.cs:0 — TooManyMethods — 676 lines, 46 methods.
  • TooManyMethods: CipherRepository src/Infrastructure.EntityFramework/Vault/Repositories/CipherRepository.cs:0 — TooManyMethods — 646 lines, 42 methods.
  • TooManyMethods: SecretRepository bitwarden_license/src/Commercial.Infrastructure.EntityFramework/SecretsManager/Repositories/SecretRepository.cs:0 — TooManyMethods — 424 lines, 34 methods.
D3 · God Classes · FileTooLong · ×16
  • FileTooLong: Controllers/OrganizationsController.cs src/Admin/AdminConsole/Controllers/OrganizationsController.cs:0 — FileTooLong — 544 lines, 0 methods.
  • FileTooLong: Controllers/OrganizationUsersController.cs src/Api/AdminConsole/Controllers/OrganizationUsersController.cs:0 — FileTooLong — 566 lines, 0 methods.
  • FileTooLong: Controllers/CiphersController.cs src/Api/Vault/Controllers/CiphersController.cs:0 — FileTooLong — 903 lines, 0 methods.
  • FileTooLong: Implementations/UpcomingInvoiceHandler.cs src/Billing/Services/Implementations/UpcomingInvoiceHandler.cs:0 — FileTooLong — 624 lines, 0 methods.
  • FileTooLong: Implementations/OrganizationService.cs src/Core/AdminConsole/Services/Implementations/OrganizationService.cs:0 — FileTooLong — 578 lines, 0 methods.
  • FileTooLong: Implementations/StripePaymentService.cs src/Core/Billing/Services/Implementations/StripePaymentService.cs:0 — FileTooLong — 546 lines, 0 methods.
  • FileTooLong: Implementations/TaxService.cs src/Core/Billing/Tax/Services/Implementations/TaxService.cs:0 — FileTooLong — 661 lines, 0 methods.
  • FileTooLong: Mail/HandlebarsMailService.cs src/Core/Platform/Mail/HandlebarsMailService.cs:0 — FileTooLong — 1069 lines, 0 methods.
  • FileTooLong: Implementations/UserService.cs src/Core/Services/Implementations/UserService.cs:0 — FileTooLong — 652 lines, 0 methods.
  • FileTooLong: Implementations/CipherService.cs src/Core/Vault/Services/Implementations/CipherService.cs:0 — FileTooLong — 636 lines, 0 methods.
  • FileTooLong: Repositories/CipherRepository.cs src/Infrastructure.Dapper/Vault/Repositories/CipherRepository.cs:0 — FileTooLong — 576 lines, 0 methods.
  • FileTooLong: Repositories/CollectionRepository.cs src/Infrastructure.EntityFramework/AdminConsole/Repositories/CollectionRepository.cs:0 — FileTooLong — 586 lines, 0 methods.
  • FileTooLong: Repositories/OrganizationUserRepository.cs src/Infrastructure.EntityFramework/AdminConsole/Repositories/OrganizationUserRepository.cs:0 — FileTooLong — 694 lines, 0 methods.
  • FileTooLong: Repositories/CipherRepository.cs src/Infrastructure.EntityFramework/Vault/Repositories/CipherRepository.cs:0 — FileTooLong — 670 lines, 0 methods.
  • FileTooLong: Utilities/ServiceCollectionExtensions.cs src/SharedWeb/Utilities/ServiceCollectionExtensions.cs:0 — FileTooLong — 557 lines, 0 methods.
  • FileTooLong: Services/ProviderBillingService.cs bitwarden_license/src/Commercial.Core/Billing/Providers/Services/ProviderBillingService.cs:0 — FileTooLong — 524 lines, 0 methods.
D38 · OSV Dependency Vulnerabilities · Medium CVE · ×15
  • Medium CVE: [GHSA redacted] bitwarden_license/src/Sso/package-lock.json — ajv: [GHSA redacted]
  • Medium CVE: [GHSA redacted] bitwarden_license/src/Sso/package-lock.json — picomatch: [GHSA redacted]
  • Medium CVE: [GHSA redacted] bitwarden_license/src/Sso/package-lock.json — postcss: [GHSA redacted]
  • Medium CVE: [GHSA redacted] src/Admin/package-lock.json — ajv: [GHSA redacted]
  • Medium CVE: [GHSA redacted] src/Admin/package-lock.json — picomatch: [GHSA redacted]
  • Medium CVE: [GHSA redacted] src/Admin/package-lock.json — postcss: [GHSA redacted]
  • Medium CVE: [GHSA redacted] src/Admin/package-lock.json — serialize-javascript: [GHSA redacted]
  • Medium CVE: [GHSA redacted] src/Core/MailTemplates/Mjml/package-lock.json — brace-expansion: [GHSA redacted]
  • Medium CVE: [GHSA redacted] src/Core/MailTemplates/Mjml/package-lock.json — brace-expansion: [GHSA redacted]
  • Medium CVE: [GHSA redacted] src/Core/MailTemplates/Mjml/package-lock.json — lodash: [GHSA redacted]
  • Medium CVE: [GHSA redacted] src/Core/MailTemplates/Mjml/package-lock.json — lodash: [GHSA redacted]
  • Medium CVE: [GHSA redacted] src/Core/MailTemplates/Mjml/package-lock.json — mjml: [GHSA redacted]
  • Medium CVE: [GHSA redacted] src/Core/MailTemplates/Mjml/package-lock.json — picomatch: [GHSA redacted]
  • Medium CVE: RUSTSEC-2026-0097 util/RustSdk/rust/Cargo.lock — rand: RUSTSEC-2026-0097
  • Medium CVE: RUSTSEC-2023-0071 util/RustSdk/rust/Cargo.lock — rsa: RUSTSEC-2023-0071
D3 · God Classes · ClassTooLong · ×13
  • ClassTooLong: OrganizationsController src/Admin/AdminConsole/Controllers/OrganizationsController.cs:0 — ClassTooLong — 508 lines, 16 methods.
  • ClassTooLong: SubscriptionUpdatedHandler src/Billing/Services/Implementations/SubscriptionUpdatedHandler.cs:0 — ClassTooLong — 417 lines, 23 methods.
  • ClassTooLong: UpcomingInvoiceHandler src/Billing/Services/Implementations/UpcomingInvoiceHandler.cs:0 — ClassTooLong — 593 lines, 23 methods.
  • ClassTooLong: OrganizationService src/Core/AdminConsole/Services/Implementations/OrganizationService.cs:0 — ClassTooLong — 548 lines, 27 methods.
  • ClassTooLong: StripePaymentService src/Core/Billing/Services/Implementations/StripePaymentService.cs:0 — ClassTooLong — 525 lines, 29 methods.
  • ClassTooLong: TaxService src/Core/Billing/Tax/Services/Implementations/TaxService.cs:0 — ClassTooLong — 658 lines, 2 methods.
  • ClassTooLong: GlobalSettings src/Core/Settings/GlobalSettings.cs:0 — ClassTooLong — 473 lines, 4 methods.
  • ClassTooLong: CollectionRepository src/Infrastructure.EntityFramework/AdminConsole/Repositories/CollectionRepository.cs:0 — ClassTooLong — 575 lines, 25 methods.
  • ClassTooLong: ServiceCollectionExtensions src/SharedWeb/Utilities/ServiceCollectionExtensions.cs:0 — ClassTooLong — 467 lines, 24 methods.
  • ClassTooLong: ProviderService bitwarden_license/src/Commercial.Core/AdminConsole/Services/ProviderService.cs:0 — ClassTooLong — 405 lines, 27 methods.
  • ClassTooLong: ProviderBillingService bitwarden_license/src/Commercial.Core/Billing/Providers/Services/ProviderBillingService.cs:0 — ClassTooLong — 491 lines, 15 methods.
  • ClassTooLong: AccessPolicyRepository bitwarden_license/src/Commercial.Infrastructure.EntityFramework/SecretsManager/Repositories/AccessPolicyRepository.cs:0 — ClassTooLong — 419 lines, 21 methods.
  • ClassTooLong: AccountController bitwarden_license/src/Sso/Controllers/AccountController.cs:0 — ClassTooLong — 454 lines, 22 methods.
D5 · Coupling · Off the main sequence · ×10
  • Off the main sequence: AppHost — AppHost: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
  • Off the main sequence: RustSdk — RustSdk: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
  • Off the main sequence: Server — Server: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
  • Off the main sequence: Infrastructure.EntityFramework — Infrastructure.EntityFramework: abstractness 0.01, instability 0.02, distance 0.96 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
  • Off the main sequence: Infrastructure.Dapper — Infrastructure.Dapper: abstractness 0.03, instability 0.03, distance 0.94 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
  • Off the main sequence: Migrator — Migrator: abstractness 0.00, instability 0.07, distance 0.93 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
  • Off the main sequence: SharedWeb — SharedWeb: abstractness 0.00, instability 0.08, distance 0.92 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
  • Off the main sequence: Commercial.Core — Commercial.Core: abstractness 0.00, instability 0.10, distance 0.90 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
  • Off the main sequence: Core — Core: abstractness 0.24, instability 0.00, distance 0.76 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
  • Off the main sequence: Commercial.Infrastructure.EntityFramework — Commercial.Infrastructure.EntityFramework: abstractness 0.00, instability 0.25, distance 0.75 — zone of pain — concrete and heavily depended-on, so it's rigid to change.
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×9
  • Duplicated block (11 lines × 2) src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/AutoConfirmUser/AutomaticallyConfirmOrganizationUserCommand.cs:151 — src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/AutoConfirmUser/AutomaticallyConfirmOrganizationUserCommand.cs:151-160 | src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/AutoConfirmUser/BulkAutomaticallyConfirmOrganizationUsersCommand.cs:194-204
  • Duplicated block (11 lines × 2) src/Core/AdminConsole/OrganizationFeatures/Policies/PolicyEventHandlers/SingleOrgPolicyEventHandler.cs:98 — src/Core/AdminConsole/OrganizationFeatures/Policies/PolicyEventHandlers/SingleOrgPolicyEventHandler.cs:98-108 | src/Core/AdminConsole/OrganizationFeatures/Policies/PolicyEventHandlers/TwoFactorAuthenticationPolicyEventHandler.cs:70-80
  • Duplicated block (11 lines × 2) src/Core/Auth/Entities/Grant.cs:13 — src/Core/Auth/Entities/Grant.cs:13-23 | src/Core/Auth/Models/Data/GrantItem.cs:15-25
  • Duplicated block (11 lines × 2) src/Core/Billing/Models/Business/UserLicense.cs:104 — src/Core/Billing/Models/Business/UserLicense.cs:104-114 | src/Core/Billing/Organizations/Models/OrganizationLicense.cs:246-256
  • Duplicated block (11 lines × 2) src/Core/Dirt/Entities/Event.cs:26 — src/Core/Dirt/Entities/Event.cs:26-36 | src/Core/Dirt/Models/Data/EventTableEntity.cs:93-103
  • Duplicated block (11 lines × 2) src/Identity/Startup.cs:80 — src/Identity/Startup.cs:80-90 | bitwarden_license/src/Sso/Startup.cs:56-66
  • Duplicated block (11 lines × 2) src/Infrastructure.Dapper/AdminConsole/Repositories/GroupRepository.cs:145 — src/Infrastructure.Dapper/AdminConsole/Repositories/GroupRepository.cs:145-155 | src/Infrastructure.Dapper/AdminConsole/Repositories/GroupRepository.cs:159-169
  • Duplicated block (11 lines × 2) src/Infrastructure.Dapper/Tools/Repositories/SendRepository.cs:53 — src/Infrastructure.Dapper/Tools/Repositories/SendRepository.cs:53-63 | src/Infrastructure.Dapper/Tools/Repositories/SendRepository.cs:81-91
  • Duplicated block (11 lines × 2) src/Infrastructure.Dapper/Tools/Repositories/SendRepository.cs:67 — src/Infrastructure.Dapper/Tools/Repositories/SendRepository.cs:67-77 | src/Infrastructure.Dapper/Tools/Repositories/SendRepository.cs:95-105
D4 · Code Duplication · Duplicated block (8 lines × 2) · ×6
  • Duplicated block (8 lines × 2) src/Core/AdminConsole/OrganizationFeatures/Policies/PolicyEventHandlers/SingleOrgPolicyEventHandler.cs:76 — src/Core/AdminConsole/OrganizationFeatures/Policies/PolicyEventHandlers/SingleOrgPolicyEventHandler.cs:76-83 | src/Core/AdminConsole/OrganizationFeatures/Policies/PolicyEventHandlers/TwoFactorAuthenticationPolicyEventHandler.cs:48-55
  • Duplicated block (8 lines × 2) src/Core/Vault/Services/Implementations/CipherService.cs:446 — src/Core/Vault/Services/Implementations/CipherService.cs:446-453 | src/Core/Vault/Services/Implementations/CipherService.cs:762-769
  • Duplicated block (8 lines × 2) src/Infrastructure.Dapper/DapperServiceCollectionExtensions.cs:68 — src/Infrastructure.Dapper/DapperServiceCollectionExtensions.cs:68-75 | src/Infrastructure.EntityFramework/EntityFrameworkServiceCollectionExtensions.cs:105-112
  • Duplicated block (8 lines × 2) src/Infrastructure.EntityFramework/Repositories/BaseEntityFrameworkRepository.cs:61 — src/Infrastructure.EntityFramework/Repositories/BaseEntityFrameworkRepository.cs:61-68 | src/Infrastructure.EntityFramework/Repositories/BaseEntityFrameworkRepository.cs:95-102
  • Duplicated block (8 lines × 2) src/Infrastructure.EntityFramework/Repositories/DatabaseContext.cs:125 — src/Infrastructure.EntityFramework/Repositories/DatabaseContext.cs:125-132 | src/Infrastructure.EntityFramework/Repositories/DatabaseContext.cs:133-137
  • Duplicated block (8 lines × 2) util/Seeder/Data/Generators/SecureNoteDataGenerator.cs:120 — util/Seeder/Data/Generators/SecureNoteDataGenerator.cs:120-126 | util/Seeder/Data/Generators/SecureNoteDataGenerator.cs:145-152
D33 · JS/npm Dependency Vulnerabilities · Medium CVE · ×5
  • Medium CVE: [CVE redacted] src/Core/MailTemplates/Mjml/package-lock.json — brace-expansion: [CVE redacted]
  • Medium CVE: [CVE redacted] src/Core/MailTemplates/Mjml/package-lock.json — lodash: [CVE redacted]
  • Medium CVE: [CVE redacted] src/Core/MailTemplates/Mjml/package-lock.json — lodash: [CVE redacted]
  • Medium CVE: [CVE redacted] src/Core/MailTemplates/Mjml/package-lock.json — mjml: [CVE redacted]
  • Medium CVE: [CVE redacted] src/Core/MailTemplates/Mjml/package-lock.json — picomatch: [CVE redacted]
D4 · Code Duplication · Duplicated block (13 lines × 2) · ×4
  • Duplicated block (13 lines × 2) src/Core/AdminConsole/OrganizationFeatures/Groups/CreateGroupCommand.cs:85 — src/Core/AdminConsole/OrganizationFeatures/Groups/CreateGroupCommand.cs:85-96 | src/Core/AdminConsole/OrganizationFeatures/Groups/UpdateGroupCommand.cs:93-105
  • Duplicated block (13 lines × 2) src/Core/Auth/UserFeatures/Registration/Implementations/RegisterUserCommand.cs:310 — src/Core/Auth/UserFeatures/Registration/Implementations/RegisterUserCommand.cs:310-322 | src/Core/Auth/UserFeatures/Registration/Implementations/RegisterUserCommand.cs:329-341
  • Duplicated block (13 lines × 2) src/Infrastructure.EntityFramework/Repositories/TransactionRepository.cs:36 — src/Infrastructure.EntityFramework/Repositories/TransactionRepository.cs:36-48 | src/Infrastructure.EntityFramework/Repositories/TransactionRepository.cs:61-73
  • Duplicated block (13 lines × 2) bitwarden_license/src/Scim/Groups/PostGroupCommand.cs:46 — bitwarden_license/src/Scim/Groups/PostGroupCommand.cs:46-58 | bitwarden_license/src/Scim/Groups/PutGroupCommand.cs:41-53
D4 · Code Duplication · Duplicated block (12 lines × 2) · ×4
  • Duplicated block (12 lines × 2) src/Admin/AdminConsole/Controllers/OrganizationsController.cs:180 — src/Admin/AdminConsole/Controllers/OrganizationsController.cs:180-191 | src/Admin/AdminConsole/Controllers/OrganizationsController.cs:214-225
  • Duplicated block (12 lines × 2) src/Api/SecretsManager/Controllers/SecretsController.cs:346 — src/Api/SecretsManager/Controllers/SecretsController.cs:346-357 | src/Api/SecretsManager/Controllers/SecretsTrashController.cs:100-111
  • Duplicated block (12 lines × 2) src/Core/Vault/Models/Data/CipherDetails.cs:72 — src/Core/Vault/Models/Data/CipherDetails.cs:72-83 | src/Core/Vault/Models/Data/CipherOrganizationDetails.cs:21-32
  • Duplicated block (12 lines × 2) util/Seeder/Steps/CreateCollectionsStep.cs:153 — util/Seeder/Steps/CreateCollectionsStep.cs:153-164 | util/Seeder/Steps/CreateCollectionsStep.cs:202-213
D4 · Code Duplication · Duplicated block (9 lines × 2) · ×4
  • Duplicated block (9 lines × 2) src/Api/Utilities/ExceptionHandlerFilterAttribute.cs:167 — src/Api/Utilities/ExceptionHandlerFilterAttribute.cs:167-175 | src/SharedWeb/Utilities/ExceptionHandlerFilterAttribute.cs:83-91
  • Duplicated block (9 lines × 2) src/Core/Platform/Mail/HandlebarsMailService.cs:993 — src/Core/Platform/Mail/HandlebarsMailService.cs:993-1001 | src/Core/Platform/Mail/HandlebarsMailService.cs:1002-1009
  • Duplicated block (9 lines × 2) src/Icons/Models/DomainIcons.cs:79 — src/Icons/Models/DomainIcons.cs:79-87 | src/Icons/Models/DomainIcons.cs:90-98
  • Duplicated block (9 lines × 2) src/Infrastructure.EntityFramework/Dirt/Repositories/EventRepository.cs:159 — src/Infrastructure.EntityFramework/Dirt/Repositories/EventRepository.cs:159-167 | src/Infrastructure.EntityFramework/Dirt/Repositories/EventRepository.cs:210-218
D4 · Code Duplication · Duplicated block (7 lines × 2) · ×4
  • Duplicated block (7 lines × 2) src/Core/Dirt/EventIntegrations/EventIntegrationsServiceCollectionExtensions.cs:396 — src/Core/Dirt/EventIntegrations/EventIntegrationsServiceCollectionExtensions.cs:396-402 | src/Core/Dirt/EventIntegrations/EventIntegrationsServiceCollectionExtensions.cs:469-475
  • Duplicated block (7 lines × 2) src/Core/NotificationCenter/Authorization/NotificationAuthorizationHandler.cs:50 — src/Core/NotificationCenter/Authorization/NotificationAuthorizationHandler.cs:50-56 | src/Core/NotificationCenter/Authorization/NotificationAuthorizationHandler.cs:60-66
  • Duplicated block (7 lines × 2) src/Infrastructure.Dapper/DapperServiceCollectionExtensions.cs:35 — src/Infrastructure.Dapper/DapperServiceCollectionExtensions.cs:35-41 | src/Infrastructure.EntityFramework/EntityFrameworkServiceCollectionExtensions.cs:73-79
  • Duplicated block (7 lines × 2) bitwarden_license/src/Commercial.Infrastructure.EntityFramework/SecretsManager/Repositories/ServiceAccountRepository.cs:28 — bitwarden_license/src/Commercial.Infrastructure.EntityFramework/SecretsManager/Repositories/ServiceAccountRepository.cs:28-34 | bitwarden_license/src/Commercial.Infrastructure.EntityFramework/SecretsManager/Repositories/ServiceAccountRepository.cs:55-61
D17 · Explicit Debt · CommentedOutCode · ×3
  • CommentedOutCode src/Api/Dirt/Controllers/OrganizationReportsController.cs:476 — 5 consecutive commented-code lines
  • CommentedOutCode src/Api/Tools/Controllers/SendsController.cs:84 — 5 consecutive commented-code lines
  • CommentedOutCode src/Api/Tools/Controllers/SendsController.cs:148 — 5 consecutive commented-code lines
D4 · Code Duplication · Duplicated block (20 lines × 2) · ×3
  • Duplicated block (20 lines × 2) src/Api/Vault/Controllers/CiphersController.cs:563 — src/Api/Vault/Controllers/CiphersController.cs:563-582 | src/Api/Vault/Controllers/CiphersController.cs:616-635
  • Duplicated block (20 lines × 2) src/Infrastructure.Dapper/AdminConsole/Repositories/CollectionRepository.cs:184 — src/Infrastructure.Dapper/AdminConsole/Repositories/CollectionRepository.cs:184-203 | src/Infrastructure.EntityFramework/AdminConsole/Repositories/CollectionRepository.cs:400-419
  • Duplicated block (20 lines × 2) src/Infrastructure.Dapper/AdminConsole/Repositories/OrganizationUserRepository.cs:249 — src/Infrastructure.Dapper/AdminConsole/Repositories/OrganizationUserRepository.cs:249-268 | src/Infrastructure.EntityFramework/AdminConsole/Repositories/OrganizationUserRepository.cs:493-512
D4 · Code Duplication · Duplicated block (16 lines × 2) · ×3
  • Duplicated block (16 lines × 2) src/Core/Vault/Commands/ArchiveCiphersCommand.cs:25 — src/Core/Vault/Commands/ArchiveCiphersCommand.cs:25-40 | src/Core/Vault/Commands/UnarchiveCiphersCommand.cs:25-40
  • Duplicated block (16 lines × 2) src/Infrastructure.Dapper/Tools/Repositories/SendRepository.cs:263 — src/Infrastructure.Dapper/Tools/Repositories/SendRepository.cs:263-278 | src/Infrastructure.EntityFramework/Tools/Repositories/SendRepository.cs:224-239
  • Duplicated block (16 lines × 2) bitwarden_license/src/Commercial.Infrastructure.EntityFramework/SecretsManager/Repositories/SecretRepository.cs:225 — bitwarden_license/src/Commercial.Infrastructure.EntityFramework/SecretsManager/Repositories/SecretRepository.cs:225-240 | bitwarden_license/src/Commercial.Infrastructure.EntityFramework/SecretsManager/Repositories/SecretRepository.cs:259-274
D4 · Code Duplication · Duplicated block (15 lines × 2) · ×3
  • Duplicated block (15 lines × 2) src/Api/Tools/Models/Response/SendAccessResponseModel.cs:35 — src/Api/Tools/Models/Response/SendAccessResponseModel.cs:35-49 | src/Api/Tools/Models/Response/SendResponseModel.cs:48-62
  • Duplicated block (15 lines × 2) src/Api/Utilities/ExceptionHandlerFilterAttribute.cs:113 — src/Api/Utilities/ExceptionHandlerFilterAttribute.cs:113-127 | src/SharedWeb/Utilities/ExceptionHandlerFilterAttribute.cs:54-68
  • Duplicated block (15 lines × 2) src/Infrastructure.Dapper/Dirt/OrganizationReportRepository.cs:63 — src/Infrastructure.Dapper/Dirt/OrganizationReportRepository.cs:63-77 | src/Infrastructure.Dapper/Dirt/OrganizationReportRepository.cs:137-151
D4 · Code Duplication · Duplicated block (9 lines × 3) · ×3
  • Duplicated block (9 lines × 3) src/Infrastructure.EntityFramework/Dirt/Repositories/EventRepository.cs:70 — src/Infrastructure.EntityFramework/Dirt/Repositories/EventRepository.cs:70-78 | src/Infrastructure.EntityFramework/Dirt/Repositories/EventRepository.cs:170-178 | src/Infrastructure.EntityFramework/Dirt/Repositories/EventRepository.cs:221-229
  • Duplicated block (9 lines × 3) src/Infrastructure.EntityFramework/Dirt/Repositories/EventRepository.cs:184 — src/Infrastructure.EntityFramework/Dirt/Repositories/EventRepository.cs:184-192 | src/Infrastructure.EntityFramework/Dirt/Repositories/EventRepository.cs:235-243 | src/Infrastructure.EntityFramework/Dirt/Repositories/EventRepository.cs:260-268
  • Duplicated block (9 lines × 3) src/Infrastructure.EntityFramework/Dirt/Repositories/EventRepository.cs:195 — src/Infrastructure.EntityFramework/Dirt/Repositories/EventRepository.cs:195-203 | src/Infrastructure.EntityFramework/Dirt/Repositories/EventRepository.cs:246-254 | src/Infrastructure.EntityFramework/Dirt/Repositories/EventRepository.cs:271-279
D10 · Test Quality · Skipped test · ×2
  • Skipped test: GetIconAsync_Success test/Icons.Test/Services/IconFetchingServiceTests.cs:8 — Skipped — Run ad-hoc
  • Skipped test: RefreshDb test/Infrastructure.EFIntegration.Test/Vault/Repositories/CipherRepositoryTests.cs:25 — Skipped — Run ad-hoc
D17 · Explicit Debt · BarePragmaDisable · ×2
  • BarePragmaDisable src/Api/Auth/Controllers/AccountsController.cs:672 — #pragma warning disable CS0618
  • BarePragmaDisable src/Core/Auth/UserFeatures/EmergencyAccess/Mail/EmergencyAccessRemoveGranteesMailView.cs:10 — #pragma warning disable CA1822
D17 · Explicit Debt · HackComment · ×2
  • HackComment src/Core/Billing/Services/Implementations/StripePaymentService.cs:482 — // HACK: Workaround for customer balance credit — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
  • HackComment bitwarden_license/src/Sso/Controllers/AccountController.cs:373 — // HACK: Temporary workaround for the time being that doesn't try to sign out of OneLogin schemes, — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: PROJ-123`), so the task is planned where tasks live and the ticket links back to the code.
D4 · Code Duplication · Duplicated block (22 lines × 2) · ×2
  • Duplicated block (22 lines × 2) src/Core/Dirt/Services/Implementations/EventService.cs:489 — src/Core/Dirt/Services/Implementations/EventService.cs:489-510 | src/Core/Dirt/Services/Implementations/EventService.cs:516-537
  • Duplicated block (22 lines × 2) src/Core/Dirt/Services/Implementations/EventService.cs:543 — src/Core/Dirt/Services/Implementations/EventService.cs:543-564 | src/Core/Dirt/Services/Implementations/EventService.cs:570-591
D4 · Code Duplication · Duplicated block (21 lines × 2) · ×2
  • Duplicated block (21 lines × 2) src/Core/Billing/Licenses/Extensions/LicenseExtensions.cs:16 — src/Core/Billing/Licenses/Extensions/LicenseExtensions.cs:16-36 | src/Core/Billing/Licenses/Extensions/LicenseExtensions.cs:52-72
  • Duplicated block (21 lines × 2) src/Core/Billing/Organizations/PlanMigration/Commands/RedeemChurnMitigationOfferCommand.cs:107 — src/Core/Billing/Organizations/PlanMigration/Commands/RedeemChurnMitigationOfferCommand.cs:107-127 | src/Core/Billing/Organizations/PlanMigration/Commands/RedeemChurnMitigationOfferCommand.cs:187-203
D4 · Code Duplication · Duplicated block (17 lines × 2) · ×2
  • Duplicated block (17 lines × 2) src/Core/OrganizationFeatures/OrganizationSponsorships/FamiliesForEnterprise/Cloud/ValidateSponsorshipCommand.cs:51 — src/Core/OrganizationFeatures/OrganizationSponsorships/FamiliesForEnterprise/Cloud/ValidateSponsorshipCommand.cs:51-67 | src/Core/OrganizationFeatures/OrganizationSponsorships/FamiliesForEnterprise/Cloud/ValidateSponsorshipCommand.cs:75-89
  • Duplicated block (17 lines × 2) src/Infrastructure.EntityFramework/Dirt/Repositories/OrganizationReportRepository.cs:72 — src/Infrastructure.EntityFramework/Dirt/Repositories/OrganizationReportRepository.cs:72-88 | src/Infrastructure.EntityFramework/Dirt/Repositories/OrganizationReportRepository.cs:160-176
D4 · Code Duplication · Duplicated block (14 lines × 2) · ×2
  • Duplicated block (14 lines × 2) src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/OrganizationUserUserDetailsQuery.cs:75 — src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/OrganizationUserUserDetailsQuery.cs:75-88 | src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/OrganizationUserUserDetailsQuery.cs:114-127
  • Duplicated block (14 lines × 2) src/Identity/Controllers/SsoController.cs:256 — src/Identity/Controllers/SsoController.cs:256-269 | bitwarden_license/src/Sso/Controllers/AccountController.cs:930-943
D4 · Code Duplication · Duplicated block (10 lines × 3) · ×2
  • Duplicated block (10 lines × 3) src/Infrastructure.Dapper/Vault/Repositories/CipherRepository.cs:244 — src/Infrastructure.Dapper/Vault/Repositories/CipherRepository.cs:244-253 | src/Infrastructure.Dapper/Vault/Repositories/CipherRepository.cs:596-605 | src/Infrastructure.Dapper/Vault/Repositories/CipherRepository.cs:609-618
  • Duplicated block (10 lines × 3) util/Seeder/Steps/CreateCipherCollectionsStep.cs:19 — util/Seeder/Steps/CreateCipherCollectionsStep.cs:19-28 | util/Seeder/Steps/CreateCipherFavoritesStep.cs:19-28 | util/Seeder/Steps/CreateCipherFoldersStep.cs:20-29
D1 · Cyclomatic Complexity · CollectController.Post (cyclomatic 55) · ×1
  • CollectController.Post (cyclomatic 55) src/Events/Controllers/CollectController.cs:41 — CollectController.Post has cyclomatic complexity 55 (threshold 15).
D1 · Cyclomatic Complexity · OrganizationLicense.GetDataBytes (cyclomatic 54) · ×1
  • OrganizationLicense.GetDataBytes (cyclomatic 54) src/Core/Billing/Organizations/Models/OrganizationLicense.cs:182 — OrganizationLicense.GetDataBytes has cyclomatic complexity 54 (threshold 15).
D1 · Cyclomatic Complexity · HubHelpers.SendNotificationToHubAsync (cyclomatic 50) · ×1
  • HubHelpers.SendNotificationToHubAsync (cyclomatic 50) src/Notifications/HubHelpers.cs:28 — HubHelpers.SendNotificationToHubAsync has cyclomatic complexity 50 (threshold 15).
D1 · Cyclomatic Complexity · UpgradeOrganizationPlanCommand.UpgradePlanAsync (cyclomatic 49) · ×1
  • UpgradeOrganizationPlanCommand.UpgradePlanAsync (cyclomatic 49) src/Core/OrganizationFeatures/OrganizationSubscriptions/UpgradeOrganizationPlanCommand.cs:85 — UpgradeOrganizationPlanCommand.UpgradePlanAsync has cyclomatic complexity 49 (threshold 15).
D1 · Cyclomatic Complexity · OrganizationLicense.ObsoleteVerifyData (cyclomatic 42) · ×1
  • OrganizationLicense.ObsoleteVerifyData (cyclomatic 42) src/Core/Billing/Organizations/Models/OrganizationLicense.cs:503 — OrganizationLicense.ObsoleteVerifyData has cyclomatic complexity 42 (threshold 15).
D1 · Cyclomatic Complexity · OrganizationLicense.VerifyData (cyclomatic 39) · ×1
  • OrganizationLicense.VerifyData (cyclomatic 39) src/Core/Billing/Organizations/Models/OrganizationLicense.cs:400 — OrganizationLicense.VerifyData has cyclomatic complexity 39 (threshold 15).
D1 · Cyclomatic Complexity · RegisterFinishRequestModel.Validate (cyclomatic 37) · ×1
  • RegisterFinishRequestModel.Validate (cyclomatic 37) src/Core/Auth/Models/Api/Request/Accounts/RegisterFinishRequestModel.cs:167 — RegisterFinishRequestModel.Validate has cyclomatic complexity 37 (threshold 15).
D1 · Cyclomatic Complexity · OrganizationsController.Edit (cyclomatic 34) · ×1
  • OrganizationsController.Edit (cyclomatic 34) src/Admin/AdminConsole/Controllers/OrganizationsController.cs:293 — OrganizationsController.Edit has cyclomatic complexity 34 (threshold 15).
D1 · Cyclomatic Complexity · HandlebarsMailService.RegisterHelpersAndPartialsAsync (cyclomatic 31) · ×1
  • HandlebarsMailService.RegisterHelpersAndPartialsAsync (cyclomatic 31) src/Core/Platform/Mail/HandlebarsMailService.cs:987 — HandlebarsMailService.RegisterHelpersAndPartialsAsync has cyclomatic complexity 31 (threshold 15).
D1 · Cyclomatic Complexity · SelfHostedOrganizationDetails.CanUseLicense (cyclomatic 29) · ×1
  • SelfHostedOrganizationDetails.CanUseLicense (cyclomatic 29) src/Core/AdminConsole/Models/Data/Organizations/SelfHostedOrganizationDetails.cs:25 — SelfHostedOrganizationDetails.CanUseLicense has cyclomatic complexity 29 (threshold 15).
D1 · Cyclomatic Complexity · PayPalController.PostIpn (cyclomatic 28) · ×1
  • PayPalController.PostIpn (cyclomatic 28) src/Billing/Controllers/PayPalController.cs:54 — PayPalController.PostIpn has cyclomatic complexity 28 (threshold 15).
D1 · Cyclomatic Complexity · OrganizationService.ValidateCustomPermissionsGrant (cyclomatic 28) · ×1
  • OrganizationService.ValidateCustomPermissionsGrant (cyclomatic 28) src/Core/AdminConsole/Services/Implementations/OrganizationService.cs:1001 — OrganizationService.ValidateCustomPermissionsGrant has cyclomatic complexity 28 (threshold 15).
D1 · Cyclomatic Complexity · PresetLoader.BuildRecipe (cyclomatic 28) · ×1
  • PresetLoader.BuildRecipe (cyclomatic 28) util/Seeder/Pipeline/PresetLoader.cs:92 — PresetLoader.BuildRecipe has cyclomatic complexity 28 (threshold 15).
D1 · Cyclomatic Complexity · OrganizationService.SaveUsersSendInvitesAsync (cyclomatic 27) · ×1
  • OrganizationService.SaveUsersSendInvitesAsync (cyclomatic 27) src/Core/AdminConsole/Services/Implementations/OrganizationService.cs:506 — OrganizationService.SaveUsersSendInvitesAsync has cyclomatic complexity 27 (threshold 15).
D1 · Cyclomatic Complexity · SecretRepository.BuildSecretAccessQuery (cyclomatic 25) · ×1
  • SecretRepository.BuildSecretAccessQuery (cyclomatic 25) bitwarden_license/src/Commercial.Infrastructure.EntityFramework/SecretsManager/Repositories/SecretRepository.cs:476 — SecretRepository.BuildSecretAccessQuery has cyclomatic complexity 25 (threshold 15).
D1 · Cyclomatic Complexity · ExceptionHandlerFilterAttribute.OnException (cyclomatic 24) · ×1
  • ExceptionHandlerFilterAttribute.OnException (cyclomatic 24) src/Api/Utilities/ExceptionHandlerFilterAttribute.cs:25 — ExceptionHandlerFilterAttribute.OnException has cyclomatic complexity 24 (threshold 15).
D1 · Cyclomatic Complexity · PlanAdapter.ToPlanType (cyclomatic 24) · ×1
  • PlanAdapter.ToPlanType (cyclomatic 24) src/Core/Billing/Pricing/Organizations/PlanAdapter.cs:51 — PlanAdapter.ToPlanType has cyclomatic complexity 24 (threshold 15).
D1 · Cyclomatic Complexity · PricingClient.GetLookupKey (cyclomatic 24) · ×1
  • PricingClient.GetLookupKey (cyclomatic 24) src/Core/Billing/Pricing/PricingClient.cs:110 — PricingClient.GetLookupKey has cyclomatic complexity 24 (threshold 15).
D1 · Cyclomatic Complexity · PolicyTypeExtensions.GetName (cyclomatic 23) · ×1
  • PolicyTypeExtensions.GetName (cyclomatic 23) src/Core/AdminConsole/Enums/PolicyType.cs:42 — PolicyTypeExtensions.GetName has cyclomatic complexity 23 (threshold 15).
D1 · Cyclomatic Complexity · UpdateOrganizationSubscriptionCommand.Run (cyclomatic 23) · ×1
  • UpdateOrganizationSubscriptionCommand.Run (cyclomatic 23) src/Core/Billing/Organizations/Commands/UpdateOrganizationSubscriptionCommand.cs:68 — UpdateOrganizationSubscriptionCommand.Run has cyclomatic complexity 23 (threshold 15).
D1 · Cyclomatic Complexity · CoreHelpers.BuildIdentityClaims (cyclomatic 23) · ×1
  • CoreHelpers.BuildIdentityClaims (cyclomatic 23) src/Core/Utilities/CoreHelpers.cs:716 — CoreHelpers.BuildIdentityClaims has cyclomatic complexity 23 (threshold 15).
D1 · Cyclomatic Complexity · Context.LoadConfiguration (cyclomatic 23) · ×1
  • Context.LoadConfiguration (cyclomatic 23) util/Setup/Context.cs:67 — Context.LoadConfiguration has cyclomatic complexity 23 (threshold 15).
D1 · Cyclomatic Complexity · ProvidersController.Edit (cyclomatic 22) · ×1
  • ProvidersController.Edit (cyclomatic 22) src/Admin/AdminConsole/Controllers/ProvidersController.cs:273 — ProvidersController.Edit has cyclomatic complexity 22 (threshold 15).
D1 · Cyclomatic Complexity · OrganizationService.AdjustSeatsAsync (cyclomatic 22) · ×1
  • OrganizationService.AdjustSeatsAsync (cyclomatic 22) src/Core/AdminConsole/Services/Implementations/OrganizationService.cs:221 — OrganizationService.AdjustSeatsAsync has cyclomatic complexity 22 (threshold 15).
D1 · Cyclomatic Complexity · StripePaymentService.FinalizeSubscriptionChangeAsync (cyclomatic 22) · ×1
  • StripePaymentService.FinalizeSubscriptionChangeAsync (cyclomatic 22) src/Core/Billing/Services/Implementations/StripePaymentService.cs:90 — StripePaymentService.FinalizeSubscriptionChangeAsync has cyclomatic complexity 22 (threshold 15).
D1 · Cyclomatic Complexity · PatchGroupCommand.HandleOperationAsync (cyclomatic 22) · ×1
  • PatchGroupCommand.HandleOperationAsync (cyclomatic 22) bitwarden_license/src/Scim/Groups/PatchGroupCommand.cs:51 — PatchGroupCommand.HandleOperationAsync has cyclomatic complexity 22 (threshold 15).
D1 · Cyclomatic Complexity · SubscriptionUpdatedHandler.HandleScheduleTriggeredBusinessMigrationAsync (cyclomatic 21) · ×1
  • SubscriptionUpdatedHandler.HandleScheduleTriggeredBusinessMigrationAsync (cyclomatic 21) src/Billing/Services/Implementations/SubscriptionUpdatedHandler.cs:540 — SubscriptionUpdatedHandler.HandleScheduleTriggeredBusinessMigrationAsync has cyclomatic complexity 21 (threshold 15).
D1 · Cyclomatic Complexity · AdminRecoverAccountValidator.ValidateAsync (cyclomatic 21) · ×1
  • AdminRecoverAccountValidator.ValidateAsync (cyclomatic 21) src/Core/AdminConsole/OrganizationFeatures/AccountRecovery/v2/AdminRecoverAccountValidator.cs:15 — AdminRecoverAccountValidator.ValidateAsync has cyclomatic complexity 21 (threshold 15).
D1 · Cyclomatic Complexity · OrganizationBillingService.CreateCustomerAsync (cyclomatic 21) · ×1
  • OrganizationBillingService.CreateCustomerAsync (cyclomatic 21) src/Core/Billing/Organizations/Services/OrganizationBillingService.cs:190 — OrganizationBillingService.CreateCustomerAsync has cyclomatic complexity 21 (threshold 15).
D1 · Cyclomatic Complexity · UpdatePremiumStorageCommand.Run (cyclomatic 21) · ×1
  • UpdatePremiumStorageCommand.Run (cyclomatic 21) src/Core/Billing/Premium/Commands/UpdatePremiumStorageCommand.cs:45 — UpdatePremiumStorageCommand.Run has cyclomatic complexity 21 (threshold 15).
D1 · Cyclomatic Complexity · StripePaymentService.PayInvoiceAfterSubscriptionChangeAsync (cyclomatic 21) · ×1
  • StripePaymentService.PayInvoiceAfterSubscriptionChangeAsync (cyclomatic 21) src/Core/Billing/Services/Implementations/StripePaymentService.cs:353 — StripePaymentService.PayInvoiceAfterSubscriptionChangeAsync has cyclomatic complexity 21 (threshold 15).
D1 · Cyclomatic Complexity · IntegrationHandlerBase.ClassifyHttpStatusCode (cyclomatic 21) · ×1
  • IntegrationHandlerBase.ClassifyHttpStatusCode (cyclomatic 21) src/Core/Dirt/Services/IIntegrationHandler.cs:81 — IntegrationHandlerBase.ClassifyHttpStatusCode has cyclomatic complexity 21 (threshold 15).
D1 · Cyclomatic Complexity · CipherRequestModel.ToCipher (cyclomatic 20) · ×1
  • CipherRequestModel.ToCipher (cyclomatic 20) src/Api/Vault/Models/Request/CipherRequestModel.cs:94 — CipherRequestModel.ToCipher has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · StripeEventUtilityService.FromChargeToTransactionAsync (cyclomatic 20) · ×1
  • StripeEventUtilityService.FromChargeToTransactionAsync (cyclomatic 20) src/Billing/Services/Implementations/StripeEventUtilityService.cs:127 — StripeEventUtilityService.FromChargeToTransactionAsync has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · GenerateCiphersStep.Execute (cyclomatic 20) · ×1
  • GenerateCiphersStep.Execute (cyclomatic 20) util/Seeder/Steps/GenerateCiphersStep.cs:35 — GenerateCiphersStep.Execute has cyclomatic complexity 20 (threshold 15).
D1 · Cyclomatic Complexity · BitPayController.PostIpn (cyclomatic 19) · ×1
  • BitPayController.PostIpn (cyclomatic 19) src/Billing/Controllers/BitPayController.cs:37 — BitPayController.PostIpn has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · RemoveOrganizationUserCommand.RemoveUsersInternalAsync (cyclomatic 19) · ×1
  • RemoveOrganizationUserCommand.RemoveUsersInternalAsync (cyclomatic 19) src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/RemoveOrganizationUserCommand.cs:198 — RemoveOrganizationUserCommand.RemoveUsersInternalAsync has cyclomatic complexity 19 (threshold 15).
D1 · Cyclomatic Complexity · UpcomingInvoiceHandler.ResolveDiscountsAsync (cyclomatic 18) · ×1
  • UpcomingInvoiceHandler.ResolveDiscountsAsync (cyclomatic 18) src/Billing/Services/Implementations/UpcomingInvoiceHandler.cs:527 — UpcomingInvoiceHandler.ResolveDiscountsAsync has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · UpdateOrganizationUserCommand.UpdateUserAsync (cyclomatic 18) · ×1
  • UpdateOrganizationUserCommand.UpdateUserAsync (cyclomatic 18) src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/UpdateOrganizationUserCommand.cs:66 — UpdateOrganizationUserCommand.UpdateUserAsync has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · PreviewOrganizationTaxCommand.Run (cyclomatic 18) · ×1
  • PreviewOrganizationTaxCommand.Run (cyclomatic 18) src/Core/Billing/Organizations/Commands/PreviewOrganizationTaxCommand.cs:163 — PreviewOrganizationTaxCommand.Run has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · ProviderPriceAdapter.GetPriceId (cyclomatic 18) · ×1
  • ProviderPriceAdapter.GetPriceId (cyclomatic 18) src/Core/Billing/Providers/Services/ProviderPriceAdapter.cs:54 — ProviderPriceAdapter.GetPriceId has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · EventRepository.BuildEventsTable (cyclomatic 18) · ×1
  • EventRepository.BuildEventsTable (cyclomatic 18) src/Infrastructure.Dapper/Dirt/Repositories/EventRepository.cs:191 — EventRepository.BuildEventsTable has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · AccountController.CreateUserAndOrgUserConditionallyAsync (cyclomatic 18) · ×1
  • AccountController.CreateUserAndOrgUserConditionallyAsync (cyclomatic 18) bitwarden_license/src/Sso/Controllers/AccountController.cs:487 — AccountController.CreateUserAndOrgUserConditionallyAsync has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · CreateRosterStep.Execute (cyclomatic 18) · ×1
  • CreateRosterStep.Execute (cyclomatic 18) util/Seeder/Steps/CreateRosterStep.cs:14 — CreateRosterStep.Execute has cyclomatic complexity 18 (threshold 15).
D1 · Cyclomatic Complexity · PaymentMethodAttachedHandler.HandleAsync (cyclomatic 17) · ×1
  • PaymentMethodAttachedHandler.HandleAsync (cyclomatic 17) src/Billing/Services/Implementations/PaymentMethodAttachedHandler.cs:35 — PaymentMethodAttachedHandler.HandleAsync has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · RestoreOrganizationUserCommand.RestoreUsersAsync (cyclomatic 17) · ×1
  • RestoreOrganizationUserCommand.RestoreUsersAsync (cyclomatic 17) src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/RestoreUser/v1/RestoreOrganizationUserCommand.cs:173 — RestoreOrganizationUserCommand.RestoreUsersAsync has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · CreateSponsorshipCommand.CreateSponsorshipAsync (cyclomatic 17) · ×1
  • CreateSponsorshipCommand.CreateSponsorshipAsync (cyclomatic 17) src/Core/OrganizationFeatures/OrganizationSponsorships/FamiliesForEnterprise/CreateSponsorshipCommand.cs:21 — CreateSponsorshipCommand.CreateSponsorshipAsync has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · UserService.AdminResetPasswordAsync (cyclomatic 17) · ×1
  • UserService.AdminResetPasswordAsync (cyclomatic 17) src/Core/Services/Implementations/UserService.cs:577 — UserService.AdminResetPasswordAsync has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · ImportCiphersCommand.ImportIntoOrganizationalVaultAsync (cyclomatic 17) · ×1
  • ImportCiphersCommand.ImportIntoOrganizationalVaultAsync (cyclomatic 17) src/Core/Tools/ImportFeatures/ImportCiphersCommand.cs:87 — ImportCiphersCommand.ImportIntoOrganizationalVaultAsync has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · SendValidationService.ValidateUserCanSaveAsync (cyclomatic 17) · ×1
  • SendValidationService.ValidateUserCanSaveAsync (cyclomatic 17) src/Core/Tools/SendFeatures/Services/SendValidationService.cs:41 — SendValidationService.ValidateUserCanSaveAsync has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · Saml2OptionsExtensions.CouldHandleAsync (cyclomatic 17) · ×1
  • Saml2OptionsExtensions.CouldHandleAsync (cyclomatic 17) bitwarden_license/src/Sso/Utilities/Saml2OptionsExtensions.cs:14 — Saml2OptionsExtensions.CouldHandleAsync has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · SsoAuthenticationMiddleware.Invoke (cyclomatic 17) · ×1
  • SsoAuthenticationMiddleware.Invoke (cyclomatic 17) bitwarden_license/src/Sso/Utilities/SsoAuthenticationMiddleware.cs:20 — SsoAuthenticationMiddleware.Invoke has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · SecureNoteDataGenerator.GenerateNoteName (cyclomatic 17) · ×1
  • SecureNoteDataGenerator.GenerateNoteName (cyclomatic 17) util/Seeder/Data/Generators/SecureNoteDataGenerator.cs:43 — SecureNoteDataGenerator.GenerateNoteName has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · SecureNoteDataGenerator.GenerateNoteContent (cyclomatic 17) · ×1
  • SecureNoteDataGenerator.GenerateNoteContent (cyclomatic 17) util/Seeder/Data/Generators/SecureNoteDataGenerator.cs:63 — SecureNoteDataGenerator.GenerateNoteContent has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · Program.ValidateInstallation (cyclomatic 17) · ×1
  • Program.ValidateInstallation (cyclomatic 17) util/Setup/Program.cs:287 — Program.ValidateInstallation has cyclomatic complexity 17 (threshold 15).
D1 · Cyclomatic Complexity · OrganizationsController.HandlePotentialProviderSeatScalingAsync (cyclomatic 16) · ×1
  • OrganizationsController.HandlePotentialProviderSeatScalingAsync (cyclomatic 16) src/Admin/AdminConsole/Controllers/OrganizationsController.cs:782 — OrganizationsController.HandlePotentialProviderSeatScalingAsync has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · BulkCollectionAuthorizationHandler.HandleRequirementAsync (cyclomatic 16) · ×1
  • BulkCollectionAuthorizationHandler.HandleRequirementAsync (cyclomatic 16) src/Api/AdminConsole/Authorization/Collections/BulkCollectionAuthorizationHandler.cs:42 — BulkCollectionAuthorizationHandler.HandleRequirementAsync has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · UpdateTwoFactorYubicoOtpRequestModel.Validate (cyclomatic 16) · ×1
  • UpdateTwoFactorYubicoOtpRequestModel.Validate (cyclomatic 16) src/Api/Auth/Models/Request/TwoFactorRequestModels.cs:183 — UpdateTwoFactorYubicoOtpRequestModel.Validate has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · PaymentSucceededHandler.HandleAsync (cyclomatic 16) · ×1
  • PaymentSucceededHandler.HandleAsync (cyclomatic 16) src/Billing/Services/Implementations/PaymentSucceededHandler.cs:32 — PaymentSucceededHandler.HandleAsync has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · LicenseExtensions.GetValue (cyclomatic 16) · ×1
  • LicenseExtensions.GetValue (cyclomatic 16) src/Core/Billing/Licenses/Extensions/LicenseExtensions.cs:114 — LicenseExtensions.GetValue has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · LicensingService.LicensingService.ctor (cyclomatic 16) · ×1
  • LicensingService.LicensingService.ctor (cyclomatic 16) src/Core/Billing/Services/Implementations/LicensingService.cs:49 — LicensingService.LicensingService.ctor has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · RestartSubscriptionCommand.RestartOrganizationSubscriptionAsync (cyclomatic 16) · ×1
  • RestartSubscriptionCommand.RestartOrganizationSubscriptionAsync (cyclomatic 16) src/Core/Billing/Subscriptions/Commands/RestartSubscriptionCommand.cs:54 — RestartSubscriptionCommand.RestartOrganizationSubscriptionAsync has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · SlackIntegrationHandler.ClassifySlackError (cyclomatic 16) · ×1
  • SlackIntegrationHandler.ClassifySlackError (cyclomatic 16) src/Core/Dirt/Services/Implementations/SlackIntegrationHandler.cs:55 — SlackIntegrationHandler.ClassifySlackError has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · ValidateSponsorshipCommand.ValidateSponsorshipAsync (cyclomatic 16) · ×1
  • ValidateSponsorshipCommand.ValidateSponsorshipAsync (cyclomatic 16) src/Core/OrganizationFeatures/OrganizationSponsorships/FamiliesForEnterprise/Cloud/ValidateSponsorshipCommand.cs:34 — ValidateSponsorshipCommand.ValidateSponsorshipAsync has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · UserDecryptionOptionsBuilder.BuildTrustedDeviceOptionsAsync (cyclomatic 16) · ×1
  • UserDecryptionOptionsBuilder.BuildTrustedDeviceOptionsAsync (cyclomatic 16) src/Identity/IdentityServer/UserDecryptionOptionsBuilder.cs:102 — UserDecryptionOptionsBuilder.BuildTrustedDeviceOptionsAsync has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · ServiceCollectionExtensions.AddDefaultServices (cyclomatic 16) · ×1
  • ServiceCollectionExtensions.AddDefaultServices (cyclomatic 16) src/SharedWeb/Utilities/ServiceCollectionExtensions.cs:264 — ServiceCollectionExtensions.AddDefaultServices has cyclomatic complexity 16 (threshold 15).
D1 · Cyclomatic Complexity · CreateCiphersStep.Execute (cyclomatic 16) · ×1
  • CreateCiphersStep.Execute (cyclomatic 16) util/Seeder/Steps/CreateCiphersStep.cs:34 — CreateCiphersStep.Execute has cyclomatic complexity 16 (threshold 15).
D15 · Churn × Complexity Hotspots · git history depth insufficient · ×1
  • git history depth insufficient — git history depth insufficient — install a full clone for reliable trend signal.
D16 · Bus Factor · single-maintainer · ×1
  • single-maintainer — knowledge-concentration (bus factor) risk — single-maintainer — knowledge-concentration (bus factor) risk (0 author(s) across 0 commit(s) sampled).
D19 · Documentation Quality · LLM evaluation failed · ×1
  • LLM evaluation failed — documentation evaluation failed: Name or service not known (canine-dgx1:80)
D2 · Cognitive Complexity · UpgradeOrganizationPlanCommand.UpgradePlanAsync (cognitive 63) · ×1
  • UpgradeOrganizationPlanCommand.UpgradePlanAsync (cognitive 63) src/Core/OrganizationFeatures/OrganizationSubscriptions/UpgradeOrganizationPlanCommand.cs:85 — UpgradeOrganizationPlanCommand.UpgradePlanAsync has cognitive complexity 63 (threshold 15).
D2 · Cognitive Complexity · Context.LoadConfiguration (cognitive 61) · ×1
  • Context.LoadConfiguration (cognitive 61) util/Setup/Context.cs:67 — Context.LoadConfiguration has cognitive complexity 61 (threshold 15).
D2 · Cognitive Complexity · CoreHelpers.BuildIdentityClaims (cognitive 57) · ×1
  • CoreHelpers.BuildIdentityClaims (cognitive 57) src/Core/Utilities/CoreHelpers.cs:716 — CoreHelpers.BuildIdentityClaims has cognitive complexity 57 (threshold 15).
D2 · Cognitive Complexity · CollectController.Post (cognitive 54) · ×1
  • CollectController.Post (cognitive 54) src/Events/Controllers/CollectController.cs:41 — CollectController.Post has cognitive complexity 54 (threshold 15).
D2 · Cognitive Complexity · RegisterFinishRequestModel.Validate (cognitive 46) · ×1
  • RegisterFinishRequestModel.Validate (cognitive 46) src/Core/Auth/Models/Api/Request/Accounts/RegisterFinishRequestModel.cs:167 — RegisterFinishRequestModel.Validate has cognitive complexity 46 (threshold 15).
D2 · Cognitive Complexity · OrganizationsController.Edit (cognitive 45) · ×1
  • OrganizationsController.Edit (cognitive 45) src/Admin/AdminConsole/Controllers/OrganizationsController.cs:293 — OrganizationsController.Edit has cognitive complexity 45 (threshold 15).
D2 · Cognitive Complexity · HandlebarsMailService.RegisterHelpersAndPartialsAsync (cognitive 43) · ×1
  • HandlebarsMailService.RegisterHelpersAndPartialsAsync (cognitive 43) src/Core/Platform/Mail/HandlebarsMailService.cs:987 — HandlebarsMailService.RegisterHelpersAndPartialsAsync has cognitive complexity 43 (threshold 15).
D2 · Cognitive Complexity · GenerateCiphersStep.Execute (cognitive 43) · ×1
  • GenerateCiphersStep.Execute (cognitive 43) util/Seeder/Steps/GenerateCiphersStep.cs:35 — GenerateCiphersStep.Execute has cognitive complexity 43 (threshold 15).
D2 · Cognitive Complexity · OrganizationService.SaveUsersSendInvitesAsync (cognitive 42) · ×1
  • OrganizationService.SaveUsersSendInvitesAsync (cognitive 42) src/Core/AdminConsole/Services/Implementations/OrganizationService.cs:506 — OrganizationService.SaveUsersSendInvitesAsync has cognitive complexity 42 (threshold 15).
D2 · Cognitive Complexity · HubHelpers.SendNotificationToHubAsync (cognitive 41) · ×1
  • HubHelpers.SendNotificationToHubAsync (cognitive 41) src/Notifications/HubHelpers.cs:28 — HubHelpers.SendNotificationToHubAsync has cognitive complexity 41 (threshold 15).
D2 · Cognitive Complexity · ExceptionHandlerFilterAttribute.OnException (cognitive 40) · ×1
  • ExceptionHandlerFilterAttribute.OnException (cognitive 40) src/Api/Utilities/ExceptionHandlerFilterAttribute.cs:25 — ExceptionHandlerFilterAttribute.OnException has cognitive complexity 40 (threshold 15).
D2 · Cognitive Complexity · StripePaymentService.PayInvoiceAfterSubscriptionChangeAsync (cognitive 39) · ×1
  • StripePaymentService.PayInvoiceAfterSubscriptionChangeAsync (cognitive 39) src/Core/Billing/Services/Implementations/StripePaymentService.cs:353 — StripePaymentService.PayInvoiceAfterSubscriptionChangeAsync has cognitive complexity 39 (threshold 15).
D2 · Cognitive Complexity · PatchUserCommand.PatchUserAsync (cognitive 37) · ×1
  • PatchUserCommand.PatchUserAsync (cognitive 37) bitwarden_license/src/Scim/Users/PatchUserCommand.cs:30 — PatchUserCommand.PatchUserAsync has cognitive complexity 37 (threshold 15).
D2 · Cognitive Complexity · CipherRepository.ReplaceAsync (cognitive 36) · ×1
  • CipherRepository.ReplaceAsync (cognitive 36) src/Infrastructure.EntityFramework/Vault/Repositories/CipherRepository.cs:562 — CipherRepository.ReplaceAsync has cognitive complexity 36 (threshold 15).
D2 · Cognitive Complexity · CreateRosterStep.Execute (cognitive 36) · ×1
  • CreateRosterStep.Execute (cognitive 36) util/Seeder/Steps/CreateRosterStep.cs:14 — CreateRosterStep.Execute has cognitive complexity 36 (threshold 15).
D2 · Cognitive Complexity · PayPalController.PostIpn (cognitive 33) · ×1
  • PayPalController.PostIpn (cognitive 33) src/Billing/Controllers/PayPalController.cs:54 — PayPalController.PostIpn has cognitive complexity 33 (threshold 15).
D2 · Cognitive Complexity · OrganizationBillingService.CreateCustomerAsync (cognitive 32) · ×1
  • OrganizationBillingService.CreateCustomerAsync (cognitive 32) src/Core/Billing/Organizations/Services/OrganizationBillingService.cs:190 — OrganizationBillingService.CreateCustomerAsync has cognitive complexity 32 (threshold 15).
D2 · Cognitive Complexity · UpdatePremiumStorageCommand.Run (cognitive 32) · ×1
  • UpdatePremiumStorageCommand.Run (cognitive 32) src/Core/Billing/Premium/Commands/UpdatePremiumStorageCommand.cs:45 — UpdatePremiumStorageCommand.Run has cognitive complexity 32 (threshold 15).
D2 · Cognitive Complexity · BaseJobsHostedService.StartAsync (cognitive 31) · ×1
  • BaseJobsHostedService.StartAsync (cognitive 31) src/Core/Jobs/BaseJobsHostedService.cs:36 — BaseJobsHostedService.StartAsync has cognitive complexity 31 (threshold 15).
D2 · Cognitive Complexity · EventRepository.BuildEventsTable (cognitive 31) · ×1
  • EventRepository.BuildEventsTable (cognitive 31) src/Infrastructure.Dapper/Dirt/Repositories/EventRepository.cs:191 — EventRepository.BuildEventsTable has cognitive complexity 31 (threshold 15).
D2 · Cognitive Complexity · SsoConfigurationDataRequest.Validate (cognitive 30) · ×1
  • SsoConfigurationDataRequest.Validate (cognitive 30) src/Api/Auth/Models/Request/OrganizationSsoRequestModel.cs:92 — SsoConfigurationDataRequest.Validate has cognitive complexity 30 (threshold 15).
D2 · Cognitive Complexity · PreviewOrganizationTaxCommand.Run (cognitive 30) · ×1
  • PreviewOrganizationTaxCommand.Run (cognitive 30) src/Core/Billing/Organizations/Commands/PreviewOrganizationTaxCommand.cs:163 — PreviewOrganizationTaxCommand.Run has cognitive complexity 30 (threshold 15).
D2 · Cognitive Complexity · CheckDuplicateOperationIdsDocumentFilter.Apply (cognitive 30) · ×1
  • CheckDuplicateOperationIdsDocumentFilter.Apply (cognitive 30) src/SharedWeb/Swagger/CheckDuplicateOperationIdsDocumentFilter.cs:16 — CheckDuplicateOperationIdsDocumentFilter.Apply has cognitive complexity 30 (threshold 15).
D2 · Cognitive Complexity · AccountController.CreateUserAndOrgUserConditionallyAsync (cognitive 30) · ×1
  • AccountController.CreateUserAndOrgUserConditionallyAsync (cognitive 30) bitwarden_license/src/Sso/Controllers/AccountController.cs:487 — AccountController.CreateUserAndOrgUserConditionallyAsync has cognitive complexity 30 (threshold 15).
D2 · Cognitive Complexity · OrganizationLicense.ObsoleteVerifyData (cognitive 29) · ×1
  • OrganizationLicense.ObsoleteVerifyData (cognitive 29) src/Core/Billing/Organizations/Models/OrganizationLicense.cs:503 — OrganizationLicense.ObsoleteVerifyData has cognitive complexity 29 (threshold 15).
D2 · Cognitive Complexity · UpdateBillingAddressCommand.EnableAutomaticTaxAsync (cognitive 29) · ×1
  • UpdateBillingAddressCommand.EnableAutomaticTaxAsync (cognitive 29) src/Core/Billing/Payment/Commands/UpdateBillingAddressCommand.cs:133 — UpdateBillingAddressCommand.EnableAutomaticTaxAsync has cognitive complexity 29 (threshold 15).
D2 · Cognitive Complexity · ProvidersController.Edit (cognitive 28) · ×1
  • ProvidersController.Edit (cognitive 28) src/Admin/AdminConsole/Controllers/ProvidersController.cs:273 — ProvidersController.Edit has cognitive complexity 28 (threshold 15).
D2 · Cognitive Complexity · StripePaymentService.FinalizeSubscriptionChangeAsync (cognitive 28) · ×1
  • StripePaymentService.FinalizeSubscriptionChangeAsync (cognitive 28) src/Core/Billing/Services/Implementations/StripePaymentService.cs:90 — StripePaymentService.FinalizeSubscriptionChangeAsync has cognitive complexity 28 (threshold 15).
D2 · Cognitive Complexity · OrganizationService.AdjustSeatsAsync (cognitive 27) · ×1
  • OrganizationService.AdjustSeatsAsync (cognitive 27) src/Core/AdminConsole/Services/Implementations/OrganizationService.cs:221 — OrganizationService.AdjustSeatsAsync has cognitive complexity 27 (threshold 15).
D2 · Cognitive Complexity · OrganizationService.ValidateCustomPermissionsGrant (cognitive 27) · ×1
  • OrganizationService.ValidateCustomPermissionsGrant (cognitive 27) src/Core/AdminConsole/Services/Implementations/OrganizationService.cs:1001 — OrganizationService.ValidateCustomPermissionsGrant has cognitive complexity 27 (threshold 15).
D2 · Cognitive Complexity · CipherService.ShareAsync (cognitive 27) · ×1
  • CipherService.ShareAsync (cognitive 27) src/Core/Vault/Services/Implementations/CipherService.cs:568 — CipherService.ShareAsync has cognitive complexity 27 (threshold 15).
D2 · Cognitive Complexity · SubscriberService.RemovePaymentSource (cognitive 26) · ×1
  • SubscriberService.RemovePaymentSource (cognitive 26) src/Core/Billing/Services/Implementations/SubscriberService.cs:463 — SubscriberService.RemovePaymentSource has cognitive complexity 26 (threshold 15).
D2 · Cognitive Complexity · UpdateSecretsManagerSubscriptionCommand.FinalizeSubscriptionAdjustmentAsync (cognitive 26) · ×1
  • UpdateSecretsManagerSubscriptionCommand.FinalizeSubscriptionAdjustmentAsync (cognitive 26) src/Core/OrganizationFeatures/OrganizationSubscriptions/UpdateSecretsManagerSubscriptionCommand.cs:76 — UpdateSecretsManagerSubscriptionCommand.FinalizeSubscriptionAdjustmentAsync has cognitive complexity 26 (threshold 15).
D2 · Cognitive Complexity · SsoAuthenticationMiddleware.Invoke (cognitive 26) · ×1
  • SsoAuthenticationMiddleware.Invoke (cognitive 26) bitwarden_license/src/Sso/Utilities/SsoAuthenticationMiddleware.cs:20 — SsoAuthenticationMiddleware.Invoke has cognitive complexity 26 (threshold 15).
D2 · Cognitive Complexity · Program.ValidateInstallation (cognitive 26) · ×1
  • Program.ValidateInstallation (cognitive 26) util/Setup/Program.cs:287 — Program.ValidateInstallation has cognitive complexity 26 (threshold 15).
D2 · Cognitive Complexity · UpdateOrganizationSubscriptionCommand.Run (cognitive 25) · ×1
  • UpdateOrganizationSubscriptionCommand.Run (cognitive 25) src/Core/Billing/Organizations/Commands/UpdateOrganizationSubscriptionCommand.cs:68 — UpdateOrganizationSubscriptionCommand.Run has cognitive complexity 25 (threshold 15).
D2 · Cognitive Complexity · CollectionRepository.CreateOrUpdateAccessForManyAsync (cognitive 25) · ×1
  • CollectionRepository.CreateOrUpdateAccessForManyAsync (cognitive 25) src/Infrastructure.EntityFramework/AdminConsole/Repositories/CollectionRepository.cs:652 — CollectionRepository.CreateOrUpdateAccessForManyAsync has cognitive complexity 25 (threshold 15).
D2 · Cognitive Complexity · PresetLoader.BuildRecipe (cognitive 25) · ×1
  • PresetLoader.BuildRecipe (cognitive 25) util/Seeder/Pipeline/PresetLoader.cs:92 — PresetLoader.BuildRecipe has cognitive complexity 25 (threshold 15).
D2 · Cognitive Complexity · BitPayController.PostIpn (cognitive 24) · ×1
  • BitPayController.PostIpn (cognitive 24) src/Billing/Controllers/BitPayController.cs:37 — BitPayController.PostIpn has cognitive complexity 24 (threshold 15).
D2 · Cognitive Complexity · StripePaymentService.ApplySchedulePhase2DataAsync (cognitive 24) · ×1
  • StripePaymentService.ApplySchedulePhase2DataAsync (cognitive 24) src/Core/Billing/Services/Implementations/StripePaymentService.cs:714 — StripePaymentService.ApplySchedulePhase2DataAsync has cognitive complexity 24 (threshold 15).
D2 · Cognitive Complexity · AzureQueueHostedService.ExecuteAsync (cognitive 24) · ×1
  • AzureQueueHostedService.ExecuteAsync (cognitive 24) src/Notifications/AzureQueueHostedService.cs:50 — AzureQueueHostedService.ExecuteAsync has cognitive complexity 24 (threshold 15).
D2 · Cognitive Complexity · PaymentMethodAttachedHandler.HandleAsync (cognitive 23) · ×1
  • PaymentMethodAttachedHandler.HandleAsync (cognitive 23) src/Billing/Services/Implementations/PaymentMethodAttachedHandler.cs:35 — PaymentMethodAttachedHandler.HandleAsync has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · RemoveOrganizationUserCommand.RemoveUsersInternalAsync (cognitive 23) · ×1
  • RemoveOrganizationUserCommand.RemoveUsersInternalAsync (cognitive 23) src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/RemoveOrganizationUserCommand.cs:198 — RemoveOrganizationUserCommand.RemoveUsersInternalAsync has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · OrganizationLicense.GetDataBytes (cognitive 23) · ×1
  • OrganizationLicense.GetDataBytes (cognitive 23) src/Core/Billing/Organizations/Models/OrganizationLicense.cs:182 — OrganizationLicense.GetDataBytes has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · CreateSponsorshipCommand.CreateSponsorshipAsync (cognitive 23) · ×1
  • CreateSponsorshipCommand.CreateSponsorshipAsync (cognitive 23) src/Core/OrganizationFeatures/OrganizationSponsorships/FamiliesForEnterprise/CreateSponsorshipCommand.cs:21 — CreateSponsorshipCommand.CreateSponsorshipAsync has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · UserService.DeleteAsync (cognitive 23) · ×1
  • UserService.DeleteAsync (cognitive 23) src/Core/Services/Implementations/UserService.cs:224 — UserService.DeleteAsync has cognitive complexity 23 (threshold 15).
D2 · Cognitive Complexity · LicenseExtensions.GetValue (cognitive 22) · ×1
  • LicenseExtensions.GetValue (cognitive 22) src/Core/Billing/Licenses/Extensions/LicenseExtensions.cs:114 — LicenseExtensions.GetValue has cognitive complexity 22 (threshold 15).
D2 · Cognitive Complexity · PaymentSucceededHandler.HandleAsync (cognitive 21) · ×1
  • PaymentSucceededHandler.HandleAsync (cognitive 21) src/Billing/Services/Implementations/PaymentSucceededHandler.cs:32 — PaymentSucceededHandler.HandleAsync has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · SubscriptionUpdatedHandler.HandleScheduleTriggeredBusinessMigrationAsync (cognitive 21) · ×1
  • SubscriptionUpdatedHandler.HandleScheduleTriggeredBusinessMigrationAsync (cognitive 21) src/Billing/Services/Implementations/SubscriptionUpdatedHandler.cs:540 — SubscriptionUpdatedHandler.HandleScheduleTriggeredBusinessMigrationAsync has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · UpcomingInvoiceHandler.ResolveDiscountsAsync (cognitive 21) · ×1
  • UpcomingInvoiceHandler.ResolveDiscountsAsync (cognitive 21) src/Billing/Services/Implementations/UpcomingInvoiceHandler.cs:527 — UpcomingInvoiceHandler.ResolveDiscountsAsync has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · RestoreOrganizationUserCommand.RestoreUsersAsync (cognitive 21) · ×1
  • RestoreOrganizationUserCommand.RestoreUsersAsync (cognitive 21) src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/RestoreUser/v1/RestoreOrganizationUserCommand.cs:173 — RestoreOrganizationUserCommand.RestoreUsersAsync has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · CloudSyncSponsorshipsCommand.DoSyncAsync (cognitive 21) · ×1
  • CloudSyncSponsorshipsCommand.DoSyncAsync (cognitive 21) src/Core/OrganizationFeatures/OrganizationSponsorships/FamiliesForEnterprise/Cloud/CloudSyncSponsorshipsCommand.cs:46 — CloudSyncSponsorshipsCommand.DoSyncAsync has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · ImportCiphersCommand.ImportIntoOrganizationalVaultAsync (cognitive 21) · ×1
  • ImportCiphersCommand.ImportIntoOrganizationalVaultAsync (cognitive 21) src/Core/Tools/ImportFeatures/ImportCiphersCommand.cs:87 — ImportCiphersCommand.ImportIntoOrganizationalVaultAsync has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · OrganizationUserRepository.DeleteManyAsync (cognitive 21) · ×1
  • OrganizationUserRepository.DeleteManyAsync (cognitive 21) src/Infrastructure.EntityFramework/AdminConsole/Repositories/OrganizationUserRepository.cs:174 — OrganizationUserRepository.DeleteManyAsync has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · ServiceCollectionExtensions.AddDefaultServices (cognitive 21) · ×1
  • ServiceCollectionExtensions.AddDefaultServices (cognitive 21) src/SharedWeb/Utilities/ServiceCollectionExtensions.cs:264 — ServiceCollectionExtensions.AddDefaultServices has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · Saml2OptionsExtensions.CouldHandleAsync (cognitive 21) · ×1
  • Saml2OptionsExtensions.CouldHandleAsync (cognitive 21) bitwarden_license/src/Sso/Utilities/Saml2OptionsExtensions.cs:14 — Saml2OptionsExtensions.CouldHandleAsync has cognitive complexity 21 (threshold 15).
D2 · Cognitive Complexity · CipherRequestModel.ToCipher (cognitive 20) · ×1
  • CipherRequestModel.ToCipher (cognitive 20) src/Api/Vault/Models/Request/CipherRequestModel.cs:94 — CipherRequestModel.ToCipher has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · InvoiceExtensions.FormatForProvider (cognitive 20) · ×1
  • InvoiceExtensions.FormatForProvider (cognitive 20) src/Core/Billing/Extensions/InvoiceExtensions.cs:16 — InvoiceExtensions.FormatForProvider has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · BulkSyncCohortAssignmentsCommand.Run (cognitive 20) · ×1
  • BulkSyncCohortAssignmentsCommand.Run (cognitive 20) src/Core/Billing/Organizations/PlanMigration/Commands/BulkSyncCohortAssignmentsCommand.cs:20 — BulkSyncCohortAssignmentsCommand.Run has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · SendValidationService.ValidateUserCanSaveAsync (cognitive 20) · ×1
  • SendValidationService.ValidateUserCanSaveAsync (cognitive 20) src/Core/Tools/SendFeatures/Services/SendValidationService.cs:41 — SendValidationService.ValidateUserCanSaveAsync has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · CreateCollectionsStep.Execute (cognitive 20) · ×1
  • CreateCollectionsStep.Execute (cognitive 20) util/Seeder/Steps/CreateCollectionsStep.cs:28 — CreateCollectionsStep.Execute has cognitive complexity 20 (threshold 15).
D2 · Cognitive Complexity · AzureQueueMailHostedService.ExecuteAsync (cognitive 19) · ×1
  • AzureQueueMailHostedService.ExecuteAsync (cognitive 19) src/Admin/HostedServices/AzureQueueMailHostedService.cs:52 — AzureQueueMailHostedService.ExecuteAsync has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · SelfHostedOrganizationDetails.CanUseLicense (cognitive 19) · ×1
  • SelfHostedOrganizationDetails.CanUseLicense (cognitive 19) src/Core/AdminConsole/Models/Data/Organizations/SelfHostedOrganizationDetails.cs:25 — SelfHostedOrganizationDetails.CanUseLicense has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · UpdateOrganizationUserCommand.UpdateUserAsync (cognitive 19) · ×1
  • UpdateOrganizationUserCommand.UpdateUserAsync (cognitive 19) src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/UpdateOrganizationUserCommand.cs:66 — UpdateOrganizationUserCommand.UpdateUserAsync has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · PreviewOrganizationTaxCommand.Run (cognitive 19) · ×1
  • PreviewOrganizationTaxCommand.Run (cognitive 19) src/Core/Billing/Organizations/Commands/PreviewOrganizationTaxCommand.cs:48 — PreviewOrganizationTaxCommand.Run has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · CurrentContext.SetContextAsync (cognitive 19) · ×1
  • CurrentContext.SetContextAsync (cognitive 19) src/Core/Context/CurrentContext.cs:98 — CurrentContext.SetContextAsync has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · CipherService.SaveDetailsAsync (cognitive 19) · ×1
  • CipherService.SaveDetailsAsync (cognitive 19) src/Core/Vault/Services/Implementations/CipherService.cs:123 — CipherService.SaveDetailsAsync has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · ServiceCollectionExtensions.UseForwardedHeaders (cognitive 19) · ×1
  • ServiceCollectionExtensions.UseForwardedHeaders (cognitive 19) src/SharedWeb/Utilities/ServiceCollectionExtensions.cs:597 — ServiceCollectionExtensions.UseForwardedHeaders has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · ProviderBillingService.UpdateSeatMinimums (cognitive 19) · ×1
  • ProviderBillingService.UpdateSeatMinimums (cognitive 19) bitwarden_license/src/Commercial.Core/Billing/Providers/Services/ProviderBillingService.cs:724 — ProviderBillingService.UpdateSeatMinimums has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · CreateGroupsStep.Execute (cognitive 19) · ×1
  • CreateGroupsStep.Execute (cognitive 19) util/Seeder/Steps/CreateGroupsStep.cs:12 — CreateGroupsStep.Execute has cognitive complexity 19 (threshold 15).
D2 · Cognitive Complexity · EventsController.List (cognitive 18) · ×1
  • EventsController.List (cognitive 18) src/Api/Dirt/Public/Controllers/EventsController.cs:56 — EventsController.List has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · AdminRecoverAccountCommand.RecoverAccountAsync (cognitive 18) · ×1
  • AdminRecoverAccountCommand.RecoverAccountAsync (cognitive 18) src/Core/AdminConsole/OrganizationFeatures/AccountRecovery/v2/AdminRecoverAccountCommand.cs:34 — AdminRecoverAccountCommand.RecoverAccountAsync has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · LicensingService.LicensingService.ctor (cognitive 18) · ×1
  • LicensingService.LicensingService.ctor (cognitive 18) src/Core/Billing/Services/Implementations/LicensingService.cs:49 — LicensingService.LicensingService.ctor has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · SecretRepository.BuildSecretAccessQuery (cognitive 18) · ×1
  • SecretRepository.BuildSecretAccessQuery (cognitive 18) bitwarden_license/src/Commercial.Infrastructure.EntityFramework/SecretsManager/Repositories/SecretRepository.cs:476 — SecretRepository.BuildSecretAccessQuery has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · CreateGroupsStep.ComputeUsersPerGroup (cognitive 18) · ×1
  • CreateGroupsStep.ComputeUsersPerGroup (cognitive 18) util/Seeder/Steps/CreateGroupsStep.cs:75 — CreateGroupsStep.ComputeUsersPerGroup has cognitive complexity 18 (threshold 15).
D2 · Cognitive Complexity · SecretVersionsController.RestoreVersionAsync (cognitive 17) · ×1
  • SecretVersionsController.RestoreVersionAsync (cognitive 17) src/Api/SecretsManager/Controllers/SecretVersionsController.cs:181 — SecretVersionsController.RestoreVersionAsync has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · MultipartFormDataHelper.GetFileAsync (cognitive 17) · ×1
  • MultipartFormDataHelper.GetFileAsync (cognitive 17) src/Api/Utilities/MultipartFormDataHelper.cs:17 — MultipartFormDataHelper.GetFileAsync has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · StripeEventUtilityService.AttemptToPayInvoiceWithBraintreeAsync (cognitive 17) · ×1
  • StripeEventUtilityService.AttemptToPayInvoiceWithBraintreeAsync (cognitive 17) src/Billing/Services/Implementations/StripeEventUtilityService.cs:265 — StripeEventUtilityService.AttemptToPayInvoiceWithBraintreeAsync has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · AdminRecoverAccountValidator.ValidateAsync (cognitive 17) · ×1
  • AdminRecoverAccountValidator.ValidateAsync (cognitive 17) src/Core/AdminConsole/OrganizationFeatures/AccountRecovery/v2/AdminRecoverAccountValidator.cs:15 — AdminRecoverAccountValidator.ValidateAsync has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · CipherService.StorageBytesRemainingForCipherAsync (cognitive 17) · ×1
  • CipherService.StorageBytesRemainingForCipherAsync (cognitive 17) src/Core/Vault/Services/Implementations/CipherService.cs:964 — CipherService.StorageBytesRemainingForCipherAsync has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · CreateCipherFoldersStep.Execute (cognitive 17) · ×1
  • CreateCipherFoldersStep.Execute (cognitive 17) util/Seeder/Steps/CreateCipherFoldersStep.cs:13 — CreateCipherFoldersStep.Execute has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · GeneratePersonalCiphersStep.Execute (cognitive 17) · ×1
  • GeneratePersonalCiphersStep.Execute (cognitive 17) util/Seeder/Steps/GeneratePersonalCiphersStep.cs:28 — GeneratePersonalCiphersStep.Execute has cognitive complexity 17 (threshold 15).
D2 · Cognitive Complexity · ToolsController.GenerateLicense (cognitive 16) · ×1
  • ToolsController.GenerateLicense (cognitive 16) src/Admin/Controllers/ToolsController.cs:267 — ToolsController.GenerateLicense has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · TwoFactorYubiKeyResponseModel.TwoFactorYubiKeyResponseModel.ctor (cognitive 16) · ×1
  • TwoFactorYubiKeyResponseModel.TwoFactorYubiKeyResponseModel.ctor (cognitive 16) src/Api/Auth/Models/Response/TwoFactor/TwoFactorYubiKeyResponseModel.cs:12 — TwoFactorYubiKeyResponseModel.TwoFactorYubiKeyResponseModel.ctor has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · ProviderEventService.TryRecordInvoiceLineItems (cognitive 16) · ×1
  • ProviderEventService.TryRecordInvoiceLineItems (cognitive 16) src/Billing/Services/Implementations/ProviderEventService.cs:24 — ProviderEventService.TryRecordInvoiceLineItems has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · UpcomingInvoiceHandler.EnableAutomaticTaxAsync (cognitive 16) · ×1
  • UpcomingInvoiceHandler.EnableAutomaticTaxAsync (cognitive 16) src/Billing/Services/Implementations/UpcomingInvoiceHandler.cs:923 — UpcomingInvoiceHandler.EnableAutomaticTaxAsync has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · RemoveOrganizationUserCommand.RepositoryRemoveUserAsync (cognitive 16) · ×1
  • RemoveOrganizationUserCommand.RepositoryRemoveUserAsync (cognitive 16) src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/RemoveOrganizationUserCommand.cs:140 — RemoveOrganizationUserCommand.RepositoryRemoveUserAsync has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · AuthRequestService.UpdateAuthRequestAsync (cognitive 16) · ×1
  • AuthRequestService.UpdateAuthRequestAsync (cognitive 16) src/Core/Auth/Services/Implementations/AuthRequestService.cs:178 — AuthRequestService.UpdateAuthRequestAsync has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · RegisterUserCommand.RegisterUserViaOrganizationInviteToken (cognitive 16) · ×1
  • RegisterUserCommand.RegisterUserViaOrganizationInviteToken (cognitive 16) src/Core/Auth/UserFeatures/Registration/Implementations/RegisterUserCommand.cs:111 — RegisterUserCommand.RegisterUserViaOrganizationInviteToken has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · UpgradeOrganizationPlanVNextCommand.Run (cognitive 16) · ×1
  • UpgradeOrganizationPlanVNextCommand.Run (cognitive 16) src/Core/Billing/Organizations/Commands/UpgradeOrganizationPlanVNextCommand.cs:55 — UpgradeOrganizationPlanVNextCommand.Run has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · StripePaymentService.CancelAndRecoverChargesAsync (cognitive 16) · ×1
  • StripePaymentService.CancelAndRecoverChargesAsync (cognitive 16) src/Core/Billing/Services/Implementations/StripePaymentService.cs:298 — StripePaymentService.CancelAndRecoverChargesAsync has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · UpdateSecretsManagerSubscriptionCommand.ValidateSmSeatsUpdateAsync (cognitive 16) · ×1
  • UpdateSecretsManagerSubscriptionCommand.ValidateSmSeatsUpdateAsync (cognitive 16) src/Core/OrganizationFeatures/OrganizationSubscriptions/UpdateSecretsManagerSubscriptionCommand.cs:255 — UpdateSecretsManagerSubscriptionCommand.ValidateSmSeatsUpdateAsync has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · UpdateSecretsManagerSubscriptionCommand.ValidateSmServiceAccountsUpdateAsync (cognitive 16) · ×1
  • UpdateSecretsManagerSubscriptionCommand.ValidateSmServiceAccountsUpdateAsync (cognitive 16) src/Core/OrganizationFeatures/OrganizationSubscriptions/UpdateSecretsManagerSubscriptionCommand.cs:322 — UpdateSecretsManagerSubscriptionCommand.ValidateSmServiceAccountsUpdateAsync has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · AzureQueueHostedService.ExecuteAsync (cognitive 16) · ×1
  • AzureQueueHostedService.ExecuteAsync (cognitive 16) src/EventsProcessor/AzureQueueHostedService.cs:58 — AzureQueueHostedService.ExecuteAsync has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · IconsController.Get (cognitive 16) · ×1
  • IconsController.Get (cognitive 16) src/Icons/Controllers/IconsController.cs:55 — IconsController.Get has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · IconLink.StripIcoEmbeddedPngMetadata (cognitive 16) · ×1
  • IconLink.StripIcoEmbeddedPngMetadata (cognitive 16) src/Icons/Models/IconLink.cs:284 — IconLink.StripIcoEmbeddedPngMetadata has cognitive complexity 16 (threshold 15).
D2 · Cognitive Complexity · CertBuilder.BuildForInstall (cognitive 16) · ×1
  • CertBuilder.BuildForInstall (cognitive 16) util/Setup/CertBuilder.cs:12 — CertBuilder.BuildForInstall has cognitive complexity 16 (threshold 15).
D21 · Naming Consistency · LLM evaluation failed · ×1
  • LLM evaluation failed — naming-consistency evaluation failed: Name or service not known (canine-dgx1:80)
D24 · Comment Value · LLM evaluation failed · ×1
  • LLM evaluation failed — comment-value evaluation failed: Name or service not known (canine-dgx1:80)
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.
D4 · Code Duplication · Duplicated block (37 lines × 2) · ×1
  • Duplicated block (37 lines × 2) src/Core/AdminConsole/OrganizationFeatures/Organizations/CloudOrganizationSignUpCommand.cs:181 — src/Core/AdminConsole/OrganizationFeatures/Organizations/CloudOrganizationSignUpCommand.cs:181-217 | src/Core/AdminConsole/Services/Implementations/OrganizationService.cs:903-939
D4 · Code Duplication · Duplicated block (28 lines × 2) · ×1
  • Duplicated block (28 lines × 2) src/Core/NotificationCenter/Commands/MarkNotificationDeletedCommand.cs:36 — src/Core/NotificationCenter/Commands/MarkNotificationDeletedCommand.cs:36-63 | src/Core/NotificationCenter/Commands/MarkNotificationReadCommand.cs:36-63
D4 · Code Duplication · Duplicated block (27 lines × 2) · ×1
  • Duplicated block (27 lines × 2) src/Core/Utilities/CoreHelpers.cs:243 — src/Core/Utilities/CoreHelpers.cs:243-269 | util/Setup/Helpers.cs:21-47
D4 · Code Duplication · Duplicated block (26 lines × 2) · ×1
  • Duplicated block (26 lines × 2) src/Api/Dirt/Controllers/SlackIntegrationController.cs:48 — src/Api/Dirt/Controllers/SlackIntegrationController.cs:48-73 | src/Api/Dirt/Controllers/TeamsIntegrationController.cs:52-77
D4 · Code Duplication · Duplicated block (24 lines × 2) · ×1
  • Duplicated block (24 lines × 2) src/Core/Utilities/KdfSettingsValidator.cs:25 — src/Core/Utilities/KdfSettingsValidator.cs:25-48 | src/Core/Utilities/KdfSettingsValidator.cs:82-102
D4 · Code Duplication · Duplicated block (18 lines × 2) · ×1
  • Duplicated block (18 lines × 2) src/Api/Models/Public/Response/ErrorResponseModel.cs:22 — src/Api/Models/Public/Response/ErrorResponseModel.cs:22-37 | src/Core/Models/Api/Response/ErrorResponseModel.cs:29-46
D4 · Code Duplication · Duplicated block (16 lines × 3) · ×1
  • Duplicated block (16 lines × 3) src/Core/Dirt/Services/Implementations/SlackService.cs:111 — src/Core/Dirt/Services/Implementations/SlackService.cs:111-126 | src/Core/Dirt/Services/Implementations/SlackService.cs:162-177 | src/Core/Dirt/Services/Implementations/SlackService.cs:197-212
D4 · Code Duplication · Duplicated block (15 lines × 3) · ×1
  • Duplicated block (15 lines × 3) src/Api/AdminConsole/Models/Request/Organizations/OrganizationUserResetPasswordRequestModel.cs:40 — src/Api/AdminConsole/Models/Request/Organizations/OrganizationUserResetPasswordRequestModel.cs:40-54 | src/Api/Auth/Models/Request/Accounts/PasswordRequestModel.cs:32-46 | src/Api/Auth/Models/Request/Accounts/UpdateTempPasswordRequestModel.cs:30-44
D4 · Code Duplication · Duplicated block (13 lines × 3) · ×1
  • Duplicated block (13 lines × 3) util/MySqlMigrations/MySqlDbMigrator.cs:26 — util/MySqlMigrations/MySqlDbMigrator.cs:26-38 | util/PostgresMigrations/PostgresDbMigratorDbMigrator.cs:26-38 | util/SqliteMigrations/SqliteDbMigrator.cs:26-38
D4 · Code Duplication · Duplicated block (6 lines × 3) · ×1
  • Duplicated block (6 lines × 3) src/Infrastructure.EntityFramework/SecretsManager/Models/AccessPolicy.cs:19 — src/Infrastructure.EntityFramework/SecretsManager/Models/AccessPolicy.cs:19-24 | src/Infrastructure.EntityFramework/SecretsManager/Models/AccessPolicy.cs:25-30 | src/Infrastructure.EntityFramework/SecretsManager/Models/AccessPolicy.cs:31-36
D4 · Code Duplication · Duplicated block (6 lines × 2) · ×1
  • Duplicated block (6 lines × 2) src/Core/Dirt/EventIntegrations/EventIntegrationsServiceCollectionExtensions.cs:403 — src/Core/Dirt/EventIntegrations/EventIntegrationsServiceCollectionExtensions.cs:403-408 | src/Core/Dirt/EventIntegrations/EventIntegrationsServiceCollectionExtensions.cs:476-481
D4 · Code Duplication · Duplicated block (5 lines × 2) · ×1
  • Duplicated block (5 lines × 2) src/Core/Billing/Extensions/BillingExtensions.cs:17 — src/Core/Billing/Extensions/BillingExtensions.cs:17-21 | src/Core/Billing/Pricing/Organizations/PlanAdapter.cs:82-86
Recommendation — 128 finding(s)
D17 · Explicit Debt · ObsoleteWithoutCallers · ×87
  • ObsoleteWithoutCallers src/Api/AdminConsole/Controllers/CollectionsController.cs:209 — [Obsolete] PostPut
  • ObsoleteWithoutCallers src/Api/AdminConsole/Controllers/CollectionsController.cs:252 — [Obsolete] PostDelete
  • ObsoleteWithoutCallers src/Api/AdminConsole/Controllers/CollectionsController.cs:272 — [Obsolete] PostDeleteMany
  • ObsoleteWithoutCallers src/Api/AdminConsole/Controllers/GroupsController.cs:219 — [Obsolete] PostPut
  • ObsoleteWithoutCallers src/Api/AdminConsole/Controllers/GroupsController.cs:240 — [Obsolete] PostDelete
  • ObsoleteWithoutCallers src/Api/AdminConsole/Controllers/GroupsController.cs:265 — [Obsolete] PostBulkDelete
  • ObsoleteWithoutCallers src/Api/AdminConsole/Controllers/GroupsController.cs:286 — [Obsolete] PostDeleteUser
  • ObsoleteWithoutCallers src/Api/AdminConsole/Controllers/OrganizationConnectionsController.cs:160 — [Obsolete] PostDeleteConnection
  • ObsoleteWithoutCallers src/Api/AdminConsole/Controllers/OrganizationDomainController.cs:121 — [Obsolete] PostRemoveDomain
  • ObsoleteWithoutCallers src/Api/AdminConsole/Controllers/OrganizationsController.cs:239 — [Obsolete] PostPut
  • ObsoleteWithoutCallers src/Api/AdminConsole/Controllers/OrganizationsController.cs:327 — [Obsolete] PostDelete
  • ObsoleteWithoutCallers src/Api/AdminConsole/Controllers/OrganizationsController.cs:481 — [Obsolete] GetKeys
  • ObsoleteWithoutCallers src/Api/AdminConsole/Controllers/OrganizationUsersController.cs:469 — [Obsolete] PostPut
  • ObsoleteWithoutCallers src/Api/AdminConsole/Controllers/OrganizationUsersController.cs:534 — [Obsolete] PostRemove
  • ObsoleteWithoutCallers src/Api/AdminConsole/Controllers/OrganizationUsersController.cs:552 — [Obsolete] PostBulkRemove
  • ObsoleteWithoutCallers src/Api/AdminConsole/Controllers/OrganizationUsersController.cs:580 — [Obsolete] PostDeleteAccount
  • ObsoleteWithoutCallers src/Api/AdminConsole/Controllers/OrganizationUsersController.cs:608 — [Obsolete] PostBulkDeleteAccount
  • ObsoleteWithoutCallers src/Api/AdminConsole/Controllers/OrganizationUsersController.cs:637 — [Obsolete] PatchRevokeAsync
  • ObsoleteWithoutCallers src/Api/AdminConsole/Controllers/OrganizationUsersController.cs:670 — [Obsolete] PatchBulkRevokeAsync
  • ObsoleteWithoutCallers src/Api/AdminConsole/Controllers/OrganizationUsersController.cs:694 — [Obsolete] PatchRestoreAsync
  • ObsoleteWithoutCallers src/Api/AdminConsole/Controllers/OrganizationUsersController.cs:711 — [Obsolete] PatchBulkRestoreAsync
  • ObsoleteWithoutCallers src/Api/AdminConsole/Controllers/OrganizationUsersController.cs:751 — [Obsolete] PatchBulkEnableSecretsManagerAsync
  • ObsoleteWithoutCallers src/Api/AdminConsole/Controllers/ProviderOrganizationsController.cs:106 — [Obsolete] PostDelete
  • ObsoleteWithoutCallers src/Api/AdminConsole/Controllers/ProvidersController.cs:89 — [Obsolete] PostPut
  • ObsoleteWithoutCallers src/Api/AdminConsole/Controllers/ProvidersController.cs:150 — [Obsolete] PostDelete
  • + 62 more in this group — see findings.md.
D10 · Test Quality · No direct assertions · ×20
  • No direct assertions: Post_UserClientExportedVault_Success test/Events.IntegrationTest/Controllers/CollectControllerTests.cs:57 — In a harness-style test project (most tests assert via a verifier/approval harness or step indirection) — no conventional assertion call was detected.
  • No direct assertions: Post_CipherClientAutofilled_WithValidCipher_Success test/Events.IntegrationTest/Controllers/CollectControllerTests.cs:72 — In a harness-style test project (most tests assert via a verifier/approval harness or step indirection) — no conventional assertion call was detected.
  • No direct assertions: Post_CipherClientCopiedPassword_WithValidCipher_Success test/Events.IntegrationTest/Controllers/CollectControllerTests.cs:90 — In a harness-style test project (most tests assert via a verifier/approval harness or step indirection) — no conventional assertion call was detected.
  • No direct assertions: Post_CipherClientCopiedHiddenField_WithValidCipher_Success test/Events.IntegrationTest/Controllers/CollectControllerTests.cs:108 — In a harness-style test project (most tests assert via a verifier/approval harness or step indirection) — no conventional assertion call was detected.
  • No direct assertions: Post_CipherClientCopiedCardCode_WithValidCipher_Success test/Events.IntegrationTest/Controllers/CollectControllerTests.cs:126 — In a harness-style test project (most tests assert via a verifier/approval harness or step indirection) — no conventional assertion call was detected.
  • No direct assertions: Post_CipherClientToggledCardNumberVisible_WithValidCipher_Success test/Events.IntegrationTest/Controllers/CollectControllerTests.cs:144 — In a harness-style test project (most tests assert via a verifier/approval harness or step indirection) — no conventional assertion call was detected.
  • No direct assertions: Post_CipherClientToggledCardCodeVisible_WithValidCipher_Success test/Events.IntegrationTest/Controllers/CollectControllerTests.cs:162 — In a harness-style test project (most tests assert via a verifier/approval harness or step indirection) — no conventional assertion call was detected.
  • No direct assertions: Post_CipherClientToggledHiddenFieldVisible_WithValidCipher_Success test/Events.IntegrationTest/Controllers/CollectControllerTests.cs:180 — In a harness-style test project (most tests assert via a verifier/approval harness or step indirection) — no conventional assertion call was detected.
  • No direct assertions: Post_CipherClientToggledPasswordVisible_WithValidCipher_Success test/Events.IntegrationTest/Controllers/CollectControllerTests.cs:198 — In a harness-style test project (most tests assert via a verifier/approval harness or step indirection) — no conventional assertion call was detected.
  • No direct assertions: Post_CipherClientViewed_WithValidCipher_Success test/Events.IntegrationTest/Controllers/CollectControllerTests.cs:216 — In a harness-style test project (most tests assert via a verifier/approval harness or step indirection) — no conventional assertion call was detected.
  • No direct assertions: Post_CipherEvent_WithoutCipherId_Success test/Events.IntegrationTest/Controllers/CollectControllerTests.cs:234 — In a harness-style test project (most tests assert via a verifier/approval harness or step indirection) — no conventional assertion call was detected.
  • No direct assertions: Post_CipherEvent_WithInvalidCipherId_Success test/Events.IntegrationTest/Controllers/CollectControllerTests.cs:249 — In a harness-style test project (most tests assert via a verifier/approval harness or step indirection) — no conventional assertion call was detected.
  • No direct assertions: Post_OrganizationClientExportedVault_WithValidOrganization_Success test/Events.IntegrationTest/Controllers/CollectControllerTests.cs:265 — In a harness-style test project (most tests assert via a verifier/approval harness or step indirection) — no conventional assertion call was detected.
  • No direct assertions: Post_OrganizationClientExportedVault_WithoutOrganizationId_Success test/Events.IntegrationTest/Controllers/CollectControllerTests.cs:283 — In a harness-style test project (most tests assert via a verifier/approval harness or step indirection) — no conventional assertion call was detected.
  • No direct assertions: Post_OrganizationClientExportedVault_WithInvalidOrganizationId_Success test/Events.IntegrationTest/Controllers/CollectControllerTests.cs:298 — In a harness-style test project (most tests assert via a verifier/approval harness or step indirection) — no conventional assertion call was detected.
  • No direct assertions: Post_MultipleEvents_Success test/Events.IntegrationTest/Controllers/CollectControllerTests.cs:314 — In a harness-style test project (most tests assert via a verifier/approval harness or step indirection) — no conventional assertion call was detected.
  • No direct assertions: Post_CipherEventsBatch_MoreThan50Items_Success test/Events.IntegrationTest/Controllers/CollectControllerTests.cs:350 — In a harness-style test project (most tests assert via a verifier/approval harness or step indirection) — no conventional assertion call was detected.
  • No direct assertions: Post_UnsupportedEventType_Success test/Events.IntegrationTest/Controllers/CollectControllerTests.cs:370 — In a harness-style test project (most tests assert via a verifier/approval harness or step indirection) — no conventional assertion call was detected.
  • No direct assertions: Post_MixedValidAndInvalidEvents_Success test/Events.IntegrationTest/Controllers/CollectControllerTests.cs:386 — In a harness-style test project (most tests assert via a verifier/approval harness or step indirection) — no conventional assertion call was detected.
  • No direct assertions: Post_CipherCaching_MultipleEventsForSameCipher_Success test/Events.IntegrationTest/Controllers/CollectControllerTests.cs:415 — In a harness-style test project (most tests assert via a verifier/approval harness or step indirection) — no conventional assertion call was detected.
D17 · Explicit Debt · DuplicateNoWarn · ×7
  • DuplicateNoWarn src/Core/Core.csproj:15 — NoWarn 1701 is listed more than once in this project file — remove the duplicate.
  • DuplicateNoWarn src/Core/Core.csproj:15 — NoWarn 1702 is listed more than once in this project file — remove the duplicate.
  • DuplicateNoWarn src/Core/Core.csproj:15 — NoWarn 1591 is listed more than once in this project file — remove the duplicate.
  • DuplicateNoWarn src/Core/Core.csproj:15 — NoWarn 1573 is listed more than once in this project file — remove the duplicate.
  • DuplicateNoWarn src/Api/Api.csproj:18 — NoWarn 1701 is listed more than once in this project file — remove the duplicate.
  • DuplicateNoWarn src/Api/Api.csproj:18 — NoWarn 1702 is listed more than once in this project file — remove the duplicate.
  • DuplicateNoWarn src/Api/Api.csproj:18 — NoWarn 1591 is listed more than once in this project file — remove the duplicate.
D31 · IaC & Container Security · Low IaC · ×2
  • Low IaC: DS-0026 util/MsSqlMigratorUtility/Dockerfile — No HEALTHCHECK defined
  • Low IaC: DS-0026 util/Setup/Dockerfile — No HEALTHCHECK defined
D38 · OSV Dependency Vulnerabilities · Low CVE · ×2
  • Low CVE: [GHSA redacted] util/RustSdk/rust/Cargo.lock — rand: [GHSA redacted]
  • Low CVE: [GHSA redacted] util/RustSdk/rust/Cargo.lock — rsa: [GHSA redacted]
D11 · Test Reliability · Tier not included (time budget) · ×1
  • Tier not included (time budget) — other: not included — too large to re-run within its budget
D14 · License Compliance · License scan unavailable · ×1
  • License scan unavailable — license scan produced no result — the tool ran but its JSON output could not be parsed; the offline NuGet fallback resolved nothing
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.
D25 · ADR Conformance · no ADRs to check · ×1
  • no ADRs to check — No ADRs found, so conformance can't be assessed.
D28 · Secrets (history) · Rotate the exposed credentials · ×1
  • Rotate the exposed credentials — git history can't be un-committed — These secrets are in git HISTORY: deleting the file does not remove them (the commit persists on every clone, fork and backup). The remediation is to ROTATE each exposed credential and treat it as compromised — not to delete the file. Rewriting history is disruptive and unreliable across existing forks.
D32 · Data Compliance (PII/GDPR) · Not applicable · ×1
  • Not applicable — No PII/GDPR-handling patterns detected (p/gdpr ruleset) — no data-compliance surface to assess.
D34 · Knowledge Freshness · early-stage repository · ×1
  • early-stage repository — too little history to judge knowledge freshness — early-stage repository — too little history to judge knowledge freshness (0 commit(s) sampled).
D36 · Supply-chain Provenance & Signing · No build provenance · ×1
  • No build provenance — No SLSA provenance generation or build attestation found in CI (e.g. slsa-github-generator, actions/attest-build-provenance).
D36 · Supply-chain Provenance & Signing · No SBOM · ×1
  • No SBOM — No SBOM generation or committed SBOM found (e.g. syft / anchore/sbom-action / *.spdx.json / *.cdx.json).
D7 · Architectural Integrity · No checkable ADRs to assess · ×1
  • No checkable ADRs to assess — No architecture decision records were found and the project graph is acyclic, so architectural integrity could not be assessed. Add ADRs (with `enforcement: analyzer|test`) to make the architecture's rules checkable.
Info — 425 finding(s)
D12 · Dependency Hygiene · Outdated · ×267
  • Outdated: Aspire.Hosting.AppHost — Aspire.Hosting.AppHost 13.3.4 → 13.4.5 available.
  • Outdated: Aspire.Hosting.Azure.Storage — Aspire.Hosting.Azure.Storage 13.3.4 → 13.4.5 available.
  • Outdated: Aspire.Hosting.JavaScript — Aspire.Hosting.JavaScript 13.3.4 → 13.4.5 available.
  • Outdated: Aspire.Hosting.SqlServer — Aspire.Hosting.SqlServer 13.3.4 → 13.4.5 available.
  • Outdated: BenchmarkDotNet — BenchmarkDotNet 0.15.3 → 0.15.8 available.
  • Outdated: OpenTelemetry.Exporter.OpenTelemetryProtocol — OpenTelemetry.Exporter.OpenTelemetryProtocol 1.15.3 → 1.16.0 available.
  • Outdated: OpenTelemetry.Extensions.Hosting — OpenTelemetry.Extensions.Hosting 1.15.3 → 1.16.0 available.
  • Outdated: OpenTelemetry.Instrumentation.AspNetCore — OpenTelemetry.Instrumentation.AspNetCore 1.15.0 → 1.15.2 available.
  • Outdated: OpenTelemetry.Instrumentation.EntityFrameworkCore — OpenTelemetry.Instrumentation.EntityFrameworkCore 1.12.0-beta.2 → Not available.
  • Outdated: OpenTelemetry.Instrumentation.Http — OpenTelemetry.Instrumentation.Http 1.15.0 → 1.15.1 available.
  • Outdated: OpenTelemetry.Instrumentation.Runtime — OpenTelemetry.Instrumentation.Runtime 1.15.0 → 1.15.1 available.
  • Outdated: OpenTelemetry.Instrumentation.SqlClient — OpenTelemetry.Instrumentation.SqlClient 1.12.0-beta.3 → 1.15.2 available.
  • Outdated: AspNetCore.HealthChecks.SqlServer — AspNetCore.HealthChecks.SqlServer 8.0.2 → 9.0.0 available.
  • Outdated: AspNetCore.HealthChecks.Uris — AspNetCore.HealthChecks.Uris 8.0.1 → 9.0.0 available.
  • Outdated: OpenTelemetry.Exporter.OpenTelemetryProtocol — OpenTelemetry.Exporter.OpenTelemetryProtocol 1.15.3 → 1.16.0 available.
  • Outdated: OpenTelemetry.Extensions.Hosting — OpenTelemetry.Extensions.Hosting 1.15.3 → 1.16.0 available.
  • Outdated: OpenTelemetry.Instrumentation.AspNetCore — OpenTelemetry.Instrumentation.AspNetCore 1.15.0 → 1.15.2 available.
  • Outdated: OpenTelemetry.Instrumentation.EntityFrameworkCore — OpenTelemetry.Instrumentation.EntityFrameworkCore 1.12.0-beta.2 → Not available.
  • Outdated: OpenTelemetry.Instrumentation.Http — OpenTelemetry.Instrumentation.Http 1.15.0 → 1.15.1 available.
  • Outdated: OpenTelemetry.Instrumentation.Runtime — OpenTelemetry.Instrumentation.Runtime 1.15.0 → 1.15.1 available.
  • Outdated: OpenTelemetry.Instrumentation.SqlClient — OpenTelemetry.Instrumentation.SqlClient 1.12.0-beta.3 → 1.15.2 available.
  • Outdated: Swashbuckle.AspNetCore — Swashbuckle.AspNetCore 10.1.7 → 10.2.1 available.
  • Outdated: MarkDig — MarkDig 1.1.0 → 1.3.2 available.
  • Outdated: OpenTelemetry.Exporter.OpenTelemetryProtocol — OpenTelemetry.Exporter.OpenTelemetryProtocol 1.15.3 → 1.16.0 available.
  • Outdated: OpenTelemetry.Extensions.Hosting — OpenTelemetry.Extensions.Hosting 1.15.3 → 1.16.0 available.
  • + 242 more in this group — see findings.md.
D10 · Test Quality · Skipped (documented) · ×47
  • Skipped (documented): ExternalCallback_WithInvalidProviderGuid_ReturnsError bitwarden_license/test/Sso.IntegrationTest/Controllers/AccountControllerTests.cs:613 — Skipped with a documented reason — a deferral, not lazy debt: This test cannot be executed because the organization ID must be a GUID. See note in test summary.
  • Skipped (documented): ExternalCallback_WithNonExistentOrganization_ReturnsError bitwarden_license/test/Sso.IntegrationTest/Controllers/AccountControllerTests.cs:651 — Skipped with a documented reason — a deferral, not lazy debt: This code path is unreachable because the SsoConfig must exist to proceed. But the SsoConfig cannot exist without a valid Organization.
  • Skipped (documented): UpdateGroup_WithUsersAndCollections test/Api.IntegrationTest/AdminConsole/Controllers/GroupsControllerPerformanceTests.cs:23 — Skipped with a documented reason — a deferral, not lazy debt: Performance test
  • Skipped (documented): DeleteOrganization_WithPasswordVerification test/Api.IntegrationTest/AdminConsole/Controllers/OrganizationsControllerPerformanceTests.cs:26 — Skipped with a documented reason — a deferral, not lazy debt: Performance test
  • Skipped (documented): DeleteOrganization_WithTokenVerification test/Api.IntegrationTest/AdminConsole/Controllers/OrganizationsControllerPerformanceTests.cs:77 — Skipped with a documented reason — a deferral, not lazy debt: Performance test
  • Skipped (documented): CreateOrganization_WithoutPayment test/Api.IntegrationTest/AdminConsole/Controllers/OrganizationsControllerPerformanceTests.cs:131 — Skipped with a documented reason — a deferral, not lazy debt: Performance test
  • Skipped (documented): GetAllUsers_WithCollections test/Api.IntegrationTest/AdminConsole/Controllers/OrganizationUsersControllerPerformanceTests.cs:25 — Skipped with a documented reason — a deferral, not lazy debt: Performance test
  • Skipped (documented): GetAllUsers_MiniDetails test/Api.IntegrationTest/AdminConsole/Controllers/OrganizationUsersControllerPerformanceTests.cs:64 — Skipped with a documented reason — a deferral, not lazy debt: Performance test
  • Skipped (documented): GetSingleUser_WithGroups test/Api.IntegrationTest/AdminConsole/Controllers/OrganizationUsersControllerPerformanceTests.cs:104 — Skipped with a documented reason — a deferral, not lazy debt: Performance test
  • Skipped (documented): GetResetPasswordDetails_ForSingleUser test/Api.IntegrationTest/AdminConsole/Controllers/OrganizationUsersControllerPerformanceTests.cs:139 — Skipped with a documented reason — a deferral, not lazy debt: Performance test
  • Skipped (documented): BulkConfirmUsers test/Api.IntegrationTest/AdminConsole/Controllers/OrganizationUsersControllerPerformanceTests.cs:172 — Skipped with a documented reason — a deferral, not lazy debt: Performance test
  • Skipped (documented): BulkRemoveUsers test/Api.IntegrationTest/AdminConsole/Controllers/OrganizationUsersControllerPerformanceTests.cs:223 — Skipped with a documented reason — a deferral, not lazy debt: Performance test
  • Skipped (documented): BulkRevokeUsers test/Api.IntegrationTest/AdminConsole/Controllers/OrganizationUsersControllerPerformanceTests.cs:266 — Skipped with a documented reason — a deferral, not lazy debt: Performance test
  • Skipped (documented): BulkRestoreUsers test/Api.IntegrationTest/AdminConsole/Controllers/OrganizationUsersControllerPerformanceTests.cs:313 — Skipped with a documented reason — a deferral, not lazy debt: Performance test
  • Skipped (documented): BulkDeleteAccounts test/Api.IntegrationTest/AdminConsole/Controllers/OrganizationUsersControllerPerformanceTests.cs:360 — Skipped with a documented reason — a deferral, not lazy debt: Performance test
  • Skipped (documented): UpdateSingleUser_WithCollectionsAndGroups test/Api.IntegrationTest/AdminConsole/Controllers/OrganizationUsersControllerPerformanceTests.cs:411 — Skipped with a documented reason — a deferral, not lazy debt: Performance test
  • Skipped (documented): BulkEnableSecretsManager test/Api.IntegrationTest/AdminConsole/Controllers/OrganizationUsersControllerPerformanceTests.cs:461 — Skipped with a documented reason — a deferral, not lazy debt: Performance test
  • Skipped (documented): DeleteSingleUserAccount_FromVerifiedDomain test/Api.IntegrationTest/AdminConsole/Controllers/OrganizationUsersControllerPerformanceTests.cs:504 — Skipped with a documented reason — a deferral, not lazy debt: Performance test
  • Skipped (documented): InviteUsers test/Api.IntegrationTest/AdminConsole/Controllers/OrganizationUsersControllerPerformanceTests.cs:545 — Skipped with a documented reason — a deferral, not lazy debt: Performance test
  • Skipped (documented): BulkReinviteUsers test/Api.IntegrationTest/AdminConsole/Controllers/OrganizationUsersControllerPerformanceTests.cs:596 — Skipped with a documented reason — a deferral, not lazy debt: Performance test
  • Skipped (documented): SendEmailAsync_Works_NoSsl test/Core.IntegrationTest/MailKitSmtpMailDeliveryServiceTests.cs:199 — Skipped with a documented reason — a deferral, not lazy debt: Requires permission to privileged port
  • Skipped (documented): AcceptUserAsync_EmergencyAccessEmailDoesNotMatch_ThrowsBadRequest test/Core.Test/Auth/UserFeatures/EmergencyAccess/EmergencyAccessServiceTests.cs:417 — Skipped with a documented reason — a deferral, not lazy debt: Code not reachable, Tokenable checks email match in IsValid()
  • Skipped (documented): ServiceExists test/Core.Test/Dirt/Services/AzureQueueEventWriteServiceTests.cs:28 — Skipped with a documented reason — a deferral, not lazy debt: Needs additional work
  • Skipped (documented): ValidateSponsorshipAsync_NoSponsoredOrg_EarlyReturn test/Core.Test/OrganizationFeatures/OrganizationSponsorships/FamiliesForEnterprise/Cloud/ValidateSponsorshipCommandTests.cs:18 — Skipped with a documented reason — a deferral, not lazy debt: Temporarily disabled
  • Skipped (documented): ValidateSponsorshipAsync_NoExistingSponsorship_UpdatesStripePlan test/Core.Test/OrganizationFeatures/OrganizationSponsorships/FamiliesForEnterprise/Cloud/ValidateSponsorshipCommandTests.cs:32 — Skipped with a documented reason — a deferral, not lazy debt: Temporarily disabled
  • + 22 more in this group — see findings.md.
D17 · Explicit Debt · Justified suppression · ×33
  • Justified suppression src/Billing/Controllers/BitPayController.cs:133 — empty catch (SqlException) when (…) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/Core/Billing/Services/Implementations/StripePaymentService.cs:907 — empty catch (Braintree.Exceptions.NotFoundException) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/Core/Billing/Services/Implementations/StripePaymentService.cs:948 — empty catch (StripeException) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/Core/HostedServices/ApplicationCacheHostedService.cs:61 — empty catch (ServiceBusException) when (…) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/Core/Platform/Push/IPushNotificationService.cs:90 — #pragma warning disable BWP0001 // Type or member is obsolete
  • Justified suppression src/Core/Platform/Push/IPushNotificationService.cs:106 — #pragma warning disable BWP0001 // Type or member is obsolete
  • Justified suppression src/Core/Platform/Push/IPushNotificationService.cs:122 — #pragma warning disable BWP0001 // Type or member is obsolete
  • Justified suppression src/Core/Platform/Push/IPushNotificationService.cs:138 — #pragma warning disable BWP0001 // Type or member is obsolete
  • Justified suppression src/Core/Platform/Push/IPushNotificationService.cs:154 — #pragma warning disable BWP0001 // Type or member is obsolete
  • Justified suppression src/Core/Platform/Push/IPushNotificationService.cs:252 — #pragma warning disable BWP0001 // Type or member is obsolete
  • Justified suppression src/Core/Platform/Push/IPushNotificationService.cs:269 — #pragma warning disable BWP0001 // Type or member is obsolete
  • Justified suppression src/Core/Platform/Push/IPushNotificationService.cs:285 — #pragma warning disable BWP0001 // Type or member is obsolete
  • Justified suppression src/Core/Platform/Push/IPushNotificationService.cs:312 — #pragma warning disable BWP0001 // Type or member is obsolete
  • Justified suppression src/Core/Platform/Push/IPushNotificationService.cs:331 — #pragma warning disable BWP0001 // Type or member is obsolete
  • Justified suppression src/Core/Platform/Push/IPushNotificationService.cs:347 — #pragma warning disable BWP0001 // Type or member is obsolete
  • Justified suppression src/Core/Platform/Push/IPushNotificationService.cs:417 — #pragma warning disable BWP0001 // Type or member is obsolete
  • Justified suppression src/Core/Services/Implementations/UserService.cs:282 — empty catch (GatewayException) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/Core/Services/Implementations/UserService.cs:283 — empty catch (BillingException) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/Icons/Models/IconLink.cs:123 — empty catch (ArgumentException) — narrow/filtered/commented, treated as intentional
  • Justified suppression src/SharedWeb/Utilities/ServiceCollectionExtensions.cs:615 — empty catch — narrow/filtered/commented, treated as intentional
  • Justified suppression bitwarden_license/test/SSO.Test/Controllers/AccountControllerTest.cs:391 — empty catch in test code (best-effort teardown)
  • Justified suppression bitwarden_license/test/SSO.Test/Controllers/AccountControllerTest.cs:459 — empty catch in test code (best-effort teardown)
  • Justified suppression bitwarden_license/test/SSO.Test/Controllers/AccountControllerTest.cs:518 — empty catch in test code (best-effort teardown)
  • Justified suppression test/Api.Test/Auth/Controllers/AccountsControllerTests.cs:368 — #pragma warning disable CS0618 // asserting the legacy path while it still exists
  • Justified suppression test/Api.Test/Auth/Controllers/AccountsControllerTests.cs:387 — #pragma warning disable CS0618 // asserting the legacy path was NOT called
  • + 8 more in this group — see findings.md.
D10 · Test Quality · Mock framework · ×15
  • Mock framework: NSubstitute — Scim.IntegrationTest references NSubstitute.
  • Mock framework: NSubstitute — Scim.Test references NSubstitute.
  • Mock framework: NSubstitute — Sso.IntegrationTest references NSubstitute.
  • Mock framework: NSubstitute — SSO.Test references NSubstitute.
  • Mock framework: NSubstitute — Api.Test references NSubstitute.
  • Mock framework: NSubstitute — Billing.Test references NSubstitute.
  • Mock framework: NSubstitute — Common references NSubstitute.
  • Mock framework: NSubstitute — Core.Test references NSubstitute.
  • Mock framework: NSubstitute — Events.Test references NSubstitute.
  • Mock framework: NSubstitute — Icons.Test references NSubstitute.
  • Mock framework: NSubstitute — Identity.IntegrationTest references NSubstitute.
  • Mock framework: NSubstitute — Identity.Test references NSubstitute.
  • Mock framework: NSubstitute — Infrastructure.EFIntegration.Test references NSubstitute.
  • Mock framework: NSubstitute — Setup.Test references NSubstitute.
  • Mock framework: NSubstitute — SharedWeb.Test references NSubstitute.
D18 · Solution Shape · Build did not complete in the analyzer · ×1
  • Build did not complete in the analyzer — `dotnet build` reported 1 error(s) but no C# compiler diagnostic — an SDK / target-framework / restore mismatch in the analyzer environment, not a code defect (common for an older codebase whose target framework the analyzer's SDK can't build). Solution Shape is scored on structure and is NOT capped; the C# semantic analysis loads independently and is unaffected.
D18 · Solution Shape · AppHost (Production) · ×1
  • AppHost (Production) AppHost/AppHost.csproj — 2 .cs files, 333 LoC (240 significant)
D18 · Solution Shape · MicroBenchmarks (Production) · ×1
  • MicroBenchmarks (Production) perf/MicroBenchmarks/MicroBenchmarks.csproj — 4 .cs files, 153 LoC (111 significant)
D18 · Solution Shape · Admin (Production) · ×1
  • Admin (Production) src/Admin/Admin.csproj — 88 .cs files, 7170 LoC (6042 significant)
D18 · Solution Shape · Api (Production) · ×1
  • Api (Production) src/Api/Api.csproj — 470 .cs files, 35325 LoC (27719 significant)
D18 · Solution Shape · Billing (Production) · ×1
  • Billing (Production) src/Billing/Billing.csproj — 53 .cs files, 6447 LoC (5075 significant)
D18 · Solution Shape · Core (Production) · ×1
  • Core (Production) src/Core/Core.csproj — 1565 .cs files, 90699 LoC (66911 significant)
D18 · Solution Shape · Events (Production) · ×1
  • Events (Production) src/Events/Events.csproj — 7 .cs files, 672 LoC (497 significant)
D18 · Solution Shape · EventsProcessor (Production) · ×1
  • EventsProcessor (Production) src/EventsProcessor/EventsProcessor.csproj — 5 .cs files, 515 LoC (383 significant)
D18 · Solution Shape · Icons (Production) · ×1
  • Icons (Production) src/Icons/Icons.csproj — 29 .cs files, 2147 LoC (1659 significant)
D18 · Solution Shape · Identity (Production) · ×1
  • Identity (Production) src/Identity/Identity.csproj — 53 .cs files, 5389 LoC (3927 significant)
D18 · Solution Shape · Infrastructure.Dapper (Production) · ×1
  • Infrastructure.Dapper (Production) src/Infrastructure.Dapper/Infrastructure.Dapper.csproj — 61 .cs files, 8634 LoC (7216 significant)
D18 · Solution Shape · Infrastructure.EntityFramework (Production) · ×1
  • Infrastructure.EntityFramework (Production) src/Infrastructure.EntityFramework/Infrastructure.EntityFramework.csproj — 207 .cs files, 15363 LoC (12885 significant)
D18 · Solution Shape · Notifications (Production) · ×1
  • Notifications (Production) src/Notifications/Notifications.csproj — 16 .cs files, 1186 LoC (958 significant)
D18 · Solution Shape · SharedWeb (Production) · ×1
  • SharedWeb (Production) src/SharedWeb/SharedWeb.csproj — 22 .cs files, 1980 LoC (1593 significant)
D18 · Solution Shape · Commercial.Core (Production) · ×1
  • Commercial.Core (Production) bitwarden_license/src/Commercial.Core/Commercial.Core.csproj — 45 .cs files, 4804 LoC (3976 significant)
D18 · Solution Shape · Commercial.Infrastructure.EntityFramework (Production) · ×1
  • Commercial.Infrastructure.EntityFramework (Production) bitwarden_license/src/Commercial.Infrastructure.EntityFramework/Commercial.Infrastructure.EntityFramework.csproj — 6 .cs files, 2010 LoC (1724 significant)
D18 · Solution Shape · Scim (Production) · ×1
  • Scim (Production) bitwarden_license/src/Scim/Scim.csproj — 43 .cs files, 2340 LoC (1860 significant)
D18 · Solution Shape · Sso (Production) · ×1
  • Sso (Production) bitwarden_license/src/Sso/Sso.csproj — 30 .cs files, 2975 LoC (2205 significant)
D18 · Solution Shape · Commercial.Core.Test (Test) · ×1
  • Commercial.Core.Test (Test) bitwarden_license/test/Commercial.Core.Test/Commercial.Core.Test.csproj — 46 .cs files, 11625 LoC (9576 significant)
D18 · Solution Shape · Scim.IntegrationTest (Test) · ×1
  • Scim.IntegrationTest (Test) bitwarden_license/test/Scim.IntegrationTest/Scim.IntegrationTest.csproj — 5 .cs files, 1828 LoC (1526 significant)
D18 · Solution Shape · Scim.Test (Test) · ×1
  • Scim.Test (Test) bitwarden_license/test/Scim.Test/Scim.Test.csproj — 8 .cs files, 1927 LoC (1583 significant)
D18 · Solution Shape · Sso.IntegrationTest (Test) · ×1
  • Sso.IntegrationTest (Test) bitwarden_license/test/Sso.IntegrationTest/Sso.IntegrationTest.csproj — 6 .cs files, 1300 LoC (847 significant)
D18 · Solution Shape · SSO.Test (Test) · ×1
  • SSO.Test (Test) bitwarden_license/test/SSO.Test/SSO.Test.csproj — 3 .cs files, 1054 LoC (805 significant)
D18 · Solution Shape · Admin.Test (Test) · ×1
  • Admin.Test (Test) test/Admin.Test/Admin.Test.csproj — 14 .cs files, 3995 LoC (3270 significant)
D18 · Solution Shape · Api.IntegrationTest (Test) · ×1
  • Api.IntegrationTest (Test) test/Api.IntegrationTest/Api.IntegrationTest.csproj — 57 .cs files, 18619 LoC (14640 significant)
D18 · Solution Shape · Api.Test (Test) · ×1
  • Api.Test (Test) test/Api.Test/Api.Test.csproj — 149 .cs files, 38344 LoC (30769 significant)
D18 · Solution Shape · Billing.Test (Test) · ×1
  • Billing.Test (Test) test/Billing.Test/Billing.Test.csproj — 17 .cs files, 15069 LoC (12293 significant)
D18 · Solution Shape · Common (Test) · ×1
  • Common (Test) test/Common/Common.csproj — 36 .cs files, 2167 LoC (1539 significant)
D18 · Solution Shape · Core.IntegrationTest (Test) · ×1
  • Core.IntegrationTest (Test) test/Core.IntegrationTest/Core.IntegrationTest.csproj — 2 .cs files, 316 LoC (246 significant)
D18 · Solution Shape · Core.Test (Test) · ×1
  • Core.Test (Test) test/Core.Test/Core.Test.csproj — 517 .cs files, 127407 LoC (101819 significant)
D18 · Solution Shape · Events.IntegrationTest (Test) · ×1
  • Events.IntegrationTest (Test) test/Events.IntegrationTest/Events.IntegrationTest.csproj — 4 .cs files, 570 LoC (473 significant)
D18 · Solution Shape · Events.Test (Test) · ×1
  • Events.Test (Test) test/Events.Test/Events.Test.csproj — 3 .cs files, 996 LoC (881 significant)
D18 · Solution Shape · EventsProcessor.Test (Test) · ×1
  • EventsProcessor.Test (Test) test/EventsProcessor.Test/EventsProcessor.Test.csproj — 3 .cs files, 17 LoC (12 significant)
D18 · Solution Shape · Icons.Test (Test) · ×1
  • Icons.Test (Test) test/Icons.Test/Icons.Test.csproj — 9 .cs files, 693 LoC (553 significant)
D18 · Solution Shape · Identity.IntegrationTest (Test) · ×1
  • Identity.IntegrationTest (Test) test/Identity.IntegrationTest/Identity.IntegrationTest.csproj — 16 .cs files, 4846 LoC (3595 significant)
D18 · Solution Shape · Identity.Test (Test) · ×1
  • Identity.Test (Test) test/Identity.Test/Identity.Test.csproj — 27 .cs files, 8969 LoC (6638 significant)
D18 · Solution Shape · Infrastructure.Dapper.Test (Test) · ×1
  • Infrastructure.Dapper.Test (Test) test/Infrastructure.Dapper.Test/Infrastructure.Dapper.Test.csproj — 3 .cs files, 187 LoC (168 significant)
D18 · Solution Shape · Infrastructure.EFIntegration.Test (Test) · ×1
  • Infrastructure.EFIntegration.Test (Test) test/Infrastructure.EFIntegration.Test/Infrastructure.EFIntegration.Test.csproj — 63 .cs files, 5196 LoC (4268 significant)
D18 · Solution Shape · Infrastructure.IntegrationTest (Test) · ×1
  • Infrastructure.IntegrationTest (Test) test/Infrastructure.IntegrationTest/Infrastructure.IntegrationTest.csproj — 46 .cs files, 14447 LoC (11313 significant)
D18 · Solution Shape · IntegrationTestCommon (Production) · ×1
  • IntegrationTestCommon (Production) test/IntegrationTestCommon/IntegrationTestCommon.csproj — 7 .cs files, 973 LoC (716 significant)
D18 · Solution Shape · Notifications.Test (Test) · ×1
  • Notifications.Test (Test) test/Notifications.Test/Notifications.Test.csproj — 4 .cs files, 347 LoC (308 significant)
D18 · Solution Shape · SeederApi.IntegrationTest (Test) · ×1
  • SeederApi.IntegrationTest (Test) test/SeederApi.IntegrationTest/SeederApi.IntegrationTest.csproj — 15 .cs files, 2562 LoC (2036 significant)
D18 · Solution Shape · Server.IntegrationTest (Test) · ×1
  • Server.IntegrationTest (Test) test/Server.IntegrationTest/Server.IntegrationTest.csproj — 4 .cs files, 155 LoC (122 significant)
D18 · Solution Shape · Setup.Test (Test) · ×1
  • Setup.Test (Test) test/Setup.Test/Setup.Test.csproj — 2 .cs files, 144 LoC (118 significant)
D18 · Solution Shape · SharedWeb.Test (Test) · ×1
  • SharedWeb.Test (Test) test/SharedWeb.Test/SharedWeb.Test.csproj — 12 .cs files, 1088 LoC (816 significant)
D18 · Solution Shape · Migrator (Production) · ×1
  • Migrator (Production) util/Migrator/Migrator.csproj — 4 .cs files, 285 LoC (234 significant)
D18 · Solution Shape · MsSqlMigratorUtility (Production) · ×1
  • MsSqlMigratorUtility (Production) util/MsSqlMigratorUtility/MsSqlMigratorUtility.csproj — 1 .cs files, 46 LoC (40 significant)
D18 · Solution Shape · MySqlMigrations (Production) · ×1
  • MySqlMigrations (Production) util/MySqlMigrations/MySqlMigrations.csproj — 297 .cs files, 407299 LoC (289812 significant)
D18 · Solution Shape · PostgresMigrations (Production) · ×1
  • PostgresMigrations (Production) util/PostgresMigrations/PostgresMigrations.csproj — 297 .cs files, 409129 LoC (291057 significant)
D18 · Solution Shape · RustSdk (Production) · ×1
  • RustSdk (Production) util/RustSdk/RustSdk.csproj — 4 .cs files, 289 LoC (196 significant)
D18 · Solution Shape · Seeder (Production) · ×1
  • Seeder (Production) util/Seeder/Seeder.csproj — 131 .cs files, 11191 LoC (7971 significant)
D18 · Solution Shape · SeederApi (Production) · ×1
  • SeederApi (Production) util/SeederApi/SeederApi.csproj — 28 .cs files, 1035 LoC (792 significant)
D18 · Solution Shape · SeederUtility (Production) · ×1
  • SeederUtility (Production) util/SeederUtility/SeederUtility.csproj — 13 .cs files, 949 LoC (757 significant)
D18 · Solution Shape · Server (Production) · ×1
  • Server (Production) util/Server/Server.csproj — 2 .cs files, 155 LoC (135 significant)
D18 · Solution Shape · Setup (Production) · ×1
  • Setup (Production) util/Setup/Setup.csproj — 10 .cs files, 1839 LoC (1566 significant)
D18 · Solution Shape · SqliteMigrations (Production) · ×1
  • SqliteMigrations (Production) util/SqliteMigrations/SqliteMigrations.csproj — 253 .cs files, 370643 LoC (263675 significant)
D18 · Solution Shape · SqlServerEFScaffold (Production) · ×1
  • SqlServerEFScaffold (Production) util/SqlServerEFScaffold/SqlServerEFScaffold.csproj — 3 .cs files, 1797 LoC (1260 significant)
D22 · Internal API Consistency · No exposed public API · ×1
  • No exposed public API — No intentionally-exposed types (IsPackable or .Contracts) to evaluate.
D9 · Test Distribution · Unit tests · ×1
  • Unit tests — 7677 unit test method(s).
D9 · Test Distribution · Integration tests · ×1
  • Integration tests — 32 integration test method(s).
D9 · Test Distribution · BDD tests · ×1
  • BDD tests — 0 BDD test method(s).
D9 · Test Distribution · E2E tests · ×1
  • E2E tests — 0 end-to-end test method(s).

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 .3artifacts/raw/gitleaks.json
D29 · Static Analysis (SAST)semgrepsemgrep --config auto --json --quiet --timeout 0 --metrics off .0
D30 · Dependency Vulnerabilitiesdotnetdotnet list bitwarden-server.slnx package --vulnerable --include-transitive --format json4artifacts/raw/dotnet-vulnerable.json
D31 · IaC & Container Securitytrivytrivy config --format json --quiet .20artifacts/raw/trivy-config.json
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/** .16artifacts/raw/trivy-fs.json
D38 · OSV Dependency Vulnerabilitiesosv-scannerosv-scanner --format json --recursive .39artifacts/raw/osv-scanner.json

Run 019edc54-9318-7f7a-b632-43f7b15f2661 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.

Appendix C — Personal-data map

Every field, property and record parameter whose name is conventional personal data — 387 field(s) across 7 categories, each with an exact repo-relative file:line. This is the data inventory a compliance review starts from — right-to-erasure, retention, minimisation. Detected by name with a deliberately specific classifier (the same one the GDPR dimensions use, so CardDefinition or FileName don't trip); informational — it feeds no score.

Email — 222 field(s)
  • BaseScimUserModel.Emails bitwarden_license/src/Scim/Models/BaseScimUserModel.cs:20
  • BaseScimUserModel.PrimaryEmail bitwarden_license/src/Scim/Models/BaseScimUserModel.cs:21
  • BaseScimUserModel.WorkEmail bitwarden_license/src/Scim/Models/BaseScimUserModel.cs:22
  • OpenIdConnectScopes.Email bitwarden_license/src/Sso/Utilities/OpenIdConnectScopes.cs:32
  • SamlClaimTypes.Email bitwarden_license/src/Sso/Utilities/SamlClaimTypes.cs:5
  • SamlNameIdFormats.Email bitwarden_license/src/Sso/Utilities/SamlNameIdFormats.cs:7
  • CreateBusinessUnitProviderModel.OwnerEmail src/Admin/AdminConsole/Models/CreateBusinessUnitProviderModel.cs:15
  • CreateMspProviderModel.OwnerEmail src/Admin/AdminConsole/Models/CreateMspProviderModel.cs:14
  • CreateResellerProviderModel.BillingEmail src/Admin/AdminConsole/Models/CreateResellerProviderModel.cs:20
  • OrganizationEditModel.BillingEmail src/Admin/AdminConsole/Models/OrganizationEditModel.cs:131
  • OrganizationInitiateDeleteModel.AdminEmail src/Admin/AdminConsole/Models/OrganizationInitiateDeleteModel.cs:14
  • OrganizationUnassignedToProviderSearchViewModel.OrganizationOwnerEmail src/Admin/AdminConsole/Models/OrganizationUnassignedToProviderSearchViewModel.cs:15
  • OrganizationsModel.UserEmail src/Admin/AdminConsole/Models/OrganizationsModel.cs:12
  • ProviderEditModel.BillingEmail src/Admin/AdminConsole/Models/ProviderEditModel.cs:53
  • ProvidersModel.UserEmail src/Admin/AdminConsole/Models/ProvidersModel.cs:12
  • LoginModel.Email src/Admin/Auth/Models/LoginModel.cs:12
  • BusinessUnitConversionModel.ProviderAdminEmail src/Admin/Billing/Models/BusinessUnitConversionModel.cs:13
  • UserEditModel.Email src/Admin/Models/UserEditModel.cs:60
  • UserEditModel.EmailVerified src/Admin/Models/UserEditModel.cs:62
  • UserViewModel.Email src/Admin/Models/UserViewModel.cs:14
  • UserViewModel.EmailVerified src/Admin/Models/UserViewModel.cs:19
  • UserViewModel.LastEmailChangeDate src/Admin/Models/UserViewModel.cs:24
  • UsersModel.Email src/Admin/Models/UsersModel.cs:8
  • OrganizationCreateRequestModel.BillingEmail src/Api/AdminConsole/Models/Request/Organizations/OrganizationCreateRequestModel.cs:29
  • OrganizationDomainSsoDetailsRequestModel.Email src/Api/AdminConsole/Models/Request/Organizations/OrganizationDomainSsoDetailsRequestModel.cs:12
  • OrganizationInviteLinkValidateEmailDomainRequestModel.Email src/Api/AdminConsole/Models/Request/Organizations/OrganizationInviteLinkValidateEmailDomainRequestModel.cs:12
  • OrganizationNoPaymentCreateRequest.BillingEmail src/Api/AdminConsole/Models/Request/Organizations/OrganizationNoPaymentCreateRequest.cs:28
  • OrganizationUpdateRequestModel.BillingEmail src/Api/AdminConsole/Models/Request/Organizations/OrganizationUpdateRequestModel.cs:16
  • OrganizationUserInviteRequestModel.Emails src/Api/AdminConsole/Models/Request/Organizations/OrganizationUserRequestModels.cs:18
  • ProviderOrganizationCreateRequestModel.ClientOwnerEmail src/Api/AdminConsole/Models/Request/Providers/ProviderOrganizationCreateRequestModel.cs:15
  • ProviderSetupRequestModel.BillingEmail src/Api/AdminConsole/Models/Request/Providers/ProviderSetupRequestModel.cs:24
  • ProviderUpdateRequestModel.BillingEmail src/Api/AdminConsole/Models/Request/Providers/ProviderUpdateRequestModel.cs:24
  • ProviderUserInviteRequestModel.Emails src/Api/AdminConsole/Models/Request/Providers/ProviderUserRequestModels.cs:15
  • CollectionResponseModel.DefaultUserCollectionEmail src/Api/AdminConsole/Models/Response/CollectionResponseModel.cs:35
  • OrganizationResponseModel.BillingEmail src/Api/AdminConsole/Models/Response/Organizations/OrganizationResponseModel.cs:94
  • OrganizationUserUserMiniDetailsResponseModel.Email src/Api/AdminConsole/Models/Response/Organizations/OrganizationUserResponseModel.cs:126
  • OrganizationUserUserDetailsResponseModel.Email src/Api/AdminConsole/Models/Response/Organizations/OrganizationUserResponseModel.cs:176
  • PendingOrganizationAuthRequestResponseModel.Email src/Api/AdminConsole/Models/Response/PendingOrganizationAuthRequestResponseModel.cs:36
  • ProviderResponseModel.BillingEmail src/Api/AdminConsole/Models/Response/Providers/ProviderResponseModel.cs:43
  • ProviderUserUserDetailsResponseModel.Email src/Api/AdminConsole/Models/Response/Providers/ProviderUserResponseModel.cs:64
  • + 182 more field(s) in this category.
Government ID (SSN / passport / tax) — 46 field(s)
  • OrganizationCreateRequestModel.TaxIdNumber src/Api/AdminConsole/Models/Request/Organizations/OrganizationCreateRequestModel.cs:53
  • OrganizationNoPaymentCreateRequest.TaxIdNumber src/Api/AdminConsole/Models/Request/Organizations/OrganizationNoPaymentCreateRequest.cs:52
  • CheckoutBillingAddressRequest.TaxId src/Api/Billing/Models/Requests/Payment/CheckoutBillingAddressRequest.cs:8
  • ExpandedTaxInfoUpdateRequestModel.TaxId src/Api/Models/Request/ExpandedTaxInfoUpdateRequestModel.cs:10
  • TaxInfoResponseModel.TaxIdNumber src/Api/Models/Response/TaxInfoResponseModel.cs:29
  • TaxInfoResponseModel.TaxIdType src/Api/Models/Response/TaxInfoResponseModel.cs:30
  • CipherIdentityModel.SSN src/Api/Vault/Models/CipherIdentityModel.cs:80
  • CipherIdentityModel.PassportNumber src/Api/Vault/Models/CipherIdentityModel.cs:86
  • CipherPassportModel.PassportNumber src/Api/Vault/Models/CipherPassportModel.cs:53
  • CipherPassportModel.PassportType src/Api/Vault/Models/CipherPassportModel.cs:57
  • CipherPassportModel.NationalIdentificationNumber src/Api/Vault/Models/CipherPassportModel.cs:77
  • CipherRequestModel.Passport src/Api/Vault/Models/Request/CipherRequestModel.cs:60
  • CipherMiniResponseModel.Passport src/Api/Vault/Models/Response/CipherResponseModel.cs:129
  • ErrorCodes.TaxIdInvalid src/Core/Billing/Constants/StripeConstants.cs:64
  • OrganizationWarnings.TaxId src/Core/Billing/Organizations/Models/OrganizationWarnings.cs:8
  • BillingAddress.TaxId src/Core/Billing/Payment/Models/BillingAddress.cs:15
  • ProviderWarnings.TaxId src/Core/Billing/Providers/Models/ProviderWarnings.cs:6
  • StripeAdapter._taxIdService src/Core/Billing/Services/Implementations/StripeAdapter.cs:22
  • TaxInformation.TaxId src/Core/Billing/Tax/Models/TaxInformation.cs:8
  • TaxInformation.TaxIdType src/Core/Billing/Tax/Models/TaxInformation.cs:9
  • TaxInformationRequestModel.TaxId src/Core/Billing/Tax/Requests/TaxInformationRequestModel.cs:16
  • TaxService._taxIdTypes src/Core/Billing/Tax/Services/Implementations/TaxService.cs:15
  • TaxInfo.TaxIdNumber src/Core/Models/Business/TaxInfo.cs:8
  • TaxInfo.TaxIdType src/Core/Models/Business/TaxInfo.cs:9
  • CipherIdentityData.SSN src/Core/Vault/Models/Data/CipherIdentityData.cs:24
  • CipherIdentityData.PassportNumber src/Core/Vault/Models/Data/CipherIdentityData.cs:26
  • CipherPassportData.PassportNumber src/Core/Vault/Models/Data/CipherPassportData.cs:13
  • CipherPassportData.PassportType src/Core/Vault/Models/Data/CipherPassportData.cs:14
  • CipherPassportData.NationalIdentificationNumber src/Core/Vault/Models/Data/CipherPassportData.cs:19
  • CipherViewDto.Passport util/Seeder/Models/CipherViewDto.cs:53
  • CipherTypes.Passport util/Seeder/Models/CipherViewDto.cs:193
  • IdentityViewDto.SSN util/Seeder/Models/CipherViewDto.cs:295
  • IdentityViewDto.PassportNumber util/Seeder/Models/CipherViewDto.cs:303
  • PassportViewDto.PassportNumber util/Seeder/Models/CipherViewDto.cs:436
  • PassportViewDto.PassportType util/Seeder/Models/CipherViewDto.cs:439
  • PassportViewDto.NationalIdentificationNumber util/Seeder/Models/CipherViewDto.cs:454
  • EncryptedCipherDto.Passport util/Seeder/Models/EncryptedCipherDto.cs:53
  • EncryptedIdentityDto.SSN util/Seeder/Models/EncryptedCipherDto.cs:233
  • EncryptedIdentityDto.PassportNumber util/Seeder/Models/EncryptedCipherDto.cs:239
  • EncryptedPassportDto.PassportNumber util/Seeder/Models/EncryptedCipherDto.cs:353
  • + 6 more field(s) in this category.
Address — 44 field(s)
  • OrganizationCreateRequestModel.BillingAddressLine1 src/Api/AdminConsole/Models/Request/Organizations/OrganizationCreateRequestModel.cs:55
  • OrganizationCreateRequestModel.BillingAddressLine2 src/Api/AdminConsole/Models/Request/Organizations/OrganizationCreateRequestModel.cs:57
  • OrganizationCreateRequestModel.BillingAddressCity src/Api/AdminConsole/Models/Request/Organizations/OrganizationCreateRequestModel.cs:59
  • OrganizationCreateRequestModel.BillingAddressState src/Api/AdminConsole/Models/Request/Organizations/OrganizationCreateRequestModel.cs:61
  • OrganizationCreateRequestModel.BillingAddressPostalCode src/Api/AdminConsole/Models/Request/Organizations/OrganizationCreateRequestModel.cs:63
  • OrganizationCreateRequestModel.BillingAddressCountry src/Api/AdminConsole/Models/Request/Organizations/OrganizationCreateRequestModel.cs:66
  • OrganizationNoPaymentCreateRequest.BillingAddressLine1 src/Api/AdminConsole/Models/Request/Organizations/OrganizationNoPaymentCreateRequest.cs:54
  • OrganizationNoPaymentCreateRequest.BillingAddressLine2 src/Api/AdminConsole/Models/Request/Organizations/OrganizationNoPaymentCreateRequest.cs:56
  • OrganizationNoPaymentCreateRequest.BillingAddressCity src/Api/AdminConsole/Models/Request/Organizations/OrganizationNoPaymentCreateRequest.cs:58
  • OrganizationNoPaymentCreateRequest.BillingAddressState src/Api/AdminConsole/Models/Request/Organizations/OrganizationNoPaymentCreateRequest.cs:60
  • OrganizationNoPaymentCreateRequest.BillingAddressPostalCode src/Api/AdminConsole/Models/Request/Organizations/OrganizationNoPaymentCreateRequest.cs:62
  • OrganizationNoPaymentCreateRequest.BillingAddressCountry src/Api/AdminConsole/Models/Request/Organizations/OrganizationNoPaymentCreateRequest.cs:65
  • OrganizationUpgradeRequestModel.BillingAddressCountry src/Api/AdminConsole/Models/Request/Organizations/OrganizationUpgradeRequestModel.cs:26
  • OrganizationUpgradeRequestModel.BillingAddressPostalCode src/Api/AdminConsole/Models/Request/Organizations/OrganizationUpgradeRequestModel.cs:27
  • ProviderSetupRequestModel.BillingAddress src/Api/AdminConsole/Models/Request/Providers/ProviderSetupRequestModel.cs:32
  • MinimalBillingAddressRequest.PostalCode src/Api/Billing/Models/Requests/Payment/MinimalBillingAddressRequest.cs:12
  • TokenizedPaymentMethodRequest.BillingAddress src/Api/Billing/Models/Requests/Payment/TokenizedPaymentMethodRequest.cs:7
  • PremiumCloudHostedSubscriptionRequest.BillingAddress src/Api/Billing/Models/Requests/Premium/PremiumCloudHostedSubscriptionRequest.cs:15
  • UpgradePremiumToOrganizationRequest.BillingAddress src/Api/Billing/Models/Requests/Premium/UpgradePremiumToOrganizationRequest.cs:29
  • PreviewOrganizationSubscriptionPlanChangeTaxRequest.BillingAddress src/Api/Billing/Models/Requests/PreviewInvoice/PreviewOrganizationSubscriptionPlanChangeTaxRequest.cs:15
  • PreviewOrganizationSubscriptionPurchaseTaxRequest.BillingAddress src/Api/Billing/Models/Requests/PreviewInvoice/PreviewOrganizationSubscriptionPurchaseTaxRequest.cs:15
  • PreviewPremiumSubscriptionPurchaseTaxRequest.BillingAddress src/Api/Billing/Models/Requests/PreviewInvoice/PreviewPremiumSubscriptionPurchaseTaxRequest.cs:15
  • PreviewPremiumUpgradeProrationRequest.BillingAddress src/Api/Billing/Models/Requests/PreviewInvoice/PreviewPremiumUpgradeProrationRequest.cs:16
  • RestartSubscriptionRequest.BillingAddress src/Api/Billing/Models/Requests/Subscriptions/RestartSubscriptionRequest.cs:12
  • PremiumRequestModel.PostalCode src/Api/Models/Request/Accounts/PremiumRequestModel.cs:20
  • TaxInfoUpdateRequestModel.PostalCode src/Api/Models/Request/Accounts/TaxInfoUpdateRequestModel.cs:13
  • TaxInfoResponseModel.PostalCode src/Api/Models/Response/TaxInfoResponseModel.cs:35
  • CipherIdentityModel.PostalCode src/Api/Vault/Models/CipherIdentityModel.cs:65
  • BillingAddress.PostalCode src/Core/Billing/Payment/Models/BillingAddress.cs:10
  • PremiumSubscriptionPurchase.BillingAddress src/Core/Billing/Premium/Models/PremiumSubscriptionPurchase.cs:8
  • TaxInformation.PostalCode src/Core/Billing/Tax/Models/TaxInformation.cs:7
  • TaxInformationRequestModel.PostalCode src/Core/Billing/Tax/Requests/TaxInformationRequestModel.cs:14
  • TaxRate.PostalCode src/Core/Entities/TaxRate.cs:16
  • TaxInfo.BillingAddressLine1 src/Core/Models/Business/TaxInfo.cs:11
  • TaxInfo.BillingAddressLine2 src/Core/Models/Business/TaxInfo.cs:12
  • TaxInfo.BillingAddressCity src/Core/Models/Business/TaxInfo.cs:13
  • TaxInfo.BillingAddressState src/Core/Models/Business/TaxInfo.cs:14
  • TaxInfo.BillingAddressPostalCode src/Core/Models/Business/TaxInfo.cs:15
  • TaxInfo.BillingAddressCountry src/Core/Models/Business/TaxInfo.cs:16
  • CipherIdentityData.PostalCode src/Core/Vault/Models/Data/CipherIdentityData.cs:19
  • + 4 more field(s) in this category.
Name — 40 field(s)
  • NameModel.GivenName bitwarden_license/src/Scim/Models/BaseScimUserModel.cs:38
  • NameModel.FamilyName bitwarden_license/src/Scim/Models/BaseScimUserModel.cs:40
  • SamlClaimTypes.GivenName bitwarden_license/src/Sso/Utilities/SamlClaimTypes.cs:6
  • SamlClaimTypes.Surname bitwarden_license/src/Sso/Utilities/SamlClaimTypes.cs:7
  • CipherDriversLicenseModel.FirstName src/Api/Vault/Models/CipherDriversLicenseModel.cs:27
  • CipherDriversLicenseModel.LastName src/Api/Vault/Models/CipherDriversLicenseModel.cs:35
  • CipherIdentityModel.FirstName src/Api/Vault/Models/CipherIdentityModel.cs:41
  • CipherIdentityModel.LastName src/Api/Vault/Models/CipherIdentityModel.cs:47
  • CipherPassportModel.Surname src/Api/Vault/Models/CipherPassportModel.cs:29
  • CipherPassportModel.GivenName src/Api/Vault/Models/CipherPassportModel.cs:33
  • CipherDriversLicenseData.FirstName src/Core/Vault/Models/Data/CipherDriversLicenseData.cs:7
  • CipherDriversLicenseData.LastName src/Core/Vault/Models/Data/CipherDriversLicenseData.cs:9
  • CipherIdentityData.FirstName src/Core/Vault/Models/Data/CipherIdentityData.cs:11
  • CipherIdentityData.LastName src/Core/Vault/Models/Data/CipherIdentityData.cs:13
  • CipherPassportData.Surname src/Core/Vault/Models/Data/CipherPassportData.cs:7
  • CipherPassportData.GivenName src/Core/Vault/Models/Data/CipherPassportData.cs:8
  • CipherUsernameGenerator._firstNames util/Seeder/Data/Generators/CipherUsernameGenerator.cs:45
  • CipherUsernameGenerator._lastNames util/Seeder/Data/Generators/CipherUsernameGenerator.cs:47
  • IdentityViewDto.FirstName util/Seeder/Models/CipherViewDto.cs:243
  • IdentityViewDto.LastName util/Seeder/Models/CipherViewDto.cs:251
  • DriversLicenseViewDto.FirstName util/Seeder/Models/CipherViewDto.cs:379
  • DriversLicenseViewDto.LastName util/Seeder/Models/CipherViewDto.cs:385
  • PassportViewDto.Surname util/Seeder/Models/CipherViewDto.cs:418
  • PassportViewDto.GivenName util/Seeder/Models/CipherViewDto.cs:421
  • EncryptedIdentityDto.FirstName util/Seeder/Models/EncryptedCipherDto.cs:194
  • EncryptedIdentityDto.LastName util/Seeder/Models/EncryptedCipherDto.cs:200
  • EncryptedDriversLicenseDto.FirstName util/Seeder/Models/EncryptedCipherDto.cs:299
  • EncryptedDriversLicenseDto.LastName util/Seeder/Models/EncryptedCipherDto.cs:305
  • EncryptedPassportDto.Surname util/Seeder/Models/EncryptedCipherDto.cs:335
  • EncryptedPassportDto.GivenName util/Seeder/Models/EncryptedCipherDto.cs:338
  • SeedIdentity.FirstName util/Seeder/Models/SeedModels.cs:55
  • SeedIdentity.LastName util/Seeder/Models/SeedModels.cs:57
  • SeedRosterUser.FirstName util/Seeder/Models/SeedModels.cs:96
  • SeedRosterUser.LastName util/Seeder/Models/SeedModels.cs:97
  • IndividualUserOptions.FirstName util/Seeder/Options/IndividualUserOptions.cs:13
  • IndividualUserOptions.LastName util/Seeder/Options/IndividualUserOptions.cs:18
  • Request.FirstName util/Seeder/Scenes/UserIdentityCipherScene.cs:23
  • Request.LastName util/Seeder/Scenes/UserIdentityCipherScene.cs:25
  • IndividualArgs.FirstName util/SeederUtility/Commands/IndividualArgs.cs:16
  • IndividualArgs.LastName util/SeederUtility/Commands/IndividualArgs.cs:19
Phone — 23 field(s)
  • OpenIdConnectScopes.Phone bitwarden_license/src/Sso/Utilities/OpenIdConnectScopes.cs:43
  • ProviderEditModel.BillingPhone src/Admin/AdminConsole/Models/ProviderEditModel.cs:55
  • CipherBankAccountModel.BankContactPhone src/Api/Vault/Models/CipherBankAccountModel.cs:62
  • CipherIdentityModel.Phone src/Api/Vault/Models/CipherIdentityModel.cs:77
  • Provider.BillingPhone src/Core/AdminConsole/Entities/Provider/Provider.cs:59
  • Constants.BitwardenMobileSsoCallbackUris src/Core/Constants.cs:56
  • FeatureFlagKeys.PM3503_MobileAnonAddySelfHostAlias src/Core/Constants.cs:221
  • FeatureFlagKeys.PM3553_MobileSimpleLoginSelfHostAlias src/Core/Constants.cs:222
  • FeatureFlagKeys.MobileErrorReporting src/Core/Constants.cs:223
  • FeatureFlagKeys.CxpImportMobile src/Core/Constants.cs:226
  • FeatureFlagKeys.CxpExportMobile src/Core/Constants.cs:227
  • FeatureFlagKeys.MobileCardScanner src/Core/Constants.cs:230
  • BitwardenClient.Mobile src/Core/Enums/BitwardenClient.cs:9
  • PushNotification.NonMobileOnly src/Core/Platform/Push/PushNotification.cs:62
  • DeviceTypes.MobileTypes src/Core/Utilities/DeviceTypes.cs:7
  • CipherBankAccountData.BankContactPhone src/Core/Vault/Models/Data/CipherBankAccountData.cs:16
  • CipherIdentityData.Phone src/Core/Vault/Models/Data/CipherIdentityData.cs:23
  • IdentityViewDto.Phone util/Seeder/Models/CipherViewDto.cs:291
  • BankAccountViewDto.BankContactPhone util/Seeder/Models/CipherViewDto.cs:370
  • EncryptedIdentityDto.Phone util/Seeder/Models/EncryptedCipherDto.cs:230
  • EncryptedBankAccountDto.BankContactPhone util/Seeder/Models/EncryptedCipherDto.cs:293
  • SeedIdentity.Phone util/Seeder/Models/SeedModels.cs:67
  • Request.Phone util/Seeder/Scenes/UserIdentityCipherScene.cs:32
Date of birth — 8 field(s)
  • CipherDriversLicenseModel.DateOfBirth src/Api/Vault/Models/CipherDriversLicenseModel.cs:39
  • CipherPassportModel.DateOfBirth src/Api/Vault/Models/CipherPassportModel.cs:37
  • CipherDriversLicenseData.DateOfBirth src/Core/Vault/Models/Data/CipherDriversLicenseData.cs:10
  • CipherPassportData.DateOfBirth src/Core/Vault/Models/Data/CipherPassportData.cs:9
  • DriversLicenseViewDto.DateOfBirth util/Seeder/Models/CipherViewDto.cs:388
  • PassportViewDto.DateOfBirth util/Seeder/Models/CipherViewDto.cs:424
  • EncryptedDriversLicenseDto.DateOfBirth util/Seeder/Models/EncryptedCipherDto.cs:308
  • EncryptedPassportDto.DateOfBirth util/Seeder/Models/EncryptedCipherDto.cs:341
Financial (card / IBAN) — 4 field(s)
  • CipherBankAccountModel.Iban src/Api/Vault/Models/CipherBankAccountModel.cs:58
  • CipherBankAccountData.Iban src/Core/Vault/Models/Data/CipherBankAccountData.cs:15
  • BankAccountViewDto.Iban util/Seeder/Models/CipherViewDto.cs:367
  • EncryptedBankAccountDto.Iban util/Seeder/Models/EncryptedCipherDto.cs:290

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