Public report of kubernetes-sigs/gcp-compute-persistent-disk-csi-driver, published 16 November 2026. It has the same score, grades and number of findings as the full report. The details of security findings (where they are in the code, which known vulnerabilities and which passwords or keys were found) are left out, so nobody can use them against the project.
Public
Executive report Measured under the Code Assurance Index, an open standard for code quality, using its published scoring rules (rubric version 2026.11.4). Assert signed this survey and filed it in the standard's public register, where anyone can look it up by its survey ID. Check this survey → Signed and filed in the standard's public register, 16 November 2026, 21:52 UTC · Survey ID cd_8b518321ae4c404f8b030987d0d13b9a

kubernetes-sigs/gcp-compute-persistent-disk-csi-driver

Measured 16 November 2026, 21:51 UTC, at code version 2703638

First survey, so nothing to compare with yet Knowledge freshness: not measured

Knowledge freshness is not measured: Freshness signal contradicted by repo activity.

CAI score 57.0out of 100 At risk

The score is built from these lenses. Each lens grades one area of the code, such as how easy it is to change or how well it is protected. The weakest lens counts most, so one weak area pulls the score down instead of being averaged away.

A small codebase: 18,121 lines of product code in 1 project, tests not counted · Estimated rebuild effort: about 0.4 person-years · Weakest lens: Maturity, 53.0

Findings by how serious they are

26 critical 447 serious 117 minor

17 dimensions are left out of the score. For each one, we either couldn't measure it in this code, or found no evidence of the safeguard we look for, such as a tested backup restore. They count neither for nor against the score, and Limitations lists each one with its reason.

This survey was produced by

Assert small markCanine Code Analyzer
Producer
Canine Development
Analyzer
Canine Code Analyzer engine 1.0.0
Measured
16 November 2026, 21:51 UTC

A measurement, not a certificate. The Code Assurance Index records a number together with the evidence it was worked out from, so anyone can recalculate it, but it doesn't certify or guarantee the code. The standard was written by Canine Development, which also builds the Canine Code Analyzer. It is open to any tool that implements it, and today the Canine Code Analyzer is the only one that does.

A critical security finding is open, such as a library with a known critical vulnerability or a password or key found in the code. The score itself is unchanged, but its band shows At risk until the finding is fixed. See the Security and Compliance lens.

The score is deterministic, which means the same code always gets the same score. We work it out with tools that follow published rules, and an AI model never decides it, so anyone who applies the same rules to the same code gets the same number. How it is done is explained under Methodology ▸

49of 49 dimensions measured by tools.
556of 590 findings point to an exact file and line, so you can open each one in the code. The other 34 concern the repository as a whole, such as missing documentation.
49dimensions across 5 lenses, read from 18,121 lines of product code in 1 project.
Chapters

Executive summary

kubernetes-sigs/gcp-compute-persistent-disk-csi-driver is rated At risk because critical security findings are open, most of them in its servers and containers. Its score is held back in part because the project keeps no record of its design decisions. It scores 57.0 out of 100, which the At risk rating leaves unchanged.

Maturity, at 53.0, is the weakest lens by a small margin, and the weakest lens counts most in the score. The best first step is recording design decisions, worth about 5.4 points. Bringing the documentation in line with the code is another step, worth about 2.7 points.

Twenty settings leave the servers or containers unsafe. Four pipeline steps run downloads nobody checks, and two automatic updates take new releases before a bad one can be spotted. Correcting the unsafe settings, checking each download against a checksum and setting a waiting period for automatic updates would close these risks.

The product code is 18,121 lines, about €53,000 to rebuild.

A lens is capped at Adequate while one of its dimensions scores below 4 out of 10, however well the rest of the lens does. That way a serious problem in one place always shows in the lens's rating.

How the score is built: what each lens counts for The lenses don't count equally. The weakest lens counts most, the next weakest a little less, and so on, so a weak area pulls the score down instead of being averaged away. In the bar below, each part's width shows how much that lens counts and its colour shows its rating. Improving the widest part moves the score most, and as that lens improves, it counts for less, because another lens becomes the weakest.
Maturity 53.0 · counts for 47%Security and Compliance 56.5 · counts for 26%Production Readiness 57.9 · counts for 14%Code Health 59.3 · counts for 8%Architecture 98.0 · counts for 4%

The weakest lenses score close to each other, so improving any of them moves the score.

Code composition: what the lines of code are
Product code 35%Tests 65%
Rebuild cost: about €53,000 · Estimate
Cost to rebuild€18,000 to €89,000, for 294 to 932 hours of work, about 0.4 person-years for one engineer
Difficulty of the problemStandard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write.
Quality factor×0.8 at a score of 57. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it.
SizeSmall: 18,121 lines of product code
What it is notNot a quotation: nobody has offered to build it for that. Not a valuation: it says nothing about what the business is worth. Not a certified figure: no professional has signed it as one.

How the estimate is made: We price the hours a team would need to write this code again, at €60 to €95 an hour. Declarations and boilerplate are priced at a fast rate and logic at a slower one, and the logic is then multiplied by the difficulty of the problem and by the quality factor. The estimate can be about 30% off either way, and it moves most with the hourly rate and the difficulty. For this code, every line is priced as straight logic, which keeps the estimate on the low side.

Top priorities

The three actions that raise the score most for the work they take. The full ranked list is in the Roadmap.

1
Resolve the 1 No ADRs found finding(s) in ADR Quality — start with filter-junit.go.
Raises the score by about 5.4 points · Low effort · ADR Quality
2
Record your significant design decisions.
Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
Raises the score by about 3.3 points · Medium effort · Architecture documentation
3
Reconcile the README with reality: release-tools/README.md names Go 1.13 or later, but REDACTED:3 requires `go 1.26.0`: the code does not build on Go 1.13; deploy/kubernetes/README.md links to `deploy/kubernetes/overlays/`, but `deploy/kubernetes/deploy/kubernetes/overlays` does not exist; deploy/kubernetes/README.md links to `deploy/kubernetes/base/controller.yaml`, but `deploy/kubernetes/deploy/kubernetes/base/controller.yaml` does not exist.
Raises the score by about 2.7 points · Medium effort · Documentation accuracy

Diagnosis: what the measurements show together

Each conclusion below combines several dimensions into one point that no single dimension shows, and lists the measurements it rests on.

Files that change often carry extra risk · Combined risk
One file is changed often and is hard to read, which makes it the likeliest place for a mistake. It also has under half its code tested, or was written almost entirely by one person, so a mistake there is less likely to be caught, or only one person knows the code well enough to avoid it. A change to this file therefore carries more risk than the overall score suggests.
Based on: Churn × Complexity Hotspots (2 files) · Code Coverage (15 files under half tested) · Bus Factor (0 files written almost entirely by one person) · The files: REDACTED
What to do: Add tests to these files and have a second person review every change to them, starting with REDACTED.
Where the investment is most exposed · Value at risk
This code would cost about €53,000 to build again, about 0.4 person-years of work. Its weakest lens is Maturity, at 53.0 (Adequate). Maturity is about how well the project explains and looks after itself, which decides whether a new developer, or a new supplier, can take over. Because the weakest lens counts most in the score, work on Maturity also moves the score most.
Based on: the rebuild estimate · the Maturity grade · how much each lens counts
What to do: Start with the Maturity actions in Top priorities.
If you do one thing first · First action
Resolve the 1 No ADRs found finding(s) in ADR Quality. Of all the actions in this report, it raises the score most for the work it takes: about 5.4 points for low effort, because it clears the 1 ADR Quality findings. The next survey will show the change in the score.
Based on: the ranked actions in Top priorities, by score gain and effort
What hard-to-read code costs each year · Cost
Four dimensions measure how easy the code is to work in: two measure how tangled its logic is, one how much of it is copied, and one how well each part sticks to a single job. In this codebase they average 5.8 out of 10. Code at that level is slower to change than clean code, and we estimate the extra work at 5% to 12% on every change. The history of the code shows how much it changes: about 17,104 lines over the last 90 days, which is about 69,366 lines a year. At that pace, the extra work comes to an estimated 9.4 to 56.2 engineer-days a year, and it grows as more code changes.
How this is estimated: The number of changed lines is measured from the history of the code. The rest rests on two assumptions of our own: code scoring 8 out of 10 or more adds no extra work, and each point below 8 adds 2.5% to 5.6% to every change, never less than 2% to 5% and never more than 40% to 60% in all; and an engineer changes 150 to 400 lines in a day. The result is a range for planning, not a measurement.
Based on: Cyclomatic Complexity · Cognitive Complexity · Code Duplication · Cohesion (LCOM4) · the code's change history
What to do: Start with the files listed under Churn × Complexity Hotspots, which change often and are hard to read, because that is where the extra work is paid most often.

Architecture: which parts of the code depend on which

The code is divided into modules, groups of code that each handle one part of the product, and a module depends on another when it uses code from it. The table lists the modules both down the side and across the top, in an order where each module should only use modules listed above it. A number in a cell means the module on that row uses the module in that column, and it counts the pairs of building blocks (types) that connect them. The one thing to look for is a mark above the diagonal line. It means two or more modules use each other in a loop (a dependency cycle), so none of them can be changed, tested or released on its own.

24 modules, with 18 dependencies between them. Every module uses only modules listed above it, so there are no loops.

Which modules use which. The module on each row uses the module in each column, and the number counts the pairs of types that connect them. A cell above the diagonal is part of a loop.
uses →1 release-tools.boilerplate2 release-tools.contrib3 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/cmd/default-sc-rollback-handler4 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/cmd/gce-pd-node-labeler5 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/constants6 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/controller/taint7 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/convert8 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/gce-cloud-provider/compute/tenancy9 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/gce-cloud-provider/metadata10 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/k8sclient11 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/mount-manager12 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/nodelabeler13 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/parameters14 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/resizefs15 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/scdefaultrestorer16 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/webhook/taint17 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/release-tools18 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/common19 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/deviceutils20 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/gce-cloud-provider/compute21 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/cmd/gce-pd-csi-driver22 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/metrics23 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/linkcache24 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/gce-pd-csi-driver
1 release-tools.boilerplate
2 release-tools.contrib
3 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/cmd/default-sc-rollback-handler
4 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/cmd/gce-pd-node-labeler
5 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/constants
6 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/controller/taint
7 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/convert
8 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/gce-cloud-provider/compute/tenancy
9 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/gce-cloud-provider/metadata
10 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/k8sclient
11 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/mount-manager
12 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/nodelabeler
13 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/parameters
14 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/resizefs
15 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/scdefaultrestorer
16 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/webhook/taint
17 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/release-tools
18 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/common1
19 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/deviceutils3
20 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/gce-cloud-provider/compute211
21 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/cmd/gce-pd-csi-driver11
22 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/metrics11
23 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/linkcache22
24 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/gce-pd-csi-driver22822562
Uses a module listed above itPart of a loopThe module itself
1 release-tools.boilerplate2 release-tools.contrib3 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/cmd/default-sc-rollback-handler4 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/cmd/gce-pd-node-labeler5 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/constants6 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/controller/taint7 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/convert8 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/gce-cloud-provider/compute/tenancy9 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/gce-cloud-provider/metadata10 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/k8sclient11 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/mount-manager12 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/nodelabeler13 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/parameters14 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/resizefs15 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/scdefaultrestorer16 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/webhook/taint17 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/release-tools18 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/common19 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/deviceutils20 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/gce-cloud-provider/compute21 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/cmd/gce-pd-csi-driver22 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/metrics23 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/linkcache24 sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/gce-pd-csi-driverrelease-tools.boilerplate1release-tools.contrib2sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/cmd/default-sc-rollback-handler3sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/cmd/gce-pd-node-labeler4sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/constants5sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/controller/taint6sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/convert7sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/gce-cloud-provider/compute/tenancy8sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/gce-cloud-provider/metadata9sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/k8sclient10sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/mount-manager11sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/nodelabeler12sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/parameters13sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/resizefs14sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/scdefaultrestorer15sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/webhook/taint16sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/release-tools17sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/common18sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/deviceutils19sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/gce-cloud-provider/compute20sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/cmd/gce-pd-csi-driver21sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/metrics22sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/linkcache23sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/gce-pd-csi-driver241321111112222822562

At a glance — Code Health · 59.3 · Adequate · gated by D2 ·

At a glance — Architecture · 98.0 · Exemplary ·

At a glance — Maturity · 53.0 · Adequate · gated by M2 ·

At a glance — Readiness · 57.9 · Adequate · gated by P7 ·

At a glance — Security · 56.5 · Adequate · gated by D29, D31 ·

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
A02:2025 — Security Misconfiguration266High / Critical
A05:2025 — Injection22High / Critical
A03:2025 — Software Supply Chain Failures7Medium

Roadmap

Top priorities: Resolve the 1 No ADRs found finding(s) in ADR Quality — start with filter-junit.go; Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them; Reconcile the README with reality: release-tools/README.md names Go 1.13 or later, but REDACTED:3 requires `go 1.26.0`: the code does not build on Go 1.13; deploy/kubernetes/README.md links to `deploy/kubernetes/overlays/`, but `deploy/kubernetes/deploy/kubernetes/overlays` does not exist; deploy/kubernetes/README.md links to `deploy/kubernetes/base/controller.yaml`, but `deploy/kubernetes/deploy/kubernetes/base/controller.yaml` does not exist.

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 — start with filter-junit.go.+5.4 ptsLowADR Quality
Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.+3.3 ptsMediumArchitecture documentation
Reconcile the README with reality: release-tools/README.md names Go 1.13 or later, but REDACTED:3 requires `go 1.26.0`: the code does not build on Go 1.13; deploy/kubernetes/README.md links to `deploy/kubernetes/overlays/`, but `deploy/kubernetes/deploy/kubernetes/overlays` does not exist; deploy/kubernetes/README.md links to `deploy/kubernetes/base/controller.yaml`, but `deploy/kubernetes/deploy/kubernetes/base/controller.yaml` does not exist.+2.7 ptsMediumDocumentation accuracy
Resolve the 1 Further sole-owners (lower concentration) finding(s) in Bus Factor.+1.3 ptsLowBus Factor
Resolve the 1 Off-boarding risk finding(s) in Bus Factor.+1.3 ptsLowBus Factor
Resolve the 2 Hotspot finding(s) in Churn × Complexity Hotspots — start with controller.go, REDACTED.+1.1 ptsMediumChurn × Complexity Hotspots
Resolve the 1 No network policy finding(s) in Network Egress Confinement.+0.7 ptsLowNetwork Egress Confinement
Thread a context.Context through functions that make requests, so the work stops when its caller gives up.+1.2 ptsMediumCancellation propagation

File quality

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

FileScoreBandWorst signal
REDACTED0.0SlopIaC & Container Security: High IaC: REDACTED
REDACTED0.0SlopIaC & Container Security: High IaC: REDACTED
REDACTED0.0SlopIaC & Container Security: Critical IaC: REDACTED
REDACTED0.2SlopIaC & Container Security: High IaC: REDACTED
REDACTED1.6SlopIaC & Container Security: High IaC: REDACTED
REDACTED2.2SlopIaC & Container Security: High IaC: REDACTED
REDACTED2.6SlopIaC & Container Security: High IaC: REDACTED
REDACTED4.0MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.0MixedStatic Analysis (SAST): Medium: REDACTED
pkg/gce-pd-csi-driver/cache.go5.6MixedCyclomatic Complexity: gceGCEDriver.setupCaching (cyclomatic 26)
REDACTED5.6MixedIaC & Container Security: Medium IaC: REDACTED
release-tools/filter-junit.go5.8MixedCyclomatic Complexity: main.main (cyclomatic 18)
REDACTED5.8MixedStatic Analysis (SAST): High: REDACTED
REDACTED5.8MixedDependency Vulnerabilities: Medium CVE: REDACTED
pkg/gce-cloud-provider/compute/gce.go5.9MixedCognitive Complexity: gcecloudprovider.CreateCloudProvider (cognitive 19)
pkg/gce-pd-csi-driver/node.go6.0MixedExplicit Debt: TodoComment
pkg/gce-pd-csi-driver/controller.go6.0MixedExplicit Debt: TodoComment
pkg/gce-cloud-provider/compute/gce-compute.go6.0MixedExplicit Debt: TodoComment
pkg/mount-manager/safe-mounter-v1beta_windows.go6.0MixedExplicit Debt: TodoComment
pkg/deviceutils/device-utils.go6.0MixedExplicit Debt: TodoComment

How the grades work

Every finding carries one of four grades. Three say how serious it is. The fourth says this survey could not settle it — and it is a grade, not a gap.

Critical — 26

A definite problem that already costs you something and drags the score down: a missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here tends to cause failures elsewhere.

Serious — 447

Likely wrong, but not failing yet. It degrades the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to carry for two years either.

Minor — 117

Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.

Could not be resolved — 17

Something this survey could not settle from the outside, and which could be critical or serious. Either a control was required and no positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean result. These are excluded from the score rather than awarded a pass, so the number on the cover neither rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each one is named under Limitations.

Methodology & how to trust this report

This survey 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. All 49 evaluated dimensions are computed by tools and static analysis; no language model sets or judges any of them. Overall confidence is 0.9, the weighted average across measured dimensions.

Every figure here is one of two 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. 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.

What we checked — 49 dimensions across the health lenses
D1D2D3D4D6D8D11D12D13D14D15D16D17D19D20D22D27D28D29D30D31D35D40D41D42D43D44AX10AX2AX3AX4AX6M1M2M3M4P1P2P3P4P5P6P7X2X26X27X28X3X30

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, 556 of 590 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 or a scanner, 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
Canine Code Analyzer duplication detector (in-process)Code duplication1.0.0✓ deterministic
Coverage (coverlet / dotnet-coverage)Line & branch coverage10.0.400✓ deterministic
NuGet / dotnetOutdated, vulnerable & deprecated dependencies10.0.400✓ 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 · 3.2.533✓ deterministic

Every finding is locatable in findings.md. Run 01a1e658-3014-7c99-affd-4a5dc0e5a903.

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 — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. Each ecosystem's manifests (what makes a folder runnable or a published package) need their own proof before D19 judges its units. Until then those folders' READMEs are judged only as documents (boilerplate, structure), never counted as complete.
  • D21 Naming Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. PREREGISTRATION version 20's fallback (adjudication D21-sample3-v3): this rule kind was adjudicated below the 95 % precision gate, so its candidates are counted here and not published, and the score covers only the acronym-spelling and awaitable-suffix rules. The kind returns as rows only after it shows a measured precision; this says nothing about whether these names are consistent.
  • D24 Comment Value — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check's reader does not cover the language this repository's product is written in, so it had nothing of the product to read. That is a gap in this analyzer's language reach — not a finding about this repository.
  • D26 Project Cohesion — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `(repository root)` (18121 LoC, 93 module-visible types across 24 directories) is over its size bounds, and whether one unit is a coherent whole or a grab-bag is read from its type references: the parts of it that reach the rest only through its shared core. Those are read over the C#/VB code model, which this unit's source did not supply. Its size alone is no verdict on its cohesion, so none is published.
  • D32 Data Compliance (PII/GDPR) — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `REDACTED` produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
  • D34 Knowledge Freshness — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. File-level freshness contradicts repo activity: 69 commits in the last 90 days, yet 25 of 46 significant files carry no living knowledge. Those two readings cannot both be true, so the per-file recency signal is treated as unreliable here and freshness is not scored for this run.
  • AXB2 Runtime readiness — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. An image the REDACTED builds FROM could not be fetched: our sandbox reaches registries only through its pull-through mirror, and the mirror did not serve it. This is a limit of our sandbox, not of your repository. (rule: registry). The renderer reported: docker build failed (exit 1) — 164 | >>> FROM gcr.io/distroless/base-debian13 AS distroless-base 165 | 166 | # The distroless amd64 image has a target triplet of x86_64 -------------------- ERROR: failed to solve: gcr.io/distroless/base-debian13: failed to resolve source metadata for gcr.io/distroless/base-debian13:latest: failed to do request: Head "https://gcr.io/v2/distroless/base-debian13/manifests/latest": Forbidden; likely cause (our sandbox): an image the REDACTED builds FROM could not be fetched: our sandbox reaches registries only through its pull-through mirror, and the mirror did not serve it. This is a limit of our sandbox, not of your repository; runtime evidence skipped.
  • AXR1 Runtime accessibility — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Render strategy: boot via REDACTED (REDACTED). docker build failed (exit 1) — 164 | >>> FROM gcr.io/distroless/base-debian13 AS distroless-base 165 | 166 | # The distroless amd64 image has a target triplet of x86_64 -------------------- ERROR: failed to solve: gcr.io/distroless/base-debian13: failed to resolve source metadata for gcr.io/distroless/base-debian13:latest: failed to do request: Head "https://gcr.io/v2/distroless/base-debian13/manifests/latest": Forbidden; likely cause (our sandbox): an image the REDACTED builds FROM could not be fetched: our sandbox reaches registries only through its pull-through mirror, and the mirror did not serve it. This is a limit of our sandbox, not of your repository; runtime evidence skipped.
  • C1 Data Protection — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These personal data controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks personal data controls.
  • C2 Access Controls — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These authorization controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks authorization controls.
  • C3 Audit Trail — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These audit controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks audit controls.
  • C4 Data Retention — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These retention controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks retention controls.
  • C5 Data-Subject Rights — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These data-subject rights controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks data-subject rights controls.
  • GD1 Unfinished & placeholder code — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, F#, JavaScript/TypeScript, Dart, Ruby, Scala, Rust and Java source only, and no C#, F#, JavaScript/TypeScript, Dart, Ruby, Scala, Rust or Java was found, and this repository's Go, Python is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • IC1 Incompleteness & stubs — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, JavaScript/TypeScript, Java, Dart, Ruby, Scala and Rust source only, and no C#, JavaScript/TypeScript, Java, Dart, Ruby, Scala or Rust was found, and this repository's Go, Python is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • M4 Documentation accuracy — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. M4 checks only the claim kinds adjudicated at or above 95 % precision: links and versions (PREREGISTRATION version 9), and artefact counts an order of magnitude off. Paths, command arguments, installs, environment variables, settings, projects, packages, routes, cd targets, infrastructure products and removed modules are read but not checked, and none of them is reported or counted.
  • P1 CI/CD gates — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. A CI pipeline exists and the word "test" appears, but no explicit test-runner invocation (your stack's test command, or a test job) was matched — so either the gate runs tests through a step this pass could not recognise, or "test" is incidental here (a path, "latest", a reporter). Which of the two it is cannot be settled from this dimension's evidence; the coverage dimensions report whether a suite exists at all. You can widen what we reach: name the test runner explicitly in the pipeline step (your stack's test command, or a job named for the suite) so the gate is unambiguous to a reader and to this pass.
  • S1 Web-Security Posture — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These web-security controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks web-security controls.
  • X12 Unreachable branch — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check's reader does not cover most of the languages this repository's product is written in. What it read is kept, but it is too small a share to grade the product by. That is a gap in this analyzer's language reach — not a finding about this repository.
  • X16 Unfloored truncation loop — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, PHP, Dart, Ruby, Scala, Kotlin and Rust source only, and no C# was loaded and no JavaScript/TypeScript, Java, PHP, Dart, Ruby, Scala, Kotlin or Rust was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X18 Disposal-pattern correctness — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Dart, Ruby, Scala, PHP and Rust source only, and no C# was loaded and no JavaScript/TypeScript, Java, Kotlin, Dart, Ruby, Scala, PHP or Rust was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X29 Per-element action decided by a fixed element — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript (Vue and Svelte components included), Java, Rust, Dart, Ruby, Scala and Kotlin source only, and no C# was loaded and no JavaScript/TypeScript, Java, Rust, Dart, Ruby, Scala or Kotlin was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X5 Nullable reference types — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax and MSBuild project configuration, TypeScript source and its tsconfig files, Java source and its package and module declarations, PHP source and its PHPStan and Psalm configuration, Dart source and its pubspec language version, Ruby source and its Sorbet and Steep configuration, Scala source and its build's explicit-nulls, WartRemover and Scalafix settings, Kotlin source, and Rust source only, and no C# was loaded, no TypeScript was found, and this repository's Python is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.

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

Limitations & what we did not check

We assess the repository exactly as committed, and only the repository. By design we do 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 — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
  • D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
  • D8 Code Coverage: Coverage is measured by building and running the test suite inside our 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.
  • D11 Test Reliability: Flakiness is inferred from history/markers — we run the suite once (for coverage), not the repeated runs under varied conditions that reveal nondeterminism, so a flaky test never recorded as failing is invisible here.
  • D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
  • D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
  • D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
  • D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
  • D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
  • D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
  • D19 Documentation Quality: Documentation quality publishes two things only: a runnable or packaged unit with no example, and a multi-project root README that maps none of its parts. It does not judge clarity, and its other checks (overview, licence, boilerplate, structure, empty sections, XML-doc coverage) are withheld after adjudication: their candidates are counted in the card's gaps, not shown as rows. A false statement in a document is M4's; units are .NET projects only.
  • D20 ADR Quality: ADR quality checks the structure of the decision records present: it cannot know about decisions made and never recorded, and it does not judge how well a record argues its case. Records in a language the section lexicon does not cover are not evaluated.
  • D22 Internal API Consistency: API consistency compares the call shapes of members that play the same role on the exposed C# surface: whether the API suits its callers is not measured, and surfaces in other languages are not measured.
  • 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 on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
  • 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.
  • D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
  • D40 Network Egress Confinement: Egress confinement is read from committed Kubernetes manifests — a policy applied out-of-band (cluster-default deny, a service mesh, or a cloud firewall/security group off-repo) is invisible, and a present NetworkPolicy is declared config, not proof the cluster admission-controller actually enforces it at runtime.
  • D41 Kernel & Syscall Confinement: Syscall/MAC confinement is read from committed manifests — a profile applied by a cluster-wide PodSecurity default or a mutating webhook off-repo isn't seen, and a declared seccomp/AppArmor profile is config presence, not proof the node's kernel actually loaded and enforced it.
  • D42 Runtime Threat Enforcement: Runtime enforcement is read from committed policy files — a Tetragon/Falco/Kyverno stack installed cluster-wide (Helm release, platform add-on) with no in-repo trace can't be credited, and a committed policy is declared intent, not proof the engine is running and blocking in the live cluster.
  • D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
  • D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a REDACTED (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (REDACTED, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
  • AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
  • M4 Documentation accuracy: Documentation accuracy checks links, versions and artefact counts against the tree: other claims (paths, commands, settings, routes) are read but not checked, and it cannot run the onboarding or measure how long a real new joiner takes.
  • 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.

Dimensions

D1 · Cyclomatic Complexity6.0 / 10Adequate✓ Tool-verified

What it measures: How tangled the control flow is — methods with many branches are hard to test and change.

Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.

Maturity: Documented → Verified → Prevented · effective 6.0 / 10 · rule-coverage 100% · ceiling Prevented

24 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was ParameterProcessor.ExtractAndDefaultParameters at 69.

ParameterProcessor.ExtractAndDefaultParameters (cyclomatic 69)pkg/parameters/parameters.go:32
GCENodeServer.NodeStageVolume (cyclomatic 51)pkg/gce-pd-csi-driver/node.go:358
main.handle (cyclomatic 46)REDACTED:165
GCEControllerServer.ControllerModifyVolume (cyclomatic 45)pkg/gce-pd-csi-driver/controller.go:925
GCEControllerServer.createSingleDisk (cyclomatic 37)pkg/gce-pd-csi-driver/controller.go:753

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

What to do

  1. Bring the 1 body over 60 down to 60 or less in Cyclomatic Complexity — start with ParameterProcessor.ExtractAndDefaultParameters (cyclomatic 69). — Refactoring it lifts Cyclomatic Complexity from 6.0 to about 6.2/10.

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

D2 · Cognitive Complexity2.5 / 10Weak✓ 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: Documented → Verified → Prevented · effective 2.5 / 10 · rule-coverage 100% · ceiling Prevented

46 method(s) exceeded the cognitive complexity threshold of 15; the worst was ParameterProcessor.ExtractAndDefaultParameters at 127.

ParameterProcessor.ExtractAndDefaultParameters (cognitive 127)pkg/parameters/parameters.go:32
GCEControllerServer.createSingleDisk (cognitive 83)pkg/gce-pd-csi-driver/controller.go:753
main.handle (cognitive 79)REDACTED:165
GCENodeServer.NodeStageVolume (cognitive 79)pkg/gce-pd-csi-driver/node.go:358
GCEControllerServer.optedInForSlowConversion (cognitive 55)pkg/gce-pd-csi-driver/controller.go:3023

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

What to do

  1. Bring the 4 bodies over 60 down to 60 or less in Cognitive Complexity — start with ParameterProcessor.ExtractAndDefaultParameters (cognitive 127), GCEControllerServer.createSingleDisk (cognitive 83), main.handle (cognitive 79). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 4 together lifts Cognitive Complexity from 2.5 to about 4.4/10, projected with the scoring formula itself and assuming each lands exactly at 60; a cleaner split scores higher.

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

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

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

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

Maturity: Documented → Verified → Prevented · effective 8.0 / 10 · rule-coverage 100% · ceiling Prevented

14 god class(es) detected.

FileTooLong: gce-pd-csi-driver/controller.go · ×4pkg/gce-pd-csi-driver/controller.go
TooManyMethods: GCEControllerServer · ×3pkg/gce-pd-csi-driver/controller.go:57
ClassTooLong: GCEControllerServer · ×2pkg/gce-pd-csi-driver/controller.go:57
FunctionTooLong: main.handle · ×2REDACTED:165
MethodTooLong: ParameterProcessor.ExtractAndDefaultParameters · ×2pkg/parameters/parameters.go:32

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

What to do

  1. Resolve the 4 FileTooLong finding(s) in God Classes — start with controller.go, gce-compute.go, cache.go. — One of this dimension's main actionable groups (4 warning-level).
  2. Resolve the 3 TooManyMethods finding(s) in God Classes — start with controller.go, gce.go, fake-gce.go. — One of this dimension's main actionable groups (3 warning-level).
  3. Resolve the 2 ClassTooLong finding(s) in God Classes — start with controller.go, node.go. — One of this dimension's main actionable groups (2 warning-level).

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

D4 · Code Duplication5.3 / 10Adequate✓ Tool-verified

What it measures: How much of the production code is copy-pasted: the share of production lines inside a reported copy (every copy of a duplicated block or of an edited member, each line once), 10 at none and 0 at a quarter of the lines.

Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), scored on the share of production lines inside a reported copy (each line once; 10 at none, 0 at a quarter). Deterministic.

Maturity: Documented → Verified → Prevented · effective 5.3 / 10 · rule-coverage 100% · ceiling Verified

37 duplicated block group(s) detected. 11.8 % of the production lines (2,139 of 18,121) are in a reported copy. A further 35 rows report members as variants of one another; the share counts each copied line once, however many rows cite it.

Duplicated block (8 lines × 2) · ×6pkg/gce-cloud-provider/compute/gce-compute.go:172
Duplicated block (11 lines × 2) · ×5pkg/gce-pd-csi-driver/controller.go:1996
Duplicated block (7 lines × 2) · ×5pkg/gce-cloud-provider/compute/gce-compute.go:1725
Duplicated block (10 lines × 2) · ×4pkg/gce-pd-csi-driver/controller.go:1812
Edited copy of a member (26 corresponding lines) · ×3pkg/gce-cloud-provider/compute/gce-compute.go:1592

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

What to do

  1. Resolve the 6 Duplicated block (8 lines × 2) finding(s) in Code Duplication — start with controller.go (2), gce-compute.go, node.go. — One of this dimension's main actionable groups (6 warning-level).
  2. Resolve the 5 Duplicated block (11 lines × 2) finding(s) in Code Duplication — start with controller.go (3), safe-mounter-v1_windows.go (2). — One of this dimension's main actionable groups (5 warning-level).
  3. Resolve the 5 Duplicated block (7 lines × 2) finding(s) in Code Duplication — start with controller.go (3), gce-compute.go, node.go. — One of this dimension's main actionable groups (5 warning-level).

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

D6 · Cohesion (LCOM4)9.5 / 10Stronggated by 1 serious finding✓ 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: Documented → Verified → Prevented · effective 9.5 / 10 · rule-coverage 100% · ceiling Verified

1 of 26 classes have LCOM4 above 3.

Low cohesion: MetricsManager (LCOM4 5)REDACTED:80

What to do

  1. Resolve the 1 Low cohesion finding(s) in Cohesion (LCOM4) — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).

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

D8 · Code Coverage9.2 / 10Stronggated by 15 serious findings✓ Tool-verified

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

Method: Coverage from the analyzer's own run of the suite, computed per-file with structured exclusions for generated, trivial, and glue code. A coverage report found in the repository is never read. When the suite can't be built/run in-image, 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: Documented → Verified → Prevented · effective 9.2 / 10 · rule-coverage 100% · ceiling Verified

Line coverage 59.1% — 15 file(s) below 50%. Measured from the Go suite (sigs.k8s.io/gcp-compute-persistent-disk-csi-driver: `go test -coverprofile -coverpkg=./...`, the 3 run(s) test reliability made). Taken over 3 runs of the suite: a line counts as covered only when every run executed it. 13 line(s) in 2 file(s) were executed in some runs and not in others, so they are not counted.

Low coverage: cmd/default-sc-rollback-handler/main.go · ×15cmd/default-sc-rollback-handler/main.go:1
Tests reach code only in some runs: pkg/linkcache/devices_linux.go · ×2pkg/linkcache/devices_linux.go:89

What to do

  1. Resolve the 15 Low coverage finding(s) in Code Coverage — start with REDACTED (3), device-utils.go, device-utils_linux.go. — One of this dimension's main actionable groups (15 warning-level).
  2. Resolve the 2 Tests reach code only in some runs finding(s) in Code Coverage — start with devices_linux.go, parameters.go. — One of this dimension's main actionable groups (2 recommendation-level).

Detailed fixes: d8_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: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Verified

0 flaky across 1 measured tier(s). Go (sigs.k8s.io/gcp-compute-persistent-disk-csi-driver): measured (0 flaky).

✓ On the Gold path — maintain.

Detailed fixes: d11_recommendation.md.

D12 · Dependency Hygiene8.7 8.0 / 10Strong✓ Tool-verified

What it measures: Whether dependencies are current, not deprecated, and not bloated. Known vulnerabilities are D30's.

Method: Manifest scan via dotnet list package across all projects; worst-signal-per-package deduction (capped-linear for deprecation, prerelease and outdated) per KLoC. Known-vulnerable packages are D30's and are not charged here (rubric-2026.11.2). Exhaustive.

Maturity: Documented → Verified → Prevented · effective 8.0 / 10 · rule-coverage 92% · ceiling Verified

26 outdated, 0 author-deprecated direct Go module(s), 0 pinning or checksum defect(s). 39 of 39 direct requirement(s) were graded against proxy.golang.org (0 not served there, 3 publishing no tagged release to be behind). Whether any of these modules is UNMAINTAINED is not graded — proxy.golang.org publishes no maintenance status, and release age does not stand in for one. Whether any is UNUSED is not graded either: that is a source question, not a registry one. Known CVEs in this module graph are D30's question, read from REDACTED and go.sum there.

Outdated: cloud.google.com/go/compute/metadata · ×26

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

Secret scan ran and found no leaked secrets. 1 detection(s) were excluded as holding no minted credential in material that runs: a name, reference or comparison rather than a value, a readable phrase or pattern, a value that declares itself fake, or development, test, example, mock or demo material.

✓ On the Gold path — maintain.

Detailed fixes: d13_recommendation.md.

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

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

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

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Verified

0 of 126 required Go module(s) use a banned license. Licences were read per module version from the licence files pkg.go.dev detects (via api.deps.dev), over every module this repository's REDACTED requires, direct and indirect, at the version the build uses. Go records no test-only scope at module level, so modules only this repository's own tests import are included.

✓ On the Gold path — maintain.

Detailed fixes: d14_recommendation.md.

D15 · Churn × Complexity Hotspots9.6 / 10Stronggated by 2 serious findings✓ 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: Documented → Verified → Prevented · effective 9.6 / 10 · rule-coverage 100% · ceiling Documented

Top hotspots: pkg/gce-pd-csi-driver/controller.go (7×45=315); REDACTED (4×46=184)

Hotspot: pkg/gce-pd-csi-driver/controller.go · ×2pkg/gce-pd-csi-driver/controller.go:925

What to do

  1. Resolve the 2 Hotspot finding(s) in Churn × Complexity Hotspots — start with controller.go, REDACTED. — One of this dimension's main actionable groups (2 warning-level).

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

D16 · Bus Factor8.9 / 10Strong✓ Tool-verified

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

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

Maturity: Documented → Verified → Prevented · effective 8.9 / 10 · rule-coverage 100% · ceiling Documented

5 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is pkg/scdefaultrestorer/restorer.go. Counted over 45 of the 68 production source files in this repository: 22 are under the ~2,400-byte size floor this dimension measures over, and the remaining 1 have no attributable history left to measure.

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

What to do

  1. Resolve the 1 Off-boarding risk finding(s) in Bus Factor. — One of this dimension's main actionable groups (1 recommendation-level).
  2. Resolve the 1 Further sole-owners (lower concentration) finding(s) in Bus Factor. — One of this dimension's main actionable groups (1 recommendation-level).

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

D17 · Explicit Debt9.7 / 10Stronggated by 32 serious findings✓ 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: Documented → Verified → Prevented · effective 9.7 / 10 · rule-coverage 100% · ceiling Prevented

32 deducted task-comment markers across 18121 LoC (0.2/KLoC) → score 9.7. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.

TodoComment · ×32test/sanity/sanity_test.go:120

What to do

  1. Resolve the 32 TodoComment finding(s) in Explicit Debt — start with controller.go (5), node.go (5), safe-mounter-v1_windows.go (3). — One of this dimension's main actionable groups (32 warning-level).

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

D19 · Documentation Quality10.0 / 10Exemplary○ Nothing flagged

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

Method: Every README, docs/ document and root guide parsed by its markup and measured in Unicode letters. Published: a runnable or packaged .NET project whose README (or a document it links, or a root guide) shows no example, and a root README naming none of three or more projects. Overview, licence, boilerplate, wall-of-text, empty-section and XML-doc rows are measured and withheld (counted in gaps) after adjudication. Deterministic, exhaustive, advisory.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

1 of 1 documentation facets pass in full. 19 document(s) read across 1 unit(s).

✓ On the Gold path — maintain.

Detailed fixes: d19_recommendation.md.

D20 · ADR Quality0.0 / 10Critical✓ Tool-verified

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

Method: Every ADR read by its section structure: nine located rules (a missing Decision, Context or Consequences section, a stale status, two records deciding the same question, a dangling supersede link, a number-only title, a single option, no named cost, no status where the log uses one, no enforcement field where the log adopted one), each a fixed deduction from 10; the score is the mean over evaluated records. Deterministic, no model. Advisory.

Maturity: Documented → Verified → Prevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Documented

No architecture decision records were found.

No ADRs foundrelease-tools/filter-junit.go:22

What to do

  1. Resolve the 1 No ADRs found finding(s) in ADR Quality — start with filter-junit.go. — 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 Consistency9.3 / 10Stronggated by 2 serious findings✓ Tool-verified

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

Method: Call-shape rules (A1-A9) over the structured code model of the intentionally exposed C# surface: members of one type, overloads of one name and the same slot across sibling types are compared, and a member that makes a caller use a different convention for the same kind of operation is flagged. Deterministic, no model. Advisory.

Maturity: Documented → Verified → Prevented · effective 9.3 / 10 · rule-coverage 100% · ceiling Verified

2 API inconsistencies among 284 exposed members measured against a convention their peers follow.

`GCECompute.ConvertDisk` takes (instancename, instancezone) where its 4 siblings take (instancezone, instancename)pkg/gce-cloud-provider/compute/gce-compute.go:121
`gceGCEDriver.ValidateDataCacheConfig` takes its context.Context last where 30 members of the package take it firstpkg/gce-pd-csi-driver/cache.go:547

What to do

  1. Resolve the 1 `GCECompute.ConvertDisk` takes (instancename, instancezone) where its 4… finding(s) in Internal API Consistency — start with gce-compute.go. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 `gceGCEDriver.ValidateDataCacheConfig` takes its context.Context last… finding(s) in Internal API Consistency — start with cache.go. — One of this dimension's main actionable groups (1 warning-level).

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

D27 · Navigability9.8 / 10Exemplary✓ 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. C# also names each pass-through layer (a class whose every public method only forwards its own parameters to one collaborator) as a located finding; the score is not affected.

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

Maturity: Documented → Verified → Prevented · effective 9.8 / 10 · rule-coverage 100% · ceiling Documented

22 % of calls cross a namespace and 3 % go through an interface, but 100 % of collaborators are co-located — so a call's collaborators sit together and tracing stays easy. Baseline: small — navigation cost is tolerated.

✓ On the Gold path — maintain.

Detailed fixes: d27_recommendation.md.

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

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

Method: Secret scan via TWO gitleaks detect passes in an isolated checkout — the full git history, then a second --no-git pass over the working tree as it stands — merged and de-duplicated by (rule, file, line); each match flagged High. Both invocations are recorded in the audit trail. Exhaustive; when the tool is absent, or when its output cannot be parsed into the expected shape, the dimension is WITHHELD as an explicit measurement gap on our side — unscored and excluded from the lens, never a hedged middling score.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

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

✓ On the Gold path — maintain.

Detailed fixes: d28_recommendation.md.

D29 · Static Analysis (SAST)1.5 / 10Critical✓ Tool-verified

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

Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.

Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).

Maturity: Documented → Verified → Prevented · effective 1.5 / 10 · rule-coverage 100% · ceiling Documented

22 finding(s): 0 critical, 6 high, 16 medium, 0 low. semgrep hit a parse error in 7 file(s) — `REDACTED` (line 439, line 449), `creds/cloud-sa.json`, `hack/verify-coverage.sh` (line 38), `pkg/gce-pd-csi-driver/controller.go`, `release-tools/go-get-kubernetes.sh` (line 68), … (+2 more) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them.

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

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

What to do

  1. Resolve the 12 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (6), REDACTED (3), REDACTED. — One of this dimension's main actionable groups (12 warning-level).
  2. Resolve the 4 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (2), REDACTED, REDACTED. — One of this dimension's main actionable groups (4 issue-level).
  3. Resolve the 2 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 issue-level).

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

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

What it measures: Whether any dependency has a known published vulnerability (CVE), direct or transitive, in ANY ecosystem the repository declares — Dart pub, Elixir and Erlang via Hex, Go modules, Java and Kotlin via Maven/Gradle, JavaScript/npm, .NET/NuGet, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift.

Method: Dependency-CVE scan across every ecosystem the repository declares, scored ONCE. Three sources are unioned and deduplicated by advisory identity (rule id + alias closure, CVE<->GHSA) scoped to package+version, keeping the worst severity: `osv-scanner --recursive` over osv.dev for Dart pub, Elixir/Hex (and Erlang, whose `rebar.lock` syft first converts to a CycloneDX SBOM the scanner reads, with rows attributed back to the lock), Go, Java and Kotlin via Maven/Gradle (and Scala, whose sbt build's pinned direct declarations are written into a CycloneDX SBOM the scanner reads, with rows attributed back to the build file), npm, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift; `trivy fs --scanners vuln` for npm lockfiles; and `dotnet list package --vulnerable --include-transitive` for NuGet (with per-advisory collapse of the project x target-framework fan-out), plus a DECLARED-dependency arm that resolves a published gem's gemspec against rubygems.org where no Gemfile.lock is committed. `SeverityScore(c,h,m,l, normalizer 8.0)`. NotApplicable only when NO ecosystem is readable; if any applicable ecosystem could not be scanned the findings are REPORTED and the score is withheld. Supersedes the npm and OSV arms, retired 2026-09-05. Advisory since rubric-2026.11.2 (CAI decision 0006): every row is a match against a vulnerability database that changes daily, so the reading is shown and never moves a scored dimension, lens or the headline.

Maturity: Documented → Verified → Prevented · effective 8.7 / 10 · rule-coverage 100% · ceiling Documented

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

REDACTED
REDACTED

What to do

  1. Resolve the 6 Medium CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (6). — One of this dimension's main actionable groups (6 warning-level).
  2. Resolve the 1 Medium vulnerability finding(s) in Dependency Vulnerabilities — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).

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

D31 · IaC & Container Security0.0 / 10Critical✓ Tool-verified

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

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

Maturity: Documented → Verified → Prevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Documented

266 finding(s): 1 critical, 19 high, 184 medium, 62 low.

REDACTED
REDACTED
REDACTED
REDACTED

What to do

  1. Resolve the 184 Medium IaC finding(s) in IaC & Container Security — start with REDACTED (75), REDACTED (39), REDACTED (25). — One of this dimension's main actionable groups (184 warning-level).
  2. Resolve the 19 High IaC finding(s) in IaC & Container Security — start with REDACTED (7), REDACTED (7), REDACTED (2). — One of this dimension's main actionable groups (19 issue-level).
  3. Resolve the 1 Critical IaC finding(s) in IaC & Container Security — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).

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

D35 · Change Coupling10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.

Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.

Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

No strong hidden change-coupling between production files.

✓ On the Gold path — maintain.

Detailed fixes: d35_recommendation.md.

D40 · Network Egress Confinement6.0 / 10Adequate✓ Tool-verified

What it measures: Whether Kubernetes workloads restrict network EGRESS with a NetworkPolicy (or Cilium policy), limiting where a compromised pod can send data or reach a command-and-control server. Presence of committed egress-restricting policy, not runtime enforcement.

Method: Deterministic YAML-manifest inspection (no external tool, no Roslyn — language-agnostic): Kubernetes workloads gate applicability; credits a NetworkPolicy / Cilium policy that restricts egress (policyTypes: [Egress] / egress rules). Reward-leaning (neutral floor climbing to 10, never a deduction — baseline misconfigs stay with D31). Deterministic.

Maturity: Documented → Verified → Prevented · effective 6.0 / 10 · rule-coverage 100% · ceiling Documented

0/2 network-egress controls present (network policy, egress restriction).

No network policy

What to do

  1. Resolve the 1 No network policy finding(s) in Network Egress Confinement. — One of this dimension's main actionable groups (1 recommendation-level).

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

D41 · Kernel & Syscall Confinement6.0 / 10Adequate✓ Tool-verified

What it measures: Whether Kubernetes workloads confine the kernel boundary — a seccomp profile (RuntimeDefault/Localhost) plus an AppArmor/SELinux mandatory-access-control layer — shrinking the syscall attack surface a container escape would use. Presence of committed confinement config, not runtime enforcement.

Method: Deterministic YAML-manifest inspection (no external tool, no Roslyn): on Kubernetes workloads, credits a seccomp profile (RuntimeDefault/Localhost) and an AppArmor/SELinux MAC layer. Reward-leaning (neutral floor climbing to 10); NotApplicable without workloads. Deterministic.

Maturity: Documented → Verified → Prevented · effective 6.0 / 10 · rule-coverage 100% · ceiling Documented

0/13 workload(s) run every container under a seccomp profile; 0/13 declare an AppArmor/SELinux profile.

No seccomp profile · ×13REDACTED:1

What to do

  1. Resolve the 13 No seccomp profile finding(s) in Kernel & Syscall Confinement — start with REDACTED (2), noauth.yaml (2), node-overlay.yaml (2). — One of this dimension's main actionable groups (13 recommendation-level).

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

D42 · Runtime Threat Enforcement6.0 / 10Adequate✓ Tool-verified

What it measures: Whether the Kubernetes deployment wires runtime threat enforcement — a detection engine (Tetragon/Falco) and/or an admission-control policy gate (Kyverno / OPA Gatekeeper / PodSecurity). Presence of committed policy, not a runtime guarantee.

Method: Deterministic YAML-manifest inspection (no external tool, no Roslyn): on Kubernetes workloads, credits a runtime threat-detection engine (Tetragon TracingPolicy / Falco) and an admission-control policy (Kyverno / OPA Gatekeeper / PodSecurity). Reward-leaning; NotApplicable without workloads. Deterministic.

Maturity: Documented → Verified → Prevented · effective 6.0 / 10 · rule-coverage 100% · ceiling Documented

0/2 runtime-enforcement controls present (threat detection, admission control).

No runtime threat detection
No admission-control policy

What to do

  1. Resolve the 1 No runtime threat detection finding(s) in Runtime Threat Enforcement. — One of this dimension's main actionable groups (1 recommendation-level).
  2. Resolve the 1 No admission-control policy finding(s) in Runtime Threat Enforcement. — One of this dimension's main actionable groups (1 recommendation-level).

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

D43 · Malicious Dependencies10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether any dependency the repository declares is published as MALICIOUS rather than merely vulnerable — a package that is an attacker's work, in any ecosystem osv-scanner reads. Reported apart from D30 because the answer is binary: there is no safe version to upgrade to, and the fix is to remove the package and rotate every credential it could have read.

Method: The same dependency scan D30 reads, partitioned on the scanner's own classification rather than rescanned: a row is MALICIOUS when its id is in the `MAL-` space (the ossf/malicious-packages feed) OR its `database_specific.cwe_ids` carries `CWE-506` ("Embedded Malicious Code"). Both channels are structural; the summary text is deliberately NOT read, because a malicious-package record whose summary says only "Critical severity vulnerability" is a real shape ([GHSA redacted]) and a text matcher misses it. Scored BINARY: any surviving row is 0, whatever its severity and however many CVEs sit beside it — a hostile dependency is not a quantity. Applicability and degradation are D30's: NotApplicable only when no ecosystem is readable, and an unscannable ecosystem degrades rather than reading clean. Advisory since rubric-2026.11.2 (CAI decision 0006): the malicious-package feed is a database that changes daily, so the reading is shown and never moves a scored dimension, lens or the headline.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

No dependency in any ecosystem this repository declares is published as malicious.

✓ On the Gold path — maintain.

Detailed fixes: d43_recommendation.md.

D44 · Platform End-of-Life10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether anyone still ships security patches for the platform this repository RUNS ON — the runtime it pins and the framework majors its own constraints hold it to. Separate from D12 because the question differs: a current Django on an end-of-life Python is perfectly up to date and completely unsupported, and the fix is a migration rather than a version bump. What the repository says it merely SUPPORTS is never charged.

Method: End-of-life PLATFORM read from the repository's own declarations and graded against a FROZEN, dated table of vendor support dates — no network, no feed, no API, so this dimension answers identically inside a closed scan fence. Two subjects: a RUNTIME the project pins (a single or all-end-of-life TargetFramework, a .nvmrc or .python-version, a requires-python CAP) and a FRAMEWORK major a dependency constraint cannot move off (a caret, tilde or exact version; `vue@^2.7.16` pins Vue 2). A FLOOR is deliberately never charged — `requires-python = ">=3.8"` states what a package SUPPORTS, not what it runs on — and a multi-target project is charged only when EVERY target is out of support. Runtime 4.0/product capped 8.0, framework 1.5 capped 4.5. The table is safe to freeze because a statement about support that ended in the past cannot become false: it loses recall as it ages, never precision, and a test asserts every entry predates the freeze date. Disjoint from D31 (a container image's OS layer) and D29 (the toolchain a CI workflow installs). Abstains when the repository declares no platform this pass reads — never scores it clean.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 1 platform declaration(s) and 0 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.

✓ On the Gold path — maintain.

Detailed fixes: d44_recommendation.md.

Frontend & cross-cutting dimensions

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

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

Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified. How each file's role is decided, because the split is only as good as that: a generated name or a build-output tree makes it Generated, a test project makes it Test, and otherwise the file's NAMESPACE and PATH words are matched against fixed vocabularies in a fixed ORDER — domain, then infrastructure, then application — so a file whose words hit two layers is counted under the earlier one. A production file matching none of them counts as application, so that share reads 'application or unclassified' rather than a measured application layer. Roles come from naming convention, never from what the code does. On this repository the split was taken from the source tree on disk rather than from a loaded .NET workspace, so a file's role is decided by its PATH segments alone — no declared namespace was available to add to the evidence — and generated output is excluded from the census entirely rather than counted as a generated share.

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.

AX2 · Stateful singletons10.0 / 10Exemplary✓ 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.

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.

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

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

Method: Roslyn scan: public interface declared-member counts (accessors fold into their property/event); fat-interface threshold (over 15 declared members) flagged per type. Each finding also reports the distinct-OPERATION count — members counted by name, so an overload group counts once — which decides whether it states the caller-side ISP harm or the implementer-side burden of an overload set. TypeScript: exported interfaces that declare behaviour, counted over their REQUIRED operations (method signatures and function-typed properties with no `?`, once per signature) — data-shape interfaces and ambient .d.ts declarations are outside the population; JavaScript declares no interfaces and is not applicable. Deterministic, type-level.

  • `GCECompute` declares 33 methods: `GetDefaultProject`, `GetDefaultZone`, `GetDisk`, `RepairUnderspecifiedVolumeKey`, `InsertDisk`, `DeleteDisk`, `UpdateDisk`, `AttachDisk`, `DetachDisk`, `ConvertDisk`, `ConvertDiskType`, `IsConvertOperationDone`, `SetDiskAccessMode`, `SetDiskLabels`, `ListCompatibleDiskTypeZones`, `GetDiskSourceURI`, `GetDiskTypeURI`, `WaitForAttach`, `ResizeDisk`, `ListDisks`, `ListDisksWithFilter`, `ListInstances`, `GetReplicaZoneURI`, `GetInstanceOrError`, `ListZones`, `ListSnapshots`, `GetSnapshot`, `CreateSnapshot`, `DeleteSnapshot`, `ListImages`, `GetImage`, `CreateImage`, `DeleteImage`. Counted over the exported method specs the interface itself declares, once per name; an embedded interface is a role it composes, judged on its own declaration, and is not counted here. 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. — pkg/gce-cloud-provider/compute/gce-compute.go:109

What to do

  • Split fat interfaces into focused role-interfaces so clients depend only on what they use.
M1 · Documentation (README)7.3 / 10Strong✓ Tool-verified

Maturity · Maturity — Whether the repository and its projects have a README, and whether it is substantive.

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

M2 · Architecture documentation2.0 / 10Critical✓ Tool-verified

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

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

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

What to do

  • Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
M3 · Folder & project structure10.0 / 10Exemplary✓ Tool-verified

Maturity · Maturity — Whether the repository is organised deliberately: production code and tests are set apart in a way its ecosystem or the repository itself declares.

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

M4 · Documentation accuracy4.0 / 10Weak✓ Tool-verified

Maturity · Maturity — Whether the project's current-state documentation describes the code that exists.

Method: Every current-state document's checkable claims looked up in the tree (links, versions, and artefact counts an order of magnitude off), plus two README checks: an advertised infrastructure product with no footprint, and a module the CHANGELOG records as removed. Deterministic, no model. Advisory.

  • release-tools/README.md names Go 1.13 or later, but REDACTED:3 requires `go 1.26.0`: the code does not build on Go 1.13. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — release-tools/README.md:140
  • deploy/kubernetes/README.md links to `deploy/kubernetes/overlays/`, but `deploy/kubernetes/deploy/kubernetes/overlays` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — deploy/kubernetes/README.md:11
  • deploy/kubernetes/README.md links to `deploy/kubernetes/base/controller.yaml`, but `deploy/kubernetes/deploy/kubernetes/base/controller.yaml` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — deploy/kubernetes/README.md:20

What to do

  • Reconcile the README with reality: release-tools/README.md names Go 1.13 or later, but REDACTED:3 requires `go 1.26.0`: the code does not build on Go 1.13; deploy/kubernetes/README.md links to `deploy/kubernetes/overlays/`, but `deploy/kubernetes/deploy/kubernetes/overlays` does not exist; deploy/kubernetes/README.md links to `deploy/kubernetes/base/controller.yaml`, but `deploy/kubernetes/deploy/kubernetes/base/controller.yaml` does not exist.
P1 · CI/CD gates8.5 / 10Strong✓ Tool-verified

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.

What to do

  • Run the test suite in CI via an explicit runner step for your stack, and gate merges on it.
P2 · Observability8.5 / 10Strong✓ Tool-verified

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

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

  • Only 1/2 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `.`.

What to do

  • Extend structured logging to the remaining runnable modules so everything you run is diagnosable in production.
P3 · Security & performance tooling6.0 / 10Adequate✓ Tool-verified

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

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

What to do

  • Your ecosystem's static analyzer is declared as a dependency but is not wired into CI — run it as a required step on push/PR (e.g. `composer phpstan` / `mix sobelow` / `bundle exec brakeman` / the spotbugs Gradle task / `sbt scalafixAll --check` / `golangci-lint run` / `rebar3 lint`) so a regression fails the build instead of relying on someone running it locally.
  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback8.0 / 10Strong✓ Tool-verified

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

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

What to do

  • Add an approval/environment gate (required reviewers / protection rules) before production promotion.
P5 · DR & Backup4.0 / 10Weak✓ 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).
  • Enable purge protection / soft-delete (and prevent_destroy on critical resources) so data stores can't be lost to an accidental or malicious delete.
P6 · Release Hygiene10.0 / 10Exemplary✓ Tool-verified

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

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

P7 · Outbound HTTP resilience3.0 / 10Weak✓ Tool-verified

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

Method: Source scan: outbound HTTP clients and what bounds them — resilience handlers (Polly, AddStandardResilienceHandler) on .NET; on Go, the JVM, Python, JavaScript/TypeScript, Ruby, PHP, Rust, Elixir, Swift, Dart and Erlang, a timeout, deadline, retry or breaker beside each call, or a process-wide client default (a framework-wide deadline such as Drupal core's, Laravel's or actix's awc counts). Exhaustive, deterministic.

  • `http.Client{` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout. — pkg/gce-cloud-provider/compute/gce.go:481

What to do

  • Give every `http.Client` an explicit `Timeout` (never call `http.Get`/`http.Post` or `http.DefaultClient`, which have none), or build each request with `http.NewRequestWithContext` under a `context.WithTimeout`; add retry with back-off (`hashicorp/go-retryablehttp`) and a breaker (`sony/gobreaker`) around dependencies that fail.
X2 · Cancellation propagation4.0 / 10Weak✓ Tool-verified

Other · Code Health — Whether functions that make a cancellable request accept or pass on a context.Context (adoption curve).

Method: Roslyn scan: every async method (excluding framework-fixed overrides/Blazor handlers) checked for CancellationToken parameter presence. Deterministic, adoption percentage. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same question: every named async function that itself makes a request an AbortSignal can cancel (global `fetch`, axios and its file-local instances, ky, ofetch) counts, and it is compliant when its parameters or body name a signal or it hands one of its own parameters to the request as options; signatures a framework fixes (JSX event handlers, route and lifecycle exports, request-first handlers, `override`, `'use server'` modules, TanStack `mutationFn`) are exempt unless they take a signal. Deterministic, adoption percentage.

  • Only 0/3 functions that make a cancellable request (net/http, net.Dial) accept a context.Context or pass one on, so a request keeps running after whatever wanted it has given up — a cancelled request, a shutdown, an expired deadline. Take `ctx context.Context` as the first parameter and build the request with it (`http.NewRequestWithContext`, `DialContext`); where nothing could ever cancel the call, omitting it is a deliberate choice — judge against how the function is used.
  • `getGoogleCloudDisks` calls `http.NewRequest(…)` but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take `ctx context.Context` as the first parameter and build the request with it: `http.NewRequestWithContext(ctx, …)`, `(&net.Dialer{}).DialContext(ctx, …)`. (×2) — pkg/mount-manager/safe-mounter-v1_windows.go:352, pkg/mount-manager/safe-mounter-v1beta_windows.go:360
  • `token` calls `http.NewRequest(…)` but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take `ctx context.Context` as the first parameter and build the request with it: `http.NewRequestWithContext(ctx, …)`, `(&net.Dialer{}).DialContext(ctx, …)`. — pkg/gce-cloud-provider/compute/token_source.go:58

What to do

  • Thread a context.Context through functions that make requests, so the work stops when its caller gives up.
X26 · Unsynchronised callback handoff10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a value handed from a callback to the body that waits on it crosses on something built to be crossed — a `Queue<T>`/`List<T>`/`Dictionary<K,V>` written inside an event handler and read back outside it is mutated by two flows at once, and the semaphore or completion source beside it orders how MANY items exist while leaving the collection's own head, tail and backing array unprotected.

Method: Roslyn syntax: method, accessor, local-function and lambda bodies that declare BOTH a non-thread-safe generic collection (`Queue`/`Stack`/`List`/`Dictionary`/`HashSet`/`Sorted*`/`LinkedList`) and a synchronisation primitive (`SemaphoreSlim`/`TaskCompletionSource`/`ManualResetEvent(Slim)`/`AutoResetEvent`/`CountdownEvent`) as locals, then read for a `+=`-registered lambda that raises that primitive while the body outside every lambda waits on it — and, in that scope, a mutating call on the collection inside the lambda paired with a mention of it outside. Any `lock` in the scope abstains it. On a repository with no .NET source the same handoff is read in Java off the engine’s own token stream (test source sets, vendored and demonstration paths not): an `ArrayList`/`LinkedList`/`ArrayDeque`/`PriorityQueue`/`Hash*`/`LinkedHash*`/`Tree*` local and a `CountDownLatch`/`Semaphore`/`CompletableFuture` local, a lambda or anonymous class that raises the primitive and mutates the collection, and a wait outside it; any `synchronized` or `lock()` abstains the body. Because each of those primitives orders what the callback wrote before raising it, only a touch that provably overlaps the callback is convicted: one after the registration and before the next wait, or one in a loop registered-before, waiting on every pass and not declaring the collection. Deterministic, provable per finding. Advisory.

X27 · Collection changed while being enumerated10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a `for` loop leaves the `dict`, `set` or `deque` it is walking alone — CPython's iterators over those check that the collection has not changed size since the loop began, so a body that removes from (or empties) the very collection the loop is walking makes the next step raise `RuntimeError: dictionary changed size during iteration` and the remaining items are never seen. Whether a `for … range` leaves the slice or map it is walking alone — Go raises nothing, but the walk and the collection part: a range evaluates its slice once, so an element appended in the body is never visited and a removal by reslicing (`s = append(s[:i], s[i+1:]...)`, `slices.Delete`) shifts the next element under the index, which is then skipped while the last is read twice; a reslice, a reassignment or a sort leaves every later `s[i]` naming another element; and a map's order is unspecified, so deleting another key (or clearing the map) changes from run to run which entries the loop still sees.

Method: Roslyn syntax + semantics: `foreach` statements whose body calls a structural mutator (`Add`/`Remove`/`Clear`/`Insert`/…) on the very expression the loop is enumerating. Two arms. ARM A — the source is a concrete fragile BCL collection, or a live `Keys`/`Values` view over one, and the mutator resolves to that same collection's own member; concurrent and immutable collections and arrays are outside the population by construction, since their enumerators survive a structural change. ARM B — the source is an argument-less accessor CALL on a receiver whose body is in source: the accessor must return a stored field VERBATIM and a sibling member must structurally change that same field, both read off the implementations rather than from the members' names. A mutation the loop provably exits immediately after (`break`/`return`/`throw`/`goto`), or one written inside a nested loop or a lambda, is counted and never reported. Deterministic, provable per finding. Advisory.

X28 · Index access outside its own emptiness guard5.8 / 10Adequate✓ Tool-verified

Other · Code Health — Whether a condition that tests a value for emptiness indexes that same value only where the test holds — an `||` written one parenthesis too far to the left leaves an index access outside the guard beside it, so the empty case the guard exists to anticipate reaches the index and throws.

Method: Roslyn syntax only, no semantic model: the OUTERMOST `&&`/`||` of every boolean condition, read for a symbol the condition tests for emptiness (`string.IsNullOrEmpty`/`IsNullOrWhiteSpace`, a `Length`/`Count` comparison against a literal, `Any()`, a `Length`/`Count` pattern, or a comparison against `""`) and ALSO indexes. Each `symbol[...]` access is placed by a boolean-reachability walk from the access up to the outermost connective: an access is COVERED when some enclosing step has it in the right operand and the left operand, under the truth value that step forces, proves the symbol non-empty — a recursion over `&&`/`||` whose true- and false-directions are asymmetric. A finding needs BOTH an uncovered access and a covered one on the same symbol in the same condition, which is the agreeing twin that separates a misplaced parenthesis from an unrelated length test. Bare index accesses with no emptiness test in the condition are neither counted nor reported; a non-identifier receiver and a lambda nested inside the condition are outside the population. Deterministic, provable per finding. Advisory.

  • `shiftIndex` is the result of a search that answers -1 when nothing is found, and `allZones[shiftIndex:]` uses it as a bound with no test of `shiftIndex` in between. When the search misses, the bound is -1 and the access panics with `slice bounds out of range`. Test `shiftIndex < 0` (or use `strings.Cut`) before using it. — pkg/gce-pd-csi-driver/controller.go:4511
  • `shiftIndex` is the result of a search that answers -1 when nothing is found, and `allZones[:shiftIndex]` uses it as a bound with no test of `shiftIndex` in between. When the search misses, the bound is -1 and the access panics with `slice bounds out of range`. Test `shiftIndex < 0` (or use `strings.Cut`) before using it. — pkg/gce-pd-csi-driver/controller.go:4511

What to do

  • Each finding names the index access that escapes the guard and the line of the correctly bracketed access beside it. Compare the two: they differ only in where one parenthesis sits. Move it so the emptiness test brackets every access to that symbol — and if the value provably cannot be empty at this point, delete the test rather than leave a condition that guards one access and not its neighbour.
X3 · Exception handling7.2 / 10Strong✓ 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.

  • `deviceCache.AddVolume(tokens[1])` returns an error, and the statement drops it: when `deviceCache.AddVolume` fails nothing records it and the code after it runs as if it had succeeded. Check it (`if err := deviceCache.AddVolume(tokens[1]); err != nil { … }`) and return or log it with what was being done, or assign it to `_` with a comment saying why the failure cannot matter. — pkg/linkcache/devices_linux.go:72
  • `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. (×5) — pkg/gce-pd-csi-driver/cache.go:192, pkg/gce-pd-csi-driver/cache.go:826, pkg/gce-pd-csi-driver/cache.go:834, …
  • `if cacheErr, isCached := isCachingSetup(mainLvName); cacheErr != nil || isCached` handles a failure of `cacheErr` but reports `err`, which the earlier `if err != nil { return … }` already proved nil here: the real failure is lost and a nil error is reported (or returned as success) in its place. Report `cacheErr`. — pkg/gce-pd-csi-driver/cache.go:724
  • `readonly, _ := getReadOnlyFromCapabilities(req.GetVolumeCapabilities())` writes the call's error to `_` and then uses `readonly` as if the call succeeded. When `getReadOnlyFromCapabilities` fails, `readonly` is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using `readonly` (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line. (×2) — pkg/gce-pd-csi-driver/controller.go:729, pkg/gce-pd-csi-driver/controller.go:2798
  • `capBytes, _ := getRequestCapacity(capacityRange)` writes the call's error to `_` and then uses `capBytes` as if the call succeeded. When `getRequestCapacity` fails, `capBytes` is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using `capBytes` (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line. — pkg/gce-pd-csi-driver/controller.go:755
  • `multiWriter, _ = getMultiWriterFromCapabilities(req.GetVolumeCapabilities())` writes the call's error to `_` and then uses `multiWriter` as if the call succeeded. When `getMultiWriterFromCapabilities` fails, `multiWriter` is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using `multiWriter` (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line. — pkg/gce-pd-csi-driver/controller.go:759
  • `if err == nil` reports `err` on the one path where it is nil, and the path where the call failed goes on without ever reading it: the comparison is inverted. The real failure is lost and a nil error (or a panic on `err.Error()`) is reported in its place. Test `err != nil` here. — pkg/gce-pd-csi-driver/controller.go:770
  • `if err := k8sclient.UpdatePVAnnotations(ctx, pvName, map[string]k8sclient.PVAnnotationCondition{ constants.DiskTypeConversionOperationKey: {Value: constants.ConversionStateReconciling, Exists: true}, constants.DiskTypeConvertedToKey: {Value: convertedTo, Exists: true}, constants.DiskTypeConversionReconciliationIDKey: {Exists: false}, }, map[string]string{constants.DiskTypeConversionReconciliationIDKey: reconciliationID}, nil); err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. — pkg/gce-pd-csi-driver/controller.go:2387
  • `disk, _ := gceCS.CloudProvider.GetDisk(ctx, project, zonalVolKey)` writes the call's error to `_` and then uses `disk` as if the call succeeded. When `gceCS.CloudProvider.GetDisk` fails, `disk` is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using `disk` (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line. — pkg/gce-pd-csi-driver/controller.go:2643
  • `disk, _ := gceCS.CloudProvider.GetDisk(ctx, project, volKey)` writes the call's error to `_` and then uses `disk` as if the call succeeded. When `gceCS.CloudProvider.GetDisk` fails, `disk` is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using `disk` (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line. — pkg/gce-pd-csi-driver/controller.go:2676
  • `diskToUnpublish, _ := gceCS.CloudProvider.GetDisk(ctx, project, volKey)` writes the call's error to `_` and then uses `diskToUnpublish` as if the call succeeded. When `gceCS.CloudProvider.GetDisk` fails, `diskToUnpublish` is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using `diskToUnpublish` (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line. — pkg/gce-pd-csi-driver/controller.go:3195
  • `t, _ := time.Parse(time.RFC3339, snapshot.CreationTimestamp)` writes the call's error to `_` and then uses `t` as if the call succeeded. When `time.Parse` fails, `t` is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using `t` (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line. — pkg/gce-pd-csi-driver/controller.go:4297
  • `t, _ := time.Parse(time.RFC3339, image.CreationTimestamp)` writes the call's error to `_` and then uses `t` as if the call succeeded. When `time.Parse` fails, `t` is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using `t` (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line. — pkg/gce-pd-csi-driver/controller.go:4331
  • `ready, _ := isImageReady(image.Status)` writes the call's error to `_` and then uses `ready` as if the call succeeded. When `isImageReady` fails, `ready` is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using `ready` (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line. — pkg/gce-pd-csi-driver/controller.go:4347
  • `gceDriver.AddVolumeCapabilityAccessModes(vcam)` returns an error, and the statement drops it: when `gceDriver.AddVolumeCapabilityAccessModes` fails nothing records it and the code after it runs as if it had succeeded. Check it (`if err := gceDriver.AddVolumeCapabilityAccessModes(vcam); err != nil { … }`) and return or log it with what was being done, or assign it to `_` with a comment saying why the failure cannot matter. — pkg/gce-pd-csi-driver/gce-pd-driver.go:70
  • `gceDriver.AddControllerServiceCapabilities(csc)` returns an error, and the statement drops it: when `gceDriver.AddControllerServiceCapabilities` fails nothing records it and the code after it runs as if it had succeeded. Check it (`if err := gceDriver.AddControllerServiceCapabilities(csc); err != nil { … }`) and return or log it with what was being done, or assign it to `_` with a comment saying why the failure cannot matter. — pkg/gce-pd-csi-driver/gce-pd-driver.go:83
  • `gceDriver.AddNodeServiceCapabilities(ns)` returns an error, and the statement drops it: when `gceDriver.AddNodeServiceCapabilities` fails nothing records it and the code after it runs as if it had succeeded. Check it (`if err := gceDriver.AddNodeServiceCapabilities(ns); err != nil { … }`) and return or log it with what was being done, or assign it to `_` with a comment saying why the failure cannot matter. — pkg/gce-pd-csi-driver/gce-pd-driver.go:89
  • `readonly, _ := getReadOnlyFromCapability(volumeCapability)` writes the call's error to `_` and then uses `readonly` as if the call succeeded. When `getReadOnlyFromCapability` fails, `readonly` is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using `readonly` (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line. — pkg/gce-pd-csi-driver/node.go:465
  • `regexValue, _ := regexp.Compile(`^[\p{Ll}0-9_-]{0,63}$`)` writes the call's error to `_` and then uses `regexValue` as if the call succeeded. When `regexp.Compile` fails, `regexValue` is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using `regexValue` (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line. — pkg/convert/convert.go:60
  • `regexKey, _ := regexp.Compile(`^\p{Ll}[\p{Ll}0-9_-]{0,62}$`)` writes the call's error to `_` and then uses `regexKey` as if the call succeeded. When `regexp.Compile` fails, `regexKey` is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using `regexKey` (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line. — pkg/convert/convert.go:79
  • `LoggedError(msg, errs[0])` returns an error, and the statement drops it: when `LoggedError` fails nothing records it and the code after it runs as if it had succeeded. Check it (`if err := LoggedError(msg, errs[0]); err != nil { … }`) and return or log it with what was being done, or assign it to `_` with a comment saying why the failure cannot matter. — pkg/common/utils.go:384

What to do

  • Discarded error (an error-returning call as a bare statement)
X30 · Support guard that admits what it rejects10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a guard written as a NEGATED `||` says what its author meant — `!(a || b || x != k)` is `!a && !b && x == k` by De Morgan, so a bail-out that mixes capabilities the code needs with a fault it refuses turns inside out: it fires only where the capabilities are ABSENT, and lets every value the fault term names walk straight into the body that cannot handle it.

Method: Roslyn syntax only, no semantic model: every logical-not whose operand is a parenthesised `||` chain of two or more disjuncts, flattened (a left-nested `a || b || c` read once would see `(a || b)` as one disjunct). A site enters the population on that shape alone. A finding additionally needs the disjuncts to DISAGREE in polarity: at least one bare boolean read — an identifier or member access, never an invocation, which is a predicate rather than a capability flag — and at least one `x != <constant>`, the only form that negates into an exact-value pin (`== null` negates into a looser requirement and is outside the fault set). Consistently-polarised disjunctions, all-fault or all-capability, are counted and never reported; a negated `&&` is outside the population entirely. No same-receiver gate: it was measured to cost a real defect and remove no false positive. Deterministic, provable per finding. Advisory.

Reference — by lens

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

LensScoreRatingImpact
Code Health59.3Adequate — gated by D2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture98.0ExemplaryStrongest area.
Maturity53.0Adequate — gated by M2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness57.9Adequate — gated by P7Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security56.5Adequate — gated by D29, D31Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Unscored — 1 check(s) recorded observations but carry no score

These checks ran and found something, but they do not carry a score — either by design (an advisory check reports evidence rather than grading it) or because they could not be scored here. They are excluded from the score for that reason, not because there was nothing to see.

  • X10 Duplicated predicate — 1 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 3 control(s) we could not find positive evidence for

These checks grade a working control, and the repository shows no evidence of one. That is deliberately not scored as a zero: a repository cannot show an ops runbook, a database TTL or an infrastructure-side audit log, so absence of evidence here is not evidence the control is missing. It is also not a statement that the check is irrelevant to this codebase — the thing it grades applies; we just could not see it. Excluded from the score either way.

  • C3 Audit Trail — Not assessed: these audit controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks audit controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C4 Data Retention — Not assessed: these retention controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks retention controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C5 Data-Subject Rights — Not assessed: these data-subject rights controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks data-subject rights controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
Not included — 64 check(s) not relevant to this codebase

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

  • AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
  • AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
  • AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
  • AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
  • AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
  • AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
  • AX1 Captive dependencies — Not applicable: this repository's Go imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's; this repository's Python imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's.
  • AX5 Architecture & structure — not assessed — architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX7 Slice cohesion — not applicable — not a vertical-slice architecture
  • AX8 Test isolation — no test/production split to check
  • AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
  • AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • AXR1 Runtime accessibility — docker build failed (exit 1) — 164 | >>> FROM gcr.io/distroless/base-debian13 AS distroless-base 165 | 166 | # The distroless amd64 image has a target triplet of x86_64 -------------------- ERROR: failed to solve: gcr.io/distroless/base-debian13: failed to resolve source metadata for gcr.io/distroless/base-debian13:latest: failed to do request: Head "https://gcr.io/v2/distroless/base-debian13/manifests/latest": Forbidden; likely cause (our sandbox): an image the REDACTED builds FROM could not be fetched: our sandbox reaches registries only through its pull-through mirror, and the mirror did not serve it. This is a limit of our sandbox, not of your repository; runtime evidence skipped This is a statement about this run, not a statement about your application: nothing here says the surface is inaccessible, only that it was never rendered.
  • C1 Data Protection — Not assessed: these personal data controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks personal data controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C2 Access Controls — Not assessed: these authorization controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • D10 Test Quality — ~33539 lines of test source are present (.go) but no test cases reached the test census for this repository — no test root we could resolve declared them, or the files we read declare no cases in a test framework we recognise — so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
  • D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
  • D21 Naming Consistency — D21 withholds its case and prefix conventions rows: 2 candidate(s) found and not reported.
  • D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ sibling projects each declaring an entity of their own or taking another project's integration events. Aggregate roots were found in only one source directory (pkg), which is a layered codebase, not two contexts. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
  • D24 Comment Value — D24 reads C#, Visual Basic, TypeScript and JavaScript comments only — this repository's production source is .go, .py, which was left unread. Not scored: this is a gap in the analyzer, not a verdict about this repository.
  • D25 ADR Conformance — no ADRs to check
  • D26 Project Cohesion — D26 could not read how the parts of this repository's one build unit reference each other, so its cohesion was not measured. Not scored: this is a gap in the analyzer, not a verdict about this repository.
  • D32 Data Compliance (PII/GDPR) — 1 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
  • D34 Knowledge Freshness — knowledge concentrated in recent work — freshness signal contradicted by repo activity
  • D36 Supply-chain Provenance & Signing — No CI/build pipeline found (.github/.forgejo/.gitea workflows, .circleci, .buildkite, .woodpecker, .teamcity, .gitlab-ci.yml, .travis.yml, bitbucket-pipelines.yml, .drone.yml, .cirrus.yml, .woodpecker.yml, appveyor.yml, azure-pipelines*.yml, .pipelines/, .vsts-ci/, .azuredevops/, Jenkinsfile); there is no build to attest provenance for.
  • D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
  • D5 Coupling — Not applicable — this Go build ships 1 production module(s), so there is no coupling BETWEEN modules to measure. (Its test and non-production modules are not part of the shipped graph.)
  • D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
  • DM1 Domain Modelling — applicable but not scored (2 signals for this style, 2 needed — the count is met but a required primary signal is absent): 1 aggregate root(s) (types guarding their own state behind command methods — this language has no AggregateRoot base to inherit); 1 strongly-typed id(s)
  • ED1 Event-Driven — not scored — this repository shows only 1 of the 3 signals this lens looks for (1 event-sourced shape(s) (event folds / event-recording aggregates))
  • ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
  • ES1 Event Sourcing — not scored — this repository shows only 1 of the 3 signals this lens looks for (1 Go aggregate(s) recording domain events (own events-slice append / raise-record))
  • GD1 Unfinished & placeholder code — no source files were read — this check reads C#, F#, JavaScript/TypeScript, Dart, Ruby, Scala, Rust and Java, and none was read for this repository's product. That is a limit of the analyzer, not a finding about your code.
  • IC1 Incompleteness & stubs — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • P12 CI test-gate honesty — Reported, not scored — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
  • P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
  • P9 Domain vs controller coverage — coverage data present for 53 file(s), but no domain-layer files were identified: no covered file's path contains any of the markers this check keys on (/domain/, /aggregates/, /valueobjects/, /domainmodel/, .domain/, /entities/), which are matched case-insensitively anywhere in the path. With no domain partition there is nothing to compare the web/controller layer against — if this repository keeps its business rules under a folder named none of those, that naming is what the check cannot see, not the domain logic.
  • PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for a `func BenchmarkXxx(b *testing.B)` in any `_test.go` file, and for a `*benchmark*` script that this repository's CI runs. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted.
  • PF2 Allocation hygiene — Not scored: this check counted allocation-aware idioms (Span, pools, stackalloc) per line, which describes what kind of code a repository is rather than whether it has an allocation problem, so it was withdrawn. Nothing here is a finding about your code.
  • PF3 Async & latency hygiene — Not applicable: Go has no async/await function colour, so there is no asynchronous code for a blocking call to stall.
  • S1 Web-Security Posture — Not assessed: these web-security controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks web-security controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • SC1 Supply-chain hygiene — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X1 Async correctness — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X12 Unreachable branch — X12 reached only 2% of this repository's production lines — go (17,812 lines) was left unread. Not scored: a score over a minority of the product would be published as the whole of it.
  • X13 Undrained process stream — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X14 Bypassable address classification — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X15 Unvalidated length from an untrusted reader — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X16 Unfloored truncation loop — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X17 Uncapped recursion over a caller-supplied document — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X18 Disposal-pattern correctness — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X19 Unrestored process-global state — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X20 Mistyped argument guard — This check asks whether an argument guard reports an EMPTY value as a NULL one, which needs a language that throws a null-specific argument exception — .NET's ArgumentNullException, the JVM's NullPointerException, Dart's ArgumentError.notNull. This repository contains none of those languages: the ones it is written in have a single exception for a bad argument, so there is no pair of exceptions to confuse and nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
  • X21 Side-effecting pattern guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X22 Contradicted release guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X23 Unguarded diagnostic materialisation — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X24 Document value interpolated into markup unescaped — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X25 Inert configuration knob — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X29 Per-element action decided by a fixed element — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
  • X4 Structured logging — This check asks whether log calls keep a message's values apart from its text, which needs a logger that can carry them as fields. This repository's Go was read, and it logs through none: the standard library's `log` takes one finished line, or it makes no log call outside its tests at all, so an assembled message there loses nothing the API could have kept (as with log4net in C#). Calls through log/slog, zap, logrus, zerolog, hclog, go-kit's log or logr would be judged.
  • X5 Nullable reference types — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X7 Silent fallback defaults — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.

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.

Critical — 26 finding(s)
D31 · IaC & Container Security · High IaC · ×19
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
D31 · IaC & Container Security · Critical IaC · ×1
  • REDACTED
Serious — 447 finding(s)
D31 · IaC & Container Security · Medium IaC · ×184
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • + 159 more in this group — see findings.md.
D17 · Explicit Debt · TodoComment · ×32
  • TodoComment test/sanity/sanity_test.go:120 — // TODO(#818): Fix failing tests and remove test skip flag.
  • TodoComment test/k8s-integration/driver.go:31 — // TODO (#138): in a local environment this is going to modify the actual kustomize files.
  • TodoComment test/e2e/tests/multi_zone_e2e_test.go:64 — // TODO: Remove this once hyperdisk-ml SKU is supported — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment release-tools/contrib/get_supported_version_csi-sidecar.py:161 — # TODO : generate proper doc output for the tables of: https://kubernetes-csi.github.io/docs/sidecar-containers.html
  • TodoComment pkg/mount-manager/safe-mounter-v1_windows.go:107 — // TODO: Confirm that fstype is empty. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment pkg/mount-manager/safe-mounter-v1beta_windows.go:107 — // TODO: Confirm that fstype is empty. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment pkg/mount-manager/safe-mounter-v1_windows.go:449 — // TODO: consider partitions and choose the right partition. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment pkg/mount-manager/safe-mounter-v1beta_windows.go:452 — // TODO: consider partitions and choose the right partition. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment pkg/mount-manager/safe-mounter-v1_windows.go:464 — // TODO (jingxu97): Accept the filesystem and other options — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment pkg/mount-manager/safe-mounter-v1beta_windows.go:467 — // TODO (jingxu97): Accept the filesystem and other options — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment pkg/gce-pd-csi-driver/controller.go:2644 — // TODO: Consolidate the parameters here, rather than taking the last. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment pkg/gce-pd-csi-driver/controller.go:2745 — // TODO(#253): Check volume capability matches for ALREADY_EXISTS
  • TodoComment pkg/gce-pd-csi-driver/controller.go:4411 — // TODO(#253): Check volume capability matches for ALREADY_EXISTS
  • TodoComment pkg/gce-pd-csi-driver/node.go:383 — // TODO(#253): Check volume capability matches for ALREADY_EXISTS
  • TodoComment pkg/gce-pd-csi-driver/controller.go:3589 — // TODO(#809): Implement logic and advertise related capabilities.
  • TodoComment pkg/gce-pd-csi-driver/controller.go:4314 — // TODO: If the snapshot is in "FAILED" state we need to think through what this — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment pkg/gce-pd-csi-driver/gce-pd-driver.go:202 — // TODO(#34): Only start specific servers based on a flag.
  • TodoComment pkg/gce-pd-csi-driver/node.go:174 — // TODO(#95): check if mount is compatible. Return OK if it is, or appropriate error.
  • TodoComment pkg/gce-pd-csi-driver/node.go:295 — // TODO: check the logic here again. If mntErr == nil & notMnt == false, it means volume is actually mounted. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment pkg/gce-pd-csi-driver/node.go:885 — // TODO(#328): Use requested size in resize if provided
  • TodoComment pkg/gce-pd-csi-driver/node.go:899 — // TODO(dyzz) Some sort of formatted volume could also check the fs size. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment pkg/gce-pd-csi-driver/node_test.go:1494 — // TODO: This test is too brittle due to the fakeexec package not being — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment pkg/gce-pd-csi-driver/node_test.go:1507 — // TODO: Add tests/functionality for non-existent volume — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment pkg/gce-pd-csi-driver/node_test.go:1635 — // TODO(dyzz) add the command list to here. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment pkg/gce-cloud-provider/compute/gce-compute.go:1662 — // TODO(#461) The whole driver could benefit from standardized usage of the
  • + 7 more in this group — see findings.md.
D8 · Code Coverage · Low coverage · ×15
  • Low coverage: cmd/default-sc-rollback-handler/main.go cmd/default-sc-rollback-handler/main.go:1 — 0.0% line coverage (0/29).
  • Low coverage: REDACTED REDACTED:1 — 0.0% line coverage (0/363).
  • Low coverage: cmd/gce-pd-node-labeler/main.go cmd/gce-pd-node-labeler/main.go:1 — 0.0% line coverage (0/47).
  • Low coverage: pkg/deviceutils/device-utils.go pkg/deviceutils/device-utils.go:1 — 12.1% line coverage (25/207).
  • Low coverage: pkg/deviceutils/device-utils_linux.go pkg/deviceutils/device-utils_linux.go:1 — 0.0% line coverage (0/13).
  • Low coverage: pkg/gce-cloud-provider/compute/gce-compute.go pkg/gce-cloud-provider/compute/gce-compute.go:1 — 11.7% line coverage (151/1292).
  • Low coverage: pkg/gce-cloud-provider/compute/gce.go pkg/gce-cloud-provider/compute/gce.go:1 — 30.3% line coverage (95/314).
  • Low coverage: pkg/gce-cloud-provider/compute/tenancy/informer.go pkg/gce-cloud-provider/compute/tenancy/informer.go:1 — 20.0% line coverage (14/70).
  • Low coverage: pkg/gce-cloud-provider/compute/token_source.go pkg/gce-cloud-provider/compute/token_source.go:1 — 0.0% line coverage (0/89).
  • Low coverage: pkg/gce-cloud-provider/metadata/metadata.go pkg/gce-cloud-provider/metadata/metadata.go:1 — 0.0% line coverage (0/35).
  • Low coverage: pkg/gce-pd-csi-driver/trace.go pkg/gce-pd-csi-driver/trace.go:1 — 0.0% line coverage (0/20).
  • Low coverage: REDACTED REDACTED:1 — 49.4% line coverage (44/89).
  • Low coverage: pkg/mount-manager/safe-mounter_linux.go pkg/mount-manager/safe-mounter_linux.go:1 — 0.0% line coverage (0/3).
  • Low coverage: pkg/mount-manager/statter_linux.go pkg/mount-manager/statter_linux.go:1 — 34.3% line coverage (12/35).
  • Low coverage: release-tools/filter-junit.go release-tools/filter-junit.go:1 — 0.0% line coverage (0/52).
X3 · Exception handling · Discarded error (assigned to `_`, then its result used) · ×13
  • Discarded error (assigned to `_`, then its result used) pkg/gce-pd-csi-driver/controller.go:729 — `readonly, _ := getReadOnlyFromCapabilities(req.GetVolumeCapabilities())` writes the call's error to `_` and then uses `readonly` as if the call succeeded. When `getReadOnlyFromCapabilities` fails, `readonly` is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using `readonly` (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line.
  • Discarded error (assigned to `_`, then its result used) pkg/gce-pd-csi-driver/controller.go:755 — `capBytes, _ := getRequestCapacity(capacityRange)` writes the call's error to `_` and then uses `capBytes` as if the call succeeded. When `getRequestCapacity` fails, `capBytes` is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using `capBytes` (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line.
  • Discarded error (assigned to `_`, then its result used) pkg/gce-pd-csi-driver/controller.go:759 — `multiWriter, _ = getMultiWriterFromCapabilities(req.GetVolumeCapabilities())` writes the call's error to `_` and then uses `multiWriter` as if the call succeeded. When `getMultiWriterFromCapabilities` fails, `multiWriter` is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using `multiWriter` (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line.
  • Discarded error (assigned to `_`, then its result used) pkg/gce-pd-csi-driver/controller.go:2643 — `disk, _ := gceCS.CloudProvider.GetDisk(ctx, project, zonalVolKey)` writes the call's error to `_` and then uses `disk` as if the call succeeded. When `gceCS.CloudProvider.GetDisk` fails, `disk` is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using `disk` (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line.
  • Discarded error (assigned to `_`, then its result used) pkg/gce-pd-csi-driver/controller.go:2676 — `disk, _ := gceCS.CloudProvider.GetDisk(ctx, project, volKey)` writes the call's error to `_` and then uses `disk` as if the call succeeded. When `gceCS.CloudProvider.GetDisk` fails, `disk` is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using `disk` (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line.
  • Discarded error (assigned to `_`, then its result used) pkg/gce-pd-csi-driver/controller.go:2798 — `readonly, _ := getReadOnlyFromCapabilities(req.GetVolumeCapabilities())` writes the call's error to `_` and then uses `readonly` as if the call succeeded. When `getReadOnlyFromCapabilities` fails, `readonly` is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using `readonly` (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line.
  • Discarded error (assigned to `_`, then its result used) pkg/gce-pd-csi-driver/controller.go:3195 — `diskToUnpublish, _ := gceCS.CloudProvider.GetDisk(ctx, project, volKey)` writes the call's error to `_` and then uses `diskToUnpublish` as if the call succeeded. When `gceCS.CloudProvider.GetDisk` fails, `diskToUnpublish` is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using `diskToUnpublish` (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line.
  • Discarded error (assigned to `_`, then its result used) pkg/gce-pd-csi-driver/controller.go:4297 — `t, _ := time.Parse(time.RFC3339, snapshot.CreationTimestamp)` writes the call's error to `_` and then uses `t` as if the call succeeded. When `time.Parse` fails, `t` is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using `t` (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line.
  • Discarded error (assigned to `_`, then its result used) pkg/gce-pd-csi-driver/controller.go:4331 — `t, _ := time.Parse(time.RFC3339, image.CreationTimestamp)` writes the call's error to `_` and then uses `t` as if the call succeeded. When `time.Parse` fails, `t` is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using `t` (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line.
  • Discarded error (assigned to `_`, then its result used) pkg/gce-pd-csi-driver/controller.go:4347 — `ready, _ := isImageReady(image.Status)` writes the call's error to `_` and then uses `ready` as if the call succeeded. When `isImageReady` fails, `ready` is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using `ready` (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line.
  • Discarded error (assigned to `_`, then its result used) pkg/gce-pd-csi-driver/node.go:465 — `readonly, _ := getReadOnlyFromCapability(volumeCapability)` writes the call's error to `_` and then uses `readonly` as if the call succeeded. When `getReadOnlyFromCapability` fails, `readonly` is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using `readonly` (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line.
  • Discarded error (assigned to `_`, then its result used) pkg/convert/convert.go:60 — `regexValue, _ := regexp.Compile(`^[\p{Ll}0-9_-]{0,63}$`)` writes the call's error to `_` and then uses `regexValue` as if the call succeeded. When `regexp.Compile` fails, `regexValue` is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using `regexValue` (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line.
  • Discarded error (assigned to `_`, then its result used) pkg/convert/convert.go:79 — `regexKey, _ := regexp.Compile(`^\p{Ll}[\p{Ll}0-9_-]{0,62}$`)` writes the call's error to `_` and then uses `regexKey` as if the call succeeded. When `regexp.Compile` fails, `regexKey` is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using `regexKey` (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D30 · Dependency Vulnerabilities · Medium CVE · ×6
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D4 · Code Duplication · Duplicated block (8 lines × 2) · ×6
  • Duplicated block (8 lines × 2) pkg/gce-cloud-provider/compute/gce-compute.go:172 — pkg/gce-cloud-provider/compute/gce-compute.go:172-179 | pkg/gce-cloud-provider/compute/gce-compute.go:259-266 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (8 lines × 2) pkg/gce-pd-csi-driver/controller.go:3889 — pkg/gce-pd-csi-driver/controller.go:3889-3896 | pkg/gce-pd-csi-driver/controller.go:3940-3947 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (8 lines × 2) pkg/gce-pd-csi-driver/node.go:222 — pkg/gce-pd-csi-driver/node.go:222-229 | pkg/gce-pd-csi-driver/node.go:374-381 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a `defer`-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead — before the caller uses what it releases — so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register.
  • Duplicated block (8 lines × 2) pkg/k8sclient/client.go:309 — pkg/k8sclient/client.go:309-316 | pkg/k8sclient/client.go:322-329 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/k8sclient/client.go:309` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (8 lines × 2) pkg/controller/taint/taint_remover.go:157 — pkg/controller/taint/taint_remover.go:157-164 | pkg/webhook/taint/node_taint.go:112-119 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (8 lines × 2) pkg/gce-pd-csi-driver/controller.go:4297 — pkg/gce-pd-csi-driver/controller.go:4297-4304 | pkg/gce-pd-csi-driver/controller.go:4331-4338 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
X3 · Exception handling · Swallowed exception (caught, then discarded) · ×6
  • Swallowed exception (caught, then discarded) pkg/gce-pd-csi-driver/cache.go:192 — `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) pkg/gce-pd-csi-driver/cache.go:826 — `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) pkg/gce-pd-csi-driver/cache.go:834 — `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) pkg/gce-pd-csi-driver/cache.go:865 — `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) pkg/gce-pd-csi-driver/controller.go:2375 — `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
  • Swallowed exception (caught, then discarded) pkg/gce-pd-csi-driver/controller.go:2387 — `if err := k8sclient.UpdatePVAnnotations(ctx, pvName, map[string]k8sclient.PVAnnotationCondition{ constants.DiskTypeConversionOperationKey: {Value: constants.ConversionStateReconciling, Exists: true}, constants.DiskTypeConvertedToKey: {Value: convertedTo, Exists: true}, constants.DiskTypeConversionReconciliationIDKey: {Exists: false}, }, map[string]string{constants.DiskTypeConversionReconciliationIDKey: reconciliationID}, nil); err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×5
  • Duplicated block (11 lines × 2) pkg/gce-pd-csi-driver/controller.go:1996 — pkg/gce-pd-csi-driver/controller.go:1996-2006 | pkg/gce-pd-csi-driver/controller.go:2278-2288 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/gce-pd-csi-driver/controller.go:1996` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `string` to `pvName` in one and `cancelReason` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (11 lines × 2) pkg/mount-manager/safe-mounter-v1_windows.go:244 — pkg/mount-manager/safe-mounter-v1_windows.go:244-254 | pkg/mount-manager/safe-mounter-v1beta_windows.go:241-251 — before extracting anything, compare `pkg/mount-manager/safe-mounter-v1_windows.go` and `pkg/mount-manager/safe-mounter-v1beta_windows.go` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (11 lines × 2) pkg/gce-pd-csi-driver/controller.go:3037 — pkg/gce-pd-csi-driver/controller.go:3037-3049 | pkg/gce-pd-csi-driver/controller.go:3069-3079 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) pkg/mount-manager/safe-mounter-v1_windows.go:312 — pkg/mount-manager/safe-mounter-v1_windows.go:312-322 | pkg/mount-manager/safe-mounter-v1beta_windows.go:320-330 — before extracting anything, compare `pkg/mount-manager/safe-mounter-v1_windows.go` and `pkg/mount-manager/safe-mounter-v1beta_windows.go` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/mount-manager/safe-mounter-v1_windows.go:312` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) pkg/gce-pd-csi-driver/controller.go:3900 — pkg/gce-pd-csi-driver/controller.go:3900-3910 | pkg/gce-pd-csi-driver/controller.go:3951-3961 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/gce-pd-csi-driver/controller.go:3900` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (7 lines × 2) · ×5
  • Duplicated block (7 lines × 2) pkg/gce-cloud-provider/compute/gce-compute.go:1725 — pkg/gce-cloud-provider/compute/gce-compute.go:1725-1731 | pkg/gce-cloud-provider/compute/gce-compute.go:1732-1738 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/gce-cloud-provider/compute/gce-compute.go:1725` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) pkg/gce-pd-csi-driver/controller.go:3880 — pkg/gce-pd-csi-driver/controller.go:3880-3886 | pkg/gce-pd-csi-driver/controller.go:3931-3937 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/gce-pd-csi-driver/controller.go:3880` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (7 lines × 2) pkg/gce-pd-csi-driver/node.go:343 — pkg/gce-pd-csi-driver/node.go:343-349 | pkg/gce-pd-csi-driver/node.go:667-673 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/gce-pd-csi-driver/node.go:343` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a `defer`-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead — before the caller uses what it releases — so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register.
  • Duplicated block (7 lines × 2) pkg/gce-pd-csi-driver/controller.go:2717 — pkg/gce-pd-csi-driver/controller.go:2717-2723 | pkg/gce-pd-csi-driver/controller.go:3125-3131 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/gce-pd-csi-driver/controller.go:2717` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (7 lines × 2) pkg/gce-pd-csi-driver/controller.go:3533 — pkg/gce-pd-csi-driver/controller.go:3533-3539 | pkg/gce-pd-csi-driver/controller.go:4161-4167 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/gce-pd-csi-driver/controller.go:3533` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
X3 · Exception handling · Discarded error (an error-returning call as a bare statement) · ×5
  • Discarded error (an error-returning call as a bare statement) pkg/linkcache/devices_linux.go:72 — `deviceCache.AddVolume(tokens[1])` returns an error, and the statement drops it: when `deviceCache.AddVolume` fails nothing records it and the code after it runs as if it had succeeded. Check it (`if err := deviceCache.AddVolume(tokens[1]); err != nil { … }`) and return or log it with what was being done, or assign it to `_` with a comment saying why the failure cannot matter.
  • Discarded error (an error-returning call as a bare statement) pkg/gce-pd-csi-driver/gce-pd-driver.go:70 — `gceDriver.AddVolumeCapabilityAccessModes(vcam)` returns an error, and the statement drops it: when `gceDriver.AddVolumeCapabilityAccessModes` fails nothing records it and the code after it runs as if it had succeeded. Check it (`if err := gceDriver.AddVolumeCapabilityAccessModes(vcam); err != nil { … }`) and return or log it with what was being done, or assign it to `_` with a comment saying why the failure cannot matter.
  • Discarded error (an error-returning call as a bare statement) pkg/gce-pd-csi-driver/gce-pd-driver.go:83 — `gceDriver.AddControllerServiceCapabilities(csc)` returns an error, and the statement drops it: when `gceDriver.AddControllerServiceCapabilities` fails nothing records it and the code after it runs as if it had succeeded. Check it (`if err := gceDriver.AddControllerServiceCapabilities(csc); err != nil { … }`) and return or log it with what was being done, or assign it to `_` with a comment saying why the failure cannot matter.
  • Discarded error (an error-returning call as a bare statement) pkg/gce-pd-csi-driver/gce-pd-driver.go:89 — `gceDriver.AddNodeServiceCapabilities(ns)` returns an error, and the statement drops it: when `gceDriver.AddNodeServiceCapabilities` fails nothing records it and the code after it runs as if it had succeeded. Check it (`if err := gceDriver.AddNodeServiceCapabilities(ns); err != nil { … }`) and return or log it with what was being done, or assign it to `_` with a comment saying why the failure cannot matter.
  • Discarded error (an error-returning call as a bare statement) pkg/common/utils.go:384 — `LoggedError(msg, errs[0])` returns an error, and the statement drops it: when `LoggedError` fails nothing records it and the code after it runs as if it had succeeded. Check it (`if err := LoggedError(msg, errs[0]); err != nil { … }`) and return or log it with what was being done, or assign it to `_` with a comment saying why the failure cannot matter.
D3 · God Classes · FileTooLong · ×4
  • FileTooLong: gce-pd-csi-driver/controller.go pkg/gce-pd-csi-driver/controller.go — FileTooLong — 2727 significant lines (blank, comment-only and punctuation-only lines excluded), about 80% of them inside a single declaration: GCEControllerServer (82 blocks, 57-4704). The bar is 500 significant lines; this is 2227 over it, 5.45× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: compute/gce-compute.go pkg/gce-cloud-provider/compute/gce-compute.go — FileTooLong — 1272 significant lines (blank, comment-only and punctuation-only lines excluded), about 68% of them inside a single declaration: CloudProvider (60 blocks, 151-1986). The bar is 500 significant lines; this is 772 over it, 2.54× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: gce-pd-csi-driver/cache.go pkg/gce-pd-csi-driver/cache.go — FileTooLong — 767 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 267 over it, 1.53× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: gce-pd-csi-driver/node.go pkg/gce-pd-csi-driver/node.go — FileTooLong — 600 significant lines (blank, comment-only and punctuation-only lines excluded), about 79% of them inside a single declaration: GCENodeServer (16 blocks, 51-1029). The bar is 500 significant lines; this is 100 over it, 1.20× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
D4 · Code Duplication · Duplicated block (10 lines × 2) · ×4
  • Duplicated block (10 lines × 2) pkg/gce-pd-csi-driver/controller.go:1812 — pkg/gce-pd-csi-driver/controller.go:1812-1821 | pkg/gce-pd-csi-driver/controller.go:1847-1856 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/gce-pd-csi-driver/controller.go:1812` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a `defer`-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead — before the caller uses what it releases — so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register.
  • Duplicated block (10 lines × 2) pkg/gce-pd-csi-driver/controller.go:3964 — pkg/gce-pd-csi-driver/controller.go:3964-3973 | pkg/gce-pd-csi-driver/controller.go:4019-4028 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/gce-pd-csi-driver/controller.go:3964` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) pkg/gce-cloud-provider/compute/fake-gce.go:657 — pkg/gce-cloud-provider/compute/fake-gce.go:657-666 | pkg/gce-cloud-provider/compute/gce-compute.go:1250-1259 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind `string` to `imageName` in one and `project` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (10 lines × 2) pkg/mount-manager/safe-mounter-v1_windows.go:509 — pkg/mount-manager/safe-mounter-v1_windows.go:509-518 | pkg/mount-manager/safe-mounter-v1beta_windows.go:512-521 — before extracting anything, compare `pkg/mount-manager/safe-mounter-v1_windows.go` and `pkg/mount-manager/safe-mounter-v1beta_windows.go` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D3 · God Classes · TooManyMethods · ×3
  • TooManyMethods: GCEControllerServer pkg/gce-pd-csi-driver/controller.go:57 — TooManyMethods — 83 methods, declared across 2 files: gce-pd-csi-driver/controller.go (81), gce-pd-csi-driver/cleanup.go (2). The bar is 30 methods; this is 53 over it, 2.77× the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: CloudProvider pkg/gce-cloud-provider/compute/gce.go:127 — TooManyMethods — 60 methods. The bar is 30 methods; this is 30 over it, 2.00× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyMethods: FakeCloudProvider pkg/gce-cloud-provider/compute/fake-gce.go:56 — TooManyMethods — 45 methods. The bar is 30 methods; this is 15 over it, 1.50× the bar. Most of these members implement compute.GCECompute (33 of 45 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member.
D4 · Code Duplication · Edited copy of a member (26 corresponding lines) · ×3
  • Edited copy of a member (26 corresponding lines) pkg/gce-cloud-provider/compute/gce-compute.go:1592 — pkg/gce-cloud-provider/compute/gce-compute.go:1592-1617 | pkg/gce-cloud-provider/compute/gce-compute.go:1808-1833 — These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (26 corresponding lines) pkg/gce-cloud-provider/compute/fake-gce.go:527 — pkg/gce-cloud-provider/compute/fake-gce.go:527-552 | pkg/gce-cloud-provider/compute/fake-gce.go:608-636 — These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (26 corresponding lines) pkg/mount-manager/safe-mounter-v1_windows.go:300 — pkg/mount-manager/safe-mounter-v1_windows.go:300-325 | pkg/mount-manager/safe-mounter-v1beta_windows.go:308-333 — These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (18 corresponding lines) · ×3
  • Edited copy of a member (18 corresponding lines) pkg/gce-pd-csi-driver/controller.go:4735 — pkg/gce-pd-csi-driver/controller.go:4735-4759 | pkg/gce-pd-csi-driver/controller.go:4761-4778 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (18 corresponding lines) pkg/mount-manager/safe-mounter-v1_windows.go:105 — pkg/mount-manager/safe-mounter-v1_windows.go:105-122 | pkg/mount-manager/safe-mounter-v1beta_windows.go:105-125 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (18 corresponding lines) pkg/mount-manager/safe-mounter-v1_windows.go:46 — pkg/mount-manager/safe-mounter-v1_windows.go:46-63 | pkg/mount-manager/safe-mounter-v1beta_windows.go:46-63 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
X2 · Cancellation propagation · Function without context.Context · ×3
  • Function without context.Context: getGoogleCloudDisks pkg/mount-manager/safe-mounter-v1_windows.go:352 — `getGoogleCloudDisks` calls `http.NewRequest(…)` but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take `ctx context.Context` as the first parameter and build the request with it: `http.NewRequestWithContext(ctx, …)`, `(&net.Dialer{}).DialContext(ctx, …)`.
  • Function without context.Context: getGoogleCloudDisks pkg/mount-manager/safe-mounter-v1beta_windows.go:360 — `getGoogleCloudDisks` calls `http.NewRequest(…)` but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take `ctx context.Context` as the first parameter and build the request with it: `http.NewRequestWithContext(ctx, …)`, `(&net.Dialer{}).DialContext(ctx, …)`.
  • Function without context.Context: token pkg/gce-cloud-provider/compute/token_source.go:58 — `token` calls `http.NewRequest(…)` but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take `ctx context.Context` as the first parameter and build the request with it: `http.NewRequestWithContext(ctx, …)`, `(&net.Dialer{}).DialContext(ctx, …)`.
D15 · Churn × Complexity Hotspots · Hotspot · ×2
  • Hotspot: pkg/gce-pd-csi-driver/controller.go pkg/gce-pd-csi-driver/controller.go:925 — pkg/gce-pd-csi-driver/controller.go changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in GCEControllerServer.ControllerModifyVolume at line 925. 5 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 19:47:28 +00:00' --until='2026-11-16 19:47:28 +00:00' --full-history --no-merges -- pkg/gce-pd-csi-driver/controller.go`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: REDACTED REDACTED:165 — REDACTED changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in main.handle at line 165. 1 of those changes was a fix/bug commit, and the other 3 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-18 19:47:28 +00:00' --until='2026-11-16 19:47:28 +00:00' --full-history --no-merges -- REDACTED`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
D3 · God Classes · ClassTooLong · ×2
  • ClassTooLong: GCEControllerServer pkg/gce-pd-csi-driver/controller.go:57 — ClassTooLong — 2176 significant lines (blank, comment-only and punctuation-only lines excluded), 83 methods, 82 blocks, lines 57-4704. The bar is 400 significant lines; this is 1776 over it, 5.44× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • ClassTooLong: GCENodeServer pkg/gce-pd-csi-driver/node.go:51 — ClassTooLong — 473 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods, 16 blocks, lines 51-1029. The bar is 400 significant lines; this is 73 over it, 1.18× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
D3 · God Classes · FunctionTooLong · ×2
  • FunctionTooLong: main.handle REDACTED:165 — FunctionTooLong — handle runs 164 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 64 over it, 1.64× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: gceGCEDriver.setupCaching pkg/gce-pd-csi-driver/cache.go:235 — FunctionTooLong — setupCaching runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
D3 · God Classes · MethodTooLong · ×2
  • MethodTooLong: ParameterProcessor.ExtractAndDefaultParameters pkg/parameters/parameters.go:32 — MethodTooLong — ExtractAndDefaultParameters runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: GCENodeServer.NodeStageVolume pkg/gce-pd-csi-driver/node.go:358 — MethodTooLong — NodeStageVolume runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
D4 · Code Duplication · Edited copy of a member (30 corresponding lines) · ×2
  • Edited copy of a member (30 corresponding lines) pkg/gce-pd-csi-driver/controller.go:1811 — pkg/gce-pd-csi-driver/controller.go:1811-1840 | pkg/gce-pd-csi-driver/controller.go:1846-1881 — These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (30 corresponding lines) pkg/gce-pd-csi-driver/controller.go:4296 — pkg/gce-pd-csi-driver/controller.go:4296-4328 | pkg/gce-pd-csi-driver/controller.go:4330-4359 — These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (23 corresponding lines) · ×2
  • Edited copy of a member (23 corresponding lines) pkg/gce-pd-csi-driver/controller.go:2700 — pkg/gce-pd-csi-driver/controller.go:2700-2723 | pkg/gce-pd-csi-driver/controller.go:3109-3131 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (23 corresponding lines) pkg/resizefs/resizefs_windows.go:56 — pkg/resizefs/resizefs_windows.go:56-78 | pkg/resizefs/resizefs_windows.go:81-103 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (21 corresponding lines) · ×2
  • Edited copy of a member (21 corresponding lines) pkg/gce-pd-csi-driver/controller.go:3963 — pkg/gce-pd-csi-driver/controller.go:3963-3983 | pkg/gce-pd-csi-driver/controller.go:4018-4038 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (21 corresponding lines) pkg/gce-cloud-provider/compute/fake-gce.go:178 — pkg/gce-cloud-provider/compute/fake-gce.go:178-198 | pkg/gce-cloud-provider/compute/fake-gce.go:574-594 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (12 lines × 2) · ×2
  • Duplicated block (12 lines × 2) pkg/gce-cloud-provider/compute/gce-compute.go:220 — pkg/gce-cloud-provider/compute/gce-compute.go:220-231 | pkg/gce-cloud-provider/compute/gce-compute.go:239-250 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (12 lines × 2) pkg/mount-manager/safe-mounter-v1_windows.go:66 — pkg/mount-manager/safe-mounter-v1_windows.go:66-77 | pkg/mount-manager/safe-mounter-v1beta_windows.go:66-77 — before extracting anything, compare `pkg/mount-manager/safe-mounter-v1_windows.go` and `pkg/mount-manager/safe-mounter-v1beta_windows.go` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (6 lines × 2) · ×2
  • Duplicated block (6 lines × 2) pkg/gce-pd-csi-driver/node.go:289 — pkg/gce-pd-csi-driver/node.go:289-294 | pkg/gce-pd-csi-driver/node.go:302-307 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/gce-pd-csi-driver/node.go:289` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 2) pkg/mount-manager/safe-mounter-v1_windows.go:305 — pkg/mount-manager/safe-mounter-v1_windows.go:305-310 | pkg/mount-manager/safe-mounter-v1beta_windows.go:313-318 — before extracting anything, compare `pkg/mount-manager/safe-mounter-v1_windows.go` and `pkg/mount-manager/safe-mounter-v1beta_windows.go` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/mount-manager/safe-mounter-v1_windows.go:305` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (9 lines × 2) · ×2
  • Duplicated block (9 lines × 2) pkg/gce-cloud-provider/compute/fake-gce.go:473 — pkg/gce-cloud-provider/compute/fake-gce.go:473-481 | pkg/gce-cloud-provider/compute/gce-compute.go:1278-1286 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (9 lines × 2) pkg/convert/convert.go:87 — pkg/convert/convert.go:87-95 | pkg/convert/convert.go:153-161 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/convert/convert.go:87` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
X28 · Index access outside its own emptiness guard · Index access outside its own emptiness guard · ×2
  • Index access outside its own emptiness guard pkg/gce-pd-csi-driver/controller.go:4511 — `shiftIndex` is the result of a search that answers -1 when nothing is found, and `allZones[shiftIndex:]` uses it as a bound with no test of `shiftIndex` in between. When the search misses, the bound is -1 and the access panics with `slice bounds out of range`. Test `shiftIndex < 0` (or use `strings.Cut`) before using it.
  • Index access outside its own emptiness guard pkg/gce-pd-csi-driver/controller.go:4511 — `shiftIndex` is the result of a search that answers -1 when nothing is found, and `allZones[:shiftIndex]` uses it as a bound with no test of `shiftIndex` in between. When the search misses, the bound is -1 and the access panics with `slice bounds out of range`. Test `shiftIndex < 0` (or use `strings.Cut`) before using it.
X3 · Exception handling · Lost error (reports an error that is nil on this path) · ×2
  • Lost error (reports an error that is nil on this path) pkg/gce-pd-csi-driver/cache.go:724 — `if cacheErr, isCached := isCachingSetup(mainLvName); cacheErr != nil || isCached` handles a failure of `cacheErr` but reports `err`, which the earlier `if err != nil { return … }` already proved nil here: the real failure is lost and a nil error is reported (or returned as success) in its place. Report `cacheErr`.
  • Lost error (reports an error that is nil on this path) pkg/gce-pd-csi-driver/controller.go:770 — `if err == nil` reports `err` on the one path where it is nil, and the path where the call failed goes on without ever reading it: the comparison is inverted. The real failure is lost and a nil error (or a panic on `err.Error()`) is reported in its place. Test `err != nil` here.
D1 · Cyclomatic Complexity · ParameterProcessor.ExtractAndDefaultParameters (cyclomatic 69) · ×1
  • ParameterProcessor.ExtractAndDefaultParameters (cyclomatic 69) pkg/parameters/parameters.go:32 — ParameterProcessor.ExtractAndDefaultParameters has cyclomatic complexity 69 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GCENodeServer.NodeStageVolume (cyclomatic 51) · ×1
  • GCENodeServer.NodeStageVolume (cyclomatic 51) pkg/gce-pd-csi-driver/node.go:358 — GCENodeServer.NodeStageVolume has cyclomatic complexity 51 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · main.handle (cyclomatic 46) · ×1
  • main.handle (cyclomatic 46) REDACTED:165 — main.handle has cyclomatic complexity 46 (threshold 15). Of this number, 45 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GCEControllerServer.ControllerModifyVolume (cyclomatic 45) · ×1
  • GCEControllerServer.ControllerModifyVolume (cyclomatic 45) pkg/gce-pd-csi-driver/controller.go:925 — GCEControllerServer.ControllerModifyVolume has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GCEControllerServer.createSingleDisk (cyclomatic 37) · ×1
  • GCEControllerServer.createSingleDisk (cyclomatic 37) pkg/gce-pd-csi-driver/controller.go:753 — GCEControllerServer.createSingleDisk has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GCEControllerServer.executeControllerPublishVolume (cyclomatic 36) · ×1
  • GCEControllerServer.executeControllerPublishVolume (cyclomatic 36) pkg/gce-pd-csi-driver/controller.go:2813 — GCEControllerServer.executeControllerPublishVolume has cyclomatic complexity 36 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · GCEControllerServer.createVolumeInternal (cyclomatic 35) · ×1
  • GCEControllerServer.createVolumeInternal (cyclomatic 35) pkg/gce-pd-csi-driver/controller.go:380 — GCEControllerServer.createVolumeInternal has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GCEControllerServer.runQueuedConversion (cyclomatic 27) · ×1
  • GCEControllerServer.runQueuedConversion (cyclomatic 27) pkg/gce-pd-csi-driver/controller.go:3336 — GCEControllerServer.runQueuedConversion has cyclomatic complexity 27 (threshold 15). Of this number, 25 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · gceGCEDriver.setupCaching (cyclomatic 26) · ×1
  • gceGCEDriver.setupCaching (cyclomatic 26) pkg/gce-pd-csi-driver/cache.go:235 — gceGCEDriver.setupCaching has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GCEControllerServer.optedInForSlowConversion (cyclomatic 25) · ×1
  • GCEControllerServer.optedInForSlowConversion (cyclomatic 25) pkg/gce-pd-csi-driver/controller.go:3023 — GCEControllerServer.optedInForSlowConversion has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GCEControllerServer.convertDiskType (cyclomatic 24) · ×1
  • GCEControllerServer.convertDiskType (cyclomatic 24) pkg/gce-pd-csi-driver/controller.go:1165 — GCEControllerServer.convertDiskType has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GCENodeServer.NodePublishVolume (cyclomatic 24) · ×1
  • GCENodeServer.NodePublishVolume (cyclomatic 24) pkg/gce-pd-csi-driver/node.go:202 — GCENodeServer.NodePublishVolume has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GCEControllerServer.checkNoConversionInProgress (cyclomatic 23) · ×1
  • GCEControllerServer.checkNoConversionInProgress (cyclomatic 23) pkg/gce-pd-csi-driver/controller.go:2107 — GCEControllerServer.checkNoConversionInProgress has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GCEControllerServer.startDiskTypeConversion (cyclomatic 21) · ×1
  • GCEControllerServer.startDiskTypeConversion (cyclomatic 21) pkg/gce-pd-csi-driver/controller.go:1418 — GCEControllerServer.startDiskTypeConversion has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 10 of the 21 points are its own statements and the rest belongs to one function literal inside it that branches (line 1433). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D1 · Cyclomatic Complexity · GCENodeServer.getVolumeLimits (cyclomatic 20) · ×1
  • GCENodeServer.getVolumeLimits (cyclomatic 20) pkg/gce-pd-csi-driver/node.go:926 — GCENodeServer.getVolumeLimits has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GCEControllerServer.pvBacksDisk (cyclomatic 19) · ×1
  • GCEControllerServer.pvBacksDisk (cyclomatic 19) pkg/gce-pd-csi-driver/controller.go:1112 — GCEControllerServer.pvBacksDisk has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · main.main (cyclomatic 18) · ×1
  • main.main (cyclomatic 18) release-tools/filter-junit.go:82 — main.main has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · gcecloudprovider.repairUnderspecifiedVolumeKeyWithProvider (cyclomatic 17) · ×1
  • gcecloudprovider.repairUnderspecifiedVolumeKeyWithProvider (cyclomatic 17) pkg/gce-cloud-provider/compute/gce-compute.go:314 — gcecloudprovider.repairUnderspecifiedVolumeKeyWithProvider has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CloudProvider.constructDiskToCreate (cyclomatic 17) · ×1
  • CloudProvider.constructDiskToCreate (cyclomatic 17) pkg/gce-cloud-provider/compute/gce-compute.go:547 — CloudProvider.constructDiskToCreate has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · parameters.ExtractAndDefaultSnapshotParameters (cyclomatic 17) · ×1
  • parameters.ExtractAndDefaultSnapshotParameters (cyclomatic 17) pkg/parameters/parameters.go:235 — parameters.ExtractAndDefaultSnapshotParameters has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · gceGCEDriver.parsePvsVgInfo (cyclomatic 16) · ×1
  • gceGCEDriver.parsePvsVgInfo (cyclomatic 16) pkg/gce-pd-csi-driver/cache.go:815 — gceGCEDriver.parsePvsVgInfo has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · gceGCEDriver.pickZonesFromTopology (cyclomatic 16) · ×1
  • gceGCEDriver.pickZonesFromTopology (cyclomatic 16) pkg/gce-pd-csi-driver/controller.go:4440 — gceGCEDriver.pickZonesFromTopology has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GCEControllerServer.createSingleDeviceDisk (cyclomatic 16) · ×1
  • GCEControllerServer.createSingleDeviceDisk (cyclomatic 16) pkg/gce-pd-csi-driver/controller.go:663 — GCEControllerServer.createSingleDeviceDisk has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GCEControllerServer.CreateSnapshot (cyclomatic 16) · ×1
  • GCEControllerServer.CreateSnapshot (cyclomatic 16) pkg/gce-pd-csi-driver/controller.go:3780 — GCEControllerServer.CreateSnapshot has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D2 · Cognitive Complexity · ParameterProcessor.ExtractAndDefaultParameters (cognitive 127) · ×1
  • ParameterProcessor.ExtractAndDefaultParameters (cognitive 127) pkg/parameters/parameters.go:32 — ParameterProcessor.ExtractAndDefaultParameters has cognitive complexity 127 (threshold 15). Drivers by points: if/else 39 (114 pts), loops 4 (6 pts), boolean chains 5, match/switch 1 (2 pts) (nesting depth added 78). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GCEControllerServer.createSingleDisk (cognitive 83) · ×1
  • GCEControllerServer.createSingleDisk (cognitive 83) pkg/gce-pd-csi-driver/controller.go:753 — GCEControllerServer.createSingleDisk has cognitive complexity 83 (threshold 15). Drivers by points: if/else 36 (81 pts), boolean chains 2 (nesting depth added 45). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · main.handle (cognitive 79) · ×1
  • main.handle (cognitive 79) REDACTED:165 — main.handle has cognitive complexity 79 (threshold 15). Drivers by points: if/else 38 (70 pts), boolean chains 7, match/switch 1 (2 pts) (nesting depth added 33). Of this number, 77 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GCENodeServer.NodeStageVolume (cognitive 79) · ×1
  • GCENodeServer.NodeStageVolume (cognitive 79) pkg/gce-pd-csi-driver/node.go:358 — GCENodeServer.NodeStageVolume has cognitive complexity 79 (threshold 15). Drivers by points: if/else 46 (73 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GCEControllerServer.optedInForSlowConversion (cognitive 55) · ×1
  • GCEControllerServer.optedInForSlowConversion (cognitive 55) pkg/gce-pd-csi-driver/controller.go:3023 — GCEControllerServer.optedInForSlowConversion has cognitive complexity 55 (threshold 15). Drivers by points: if/else 21 (49 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 31). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
D2 · Cognitive Complexity · GCEControllerServer.ControllerModifyVolume (cognitive 52) · ×1
  • GCEControllerServer.ControllerModifyVolume (cognitive 52) pkg/gce-pd-csi-driver/controller.go:925 — GCEControllerServer.ControllerModifyVolume has cognitive complexity 52 (threshold 15). Drivers by points: if/else 28 (38 pts), boolean chains 14 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · gceGCEDriver.setupCaching (cognitive 46) · ×1
  • gceGCEDriver.setupCaching (cognitive 46) pkg/gce-pd-csi-driver/cache.go:235 — gceGCEDriver.setupCaching has cognitive complexity 46 (threshold 15). Drivers by points: if/else 29 (46 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GCEControllerServer.executeControllerPublishVolume (cognitive 45) · ×1
  • GCEControllerServer.executeControllerPublishVolume (cognitive 45) pkg/gce-pd-csi-driver/controller.go:2813 — GCEControllerServer.executeControllerPublishVolume has cognitive complexity 45 (threshold 15). Drivers by points: if/else 31 (41 pts), boolean chains 4 (nesting depth added 10). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · GCEControllerServer.createVolumeInternal (cognitive 42) · ×1
  • GCEControllerServer.createVolumeInternal (cognitive 42) pkg/gce-pd-csi-driver/controller.go:380 — GCEControllerServer.createVolumeInternal has cognitive complexity 42 (threshold 15). Drivers by points: if/else 24 (34 pts), boolean chains 8 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GCENodeServer.NodePublishVolume (cognitive 41) · ×1
  • GCENodeServer.NodePublishVolume (cognitive 41) pkg/gce-pd-csi-driver/node.go:202 — GCENodeServer.NodePublishVolume has cognitive complexity 41 (threshold 15). Drivers by points: if/else 25 (41 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GCEControllerServer.checkNoConversionInProgress (cognitive 37) · ×1
  • GCEControllerServer.checkNoConversionInProgress (cognitive 37) pkg/gce-pd-csi-driver/controller.go:2107 — GCEControllerServer.checkNoConversionInProgress has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17 (33 pts), boolean chains 4 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GCEControllerServer.runQueuedConversion (cognitive 37) · ×1
  • GCEControllerServer.runQueuedConversion (cognitive 37) pkg/gce-pd-csi-driver/controller.go:3336 — GCEControllerServer.runQueuedConversion has cognitive complexity 37 (threshold 15). Drivers by points: if/else 21 (34 pts), boolean chains 3 (nesting depth added 13). Of this number, 33 points are the body's own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · gcecloudprovider.repairUnderspecifiedVolumeKeyWithProvider (cognitive 34) · ×1
  • gcecloudprovider.repairUnderspecifiedVolumeKeyWithProvider (cognitive 34) pkg/gce-cloud-provider/compute/gce-compute.go:314 — gcecloudprovider.repairUnderspecifiedVolumeKeyWithProvider has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (28 pts), loops 1 (3 pts), boolean chains 2, match/switch 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GCEControllerServer.convertDiskType (cognitive 34) · ×1
  • GCEControllerServer.convertDiskType (cognitive 34) pkg/gce-pd-csi-driver/controller.go:1165 — GCEControllerServer.convertDiskType has cognitive complexity 34 (threshold 15). Drivers by points: if/else 19 (30 pts), boolean chains 4 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · main.main (cognitive 33) · ×1
  • main.main (cognitive 33) release-tools/filter-junit.go:82 — main.main has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (28 pts), loops 3, boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · gceGCEDriver.parsePvsVgInfo (cognitive 32) · ×1
  • gceGCEDriver.parsePvsVgInfo (cognitive 32) pkg/gce-pd-csi-driver/cache.go:815 — gceGCEDriver.parsePvsVgInfo has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (26 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GCENodeServer.getVolumeLimits (cognitive 32) · ×1
  • GCENodeServer.getVolumeLimits (cognitive 32) pkg/gce-pd-csi-driver/node.go:926 — GCENodeServer.getVolumeLimits has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16 (28 pts), boolean chains 2, loops 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · gceGCEDriver.pickZonesFromTopology (cognitive 29) · ×1
  • gceGCEDriver.pickZonesFromTopology (cognitive 29) pkg/gce-pd-csi-driver/controller.go:4440 — gceGCEDriver.pickZonesFromTopology has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (26 pts), boolean chains 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GCEControllerServer.pvBacksDisk (cognitive 29) · ×1
  • GCEControllerServer.pvBacksDisk (cognitive 29) pkg/gce-pd-csi-driver/controller.go:1112 — GCEControllerServer.pvBacksDisk has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GCEControllerServer.disksAndInstancesToVolumeEntries (cognitive 29) · ×1
  • GCEControllerServer.disksAndInstancesToVolumeEntries (cognitive 29) pkg/gce-pd-csi-driver/controller.go:3699 — GCEControllerServer.disksAndInstancesToVolumeEntries has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 5 (7 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GCEControllerServer.startDiskTypeConversion (cognitive 26) · ×1
  • GCEControllerServer.startDiskTypeConversion (cognitive 26) pkg/gce-pd-csi-driver/controller.go:1418 — GCEControllerServer.startDiskTypeConversion has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17 (24 pts), boolean chains 2 (nesting depth added 7). Most of this is not in the body itself: 12 of the 26 points are its own statements and the rest belongs to one function literal inside it that branches (line 1433). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · ReconcileNodeTaint.Reconcile (cognitive 23) · ×1
  • ReconcileNodeTaint.Reconcile (cognitive 23) pkg/controller/taint/taint_remover.go:72 — ReconcileNodeTaint.Reconcile has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (21 pts), loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CloudProvider.constructDiskToCreate (cognitive 21) · ×1
  • CloudProvider.constructDiskToCreate (cognitive 21) pkg/gce-cloud-provider/compute/gce-compute.go:547 — CloudProvider.constructDiskToCreate has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15 (19 pts), match/switch 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · CloudProvider.resizeZonalDisk (cognitive 21) · ×1
  • CloudProvider.resizeZonalDisk (cognitive 21) pkg/gce-cloud-provider/compute/gce-compute.go:1690 — CloudProvider.resizeZonalDisk has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (21 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (CloudProvider.resizeRegionalDisk) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · CloudProvider.resizeRegionalDisk (cognitive 21) · ×1
  • CloudProvider.resizeRegionalDisk (cognitive 21) pkg/gce-cloud-provider/compute/gce-compute.go:1750 — CloudProvider.resizeRegionalDisk has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (21 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (CloudProvider.resizeZonalDisk) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · GCEControllerServer.createSingleDeviceDisk (cognitive 20) · ×1
  • GCEControllerServer.createSingleDeviceDisk (cognitive 20) pkg/gce-pd-csi-driver/controller.go:663 — GCEControllerServer.createSingleDeviceDisk has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GCEControllerServer.pollConversion (cognitive 20) · ×1
  • GCEControllerServer.pollConversion (cognitive 20) pkg/gce-pd-csi-driver/controller.go:1763 — GCEControllerServer.pollConversion has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (17 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · nonBlockingGRPCServer.serve (cognitive 20) · ×1
  • nonBlockingGRPCServer.serve (cognitive 20) pkg/gce-pd-csi-driver/server.go:77 — nonBlockingGRPCServer.serve has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
D2 · Cognitive Complexity · parameters.ExtractAndDefaultSnapshotParameters (cognitive 20) · ×1
  • parameters.ExtractAndDefaultSnapshotParameters (cognitive 20) pkg/parameters/parameters.go:235 — parameters.ExtractAndDefaultSnapshotParameters has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (5 pts), match/switch 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · gcecloudprovider.CreateCloudProvider (cognitive 19) · ×1
  • gcecloudprovider.CreateCloudProvider (cognitive 19) pkg/gce-cloud-provider/compute/gce.go:185 — gcecloudprovider.CreateCloudProvider has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (19 pts) (nesting depth added 6). Of this number, 13 points are the body's own statements and 6 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CloudProvider.attachTagsToResource (cognitive 19) · ×1
  • CloudProvider.attachTagsToResource (cognitive 19) pkg/gce-cloud-provider/compute/gce-compute.go:1919 — CloudProvider.attachTagsToResource has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GCEControllerServer.createPDSnapshot (cognitive 19) · ×1
  • GCEControllerServer.createPDSnapshot (cognitive 19) pkg/gce-pd-csi-driver/controller.go:3851 — GCEControllerServer.createPDSnapshot has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (19 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · k8sclient.FindPersistentVolumeName (cognitive 19) · ×1
  • k8sclient.FindPersistentVolumeName (cognitive 19) pkg/k8sclient/client.go:153 — k8sclient.FindPersistentVolumeName has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · boilerplate.file_passes (cognitive 19) · ×1
  • boilerplate.file_passes (cognitive 19) release-tools/boilerplate/boilerplate.py:66 — boilerplate.file_passes has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 3 (5 pts), boolean chains 1, error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GCEControllerServer.CreateSnapshot (cognitive 18) · ×1
  • GCEControllerServer.CreateSnapshot (cognitive 18) pkg/gce-pd-csi-driver/controller.go:3780 — GCEControllerServer.CreateSnapshot has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 1, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Reconciler.Reconcile (cognitive 18) · ×1
  • Reconciler.Reconcile (cognitive 18) pkg/nodelabeler/reconciler.go:48 — Reconciler.Reconcile has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 3, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · parameters.ExtractModifyVolumeParameters (cognitive 18) · ×1
  • parameters.ExtractModifyVolumeParameters (cognitive 18) pkg/parameters/parameters.go:305 — parameters.ExtractModifyVolumeParameters has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (15 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CSIProxyMounterV1Beta.extractEUIFromDiskInfo (cognitive 18) · ×1
  • CSIProxyMounterV1Beta.extractEUIFromDiskInfo (cognitive 18) pkg/mount-manager/safe-mounter-v1beta_windows.go:268 — CSIProxyMounterV1Beta.extractEUIFromDiskInfo has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · boilerplate.get_files (cognitive 18) · ×1
  • boilerplate.get_files (cognitive 18) release-tools/boilerplate/boilerplate.py:145 — boilerplate.get_files has cognitive complexity 18 (threshold 15). Drivers by points: loops 4 (9 pts), if/else 4 (8 pts), boolean chains 1 (nesting depth added 9). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · GCENodeServer.NodeUnstageVolume (cognitive 17) · ×1
  • GCENodeServer.NodeUnstageVolume (cognitive 17) pkg/gce-pd-csi-driver/node.go:659 — GCENodeServer.NodeUnstageVolume has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · convert.ConvertTagsStringToMap (cognitive 16) · ×1
  • convert.ConvertTagsStringToMap (cognitive 16) pkg/convert/convert.go:121 — convert.ConvertTagsStringToMap has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 1 (nesting depth added 5). Of this number, 13 points are the body's own statements and 3 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · deviceUtils.VerifyDevicePath (cognitive 16) · ×1
  • deviceUtils.VerifyDevicePath (cognitive 16) pkg/deviceutils/device-utils.go:216 — deviceUtils.VerifyDevicePath has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 1 (nesting depth added 3). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 229). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
D2 · Cognitive Complexity · CloudProvider.ListCompatibleDiskTypeZones (cognitive 16) · ×1
  • CloudProvider.ListCompatibleDiskTypeZones (cognitive 16) pkg/gce-cloud-provider/compute/gce-compute.go:1218 — CloudProvider.ListCompatibleDiskTypeZones has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (10 pts), loops 3 (6 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GCEControllerServer.getSnapshotByID (cognitive 16) · ×1
  • GCEControllerServer.getSnapshotByID (cognitive 16) pkg/gce-pd-csi-driver/controller.go:4249 — GCEControllerServer.getSnapshotByID has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (15 pts), match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GCEControllerServer.generateCreateVolumeResponseWithVolumeId (cognitive 16) · ×1
  • GCEControllerServer.generateCreateVolumeResponseWithVolumeId (cognitive 16) pkg/gce-pd-csi-driver/controller.go:4632 — GCEControllerServer.generateCreateVolumeResponseWithVolumeId has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GCENodeServer.NodeExpandVolume (cognitive 16) · ×1
  • GCENodeServer.NodeExpandVolume (cognitive 16) pkg/gce-pd-csi-driver/node.go:836 — GCENodeServer.NodeExpandVolume has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (16 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D22 · Internal API Consistency · `GCECompute.ConvertDisk` takes (instancename, instancezone) where its 4 siblings take (instancezone, instancename) · ×1
  • `GCECompute.ConvertDisk` takes (instancename, instancezone) where its 4 siblings take (instancezone, instancename) pkg/gce-cloud-provider/compute/gce-compute.go:121 — 4 of 5 members of `GCECompute` with these two same-typed parameters take them in the order (instancezone, instancename) (4 of 5). Siblings: GCECompute.AttachDisk (pkg/gce-cloud-provider/compute/gce-compute.go:119); GCECompute.DetachDisk (pkg/gce-cloud-provider/compute/gce-compute.go:120); GCECompute.WaitForAttach (pkg/gce-cloud-provider/compute/gce-compute.go:129); GCECompute.GetInstanceOrError (pkg/gce-cloud-provider/compute/gce-compute.go:137). Reorder to (instancezone, instancename); both are the same type, so the compiler cannot catch a swapped call. [rule A3]
D22 · Internal API Consistency · `gceGCEDriver.ValidateDataCacheConfig` takes its context.Context last where 30 members of the package take it first · ×1
  • `gceGCEDriver.ValidateDataCacheConfig` takes its context.Context last where 30 members of the package take it first pkg/gce-pd-csi-driver/cache.go:547 — 30 of 31 members of package gce-pd-csi-driver with a context take it as the first parameter, the context package's own rule (30 of 31). Siblings: gceGCEDriver.GetDataCacheCountFromNodeLabel (pkg/gce-pd-csi-driver/cache.go:561); gceGCEDriver.StartWatcher (pkg/gce-pd-csi-driver/cache.go:1111); GCEControllerServer.VerifyClusterDisks (pkg/gce-pd-csi-driver/cleanup.go:31); GCEControllerServer.CreateVolume (pkg/gce-pd-csi-driver/controller.go:371); GCEControllerServer.ControllerModifyVolume (pkg/gce-pd-csi-driver/controller.go:925). Move `ctx context.Context` to the front of the parameter list. [rule A2]
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D3 · God Classes · TooManyFields · ×1
  • TooManyFields: GCEControllerServer pkg/gce-pd-csi-driver/controller.go:57 — TooManyFields — 34 stored fields beside 83 methods. The bar is 30 stored fields; this is 4 over it, 1.13× the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member — each reader then names only the group it uses.
D30 · Dependency Vulnerabilities · Medium vulnerability · ×1
  • REDACTED
D4 · Code Duplication · Near-duplicate member pair (26 shared lines) · ×1
  • Near-duplicate member pair (26 shared lines) pkg/gce-pd-csi-driver/controller.go:3851 — pkg/gce-pd-csi-driver/controller.go:3851-3910 | pkg/gce-pd-csi-driver/controller.go:3912-3961 — These two members are variants of one another: 26 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (4 members, 50+ identical tokens) pkg/mount-manager/safe-mounter-v1_windows.go:198 — pkg/mount-manager/safe-mounter-v1_windows.go:198-268 | pkg/mount-manager/safe-mounter-v1_windows.go:389-411 | pkg/mount-manager/safe-mounter-v1beta_windows.go:203-265 | pkg/mount-manager/safe-mounter-v1beta_windows.go:397-420 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
D4 · Code Duplication · Edited copy of a member (57 corresponding lines) · ×1
  • Edited copy of a member (57 corresponding lines) pkg/gce-cloud-provider/compute/gce-compute.go:1690 — pkg/gce-cloud-provider/compute/gce-compute.go:1690-1748 | pkg/gce-cloud-provider/compute/gce-compute.go:1750-1806 — These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (61 corresponding lines) · ×1
  • Edited copy of a member (61 corresponding lines) pkg/mount-manager/safe-mounter-v1_windows.go:415 — pkg/mount-manager/safe-mounter-v1_windows.go:415-481 | pkg/mount-manager/safe-mounter-v1beta_windows.go:424-484 — These two members are one piece of code written twice and then edited apart: 61 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (56 corresponding lines) · ×1
  • Edited copy of a member (56 corresponding lines) pkg/gce-pd-csi-driver/controller.go:3616 — pkg/gce-pd-csi-driver/controller.go:3616-3671 | pkg/gce-pd-csi-driver/controller.go:4086-4146 — These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (51 corresponding lines) · ×1
  • Edited copy of a member (51 corresponding lines) pkg/mount-manager/safe-mounter-v1_windows.go:142 — pkg/mount-manager/safe-mounter-v1_windows.go:142-192 | pkg/mount-manager/safe-mounter-v1beta_windows.go:146-197 — These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (34 corresponding lines) · ×1
  • Edited copy of a member (34 corresponding lines) pkg/gce-cloud-provider/compute/gce-compute.go:1144 — pkg/gce-cloud-provider/compute/gce-compute.go:1144-1177 | pkg/gce-cloud-provider/compute/gce-compute.go:1179-1216 — These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (52 corresponding lines) · ×1
  • Edited copy of a member (52 corresponding lines) pkg/gce-pd-csi-driver/controller.go:1966 — pkg/gce-pd-csi-driver/controller.go:1966-2017 | pkg/gce-pd-csi-driver/controller.go:2245-2306 — These two members are one piece of code written twice and then edited apart: 52 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (35 corresponding lines) · ×1
  • Edited copy of a member (35 corresponding lines) pkg/mount-manager/safe-mounter-v1_windows.go:352 — pkg/mount-manager/safe-mounter-v1_windows.go:352-386 | pkg/mount-manager/safe-mounter-v1beta_windows.go:360-394 — These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (38 corresponding lines) · ×1
  • Edited copy of a member (38 corresponding lines) pkg/gce-cloud-provider/compute/gce-compute.go:1510 — pkg/gce-cloud-provider/compute/gce-compute.go:1510-1551 | pkg/gce-cloud-provider/compute/gce-compute.go:1553-1590 — These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (25 corresponding lines) · ×1
  • Edited copy of a member (25 corresponding lines) pkg/mount-manager/statter_windows.go:55 — pkg/mount-manager/statter_windows.go:55-79 | pkg/mount-manager/statter_windows.go:81-106 — These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (22 corresponding lines) · ×1
  • Edited copy of a member (22 corresponding lines) pkg/gce-cloud-provider/compute/gce-compute.go:1359 — pkg/gce-cloud-provider/compute/gce-compute.go:1359-1385 | pkg/gce-cloud-provider/compute/gce-compute.go:1387-1408 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 18+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 18+ corresponding lines) pkg/k8sclient/client.go:82 — pkg/k8sclient/client.go:82-99 | pkg/k8sclient/client.go:101-118 | pkg/k8sclient/client.go:226-243 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 16+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 16+ corresponding lines) pkg/gce-cloud-provider/compute/gce-compute.go:1304 — pkg/gce-cloud-provider/compute/gce-compute.go:1304-1319 | pkg/gce-cloud-provider/compute/gce-compute.go:1321-1340 | pkg/gce-cloud-provider/compute/gce-compute.go:1342-1357 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (43 corresponding lines) · ×1
  • Edited copy of a member (43 corresponding lines) pkg/gce-cloud-provider/compute/gce-compute.go:786 — pkg/gce-cloud-provider/compute/gce-compute.go:786-828 | pkg/gce-cloud-provider/compute/gce-compute.go:849-891 — These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 15+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 15+ corresponding lines) pkg/gce-cloud-provider/compute/gce.go:354 — pkg/gce-cloud-provider/compute/gce.go:354-368 | pkg/gce-cloud-provider/compute/gce.go:370-384 | pkg/gce-cloud-provider/compute/gce.go:386-400 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (15 corresponding lines) · ×1
  • Edited copy of a member (15 corresponding lines) pkg/gce-cloud-provider/compute/gce-compute.go:391 — pkg/gce-cloud-provider/compute/gce-compute.go:391-405 | pkg/gce-cloud-provider/compute/gce-compute.go:1628-1642 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 17+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 17+ corresponding lines) pkg/gce-cloud-provider/compute/gce-compute.go:217 — pkg/gce-cloud-provider/compute/gce-compute.go:217-233 | pkg/gce-cloud-provider/compute/gce-compute.go:235-253 | pkg/gce-cloud-provider/compute/gce-compute.go:285-306 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (17 corresponding lines) · ×1
  • Edited copy of a member (17 corresponding lines) pkg/gce-pd-csi-driver/utils.go:271 — pkg/gce-pd-csi-driver/utils.go:271-287 | pkg/gce-pd-csi-driver/utils.go:289-305 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (19 corresponding lines) · ×1
  • Edited copy of a member (19 corresponding lines) pkg/mount-manager/safe-mounter-v1_windows.go:65 — pkg/mount-manager/safe-mounter-v1_windows.go:65-83 | pkg/mount-manager/safe-mounter-v1beta_windows.go:65-83 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 15+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 15+ corresponding lines) pkg/gce-cloud-provider/compute/gce-compute.go:905 — pkg/gce-cloud-provider/compute/gce-compute.go:905-921 | pkg/gce-cloud-provider/compute/gce-compute.go:923-939 | pkg/gce-cloud-provider/compute/gce-compute.go:1493-1508 | pkg/gce-cloud-provider/compute/gce-compute.go:1644-1658 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication · Edited copy of a member (11 corresponding lines) · ×1
  • Edited copy of a member (11 corresponding lines) pkg/mount-manager/safe-mounter-v1_windows.go:126 — pkg/mount-manager/safe-mounter-v1_windows.go:126-136 | pkg/mount-manager/safe-mounter-v1beta_windows.go:129-140 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (12 corresponding lines) · ×1
  • Edited copy of a member (12 corresponding lines) pkg/mount-manager/safe-mounter-v1_windows.go:487 — pkg/mount-manager/safe-mounter-v1_windows.go:487-498 | pkg/mount-manager/safe-mounter-v1beta_windows.go:490-501 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (29 lines × 2) · ×1
  • Duplicated block (29 lines × 2) pkg/mount-manager/safe-mounter-v1_windows.go:445 — pkg/mount-manager/safe-mounter-v1_windows.go:445-473 | pkg/mount-manager/safe-mounter-v1beta_windows.go:448-476 — before extracting anything, compare `pkg/mount-manager/safe-mounter-v1_windows.go` and `pkg/mount-manager/safe-mounter-v1beta_windows.go` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/mount-manager/safe-mounter-v1_windows.go:445` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (25 lines × 2) · ×1
  • Duplicated block (25 lines × 2) pkg/mount-manager/safe-mounter-v1_windows.go:353 — pkg/mount-manager/safe-mounter-v1_windows.go:353-377 | pkg/mount-manager/safe-mounter-v1beta_windows.go:361-385 — before extracting anything, compare `pkg/mount-manager/safe-mounter-v1_windows.go` and `pkg/mount-manager/safe-mounter-v1beta_windows.go` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a `defer`-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead — before the caller uses what it releases — so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register.
D4 · Code Duplication · Duplicated block (23–24 lines × 2) · ×1
  • Duplicated block (23–24 lines × 2) pkg/gce-cloud-provider/compute/gce-compute.go:1697 — pkg/gce-cloud-provider/compute/gce-compute.go:1697-1720 | pkg/gce-cloud-provider/compute/gce-compute.go:1757-1779 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/gce-cloud-provider/compute/gce-compute.go:1697` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (20 lines × 2) · ×1
  • Duplicated block (20 lines × 2) pkg/mount-manager/safe-mounter-v1_windows.go:330 — pkg/mount-manager/safe-mounter-v1_windows.go:330-349 | pkg/mount-manager/safe-mounter-v1beta_windows.go:338-357 — before extracting anything, compare `pkg/mount-manager/safe-mounter-v1_windows.go` and `pkg/mount-manager/safe-mounter-v1beta_windows.go` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (12–13 lines × 2) · ×1
  • Duplicated block (12–13 lines × 2) pkg/gce-pd-csi-driver/controller.go:2862 — pkg/gce-pd-csi-driver/controller.go:2862-2873 | pkg/gce-pd-csi-driver/controller.go:3182-3194 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a `defer`-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead — before the caller uses what it releases — so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `pkg/gce-pd-csi-driver/controller.go:3196` calls `GetInstanceOrError` and `pkg/gce-pd-csi-driver/controller.go:2875` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (13 lines × 2) · ×1
  • Duplicated block (13 lines × 2) pkg/mount-manager/safe-mounter-v1_windows.go:228 — pkg/mount-manager/safe-mounter-v1_windows.go:228-240 | pkg/mount-manager/safe-mounter-v1beta_windows.go:225-237 — before extracting anything, compare `pkg/mount-manager/safe-mounter-v1_windows.go` and `pkg/mount-manager/safe-mounter-v1beta_windows.go` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/mount-manager/safe-mounter-v1_windows.go:228` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (9–10 lines × 2) · ×1
  • Duplicated block (9–10 lines × 2) pkg/gce-cloud-provider/compute/fake-gce.go:538 — pkg/gce-cloud-provider/compute/fake-gce.go:538-546 | pkg/gce-cloud-provider/compute/fake-gce.go:621-630 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/gce-cloud-provider/compute/fake-gce.go:538` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (8–9 lines × 2) · ×1
  • Duplicated block (8–9 lines × 2) pkg/gce-pd-csi-driver/controller.go:3546 — pkg/gce-pd-csi-driver/controller.go:3546-3553 | pkg/gce-pd-csi-driver/controller.go:3801-3809 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/gce-pd-csi-driver/controller.go:3546` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a `defer`-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead — before the caller uses what it releases — so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register.
D4 · Code Duplication · Duplicated block (7–8 lines × 3) · ×1
  • Duplicated block (7–8 lines × 3) pkg/gce-pd-csi-driver/controller.go:3545 — pkg/gce-pd-csi-driver/controller.go:3545-3551 | pkg/gce-pd-csi-driver/controller.go:3800-3807 | pkg/gce-pd-csi-driver/controller.go:4177-4183 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also register a scope-exit action (a `defer`-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead — before the caller uses what it releases — so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register.
D4 · Code Duplication · Duplicated block (7 lines × 4) · ×1
  • Duplicated block (7 lines × 4) pkg/mount-manager/safe-mounter-v1_windows.go:232 — pkg/mount-manager/safe-mounter-v1_windows.go:232-240 | pkg/mount-manager/safe-mounter-v1_windows.go:390-396 | pkg/mount-manager/safe-mounter-v1beta_windows.go:229-237 | pkg/mount-manager/safe-mounter-v1beta_windows.go:399-405 — before extracting anything, compare `pkg/mount-manager/safe-mounter-v1_windows.go` and `pkg/mount-manager/safe-mounter-v1beta_windows.go` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/mount-manager/safe-mounter-v1_windows.go:232` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (6–7 lines × 2) · ×1
  • Duplicated block (6–7 lines × 2) pkg/gce-cloud-provider/compute/gce-compute.go:1784 — pkg/gce-cloud-provider/compute/gce-compute.go:1784-1790 | pkg/gce-cloud-provider/compute/gce-compute.go:1791-1796 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/gce-cloud-provider/compute/gce-compute.go:1784` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D6 · Cohesion (LCOM4) · Low cohesion · ×1
  • Low cohesion: MetricsManager (LCOM4 5) REDACTED:80 — MetricsManager's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
P7 · Outbound HTTP resilience · Outbound HTTP without resilience · ×1
  • Outbound HTTP without resilience pkg/gce-cloud-provider/compute/gce.go:481 — `http.Client{` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout.
Minor — 91 finding(s)
D31 · IaC & Container Security · Low IaC · ×62
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • + 37 more in this group — see findings.md.
D41 · Kernel & Syscall Confinement · No seccomp profile · ×13
  • No seccomp profile REDACTED:1 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile REDACTED:1 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile REDACTED:1 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile REDACTED:98 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile REDACTED:2 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile deploy/kubernetes/overlays/dev/controller_always_pull.yaml:1 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile deploy/kubernetes/overlays/dev/node_always_pull.yaml:1 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile REDACTED:1 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile deploy/kubernetes/overlays/noauth-debug/noauth.yaml:1 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile deploy/kubernetes/overlays/noauth-debug/node-overlay.yaml:1 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile deploy/kubernetes/overlays/noauth-debug/node-overlay.yaml:12 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile deploy/kubernetes/overlays/noauth/noauth.yaml:1 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
  • No seccomp profile REDACTED:2 — The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
M4 · Documentation accuracy · README/code drift · ×3
  • README/code drift release-tools/README.md:140 — release-tools/README.md names Go 1.13 or later, but REDACTED:3 requires `go 1.26.0`: the code does not build on Go 1.13. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift deploy/kubernetes/README.md:11 — deploy/kubernetes/README.md links to `deploy/kubernetes/overlays/`, but `deploy/kubernetes/deploy/kubernetes/overlays` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
  • README/code drift deploy/kubernetes/README.md:20 — deploy/kubernetes/README.md links to `deploy/kubernetes/base/controller.yaml`, but `deploy/kubernetes/deploy/kubernetes/base/controller.yaml` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
D8 · Code Coverage · Tests reach code only in some runs · ×2
  • Tests reach code only in some runs: pkg/linkcache/devices_linux.go pkg/linkcache/devices_linux.go:89 — 9 line(s) (89-90, 165-166, 177-178, 182, 189-190) were executed in some of the 3 runs of the suite and not in others. A test that does not take the same path every run only tests the part it always takes, so these lines are not counted as covered. Make the tests that reach them deterministic (a fixed clock, seed or ordering, or waiting on the event instead of on time), or test the paths directly.
  • Tests reach code only in some runs: pkg/parameters/parameters.go pkg/parameters/parameters.go:152 — 4 line(s) (152-153, 165-166) were executed in some of the 3 runs of the suite and not in others. A test that does not take the same path every run only tests the part it always takes, so these lines are not counted as covered. Make the tests that reach them deterministic (a fixed clock, seed or ordering, or waiting on the event instead of on time), or test the paths directly.
AX6 · Interface segregation · Fat interface · ×1
  • Fat interface: GCECompute (33 methods) pkg/gce-cloud-provider/compute/gce-compute.go:109 — `GCECompute` declares 33 methods: `GetDefaultProject`, `GetDefaultZone`, `GetDisk`, `RepairUnderspecifiedVolumeKey`, `InsertDisk`, `DeleteDisk`, `UpdateDisk`, `AttachDisk`, `DetachDisk`, `ConvertDisk`, `ConvertDiskType`, `IsConvertOperationDone`, `SetDiskAccessMode`, `SetDiskLabels`, `ListCompatibleDiskTypeZones`, `GetDiskSourceURI`, `GetDiskTypeURI`, `WaitForAttach`, `ResizeDisk`, `ListDisks`, `ListDisksWithFilter`, `ListInstances`, `GetReplicaZoneURI`, `GetInstanceOrError`, `ListZones`, `ListSnapshots`, `GetSnapshot`, `CreateSnapshot`, `DeleteSnapshot`, `ListImages`, `GetImage`, `CreateImage`, `DeleteImage`. Counted over the exported method specs the interface itself declares, once per name; an embedded interface is a role it composes, judged on its own declaration, and is not counted here. 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.
D16 · Bus Factor · Off-boarding risk · ×1
  • Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 1 significant file(s) lose their only recent owner: pkg/scdefaultrestorer/restorer.go. Pair on, review, or document these before any departure.
D16 · Bus Factor · Further sole-owners (lower concentration) · ×1
  • Further sole-owners (lower concentration) — 4 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold — folded into the bus-factor score and metrics (5 single-owned of 45 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 45 of the 68 production source files in this repository met that bar). They are anonymized user #2 (1 file(s)), anonymized user #3 (1 file(s)), anonymized user #4 (1 file(s)), anonymized user #5 (1 file(s)) — spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: pkg/gce-pd-csi-driver/node_readiness.go, pkg/gce-pd-csi-driver/cleanup.go, pkg/gce-pd-csi-driver/utils_linux.go, pkg/common/volume_lock.go.
D20 · ADR Quality · No ADRs found · ×1
  • No ADRs found release-tools/filter-junit.go:22 — No ADRs found. No recognised ADR directory (`docs/adr/`, `docs/decisions/`, `adr/`, `docs/rfcs/`, an `ADR0001/` folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (`docs/adr/use-postgres.md`, `docs/adr/2024/0001-x.md`); or a file anywhere whose name is ADR-shaped (`0001-use-postgres.md`, `adr-012-caching.md`); or, when neither turned anything up, a document carrying the decision-record signature (an "Architecture Decision Record" heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these — unnumbered files outside any recognised directory, without those headings — is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in `docs/adr/`. ADRs are expected here because `release-tools/filter-junit.go` makes this repository a deployable product (line 22).
D40 · Network Egress Confinement · No network policy · ×1
  • No network policy — No Kubernetes NetworkPolicy (or Cilium policy) found. Without one, every pod can talk to every other pod and reach out to the internet by default. Add a default-deny policy and open only the flows you need.
D42 · Runtime Threat Enforcement · No runtime threat detection · ×1
  • No runtime threat detection — No runtime threat-detection engine (Tetragon TracingPolicy / Falco) is committed. These observe process, file and network activity in-kernel and can alert or kill on malicious behaviour a static scan cannot catch.
D42 · Runtime Threat Enforcement · No admission-control policy · ×1
  • No admission-control policy — No policy-enforcement gate (Kyverno / OPA Gatekeeper / PodSecurity admission) is committed. Admission control keeps workloads that violate your security baseline from ever reaching the cluster.
M2 · Architecture documentation · No ADRs · ×1
  • No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
P2 · Observability · Logging is not universal · ×1
  • Logging is not universal — Only 1/2 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `.`.
X10 · Duplicated predicate · Duplicated predicate · ×1
  • Duplicated predicate pkg/controller/taint/taint_remover.go:159 — `t.Key == constants.StartupTaintKey && t.Effect == constants.StartupTaintEffect && t.Value == constants.StartupTaintValue` appears character-identically in 2 files — pkg/controller/taint/taint_remover.go, pkg/webhook/taint/node_taint.go. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
X2 · Cancellation propagation · Not all functions that make a request accept a context.Context · ×1
  • Not all functions that make a request accept a context.Context — Only 0/3 functions that make a cancellable request (net/http, net.Dial) accept a context.Context or pass one on, so a request keeps running after whatever wanted it has given up — a cancelled request, a shutdown, an expired deadline. Take `ctx context.Context` as the first parameter and build the request with it (`http.NewRequestWithContext`, `DialContext`); where nothing could ever cancel the call, omitting it is a deliberate choice — judge against how the function is used.
Minor — 26 finding(s)
D12 · Dependency Hygiene · Outdated · ×26
  • Outdated: cloud.google.com/go/compute/metadata — `cloud.google.com/go/compute/metadata` is required at v0.9.0 in REDACTED, but v0.10.0 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get cloud.google.com/go/compute/metadata@v0.10.0 && go mod tidy` and commit the updated REDACTED and go.sum.
  • Outdated: cloud.google.com/go/kms — `cloud.google.com/go/kms` is required at v1.25.0 in REDACTED, but v1.37.0 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get cloud.google.com/go/kms@v1.37.0 && go mod tidy` and commit the updated REDACTED and go.sum.
  • Outdated: cloud.google.com/go/resourcemanager — `cloud.google.com/go/resourcemanager` is required at v1.10.7 in REDACTED, but v1.18.1 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get cloud.google.com/go/resourcemanager@v1.18.1 && go mod tidy` and commit the updated REDACTED and go.sum.
  • Outdated: github.com/GoogleCloudPlatform/k8s-cloud-provider — `github.com/GoogleCloudPlatform/k8s-cloud-provider` is required at v1.33.0 in REDACTED, but v1.35.0 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get github.com/GoogleCloudPlatform/k8s-cloud-provider@v1.35.0 && go mod tidy` and commit the updated REDACTED and go.sum.
  • Outdated: github.com/container-storage-interface/spec — `github.com/container-storage-interface/spec` is required at v1.12.0 in REDACTED, but v1.13.0 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get github.com/container-storage-interface/spec@v1.13.0 && go mod tidy` and commit the updated REDACTED and go.sum.
  • Outdated: github.com/fsnotify/fsnotify — `github.com/fsnotify/fsnotify` is required at v1.9.0 in REDACTED, but v1.10.1 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get github.com/fsnotify/fsnotify@v1.10.1 && go mod tidy` and commit the updated REDACTED and go.sum.
  • Outdated: github.com/googleapis/gax-go/v2 — `github.com/googleapis/gax-go/v2` is required at v2.17.0 in REDACTED, but v2.27.0 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get github.com/googleapis/gax-go/v2@v2.27.0 && go mod tidy` and commit the updated REDACTED and go.sum.
  • Outdated: github.com/kubernetes-csi/csi-test/v5 — `github.com/kubernetes-csi/csi-test/v5` is required at v5.4.0 in REDACTED, but v5.6.0 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get github.com/kubernetes-csi/csi-test/v5@v5.6.0 && go mod tidy` and commit the updated REDACTED and go.sum.
  • Outdated: github.com/onsi/ginkgo/v2 — `github.com/onsi/ginkgo/v2` is required at v2.32.2 in REDACTED, but v2.34.0 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get github.com/onsi/ginkgo/v2@v2.34.0 && go mod tidy` and commit the updated REDACTED and go.sum.
  • Outdated: github.com/onsi/gomega — `github.com/onsi/gomega` is required at v1.43.0 in REDACTED, but v1.44.0 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get github.com/onsi/gomega@v1.44.0 && go mod tidy` and commit the updated REDACTED and go.sum.
  • Outdated: github.com/prometheus/client_golang — `github.com/prometheus/client_golang` is required at v1.23.2 in REDACTED, but v1.25.0 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get github.com/prometheus/client_golang@v1.25.0 && go mod tidy` and commit the updated REDACTED and go.sum.
  • Outdated: go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc — `go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc` is required at v0.61.0 in REDACTED, but v0.72.0 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc@v0.72.0 && go mod tidy` and commit the updated REDACTED and go.sum.
  • Outdated: go.opentelemetry.io/otel — `go.opentelemetry.io/otel` is required at v1.45.0 in REDACTED, but v1.47.0 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get go.opentelemetry.io/otel@v1.47.0 && go mod tidy` and commit the updated REDACTED and go.sum.
  • Outdated: go.opentelemetry.io/otel/exporters/otlp/otlptrace — `go.opentelemetry.io/otel/exporters/otlp/otlptrace` is required at v1.35.0 in REDACTED, but v1.47.0 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get go.opentelemetry.io/otel/exporters/otlp/otlptrace@v1.47.0 && go mod tidy` and commit the updated REDACTED and go.sum.
  • Outdated: go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc — `go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc` is required at v1.35.0 in REDACTED, but v1.47.0 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc@v1.47.0 && go mod tidy` and commit the updated REDACTED and go.sum.
  • Outdated: go.opentelemetry.io/otel/sdk — `go.opentelemetry.io/otel/sdk` is required at v1.45.0 in REDACTED, but v1.47.0 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get go.opentelemetry.io/otel/sdk@v1.47.0 && go mod tidy` and commit the updated REDACTED and go.sum.
  • Outdated: golang.org/x/oauth2 — `golang.org/x/oauth2` is required at v0.37.0 in REDACTED, but v0.38.0 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get golang.org/x/oauth2@v0.38.0 && go mod tidy` and commit the updated REDACTED and go.sum.
  • Outdated: golang.org/x/sys — `golang.org/x/sys` is required at v0.49.0 in REDACTED, but v0.50.0 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get golang.org/x/sys@v0.50.0 && go mod tidy` and commit the updated REDACTED and go.sum.
  • Outdated: google.golang.org/api — `google.golang.org/api` is required at v0.267.0 in REDACTED, but v0.315.0 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get google.golang.org/api@v0.315.0 && go mod tidy` and commit the updated REDACTED and go.sum.
  • Outdated: k8s.io/api — `k8s.io/api` is required at v0.35.2 in REDACTED, but v0.37.2 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get k8s.io/api@v0.37.2 && go mod tidy` and commit the updated REDACTED and go.sum.
  • Outdated: k8s.io/apimachinery — `k8s.io/apimachinery` is required at v0.35.2 in REDACTED, but v0.37.2 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get k8s.io/apimachinery@v0.37.2 && go mod tidy` and commit the updated REDACTED and go.sum.
  • Outdated: k8s.io/client-go — `k8s.io/client-go` is required at v0.35.2 in REDACTED, but v0.37.2 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get k8s.io/client-go@v0.37.2 && go mod tidy` and commit the updated REDACTED and go.sum.
  • Outdated: k8s.io/cloud-provider — `k8s.io/cloud-provider` is required at v0.35.2 in REDACTED, but v0.37.2 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get k8s.io/cloud-provider@v0.37.2 && go mod tidy` and commit the updated REDACTED and go.sum.
  • Outdated: k8s.io/component-base — `k8s.io/component-base` is required at v0.35.2 in REDACTED, but v0.37.2 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get k8s.io/component-base@v0.37.2 && go mod tidy` and commit the updated REDACTED and go.sum.
  • Outdated: k8s.io/mount-utils — `k8s.io/mount-utils` is required at v0.35.2 in REDACTED, but v0.37.2 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get k8s.io/mount-utils@v0.37.2 && go mod tidy` and commit the updated REDACTED and go.sum.
  • + 1 more in this group — see findings.md.

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)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --log-opts "--full-history --all --skip=0 --max-count=200" --report-format json --report-path /tmp/watchdog-gitleaks-eb48d6efe3444569888aa6e0ce5196ef/history.json --exit-code 0 --source .0artifacts/raw/gitleaks-history.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --log-opts "--full-history --all --skip=200 --max-count=800" --report-format json --report-path /tmp/watchdog-gitleaks-eb48d6efe3444569888aa6e0ce5196ef/history-1.json --exit-code 0 --source .0artifacts/raw/gitleaks-history-1.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --log-opts "--full-history --all --skip=1000 --max-count=2726" --report-format json --report-path /tmp/watchdog-gitleaks-eb48d6efe3444569888aa6e0ce5196ef/history-2.json --exit-code 0 --source .0artifacts/raw/gitleaks-history-2.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-eb48d6efe3444569888aa6e0ce5196ef/tree.json --exit-code 0 --source .0artifacts/raw/gitleaks-tree.json
D29 · Static Analysis (SAST)semgrep—semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/canine-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off --exclude *.arrow --exclude *.avro --exclude *.csv --exclude *.dat --exclude *.db --exclude *.feather --exclude *.geojson --exclude *.h5 --exclude *.hdf5 --exclude *.jsonl --exclude *.log --exclude *.ndjson --exclude *.npy --exclude *.npz --exclude *.orc --exclude *.parquet --exclude *.pickle --exclude *.pkl --exclude *.psv --exclude *.sqlite --exclude *.sqlite3 --exclude *.tfrecord --exclude *.tsv --exclude *.txt --exclude vendor/cloud.google.com/go/iam/apiv1 --exclude vendor/cloud.google.com/go/kms/apiv1/kmspb --exclude vendor/cloud.google.com/go/kms/internal --exclude vendor/cloud.google.com/go/longrunning/autogen/longrunningpb --exclude vendor/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb --exclude vendor/github.com/container-storage-interface/spec/lib --exclude vendor/github.com/google/s2a-go/internal/proto --exclude vendor/github.com/googleapis/gax-go/v2/internal --exclude vendor/github.com/kubernetes-csi/csi-proxy/client/groups --exclude vendor/github.com/prometheus/client_model/go --exclude vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal/envconfig --exclude vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal/otlpconfig --exclude vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal/retry --exclude vendor/go.opentelemetry.io/otel/sdk/internal/attrnorm --exclude vendor/go.opentelemetry.io/otel/semconv/v1.43.0/otelconv --exclude vendor/go.opentelemetry.io/proto/otlp/collector --exclude vendor/go.opentelemetry.io/proto/otlp/common --exclude vendor/go.opentelemetry.io/proto/otlp/resource --exclude vendor/go.opentelemetry.io/proto/otlp/trace --exclude vendor/golang.org/x/net/idna --exclude vendor/google.golang.org/genproto/googleapis/api/annotations --exclude vendor/google.golang.org/genproto/googleapis/api/httpbody --exclude vendor/google.golang.org/genproto/googleapis/cloud --exclude vendor/google.golang.org/genproto/googleapis/rpc/code --exclude vendor/google.golang.org/genproto/googleapis/rpc/errdetails --exclude vendor/google.golang.org/genproto/googleapis/rpc/status --exclude vendor/google.golang.org/genproto/googleapis/type --exclude vendor/google.golang.org/grpc/balancer/grpclb/grpc_lb_v1 --exclude vendor/google.golang.org/grpc/binarylog --exclude vendor/google.golang.org/grpc/credentials/alts/internal/proto --exclude vendor/google.golang.org/grpc/health --exclude vendor/google.golang.org/protobuf/types .22artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiesosv-scanner—osv-scanner --format json --recursive --experimental-disable-plugins transitivedependency/requirements --experimental-disable-plugins dotnet/csproj --experimental-disable-plugins dotnet/nugetcpm . /tmp/codehealth-osv-sbom-1ee12b6955fe47b78549559f50e83f8c7artifacts/raw/osv-scanner.json
D31 · IaC & Container Securitytrivy—trivy config --format json --quiet .266artifacts/raw/trivy-config.json
D32 · Data Compliance (PII/GDPR)semgrep—semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. semgrep could not parse 1 file(s) — `REDACTED` — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real.0—
D36 · Supply-chain Provenance & Signingprovenance—provenance: not applicable — No CI/build pipeline found (.github/.forgejo/.gitea workflows, .circleci, .buildkite, .woodpecker, .teamcity, .gitlab-ci.yml, .travis.yml, bitbucket-pipelines.yml, .drone.yml, .cirrus.yml, .woodpecker.yml, appveyor.yml, azure-pipelines*.yml, .pipelines/, .vsts-ci/, .azuredevops/, Jenkinsfile); there is no build to attest provenance for.0—
D37 · Vulnerability-disclosure Policydisclosure—disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.0—
D43 · Malicious Dependenciesosv-scanner—osv-scanner --format json --recursive --experimental-disable-plugins transitivedependency/requirements --experimental-disable-plugins dotnet/csproj --experimental-disable-plugins dotnet/nugetcpm . /tmp/codehealth-osv-sbom-1ee12b6955fe47b78549559f50e83f8c0artifacts/raw/osv-scanner.json

Run 01a1e658-3014-7c99-affd-4a5dc0e5a903 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.

Downloadable artifacts

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

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