Public report of kubernetes/minikube, published 24 October 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 reportMeasured under the Code Assurance Index, an open standard for code quality, using its published scoring rules (rubric version 2026.10.5). Watchdog 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, 24 October 2026, 02:03 UTC · Survey ID cd_b0e5efde279348d2a445e0f12b93ea06
kubernetes/minikube
Measured 24 October 2026, 01:52 UTC, at code version b783769
A regression is a drop of 0.5 points or more in the score, or of 2.5 or more out of 10 in a dimension, since the last survey.
Test reliability is not measured: The suite could not be re-run, but the repository declares tests of its own unreliable.
CAI scoreAt riskNo change since the last survey
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 medium codebase: 82,199 lines of product code in 4 projects, tests not counted · Estimated rebuild effort: about 0.9 person-years · Weakest lens: Production Readiness, 56
Findings by how serious they are
264 critical1685 serious496 minor
15 dimensions are left out of the score. For each one, Watchdog either couldn't measure it in this code, or found no evidence of the safeguard it looks 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
Watchdog
Producer
Canine Development
Analyzer
Watchdog engine 1.0.0
Measured
24 October 2026, 01:52 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 Watchdog. It is open to any tool that
implements it, and today Watchdog 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. Watchdog works 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 ▸
67of 70 dimensions measured by tools. The other 3 are advisory notes from an AI model, which explain the code but don't count towards the score.
2389of 2445 findings point to an exact file and line, so you can open each one in the code. The other 56 concern the repository as a whole, such as missing documentation.
70dimensions across 6 lenses, read from 82,199 lines of product code in 4 projects.
kubernetes/minikube scores 61 out of 100, but it is rated At risk while a critical security finding is open; the score itself is unchanged.
The weakest lens counts most in the score, and here that is Production Readiness, which scores 56 and is rated Adequate. Its REDACTED Scanning dimension scores 0 out of 10, and until that reaches 4, Production Readiness can't be rated higher than Adequate. The first actions are to resolve the 2 Leaked secret finding(s) in REDACTED Scanning and to resolve the 9 Dependency pinned to a stale untagged commit finding(s) in Dependency Hygiene, and if Production Readiness rose to 70, the score would rise from 61 to about 65.
264 findings are critical: 214 in IaC & Container Security, 20 in Static Analysis (SAST), 13 in Test Reliability, ten in Change Coupling, three in Secrets (history), two in REDACTED Scanning, one in Dependency Vulnerabilities and one in Supply-chain Provenance & Signing.
Watchdog couldn't measure 15 dimensions in this code, among them Code Coverage, Internal API Consistency and Navigability, so they are left out of the score. The product code is 82,199 lines, which would take an estimated 0.9 person-years, around €130,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 forThe 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.
Watchdog compares every finding with the previous survey's. A finding that has only moved to another line in the same file counts as the same finding, so only new findings appear here. Advisory notes from the AI model are left out, because the model words them afresh in every survey.
Fixed since the last survey: 28 findings
These 28 critical or serious findings were in the previous survey, on 10 October 2026, and are gone from this one.
Dependency Vulnerabilities · High CVE: [GHSA redacted] REDACTED
Dependency Vulnerabilities · High CVE: [GHSA redacted] REDACTED
Dependency Vulnerabilities · Medium CVE: GO-2026-6603 REDACTED
IaC & Container Security · High IaC: REDACTED REDACTED
IaC & Container Security · High IaC: REDACTED REDACTED
IaC & Container Security · High IaC: REDACTED REDACTED
IaC & Container Security · High IaC: REDACTED REDACTED
Supply-chain Provenance & Signing REDACTED
Exception handling · Swallowed exception (caught, then discarded) pkg/drivers/vmware/vmware_windows.go
Exception handling · Swallowed exception (caught, then discarded) pkg/drivers/vmware/vmware_windows.go
Exception handling · Swallowed exception (caught, then discarded) pkg/drivers/vmware/vmware_windows.go
Exception handling · Swallowed exception (caught, then discarded) pkg/drivers/vmware/vmware_windows.go
Exception handling · Swallowed exception (caught, then discarded) pkg/minikube/detect/detect.go
Exception handling · Swallowed exception (caught, then discarded) pkg/minikube/detect/detect.go
Exception handling · Swallowed exception (caught, then discarded) pkg/minikube/detect/detect.go
Exception handling · Swallowed exception (caught, then discarded) pkg/minikube/machine/client.go
Exception handling · Swallowed exception (caught, then discarded) pkg/minikube/registry/drvs/docker/docker.go
Exception handling · Swallowed exception (caught, then discarded) pkg/minikube/sshutil/sshutil.go
Exception handling · Swallowed exception (caught, then discarded) pkg/minikube/tunnel/process.go
Rebuild cost: about €130,000 · Estimate
Cost to rebuild
€44,000 to €220,000, for 727 to 2,306 hours of work, about 0.9 person-years for 1 to 2 engineers
Difficulty of the problem
Standard, 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 61. 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.
Size
Medium: 82,199 lines of product code
How the estimate is made: Watchdog prices 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 2 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (2).
Resolve the 1 No ADRs found finding(s) in ADR Quality.
Raises the score by about 4 points · Low effort · ADR Quality
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.
Where the investment is most exposed · Value at risk
This code would cost about €130,000 to build again, about 0.9 person-years of work. Its weakest lens is Production Readiness, at 56 (Adequate). Production Readiness is about whether the product is ready to run in production and to change without breaking. Because the weakest lens counts most in the score, work on Production Readiness also moves the score most.
Based on: the rebuild estimate · the Production Readiness grade · how much each lens counts
What to do: Start with the Production Readiness actions in Top priorities.
If you do one thing first · First action
Resolve the 2 Leaked secret finding(s) in REDACTED Scanning. Of all the actions in this report, it raises the score most for the work it takes: about 5 points for low effort, because it clears the 2 REDACTED Scanning findings. The next survey will show the change in the score.
Based on: the ranked actions in Top priorities, by score gain and effort
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.
220 modules, with 314 dependencies between them. 2 loops run through 6 of the modules, marked above the diagonal.
The table shows the 40 modules with the most connections; 180 more are left out to keep it readable.
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.
io/minikube/pkg/drivers/common/vmnet uses io/minikube/pkg/libmachine/state, so a change to io/minikube/pkg/libmachine/state can break io/minikube/pkg/drivers/common/vmnet, while a change to io/minikube/pkg/drivers/common/vmnet can't break io/minikube/pkg/libmachine/state.
Position
Below the diagonal: io/minikube/pkg/drivers/common/vmnet uses a module listed above it, which is the healthy direction.
io/minikube/pkg/drivers/common/vmnet uses io/minikube/pkg/minikube/reason, so a change to io/minikube/pkg/minikube/reason can break io/minikube/pkg/drivers/common/vmnet, while a change to io/minikube/pkg/drivers/common/vmnet can't break io/minikube/pkg/minikube/reason.
Position
Below the diagonal: io/minikube/pkg/drivers/common/vmnet uses a module listed above it, which is the healthy direction.
io/minikube/pkg/drivers/common/vmnet uses io/minikube/pkg/minikube/run, so a change to io/minikube/pkg/minikube/run can break io/minikube/pkg/drivers/common/vmnet, while a change to io/minikube/pkg/drivers/common/vmnet can't break io/minikube/pkg/minikube/run.
Position
Below the diagonal: io/minikube/pkg/drivers/common/vmnet uses a module listed above it, which is the healthy direction.
io/minikube/pkg/libmachine/drivers uses io/minikube/pkg/libmachine/mcnflag, so a change to io/minikube/pkg/libmachine/mcnflag can break io/minikube/pkg/libmachine/drivers, while a change to io/minikube/pkg/libmachine/drivers can't break io/minikube/pkg/libmachine/mcnflag.
Position
Below the diagonal: io/minikube/pkg/libmachine/drivers uses a module listed above it, which is the healthy direction.
io/minikube/pkg/libmachine/drivers uses io/minikube/pkg/libmachine/ssh, so a change to io/minikube/pkg/libmachine/ssh can break io/minikube/pkg/libmachine/drivers, while a change to io/minikube/pkg/libmachine/drivers can't break io/minikube/pkg/libmachine/ssh.
Position
Below the diagonal: io/minikube/pkg/libmachine/drivers uses a module listed above it, which is the healthy direction.
io/minikube/pkg/libmachine/drivers uses io/minikube/pkg/libmachine/state, so a change to io/minikube/pkg/libmachine/state can break io/minikube/pkg/libmachine/drivers, while a change to io/minikube/pkg/libmachine/drivers can't break io/minikube/pkg/libmachine/state.
Position
Below the diagonal: io/minikube/pkg/libmachine/drivers uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/assets uses io/minikube/pkg/minikube/config, so a change to io/minikube/pkg/minikube/config can break io/minikube/pkg/minikube/assets, while a change to io/minikube/pkg/minikube/assets can't break io/minikube/pkg/minikube/config.
Position
Below the diagonal: io/minikube/pkg/minikube/assets uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/registry uses io/minikube/pkg/minikube/run, so a change to io/minikube/pkg/minikube/run can break io/minikube/pkg/minikube/registry, while a change to io/minikube/pkg/minikube/registry can't break io/minikube/pkg/minikube/run.
Position
Below the diagonal: io/minikube/pkg/minikube/registry uses a module listed above it, which is the healthy direction.
io/minikube/pkg/drivers/krunkit uses io/minikube/pkg/libmachine/state, so a change to io/minikube/pkg/libmachine/state can break io/minikube/pkg/drivers/krunkit, while a change to io/minikube/pkg/drivers/krunkit can't break io/minikube/pkg/libmachine/state.
Position
Below the diagonal: io/minikube/pkg/drivers/krunkit uses a module listed above it, which is the healthy direction.
io/minikube/pkg/drivers/krunkit uses io/minikube/pkg/minikube/run, so a change to io/minikube/pkg/minikube/run can break io/minikube/pkg/drivers/krunkit, while a change to io/minikube/pkg/drivers/krunkit can't break io/minikube/pkg/minikube/run.
Position
Below the diagonal: io/minikube/pkg/drivers/krunkit uses a module listed above it, which is the healthy direction.
io/minikube/pkg/drivers/krunkit uses io/minikube/pkg/drivers/common/vmnet, so a change to io/minikube/pkg/drivers/common/vmnet can break io/minikube/pkg/drivers/krunkit, while a change to io/minikube/pkg/drivers/krunkit can't break io/minikube/pkg/drivers/common/vmnet.
Position
Below the diagonal: io/minikube/pkg/drivers/krunkit uses a module listed above it, which is the healthy direction.
io/minikube/pkg/drivers/krunkit uses io/minikube/pkg/libmachine/drivers, so a change to io/minikube/pkg/libmachine/drivers can break io/minikube/pkg/drivers/krunkit, while a change to io/minikube/pkg/drivers/krunkit can't break io/minikube/pkg/libmachine/drivers.
Position
Below the diagonal: io/minikube/pkg/drivers/krunkit uses a module listed above it, which is the healthy direction.
io/minikube/pkg/drivers/vfkit uses io/minikube/pkg/libmachine/state, so a change to io/minikube/pkg/libmachine/state can break io/minikube/pkg/drivers/vfkit, while a change to io/minikube/pkg/drivers/vfkit can't break io/minikube/pkg/libmachine/state.
Position
Below the diagonal: io/minikube/pkg/drivers/vfkit uses a module listed above it, which is the healthy direction.
io/minikube/pkg/drivers/vfkit uses io/minikube/pkg/minikube/run, so a change to io/minikube/pkg/minikube/run can break io/minikube/pkg/drivers/vfkit, while a change to io/minikube/pkg/drivers/vfkit can't break io/minikube/pkg/minikube/run.
Position
Below the diagonal: io/minikube/pkg/drivers/vfkit uses a module listed above it, which is the healthy direction.
io/minikube/pkg/drivers/vfkit uses io/minikube/pkg/drivers/common/vmnet, so a change to io/minikube/pkg/drivers/common/vmnet can break io/minikube/pkg/drivers/vfkit, while a change to io/minikube/pkg/drivers/vfkit can't break io/minikube/pkg/drivers/common/vmnet.
Position
Below the diagonal: io/minikube/pkg/drivers/vfkit uses a module listed above it, which is the healthy direction.
io/minikube/pkg/drivers/vfkit uses io/minikube/pkg/libmachine/drivers, so a change to io/minikube/pkg/libmachine/drivers can break io/minikube/pkg/drivers/vfkit, while a change to io/minikube/pkg/drivers/vfkit can't break io/minikube/pkg/libmachine/drivers.
Position
Below the diagonal: io/minikube/pkg/drivers/vfkit uses a module listed above it, which is the healthy direction.
io/minikube/pkg/libmachine/drivers/rpcdriver uses io/minikube/pkg/libmachine/mcnflag, so a change to io/minikube/pkg/libmachine/mcnflag can break io/minikube/pkg/libmachine/drivers/rpcdriver, while a change to io/minikube/pkg/libmachine/drivers/rpcdriver can't break io/minikube/pkg/libmachine/mcnflag.
Position
Below the diagonal: io/minikube/pkg/libmachine/drivers/rpcdriver uses a module listed above it, which is the healthy direction.
io/minikube/pkg/libmachine/drivers/rpcdriver uses io/minikube/pkg/libmachine/state, so a change to io/minikube/pkg/libmachine/state can break io/minikube/pkg/libmachine/drivers/rpcdriver, while a change to io/minikube/pkg/libmachine/drivers/rpcdriver can't break io/minikube/pkg/libmachine/state.
Position
Below the diagonal: io/minikube/pkg/libmachine/drivers/rpcdriver uses a module listed above it, which is the healthy direction.
io/minikube/pkg/libmachine/drivers/rpcdriver uses io/minikube/pkg/libmachine/drivers, so a change to io/minikube/pkg/libmachine/drivers can break io/minikube/pkg/libmachine/drivers/rpcdriver, while a change to io/minikube/pkg/libmachine/drivers/rpcdriver can't break io/minikube/pkg/libmachine/drivers.
Position
Below the diagonal: io/minikube/pkg/libmachine/drivers/rpcdriver uses a module listed above it, which is the healthy direction.
io/minikube/pkg/libmachine/host uses io/minikube/pkg/libmachine/auth, so a change to io/minikube/pkg/libmachine/auth can break io/minikube/pkg/libmachine/host, while a change to io/minikube/pkg/libmachine/host can't break io/minikube/pkg/libmachine/auth.
Position
Below the diagonal: io/minikube/pkg/libmachine/host uses a module listed above it, which is the healthy direction.
io/minikube/pkg/libmachine/host uses io/minikube/pkg/libmachine/engine, so a change to io/minikube/pkg/libmachine/engine can break io/minikube/pkg/libmachine/host, while a change to io/minikube/pkg/libmachine/host can't break io/minikube/pkg/libmachine/engine.
Position
Below the diagonal: io/minikube/pkg/libmachine/host uses a module listed above it, which is the healthy direction.
io/minikube/pkg/libmachine/host uses io/minikube/pkg/libmachine/ssh, so a change to io/minikube/pkg/libmachine/ssh can break io/minikube/pkg/libmachine/host, while a change to io/minikube/pkg/libmachine/host can't break io/minikube/pkg/libmachine/ssh.
Position
Below the diagonal: io/minikube/pkg/libmachine/host uses a module listed above it, which is the healthy direction.
io/minikube/pkg/libmachine/host uses io/minikube/pkg/libmachine/state, so a change to io/minikube/pkg/libmachine/state can break io/minikube/pkg/libmachine/host, while a change to io/minikube/pkg/libmachine/host can't break io/minikube/pkg/libmachine/state.
Position
Below the diagonal: io/minikube/pkg/libmachine/host uses a module listed above it, which is the healthy direction.
io/minikube/pkg/libmachine/host uses io/minikube/pkg/libmachine/drivers, so a change to io/minikube/pkg/libmachine/drivers can break io/minikube/pkg/libmachine/host, while a change to io/minikube/pkg/libmachine/host can't break io/minikube/pkg/libmachine/drivers.
Position
Below the diagonal: io/minikube/pkg/libmachine/host uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/cni uses io/minikube/pkg/minikube/config, so a change to io/minikube/pkg/minikube/config can break io/minikube/pkg/minikube/cni, while a change to io/minikube/pkg/minikube/cni can't break io/minikube/pkg/minikube/config.
Position
Below the diagonal: io/minikube/pkg/minikube/cni uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/cni uses io/minikube/pkg/minikube/assets, so a change to io/minikube/pkg/minikube/assets can break io/minikube/pkg/minikube/cni, while a change to io/minikube/pkg/minikube/cni can't break io/minikube/pkg/minikube/assets.
Position
Below the diagonal: io/minikube/pkg/minikube/cni uses a module listed above it, which is the healthy direction.
18→23 io/minikube/pkg/minikube/cni uses io/minikube/pkg/minikube/commandpart of a loop✕
Connections
1 pair of types, where a type in io/minikube/pkg/minikube/cni uses a type in io/minikube/pkg/minikube/command.
io/minikube/pkg/minikube/cni uses io/minikube/pkg/minikube/command, so a change to io/minikube/pkg/minikube/command can break io/minikube/pkg/minikube/cni, while a change to io/minikube/pkg/minikube/cni can't break io/minikube/pkg/minikube/command.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
io/minikube/pkg/minikube/cruntime uses io/minikube/pkg/minikube/config, so a change to io/minikube/pkg/minikube/config can break io/minikube/pkg/minikube/cruntime, while a change to io/minikube/pkg/minikube/cruntime can't break io/minikube/pkg/minikube/config.
Position
Below the diagonal: io/minikube/pkg/minikube/cruntime uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/cruntime uses io/minikube/pkg/minikube/assets, so a change to io/minikube/pkg/minikube/assets can break io/minikube/pkg/minikube/cruntime, while a change to io/minikube/pkg/minikube/cruntime can't break io/minikube/pkg/minikube/assets.
Position
Below the diagonal: io/minikube/pkg/minikube/cruntime uses a module listed above it, which is the healthy direction.
19→23 io/minikube/pkg/minikube/cruntime uses io/minikube/pkg/minikube/commandpart of a loop✕
Connections
4 pairs of types, where a type in io/minikube/pkg/minikube/cruntime uses a type in io/minikube/pkg/minikube/command.
io/minikube/pkg/minikube/cruntime uses io/minikube/pkg/minikube/command, so a change to io/minikube/pkg/minikube/command can break io/minikube/pkg/minikube/cruntime, while a change to io/minikube/pkg/minikube/cruntime can't break io/minikube/pkg/minikube/command.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
io/minikube/pkg/provision uses io/minikube/pkg/libmachine/auth, so a change to io/minikube/pkg/libmachine/auth can break io/minikube/pkg/provision, while a change to io/minikube/pkg/provision can't break io/minikube/pkg/libmachine/auth.
Position
Below the diagonal: io/minikube/pkg/provision uses a module listed above it, which is the healthy direction.
io/minikube/pkg/provision uses io/minikube/pkg/libmachine/engine, so a change to io/minikube/pkg/libmachine/engine can break io/minikube/pkg/provision, while a change to io/minikube/pkg/provision can't break io/minikube/pkg/libmachine/engine.
Position
Below the diagonal: io/minikube/pkg/provision uses a module listed above it, which is the healthy direction.
io/minikube/pkg/provision uses io/minikube/pkg/libmachine/drivers, so a change to io/minikube/pkg/libmachine/drivers can break io/minikube/pkg/provision, while a change to io/minikube/pkg/provision can't break io/minikube/pkg/libmachine/drivers.
Position
Below the diagonal: io/minikube/pkg/provision uses a module listed above it, which is the healthy direction.
20→22 io/minikube/pkg/provision uses io/minikube/pkg/libmachine/provisionpart of a loop✕
Connections
9 pairs of types, where a type in io/minikube/pkg/provision uses a type in io/minikube/pkg/libmachine/provision.
io/minikube/pkg/provision uses io/minikube/pkg/libmachine/provision, so a change to io/minikube/pkg/libmachine/provision can break io/minikube/pkg/provision, while a change to io/minikube/pkg/provision can't break io/minikube/pkg/libmachine/provision.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
io/minikube/pkg/libmachine/persist uses io/minikube/pkg/libmachine/host, so a change to io/minikube/pkg/libmachine/host can break io/minikube/pkg/libmachine/persist, while a change to io/minikube/pkg/libmachine/persist can't break io/minikube/pkg/libmachine/host.
Position
Below the diagonal: io/minikube/pkg/libmachine/persist uses a module listed above it, which is the healthy direction.
io/minikube/pkg/libmachine/provision uses io/minikube/pkg/libmachine/auth, so a change to io/minikube/pkg/libmachine/auth can break io/minikube/pkg/libmachine/provision, while a change to io/minikube/pkg/libmachine/provision can't break io/minikube/pkg/libmachine/auth.
Position
Below the diagonal: io/minikube/pkg/libmachine/provision uses a module listed above it, which is the healthy direction.
io/minikube/pkg/libmachine/provision uses io/minikube/pkg/libmachine/engine, so a change to io/minikube/pkg/libmachine/engine can break io/minikube/pkg/libmachine/provision, while a change to io/minikube/pkg/libmachine/provision can't break io/minikube/pkg/libmachine/engine.
Position
Below the diagonal: io/minikube/pkg/libmachine/provision uses a module listed above it, which is the healthy direction.
io/minikube/pkg/libmachine/provision uses io/minikube/pkg/libmachine/drivers, so a change to io/minikube/pkg/libmachine/drivers can break io/minikube/pkg/libmachine/provision, while a change to io/minikube/pkg/libmachine/provision can't break io/minikube/pkg/libmachine/drivers.
Position
Below the diagonal: io/minikube/pkg/libmachine/provision uses a module listed above it, which is the healthy direction.
io/minikube/pkg/libmachine/provision uses io/minikube/pkg/provision, so a change to io/minikube/pkg/provision can break io/minikube/pkg/libmachine/provision, while a change to io/minikube/pkg/libmachine/provision can't break io/minikube/pkg/provision.
Position
Below the diagonal: io/minikube/pkg/libmachine/provision uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/command uses io/minikube/pkg/libmachine/drivers, so a change to io/minikube/pkg/libmachine/drivers can break io/minikube/pkg/minikube/command, while a change to io/minikube/pkg/minikube/command can't break io/minikube/pkg/libmachine/drivers.
Position
Below the diagonal: io/minikube/pkg/minikube/command uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/command uses io/minikube/pkg/minikube/assets, so a change to io/minikube/pkg/minikube/assets can break io/minikube/pkg/minikube/command, while a change to io/minikube/pkg/minikube/command can't break io/minikube/pkg/minikube/assets.
Position
Below the diagonal: io/minikube/pkg/minikube/command uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/command uses io/minikube/pkg/minikube/cni, so a change to io/minikube/pkg/minikube/cni can break io/minikube/pkg/minikube/command, while a change to io/minikube/pkg/minikube/command can't break io/minikube/pkg/minikube/cni.
Position
Below the diagonal: io/minikube/pkg/minikube/command uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/command uses io/minikube/pkg/minikube/cruntime, so a change to io/minikube/pkg/minikube/cruntime can break io/minikube/pkg/minikube/command, while a change to io/minikube/pkg/minikube/command can't break io/minikube/pkg/minikube/cruntime.
Position
Below the diagonal: io/minikube/pkg/minikube/command uses a module listed above it, which is the healthy direction.
io/minikube/pkg/addons uses io/minikube/pkg/minikube/config, so a change to io/minikube/pkg/minikube/config can break io/minikube/pkg/addons, while a change to io/minikube/pkg/addons can't break io/minikube/pkg/minikube/config.
Position
Below the diagonal: io/minikube/pkg/addons uses a module listed above it, which is the healthy direction.
io/minikube/pkg/addons uses io/minikube/pkg/minikube/run, so a change to io/minikube/pkg/minikube/run can break io/minikube/pkg/addons, while a change to io/minikube/pkg/addons can't break io/minikube/pkg/minikube/run.
Position
Below the diagonal: io/minikube/pkg/addons uses a module listed above it, which is the healthy direction.
io/minikube/pkg/addons uses io/minikube/pkg/minikube/assets, so a change to io/minikube/pkg/minikube/assets can break io/minikube/pkg/addons, while a change to io/minikube/pkg/addons can't break io/minikube/pkg/minikube/assets.
Position
Below the diagonal: io/minikube/pkg/addons uses a module listed above it, which is the healthy direction.
io/minikube/pkg/addons uses io/minikube/pkg/minikube/command, so a change to io/minikube/pkg/minikube/command can break io/minikube/pkg/addons, while a change to io/minikube/pkg/addons can't break io/minikube/pkg/minikube/command.
Position
Below the diagonal: io/minikube/pkg/addons uses a module listed above it, which is the healthy direction.
io/minikube/pkg/drivers/kic uses io/minikube/pkg/libmachine/state, so a change to io/minikube/pkg/libmachine/state can break io/minikube/pkg/drivers/kic, while a change to io/minikube/pkg/drivers/kic can't break io/minikube/pkg/libmachine/state.
Position
Below the diagonal: io/minikube/pkg/drivers/kic uses a module listed above it, which is the healthy direction.
io/minikube/pkg/drivers/kic uses io/minikube/pkg/libmachine/drivers, so a change to io/minikube/pkg/libmachine/drivers can break io/minikube/pkg/drivers/kic, while a change to io/minikube/pkg/drivers/kic can't break io/minikube/pkg/libmachine/drivers.
Position
Below the diagonal: io/minikube/pkg/drivers/kic uses a module listed above it, which is the healthy direction.
io/minikube/pkg/drivers/kic uses io/minikube/pkg/minikube/command, so a change to io/minikube/pkg/minikube/command can break io/minikube/pkg/drivers/kic, while a change to io/minikube/pkg/drivers/kic can't break io/minikube/pkg/minikube/command.
Position
Below the diagonal: io/minikube/pkg/drivers/kic uses a module listed above it, which is the healthy direction.
io/minikube/pkg/drivers/none uses io/minikube/pkg/libmachine/state, so a change to io/minikube/pkg/libmachine/state can break io/minikube/pkg/drivers/none, while a change to io/minikube/pkg/drivers/none can't break io/minikube/pkg/libmachine/state.
Position
Below the diagonal: io/minikube/pkg/drivers/none uses a module listed above it, which is the healthy direction.
io/minikube/pkg/drivers/none uses io/minikube/pkg/libmachine/drivers, so a change to io/minikube/pkg/libmachine/drivers can break io/minikube/pkg/drivers/none, while a change to io/minikube/pkg/drivers/none can't break io/minikube/pkg/libmachine/drivers.
Position
Below the diagonal: io/minikube/pkg/drivers/none uses a module listed above it, which is the healthy direction.
io/minikube/pkg/drivers/none uses io/minikube/pkg/minikube/cruntime, so a change to io/minikube/pkg/minikube/cruntime can break io/minikube/pkg/drivers/none, while a change to io/minikube/pkg/drivers/none can't break io/minikube/pkg/minikube/cruntime.
Position
Below the diagonal: io/minikube/pkg/drivers/none uses a module listed above it, which is the healthy direction.
io/minikube/pkg/drivers/none uses io/minikube/pkg/minikube/command, so a change to io/minikube/pkg/minikube/command can break io/minikube/pkg/drivers/none, while a change to io/minikube/pkg/drivers/none can't break io/minikube/pkg/minikube/command.
Position
Below the diagonal: io/minikube/pkg/drivers/none uses a module listed above it, which is the healthy direction.
io/minikube/pkg/drivers/ssh uses io/minikube/pkg/libmachine/state, so a change to io/minikube/pkg/libmachine/state can break io/minikube/pkg/drivers/ssh, while a change to io/minikube/pkg/drivers/ssh can't break io/minikube/pkg/libmachine/state.
Position
Below the diagonal: io/minikube/pkg/drivers/ssh uses a module listed above it, which is the healthy direction.
io/minikube/pkg/drivers/ssh uses io/minikube/pkg/libmachine/drivers, so a change to io/minikube/pkg/libmachine/drivers can break io/minikube/pkg/drivers/ssh, while a change to io/minikube/pkg/drivers/ssh can't break io/minikube/pkg/libmachine/drivers.
Position
Below the diagonal: io/minikube/pkg/drivers/ssh uses a module listed above it, which is the healthy direction.
io/minikube/pkg/drivers/ssh uses io/minikube/pkg/minikube/cruntime, so a change to io/minikube/pkg/minikube/cruntime can break io/minikube/pkg/drivers/ssh, while a change to io/minikube/pkg/drivers/ssh can't break io/minikube/pkg/minikube/cruntime.
Position
Below the diagonal: io/minikube/pkg/drivers/ssh uses a module listed above it, which is the healthy direction.
io/minikube/pkg/drivers/ssh uses io/minikube/pkg/minikube/command, so a change to io/minikube/pkg/minikube/command can break io/minikube/pkg/drivers/ssh, while a change to io/minikube/pkg/drivers/ssh can't break io/minikube/pkg/minikube/command.
Position
Below the diagonal: io/minikube/pkg/drivers/ssh uses a module listed above it, which is the healthy direction.
io/minikube/pkg/libmachine uses io/minikube/pkg/libmachine/ssh, so a change to io/minikube/pkg/libmachine/ssh can break io/minikube/pkg/libmachine, while a change to io/minikube/pkg/libmachine can't break io/minikube/pkg/libmachine/ssh.
Position
Below the diagonal: io/minikube/pkg/libmachine uses a module listed above it, which is the healthy direction.
io/minikube/pkg/libmachine uses io/minikube/pkg/libmachine/drivers/rpcdriver, so a change to io/minikube/pkg/libmachine/drivers/rpcdriver can break io/minikube/pkg/libmachine, while a change to io/minikube/pkg/libmachine can't break io/minikube/pkg/libmachine/drivers/rpcdriver.
Position
Below the diagonal: io/minikube/pkg/libmachine uses a module listed above it, which is the healthy direction.
io/minikube/pkg/libmachine uses io/minikube/pkg/libmachine/host, so a change to io/minikube/pkg/libmachine/host can break io/minikube/pkg/libmachine, while a change to io/minikube/pkg/libmachine can't break io/minikube/pkg/libmachine/host.
Position
Below the diagonal: io/minikube/pkg/libmachine uses a module listed above it, which is the healthy direction.
io/minikube/pkg/libmachine uses io/minikube/pkg/libmachine/persist, so a change to io/minikube/pkg/libmachine/persist can break io/minikube/pkg/libmachine, while a change to io/minikube/pkg/libmachine can't break io/minikube/pkg/libmachine/persist.
Position
Below the diagonal: io/minikube/pkg/libmachine uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/bootstrapper uses io/minikube/pkg/minikube/config, so a change to io/minikube/pkg/minikube/config can break io/minikube/pkg/minikube/bootstrapper, while a change to io/minikube/pkg/minikube/bootstrapper can't break io/minikube/pkg/minikube/config.
Position
Below the diagonal: io/minikube/pkg/minikube/bootstrapper uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/bootstrapper uses io/minikube/pkg/minikube/run, so a change to io/minikube/pkg/minikube/run can break io/minikube/pkg/minikube/bootstrapper, while a change to io/minikube/pkg/minikube/bootstrapper can't break io/minikube/pkg/minikube/run.
Position
Below the diagonal: io/minikube/pkg/minikube/bootstrapper uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/bootstrapper uses io/minikube/pkg/minikube/cruntime, so a change to io/minikube/pkg/minikube/cruntime can break io/minikube/pkg/minikube/bootstrapper, while a change to io/minikube/pkg/minikube/bootstrapper can't break io/minikube/pkg/minikube/cruntime.
Position
Below the diagonal: io/minikube/pkg/minikube/bootstrapper uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/bootstrapper uses io/minikube/pkg/minikube/command, so a change to io/minikube/pkg/minikube/command can break io/minikube/pkg/minikube/bootstrapper, while a change to io/minikube/pkg/minikube/bootstrapper can't break io/minikube/pkg/minikube/command.
Position
Below the diagonal: io/minikube/pkg/minikube/bootstrapper uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/bootstrapper/bsutil uses io/minikube/pkg/minikube/config, so a change to io/minikube/pkg/minikube/config can break io/minikube/pkg/minikube/bootstrapper/bsutil, while a change to io/minikube/pkg/minikube/bootstrapper/bsutil can't break io/minikube/pkg/minikube/config.
Position
Below the diagonal: io/minikube/pkg/minikube/bootstrapper/bsutil uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/bootstrapper/bsutil uses io/minikube/pkg/minikube/assets, so a change to io/minikube/pkg/minikube/assets can break io/minikube/pkg/minikube/bootstrapper/bsutil, while a change to io/minikube/pkg/minikube/bootstrapper/bsutil can't break io/minikube/pkg/minikube/assets.
Position
Below the diagonal: io/minikube/pkg/minikube/bootstrapper/bsutil uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/bootstrapper/bsutil uses io/minikube/pkg/minikube/cruntime, so a change to io/minikube/pkg/minikube/cruntime can break io/minikube/pkg/minikube/bootstrapper/bsutil, while a change to io/minikube/pkg/minikube/bootstrapper/bsutil can't break io/minikube/pkg/minikube/cruntime.
Position
Below the diagonal: io/minikube/pkg/minikube/bootstrapper/bsutil uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/bootstrapper/bsutil uses io/minikube/pkg/minikube/command, so a change to io/minikube/pkg/minikube/command can break io/minikube/pkg/minikube/bootstrapper/bsutil, while a change to io/minikube/pkg/minikube/bootstrapper/bsutil can't break io/minikube/pkg/minikube/command.
Position
Below the diagonal: io/minikube/pkg/minikube/bootstrapper/bsutil uses a module listed above it, which is the healthy direction.
io/minikube/pkg/libmachine/libmachinetest uses io/minikube/pkg/libmachine/state, so a change to io/minikube/pkg/libmachine/state can break io/minikube/pkg/libmachine/libmachinetest, while a change to io/minikube/pkg/libmachine/libmachinetest can't break io/minikube/pkg/libmachine/state.
Position
Below the diagonal: io/minikube/pkg/libmachine/libmachinetest uses a module listed above it, which is the healthy direction.
io/minikube/pkg/libmachine/libmachinetest uses io/minikube/pkg/libmachine/drivers, so a change to io/minikube/pkg/libmachine/drivers can break io/minikube/pkg/libmachine/libmachinetest, while a change to io/minikube/pkg/libmachine/libmachinetest can't break io/minikube/pkg/libmachine/drivers.
Position
Below the diagonal: io/minikube/pkg/libmachine/libmachinetest uses a module listed above it, which is the healthy direction.
io/minikube/pkg/libmachine/libmachinetest uses io/minikube/pkg/libmachine/host, so a change to io/minikube/pkg/libmachine/host can break io/minikube/pkg/libmachine/libmachinetest, while a change to io/minikube/pkg/libmachine/libmachinetest can't break io/minikube/pkg/libmachine/host.
Position
Below the diagonal: io/minikube/pkg/libmachine/libmachinetest uses a module listed above it, which is the healthy direction.
io/minikube/pkg/libmachine/libmachinetest uses io/minikube/pkg/libmachine/persist, so a change to io/minikube/pkg/libmachine/persist can break io/minikube/pkg/libmachine/libmachinetest, while a change to io/minikube/pkg/libmachine/libmachinetest can't break io/minikube/pkg/libmachine/persist.
Position
Below the diagonal: io/minikube/pkg/libmachine/libmachinetest uses a module listed above it, which is the healthy direction.
io/minikube/pkg/libmachine/libmachinetest uses io/minikube/pkg/libmachine, so a change to io/minikube/pkg/libmachine can break io/minikube/pkg/libmachine/libmachinetest, while a change to io/minikube/pkg/libmachine/libmachinetest can't break io/minikube/pkg/libmachine.
Position
Below the diagonal: io/minikube/pkg/libmachine/libmachinetest uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/bootstrapper/bsutil/kverify uses io/minikube/pkg/libmachine/state, so a change to io/minikube/pkg/libmachine/state can break io/minikube/pkg/minikube/bootstrapper/bsutil/kverify, while a change to io/minikube/pkg/minikube/bootstrapper/bsutil/kverify can't break io/minikube/pkg/libmachine/state.
Position
Below the diagonal: io/minikube/pkg/minikube/bootstrapper/bsutil/kverify uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/bootstrapper/bsutil/kverify uses io/minikube/pkg/minikube/config, so a change to io/minikube/pkg/minikube/config can break io/minikube/pkg/minikube/bootstrapper/bsutil/kverify, while a change to io/minikube/pkg/minikube/bootstrapper/bsutil/kverify can't break io/minikube/pkg/minikube/config.
Position
Below the diagonal: io/minikube/pkg/minikube/bootstrapper/bsutil/kverify uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/bootstrapper/bsutil/kverify uses io/minikube/pkg/minikube/cruntime, so a change to io/minikube/pkg/minikube/cruntime can break io/minikube/pkg/minikube/bootstrapper/bsutil/kverify, while a change to io/minikube/pkg/minikube/bootstrapper/bsutil/kverify can't break io/minikube/pkg/minikube/cruntime.
Position
Below the diagonal: io/minikube/pkg/minikube/bootstrapper/bsutil/kverify uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/bootstrapper/bsutil/kverify uses io/minikube/pkg/minikube/command, so a change to io/minikube/pkg/minikube/command can break io/minikube/pkg/minikube/bootstrapper/bsutil/kverify, while a change to io/minikube/pkg/minikube/bootstrapper/bsutil/kverify can't break io/minikube/pkg/minikube/command.
Position
Below the diagonal: io/minikube/pkg/minikube/bootstrapper/bsutil/kverify uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/bootstrapper/bsutil/kverify uses io/minikube/pkg/minikube/bootstrapper, so a change to io/minikube/pkg/minikube/bootstrapper can break io/minikube/pkg/minikube/bootstrapper/bsutil/kverify, while a change to io/minikube/pkg/minikube/bootstrapper/bsutil/kverify can't break io/minikube/pkg/minikube/bootstrapper.
Position
Below the diagonal: io/minikube/pkg/minikube/bootstrapper/bsutil/kverify uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/bootstrapper/kubeadm uses io/minikube/pkg/minikube/config, so a change to io/minikube/pkg/minikube/config can break io/minikube/pkg/minikube/bootstrapper/kubeadm, while a change to io/minikube/pkg/minikube/bootstrapper/kubeadm can't break io/minikube/pkg/minikube/config.
Position
Below the diagonal: io/minikube/pkg/minikube/bootstrapper/kubeadm uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/bootstrapper/kubeadm uses io/minikube/pkg/minikube/run, so a change to io/minikube/pkg/minikube/run can break io/minikube/pkg/minikube/bootstrapper/kubeadm, while a change to io/minikube/pkg/minikube/bootstrapper/kubeadm can't break io/minikube/pkg/minikube/run.
Position
Below the diagonal: io/minikube/pkg/minikube/bootstrapper/kubeadm uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/bootstrapper/kubeadm uses io/minikube/pkg/minikube/cruntime, so a change to io/minikube/pkg/minikube/cruntime can break io/minikube/pkg/minikube/bootstrapper/kubeadm, while a change to io/minikube/pkg/minikube/bootstrapper/kubeadm can't break io/minikube/pkg/minikube/cruntime.
Position
Below the diagonal: io/minikube/pkg/minikube/bootstrapper/kubeadm uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/bootstrapper/kubeadm uses io/minikube/pkg/minikube/command, so a change to io/minikube/pkg/minikube/command can break io/minikube/pkg/minikube/bootstrapper/kubeadm, while a change to io/minikube/pkg/minikube/bootstrapper/kubeadm can't break io/minikube/pkg/minikube/command.
Position
Below the diagonal: io/minikube/pkg/minikube/bootstrapper/kubeadm uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/bootstrapper/kubeadm uses io/minikube/pkg/libmachine, so a change to io/minikube/pkg/libmachine can break io/minikube/pkg/minikube/bootstrapper/kubeadm, while a change to io/minikube/pkg/minikube/bootstrapper/kubeadm can't break io/minikube/pkg/libmachine.
Position
Below the diagonal: io/minikube/pkg/minikube/bootstrapper/kubeadm uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/bootstrapper/kubeadm uses io/minikube/pkg/minikube/bootstrapper, so a change to io/minikube/pkg/minikube/bootstrapper can break io/minikube/pkg/minikube/bootstrapper/kubeadm, while a change to io/minikube/pkg/minikube/bootstrapper/kubeadm can't break io/minikube/pkg/minikube/bootstrapper.
Position
Below the diagonal: io/minikube/pkg/minikube/bootstrapper/kubeadm uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/cluster uses io/minikube/pkg/minikube/config, so a change to io/minikube/pkg/minikube/config can break io/minikube/pkg/minikube/cluster, while a change to io/minikube/pkg/minikube/cluster can't break io/minikube/pkg/minikube/config.
Position
Below the diagonal: io/minikube/pkg/minikube/cluster uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/cluster uses io/minikube/pkg/libmachine/host, so a change to io/minikube/pkg/libmachine/host can break io/minikube/pkg/minikube/cluster, while a change to io/minikube/pkg/minikube/cluster can't break io/minikube/pkg/libmachine/host.
Position
Below the diagonal: io/minikube/pkg/minikube/cluster uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/cluster uses io/minikube/pkg/minikube/cruntime, so a change to io/minikube/pkg/minikube/cruntime can break io/minikube/pkg/minikube/cluster, while a change to io/minikube/pkg/minikube/cluster can't break io/minikube/pkg/minikube/cruntime.
Position
Below the diagonal: io/minikube/pkg/minikube/cluster uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/cluster uses io/minikube/pkg/minikube/command, so a change to io/minikube/pkg/minikube/command can break io/minikube/pkg/minikube/cluster, while a change to io/minikube/pkg/minikube/cluster can't break io/minikube/pkg/minikube/command.
Position
Below the diagonal: io/minikube/pkg/minikube/cluster uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/cluster uses io/minikube/pkg/libmachine, so a change to io/minikube/pkg/libmachine can break io/minikube/pkg/minikube/cluster, while a change to io/minikube/pkg/minikube/cluster can't break io/minikube/pkg/libmachine.
Position
Below the diagonal: io/minikube/pkg/minikube/cluster uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/cluster uses io/minikube/pkg/minikube/bootstrapper, so a change to io/minikube/pkg/minikube/bootstrapper can break io/minikube/pkg/minikube/cluster, while a change to io/minikube/pkg/minikube/cluster can't break io/minikube/pkg/minikube/bootstrapper.
Position
Below the diagonal: io/minikube/pkg/minikube/cluster uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/logs uses io/minikube/pkg/minikube/config, so a change to io/minikube/pkg/minikube/config can break io/minikube/pkg/minikube/logs, while a change to io/minikube/pkg/minikube/logs can't break io/minikube/pkg/minikube/config.
Position
Below the diagonal: io/minikube/pkg/minikube/logs uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/logs uses io/minikube/pkg/minikube/cruntime, so a change to io/minikube/pkg/minikube/cruntime can break io/minikube/pkg/minikube/logs, while a change to io/minikube/pkg/minikube/logs can't break io/minikube/pkg/minikube/cruntime.
Position
Below the diagonal: io/minikube/pkg/minikube/logs uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/logs uses io/minikube/pkg/minikube/command, so a change to io/minikube/pkg/minikube/command can break io/minikube/pkg/minikube/logs, while a change to io/minikube/pkg/minikube/logs can't break io/minikube/pkg/minikube/command.
Position
Below the diagonal: io/minikube/pkg/minikube/logs uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/logs uses io/minikube/pkg/minikube/bootstrapper, so a change to io/minikube/pkg/minikube/bootstrapper can break io/minikube/pkg/minikube/logs, while a change to io/minikube/pkg/minikube/logs can't break io/minikube/pkg/minikube/bootstrapper.
Position
Below the diagonal: io/minikube/pkg/minikube/logs uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/machine uses io/minikube/pkg/libmachine/auth, so a change to io/minikube/pkg/libmachine/auth can break io/minikube/pkg/minikube/machine, while a change to io/minikube/pkg/minikube/machine can't break io/minikube/pkg/libmachine/auth.
Position
Below the diagonal: io/minikube/pkg/minikube/machine uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/machine uses io/minikube/pkg/libmachine/engine, so a change to io/minikube/pkg/libmachine/engine can break io/minikube/pkg/minikube/machine, while a change to io/minikube/pkg/minikube/machine can't break io/minikube/pkg/libmachine/engine.
Position
Below the diagonal: io/minikube/pkg/minikube/machine uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/machine uses io/minikube/pkg/libmachine/state, so a change to io/minikube/pkg/libmachine/state can break io/minikube/pkg/minikube/machine, while a change to io/minikube/pkg/minikube/machine can't break io/minikube/pkg/libmachine/state.
Position
Below the diagonal: io/minikube/pkg/minikube/machine uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/machine uses io/minikube/pkg/minikube/config, so a change to io/minikube/pkg/minikube/config can break io/minikube/pkg/minikube/machine, while a change to io/minikube/pkg/minikube/machine can't break io/minikube/pkg/minikube/config.
Position
Below the diagonal: io/minikube/pkg/minikube/machine uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/machine uses io/minikube/pkg/minikube/run, so a change to io/minikube/pkg/minikube/run can break io/minikube/pkg/minikube/machine, while a change to io/minikube/pkg/minikube/machine can't break io/minikube/pkg/minikube/run.
Position
Below the diagonal: io/minikube/pkg/minikube/machine uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/machine uses io/minikube/pkg/minikube/assets, so a change to io/minikube/pkg/minikube/assets can break io/minikube/pkg/minikube/machine, while a change to io/minikube/pkg/minikube/machine can't break io/minikube/pkg/minikube/assets.
Position
Below the diagonal: io/minikube/pkg/minikube/machine uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/machine uses io/minikube/pkg/libmachine/host, so a change to io/minikube/pkg/libmachine/host can break io/minikube/pkg/minikube/machine, while a change to io/minikube/pkg/minikube/machine can't break io/minikube/pkg/libmachine/host.
Position
Below the diagonal: io/minikube/pkg/minikube/machine uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/machine uses io/minikube/pkg/minikube/cruntime, so a change to io/minikube/pkg/minikube/cruntime can break io/minikube/pkg/minikube/machine, while a change to io/minikube/pkg/minikube/machine can't break io/minikube/pkg/minikube/cruntime.
Position
Below the diagonal: io/minikube/pkg/minikube/machine uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/machine uses io/minikube/pkg/libmachine/persist, so a change to io/minikube/pkg/libmachine/persist can break io/minikube/pkg/minikube/machine, while a change to io/minikube/pkg/minikube/machine can't break io/minikube/pkg/libmachine/persist.
Position
Below the diagonal: io/minikube/pkg/minikube/machine uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/machine uses io/minikube/pkg/libmachine/provision, so a change to io/minikube/pkg/libmachine/provision can break io/minikube/pkg/minikube/machine, while a change to io/minikube/pkg/minikube/machine can't break io/minikube/pkg/libmachine/provision.
Position
Below the diagonal: io/minikube/pkg/minikube/machine uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/machine uses io/minikube/pkg/minikube/command, so a change to io/minikube/pkg/minikube/command can break io/minikube/pkg/minikube/machine, while a change to io/minikube/pkg/minikube/machine can't break io/minikube/pkg/minikube/command.
Position
Below the diagonal: io/minikube/pkg/minikube/machine uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/machine uses io/minikube/pkg/libmachine, so a change to io/minikube/pkg/libmachine can break io/minikube/pkg/minikube/machine, while a change to io/minikube/pkg/minikube/machine can't break io/minikube/pkg/libmachine.
Position
Below the diagonal: io/minikube/pkg/minikube/machine uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/mustload uses io/minikube/pkg/minikube/config, so a change to io/minikube/pkg/minikube/config can break io/minikube/pkg/minikube/mustload, while a change to io/minikube/pkg/minikube/mustload can't break io/minikube/pkg/minikube/config.
Position
Below the diagonal: io/minikube/pkg/minikube/mustload uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/mustload uses io/minikube/pkg/minikube/run, so a change to io/minikube/pkg/minikube/run can break io/minikube/pkg/minikube/mustload, while a change to io/minikube/pkg/minikube/mustload can't break io/minikube/pkg/minikube/run.
Position
Below the diagonal: io/minikube/pkg/minikube/mustload uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/mustload uses io/minikube/pkg/libmachine/host, so a change to io/minikube/pkg/libmachine/host can break io/minikube/pkg/minikube/mustload, while a change to io/minikube/pkg/minikube/mustload can't break io/minikube/pkg/libmachine/host.
Position
Below the diagonal: io/minikube/pkg/minikube/mustload uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/mustload uses io/minikube/pkg/minikube/command, so a change to io/minikube/pkg/minikube/command can break io/minikube/pkg/minikube/mustload, while a change to io/minikube/pkg/minikube/mustload can't break io/minikube/pkg/minikube/command.
Position
Below the diagonal: io/minikube/pkg/minikube/mustload uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/mustload uses io/minikube/pkg/libmachine, so a change to io/minikube/pkg/libmachine can break io/minikube/pkg/minikube/mustload, while a change to io/minikube/pkg/minikube/mustload can't break io/minikube/pkg/libmachine.
Position
Below the diagonal: io/minikube/pkg/minikube/mustload uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/node uses io/minikube/pkg/minikube/config, so a change to io/minikube/pkg/minikube/config can break io/minikube/pkg/minikube/node, while a change to io/minikube/pkg/minikube/node can't break io/minikube/pkg/minikube/config.
Position
Below the diagonal: io/minikube/pkg/minikube/node uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/node uses io/minikube/pkg/minikube/run, so a change to io/minikube/pkg/minikube/run can break io/minikube/pkg/minikube/node, while a change to io/minikube/pkg/minikube/node can't break io/minikube/pkg/minikube/run.
Position
Below the diagonal: io/minikube/pkg/minikube/node uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/node uses io/minikube/pkg/libmachine/host, so a change to io/minikube/pkg/libmachine/host can break io/minikube/pkg/minikube/node, while a change to io/minikube/pkg/minikube/node can't break io/minikube/pkg/libmachine/host.
Position
Below the diagonal: io/minikube/pkg/minikube/node uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/node uses io/minikube/pkg/minikube/cruntime, so a change to io/minikube/pkg/minikube/cruntime can break io/minikube/pkg/minikube/node, while a change to io/minikube/pkg/minikube/node can't break io/minikube/pkg/minikube/cruntime.
Position
Below the diagonal: io/minikube/pkg/minikube/node uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/node uses io/minikube/pkg/minikube/command, so a change to io/minikube/pkg/minikube/command can break io/minikube/pkg/minikube/node, while a change to io/minikube/pkg/minikube/node can't break io/minikube/pkg/minikube/command.
Position
Below the diagonal: io/minikube/pkg/minikube/node uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/node uses io/minikube/pkg/libmachine, so a change to io/minikube/pkg/libmachine can break io/minikube/pkg/minikube/node, while a change to io/minikube/pkg/minikube/node can't break io/minikube/pkg/libmachine.
Position
Below the diagonal: io/minikube/pkg/minikube/node uses a module listed above it, which is the healthy direction.
io/minikube/pkg/minikube/node uses io/minikube/pkg/minikube/bootstrapper, so a change to io/minikube/pkg/minikube/bootstrapper can break io/minikube/pkg/minikube/node, while a change to io/minikube/pkg/minikube/node can't break io/minikube/pkg/minikube/bootstrapper.
Position
Below the diagonal: io/minikube/pkg/minikube/node uses a module listed above it, which is the healthy direction.
io/minikube/cmd/minikube/cmd uses io/minikube/pkg/libmachine/ssh, so a change to io/minikube/pkg/libmachine/ssh can break io/minikube/cmd/minikube/cmd, while a change to io/minikube/cmd/minikube/cmd can't break io/minikube/pkg/libmachine/ssh.
Position
Below the diagonal: io/minikube/cmd/minikube/cmd uses a module listed above it, which is the healthy direction.
io/minikube/cmd/minikube/cmd uses io/minikube/pkg/minikube/config, so a change to io/minikube/pkg/minikube/config can break io/minikube/cmd/minikube/cmd, while a change to io/minikube/cmd/minikube/cmd can't break io/minikube/pkg/minikube/config.
Position
Below the diagonal: io/minikube/cmd/minikube/cmd uses a module listed above it, which is the healthy direction.
io/minikube/cmd/minikube/cmd uses io/minikube/pkg/minikube/reason, so a change to io/minikube/pkg/minikube/reason can break io/minikube/cmd/minikube/cmd, while a change to io/minikube/cmd/minikube/cmd can't break io/minikube/pkg/minikube/reason.
Position
Below the diagonal: io/minikube/cmd/minikube/cmd uses a module listed above it, which is the healthy direction.
io/minikube/cmd/minikube/cmd uses io/minikube/pkg/minikube/run, so a change to io/minikube/pkg/minikube/run can break io/minikube/cmd/minikube/cmd, while a change to io/minikube/cmd/minikube/cmd can't break io/minikube/pkg/minikube/run.
Position
Below the diagonal: io/minikube/cmd/minikube/cmd uses a module listed above it, which is the healthy direction.
io/minikube/cmd/minikube/cmd uses io/minikube/pkg/libmachine/drivers, so a change to io/minikube/pkg/libmachine/drivers can break io/minikube/cmd/minikube/cmd, while a change to io/minikube/cmd/minikube/cmd can't break io/minikube/pkg/libmachine/drivers.
Position
Below the diagonal: io/minikube/cmd/minikube/cmd uses a module listed above it, which is the healthy direction.
io/minikube/cmd/minikube/cmd uses io/minikube/pkg/minikube/assets, so a change to io/minikube/pkg/minikube/assets can break io/minikube/cmd/minikube/cmd, while a change to io/minikube/cmd/minikube/cmd can't break io/minikube/pkg/minikube/assets.
Position
Below the diagonal: io/minikube/cmd/minikube/cmd uses a module listed above it, which is the healthy direction.
io/minikube/cmd/minikube/cmd uses io/minikube/pkg/minikube/registry, so a change to io/minikube/pkg/minikube/registry can break io/minikube/cmd/minikube/cmd, while a change to io/minikube/cmd/minikube/cmd can't break io/minikube/pkg/minikube/registry.
Position
Below the diagonal: io/minikube/cmd/minikube/cmd uses a module listed above it, which is the healthy direction.
io/minikube/cmd/minikube/cmd uses io/minikube/pkg/minikube/command, so a change to io/minikube/pkg/minikube/command can break io/minikube/cmd/minikube/cmd, while a change to io/minikube/cmd/minikube/cmd can't break io/minikube/pkg/minikube/command.
Position
Below the diagonal: io/minikube/cmd/minikube/cmd uses a module listed above it, which is the healthy direction.
io/minikube/cmd/minikube/cmd uses io/minikube/pkg/libmachine, so a change to io/minikube/pkg/libmachine can break io/minikube/cmd/minikube/cmd, while a change to io/minikube/cmd/minikube/cmd can't break io/minikube/pkg/libmachine.
Position
Below the diagonal: io/minikube/cmd/minikube/cmd uses a module listed above it, which is the healthy direction.
io/minikube/cmd/minikube/cmd uses io/minikube/pkg/minikube/cluster, so a change to io/minikube/pkg/minikube/cluster can break io/minikube/cmd/minikube/cmd, while a change to io/minikube/cmd/minikube/cmd can't break io/minikube/pkg/minikube/cluster.
Position
Below the diagonal: io/minikube/cmd/minikube/cmd uses a module listed above it, which is the healthy direction.
io/minikube/cmd/minikube/cmd uses io/minikube/pkg/minikube/mustload, so a change to io/minikube/pkg/minikube/mustload can break io/minikube/cmd/minikube/cmd, while a change to io/minikube/cmd/minikube/cmd can't break io/minikube/pkg/minikube/mustload.
Position
Below the diagonal: io/minikube/cmd/minikube/cmd uses a module listed above it, which is the healthy direction.
io/minikube/cmd/minikube/cmd uses io/minikube/pkg/minikube/node, so a change to io/minikube/pkg/minikube/node can break io/minikube/cmd/minikube/cmd, while a change to io/minikube/cmd/minikube/cmd can't break io/minikube/pkg/minikube/node.
Position
Below the diagonal: io/minikube/cmd/minikube/cmd uses a module listed above it, which is the healthy direction.
io/minikube/cmd/minikube/cmd/config uses io/minikube/pkg/minikube/config, so a change to io/minikube/pkg/minikube/config can break io/minikube/cmd/minikube/cmd/config, while a change to io/minikube/cmd/minikube/cmd/config can't break io/minikube/pkg/minikube/config.
Position
Below the diagonal: io/minikube/cmd/minikube/cmd/config uses a module listed above it, which is the healthy direction.
io/minikube/cmd/minikube/cmd/config uses io/minikube/pkg/minikube/run, so a change to io/minikube/pkg/minikube/run can break io/minikube/cmd/minikube/cmd/config, while a change to io/minikube/cmd/minikube/cmd/config can't break io/minikube/pkg/minikube/run.
Position
Below the diagonal: io/minikube/cmd/minikube/cmd/config uses a module listed above it, which is the healthy direction.
io/minikube/cmd/minikube/cmd/config uses io/minikube/pkg/libmachine, so a change to io/minikube/pkg/libmachine can break io/minikube/cmd/minikube/cmd/config, while a change to io/minikube/cmd/minikube/cmd/config can't break io/minikube/pkg/libmachine.
Position
Below the diagonal: io/minikube/cmd/minikube/cmd/config uses a module listed above it, which is the healthy direction.
io/minikube/cmd/minikube/cmd/config uses io/minikube/pkg/minikube/cluster, so a change to io/minikube/pkg/minikube/cluster can break io/minikube/cmd/minikube/cmd/config, while a change to io/minikube/cmd/minikube/cmd/config can't break io/minikube/pkg/minikube/cluster.
Position
Below the diagonal: io/minikube/cmd/minikube/cmd/config uses a module listed above it, which is the healthy direction.
io/minikube/cmd/minikube/cmd/config uses io/minikube/pkg/minikube/mustload, so a change to io/minikube/pkg/minikube/mustload can break io/minikube/cmd/minikube/cmd/config, while a change to io/minikube/cmd/minikube/cmd/config can't break io/minikube/pkg/minikube/mustload.
Position
Below the diagonal: io/minikube/cmd/minikube/cmd/config uses a module listed above it, which is the healthy direction.
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 category
Findings
Severity
A02:2025 — Security Misconfiguration
1474
High / Critical
A05:2025 — Injection
76
High / Critical
A03:2025 — Software Supply Chain Failures
16
High / Critical
A07:2025 — Authentication Failures
6
High / Critical
Roadmap
Immediately resolve the two leaked secrets in REDACTED and clean up nine stale dependency commits to secure the codebase. Establish architectural decision records in a dedicated folder to document key design choices and their consequences. Finally, remove 148 orphaned files, prioritizing network.go, ssh.go, and info.go, to improve codebase hygiene and knowledge freshness.
Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.
Do this
Helps
Effort
Dimension
Resolve the 2 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (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.
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.
Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
Per-file score 0–10 — a quality signature. Of 238 files carrying findings, judged against the Production bar: 5% slop · 66% mixed · 29% near-clean.
File
Score
Band
Worst signal
REDACTED
0.0
Slop
REDACTED Scanning: Leaked secret: REDACTED
REDACTED
0.0
Slop
IaC & Container Security: Critical IaC: REDACTED
REDACTED
0.0
Slop
IaC & Container Security: Critical IaC: REDACTED
REDACTED
0.0
Slop
IaC & Container Security: High IaC: REDACTED
REDACTED
0.0
Slop
IaC & Container Security: High IaC: REDACTED
REDACTED
0.2
Slop
IaC & Container Security: High IaC: REDACTED
REDACTED
2.0
Slop
Static Analysis (SAST): High: REDACTED
REDACTED
2.7
Slop
IaC & Container Security: High IaC: REDACTED
REDACTED
3.0
Slop
IaC & Container Security: Critical IaC: REDACTED
REDACTED
3.0
Slop
IaC & Container Security: High IaC: REDACTED
REDACTED
3.0
Slop
IaC & Container Security: High IaC: REDACTED
REDACTED
3.7
Slop
Static Analysis (SAST): High: REDACTED
REDACTED
3.7
Slop
IaC & Container Security: High IaC: REDACTED
REDACTED
4.0
Mixed
Static Analysis (SAST): Medium: REDACTED
REDACTED
4.0
Mixed
Static Analysis (SAST): Medium: REDACTED
REDACTED
4.0
Mixed
Static Analysis (SAST): Medium: REDACTED
REDACTED
4.0
Mixed
Static Analysis (SAST): Medium: REDACTED
REDACTED
4.1
Mixed
Dependency Vulnerabilities: High CVE: REDACTED
REDACTED
5.0
Mixed
Static Analysis (SAST): Medium: REDACTED
REDACTED
5.0
Mixed
Static Analysis (SAST): Medium: REDACTED
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 — 264
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 — 1685
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 — 496
Recorded, with no effect on how the codebase functions.
Present so the survey is complete, not because it needs doing.
Could not be resolved — 15
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
Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 67 of 70 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 3 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.9 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
Every figure here is one of three kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact; ◐ Advisory — an LLM prose judgement. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10; ◐ Sampled · advisory marks an LLM verdict over a bounded sample — advisory, never a deterministic measurement.
What we checked — 70 dimensions across the health lenses
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
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, 2389 of 2445 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.)
Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
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.
Method
Backs
Version
Evaluator
Roslyn static analysis
Complexity, cohesion, coupling, dead code, API surface, layering
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.
D8 Code Coverage — not measured this run — Watchdog 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. Coverage NOT MEASURED: test source is present (.go) but the built-in coverage collector has no runner for this repository's ecosystem — so this suite was never executed by it. Not scored — this is a gap in the analyzer's language coverage, not a defect in the repo. To have real coverage read, produce a coverage report in a standard format (`go test -coverprofile=coverage.out ./...`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures. You can widen what we reach: optional: produce a coverage report in a standard format (`go test -coverprofile=coverage.out ./...`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures — then the real number is read on the next scan.
D11 Test Reliability — not measured this run — Watchdog 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 repository declares 13 of its own test(s) unreliable. The built-in reliability runner does not support this repository's ecosystem (.go), so the suite was not re-run and no reliability score is given — these are the repository's own declarations, not our measurement.
D14 License Compliance — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. This repository declares package.json, but the licence verdict published here was taken over its Go module dependencies. Nothing was read about its npm dependencies' licensing in either direction, and a clean score on this card must not be read as covering them.
D22 Internal API Consistency — not measured this run — Watchdog 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. D22 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. This repository commits no C#/VB source at all, so there was never an MSBuild project set to read these conventions off. That is OUR side and it is a COLLECTOR gap, not an environment fault: it declares a published package (REDACTED), but no published-package marker D22 reads admitted any project here, so this ecosystem's public API has no collector, and the remedy is to write one — no change to the scan image can close it.
D27 Navigability — not measured this run — Watchdog 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. Navigability is taken over call sites whose callee resolved. For C# that population includes calls into referenced assemblies; for this language only calls declared inside the repository count, so the abstention threshold reads the repository's use of its standard library as a resolution failure. That is a limit of this analyzer, not a build problem in this repository.
D41 Kernel & Syscall Confinement — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. Deploy/addons/kubeflow/kubeflow.yaml:125821, REDACTED:125851, REDACTED:125894, REDACTED:125923, REDACTED:125955, REDACTED:125984, REDACTED:126021, REDACTED:126056, REDACTED:126103 did not read as a pod spec (a templated manifest such as Helm's that is not YAML until rendered, or a workload whose pod spec this check does not locate), so the seccomp/AppArmor profile in force there was not judged and no row about them can appear on this card.
AX6 Interface segregation — not measured this run — Watchdog 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 is computed over the public interfaces this run's compilations declare, and none was loaded, so it had nothing 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.
AXR1 Runtime accessibility — not measured this run — Watchdog 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) — DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/bui…; runtime evidence skipped.
C1 Data Protection — not measured this run — Watchdog 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 — Watchdog 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 — Watchdog 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 — Watchdog 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 — Watchdog 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 — Watchdog 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 and Scala source only, and this repository's Go, c, lua is most of its product and 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 — Watchdog 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 and Scala source only, and this repository's Go, c, lua is most of its product and 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 — Watchdog measured this, but not all of it. What it 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. 31 further occurrence(s) are not listed individually; the score already reflects all 71.
X27 Collection changed while being enumerated — not measured this run — Watchdog 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 Java, Rust, Erlang, F#, Python, Dart, Ruby, Scala and Kotlin source only, and no C# was loaded, no Java, Rust, Erlang, F#, Python, Dart, Ruby, Scala or Kotlin was found, and this repository's Go, Lua 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.
X3 Exception handling — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it 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. 7 further occurrence(s) are not listed individually; the score already reflects all 47.
X4 Structured logging — not measured this run — Watchdog 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, Python, PHP, Dart, Ruby, Scala and Rust source only, and no C# was loaded, and this repository's JavaScript/TypeScript, Python and PHP make no call through a named logger, 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 — Watchdog 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, and Kotlin source only, and no C# was loaded, no TypeScript was found, and this repository's C, Lua 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
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.
D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
D4 Code Duplication: Duplication is token-similarity — 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.
D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
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 REDACTED Scanning: REDACTED detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
D20 ADR Quality: ADR quality is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and 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.
D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
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: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
P5 DR & Backup: Backup/restore and disaster-recovery readiness is judged from in-repo evidence — a config that exists is not a tested restore, so the absence of positive evidence is reported as "not evidenced", never scored as present.
P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
The LLM boundary
LLM-set scores this run (3): D19, D21, M4 (model: Local LLM). For these, a model reads a bounded sample and sets the numeric score; each names its own sample and method on its card. They are sampled and advisory by design: they vary at the margins between runs and are never a deterministic measurement. Every other score in this report is tool-computed at confidence 1.0.
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.
+ 52 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 59 bodies over 15 down to 15 or less in Cyclomatic Complexity — start with cluster.GetState (cyclomatic 35), node.Start (cyclomatic 34), Driver.Create (cyclomatic 34). — 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 59 together lifts Cyclomatic Complexity from 7.1 to about 10.0/10, projected with the scoring formula itself and assuming each lands exactly at 15.
Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d1_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
+ 131 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 28 bodies over 30 down to 30 or less in Cognitive Complexity — start with node.Start (cognitive 59), generate.ErrorCodes (cognitive 54), cluster.GetState (cognitive 52). — 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 28 together lifts Cognitive Complexity from 6.1 to about 7.0/10, projected with the scoring formula itself and assuming each lands exactly at 30; a cleaner split scores higher.
Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D3 · God Classes8.9 / 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.
+ 1 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 9 FileTooLong finding(s) in God Classes — start with start.go (2), addons.go, virtualbox.go. — One of this dimension's main actionable groups (9 warning-level).
Resolve the 4 FunctionTooLong finding(s) in God Classes — start with configure_registry_creds.go, start_flags.go, kubeadm.go. — One of this dimension's main actionable groups (4 warning-level).
Resolve the 4 ClassTooLong finding(s) in God Classes — start with virtualbox.go, kubeadm.go, REDACTED. — One of this dimension's main actionable groups (4 warning-level).
Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Copy-pasted code that should be shared instead.
Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), density-scored per KLoC of production code. Deterministic.
124 duplicated block group(s) detected. A further 11 rows report members as variants of one another; they aggregate block groups already counted above and are not themselves counted.
+ 53 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 12 Duplicated block (11 lines × 2) finding(s) in Code Duplication — start with REDACTED, release_update_releases_json.go, cli_runner.go. — One of this dimension's main actionable groups (12 warning-level).
Resolve the 10 Duplicated block (12 lines × 2) finding(s) in Code Duplication — start with REDACTED (3), release_update_releases_json.go, REDACTED. — One of this dimension's main actionable groups (10 warning-level).
Resolve the 9 Duplicated block (10 lines × 2) finding(s) in Code Duplication — start with release_update_releases_json.go, kubeadm.go, exec_runner.go. — One of this dimension's main actionable groups (9 warning-level).
Enforce Code Duplication in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D5 · Coupling10.0 / 10Exemplary✓ Tool-verified
What it measures: Whether volatile projects sit underneath others that depend on them (so their churn ripples upward), and whether project dependencies form cycles. A widely-depended-on but stable shared/kernel project is healthy, not penalised.
Method: Dependency cycles via elementary-DFS over real .csproj references, plus Martin instability (afferent/efferent) per project. Exhaustive over the reference graph, deterministic.
Coverage: Exhaustive · type-level: afferent/efferent coupling + cycles computed over every production type — the population is all types, not a name convention.
3 production modules (Go), 0 dependency cycle(s), 0 unstable depended-on module(s). Read from the build's own module declarations; 0 module(s) off the main sequence.
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.
Resolve the 3 Low cohesion finding(s) in Cohesion (LCOM4) — start with base.go, vm_assets.go, server_driver.go. — One of this dimension's main actionable groups (3 warning-level).
Enforce Cohesion (LCOM4) in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
Detailed fixes: d6_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D9 · Test Distribution10.0 / 10Exemplary✓ Tool-verified
What it measures: Whether the test suite has a healthy mix of unit / integration / end-to-end tests.
Method: Test projects classified (Unit/Integration/BDD/E2E) from compiled metadata; test methods counted exhaustively across projects with placement-agnostic disk fallback. Deterministic.
634 test methods: 575 unit, 59 integration, 0 BDD, 0 e2e. The Go suite contributes 634 test case(s) across 204 `_test.go` file(s) declaring at least one — every `func Test…(t *testing.T)` that `go test` would collect, plus the suite methods a testify-style runner reaches; a table-driven case list counts once, so this is a floor. Its tier split is INFERRED from file names, paths and build constraints, not declared: 2 of those file(s) use Go's external test package (`package x_test`), which is a visibility boundary rather than a pyramid tier and was not read as one.
What it measures: Whether dependencies are current, secure, and not bloated.
Method: Manifest scan via dotnet list package across all projects; worst-signal-per-package deduction (saturating for vulnerabilities, capped-linear for deprecation/outdated) per KLoC. Exhaustive, deterministic.
27 outdated, 2 author-deprecated direct Go module(s), 9 pinning or checksum defect(s). 99 of 99 direct requirement(s) were graded against proxy.golang.org (0 not served there, 12 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.
Dependency pinned to a stale untagged commit: github.com/aregm/cpuid · ×9
Resolve the 9 Dependency pinned to a stale untagged commit finding(s) in Dependency Hygiene. — One of this dimension's main actionable groups (9 warning-level).
Resolve the 2 Deprecated module finding(s) in Dependency Hygiene. — One of this dimension's main actionable groups (2 warning-level).
Enforce Dependency Hygiene in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
Detailed fixes: d12_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
Resolve the 2 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (2). — One of this dimension's main actionable groups (2 issue-level).
Enforce REDACTED Scanning in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d13_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
0 of 339 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. 1 of them carry no licence file that matches a known SPDX licence; that is missing data, not a violation, and none of them is charged. ★ COVERAGE OF THIS VERDICT: it grades this repository's Go module dependencies and nothing else. The repository also declares package.json, and the licences of those dependencies were NOT read by this pass — a gap in this engine's coverage, not a statement about them. So this result says the graded closure carries no banned licence; it does NOT say this repository's licensing is clear.
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.
Resolve the 1 Hotspot finding(s) in Churn × Complexity Hotspots — start with start.go. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d15_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
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.
37 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is pkg/minikube/constants/constants_kubeadm_images.go. Counted over 340 of the 541 production source files in this repository: 198 are under the ~2,400-byte size floor this dimension measures over, and the remaining 3 have no attributable history left to measure.
Off-boarding risk: anonymized user #1 · ×3
Further sole-owners (lower concentration)
What to do
Resolve the 3 Off-boarding risk finding(s) in Bus Factor. — One of this dimension's main actionable groups (3 recommendation-level).
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.
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.
81 deducted task-comment markers across 82199 LoC (0.1/KLoC) → score 9.8. 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 · ×75REDACTED:79
HackComment · ×5REDACTED:61
FixmeCommentpkg/drivers/virtualbox/disk.go:63
What to do
Resolve the 75 TodoComment finding(s) in Explicit Debt — start with start.go (4), flag.go (4), REDACTED (4). — One of this dimension's main actionable groups (75 warning-level).
Resolve the 5 HackComment finding(s) in Explicit Debt — start with REDACTED, network_create.go, REDACTED. — One of this dimension's main actionable groups (5 warning-level).
Resolve the 1 FixmeComment finding(s) in Explicit Debt — start with disk.go. — One of this dimension's main actionable groups (1 warning-level).
Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d17_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the project's documentation is clear, complete, and useful.
Method: Judged by language model at low temperature (0.0-0.1) on a deterministic doc sample (READMEs plus first 25 architecture docs), with two-pass stability filtering. Advisory, sampled.
The site's documentation is excellent: a welcome/welcome page with an overview and release highlights (latest v1.39.0, changelogs), a benchmarks page, a commands guide covering minikube addons, cache, and dozens of other commands, plus a survey link; the READMEs are focused on their directories and do not appear to contradict each other. (19 of 25 sampled documents could not be assessed: 1 of 2 evaluation groups failed.)
✓ On the Gold path — maintain.
Detailed fixes: d19_recommendation.md.
Do you agree with this assessment?
D20 · ADR Quality0.0 / 10Critical✓ Tool-verified
What it measures: Whether architecture decisions are recorded well (context, decision, consequences).
Method: Per-ADR judgment by language model at low temperature with two-pass stability; confidence is share of ADRs evaluated; enforcement-field presence detected deterministically. Advisory.
What it measures: Whether names — types, methods, variables — are clear and consistent.
Method: Judged by language model at low temperature (0.0-0.1) on a deterministic random symbol sample (fixed size, not exhaustive), with disclosed confidence band. Advisory, sampled.
2 of 4 build units (Go, npm) flagged as possibly oversized/incoherent.
Projects may be oversized for their cohesion
What to do
Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d26_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.
Method: REDACTED 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.
3 finding(s): 0 critical, 3 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.
REDACTED
REDACTED
What to do
Resolve the 3 REDACTED finding(s) in Secrets (history) — start with REDACTED (2), REDACTED. — One of this dimension's main actionable groups (3 issue-level).
Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d28_recommendation.md · top locations in Appendix A, every location in findings.md.
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).
76 finding(s): 0 critical, 20 high, 52 medium, 4 low. semgrep hit a parse error in 166 file(s) — `.github/ISSUE_TEMPLATE/ku.yaml`, `REDACTED` (lines 189–199, lines 328–330), `deploy/kicbase/clean-install` (line 24), `deploy/kicbase/entrypoint` (lines 421–548), `hack/release_notes.sh` (line 37), … (+161 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. Separately, one or more rules could not re-parse an embedded snippet in 9 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.
REDACTED
REDACTED
REDACTED
REDACTED
REDACTED
+ 23 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 4 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (3), REDACTED. — One of this dimension's main actionable groups (4 issue-level).
Resolve the 3 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (3 issue-level).
Resolve the 3 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (2), REDACTED. — One of this dimension's main actionable groups (3 issue-level).
Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
Resolve the 1 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
Resolve the 5 Medium CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (4), REDACTED. — One of this dimension's main actionable groups (5 warning-level).
Resolve the 2 Medium vulnerability finding(s) in Dependency Vulnerabilities — start with REDACTED (2). — One of this dimension's main actionable groups (2 warning-level).
Detailed fixes: d30_recommendation.md · top locations in Appendix A, every location in findings.md.
Resolve the 1061 Medium IaC finding(s) in IaC & Container Security — start with REDACTED (830), REDACTED (97), REDACTED (44). — One of this dimension's main actionable groups (1061 warning-level).
Resolve the 148 High IaC finding(s) in IaC & Container Security — start with REDACTED (76), REDACTED (34), REDACTED (18). — One of this dimension's main actionable groups (148 issue-level).
Resolve the 66 Critical IaC finding(s) in IaC & Container Security — start with REDACTED (62), REDACTED (2), REDACTED. — One of this dimension's main actionable groups (66 issue-level).
Detailed fixes: d31_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned — last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.
Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.
148 of 343 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is cmd/minikube/cmd/image.go. Counted over 343 of the 541 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
Orphaned file · ×148cmd/minikube/cmd/image.go:1
Orphaned files with no living knowledge
What to do
Resolve the 148 Orphaned file finding(s) in Knowledge Freshness — start with network.go (3), ssh.go (3), info.go (2). — One of this dimension's main actionable groups (148 recommendation-level).
Resolve the 1 Orphaned files with no living knowledge finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d34_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
Resolve the 10 Boundary-crossing change coupling finding(s) in Change Coupling — start with kubernetes_version.go (5), kubernetes_versions_list.go, ingress_version.go. — One of this dimension's main actionable groups (10 issue-level).
Detailed fixes: d35_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the build pipeline provides supply-chain integrity — generated provenance/attestation, signed artifacts (cosign/sigstore), an SBOM, and pinned build actions. Presence of the configuration, not a runtime guarantee.
Method: Supply-chain provenance/signing read deterministically from CI/build config (.github/workflows, .gitlab-ci.yml, azure-pipelines, Jenkinsfile, .circleci) + the release surface: four signals — generated provenance/attestation (SLSA/in-toto/actions-attest), artifact signing (cosign/sigstore/gitsign), an SBOM (syft/sbom-action/*.spdx.json/*.cdx.json), and SHA-pinned build actions — scored 10·present/denom. NotApplicable without a build pipeline. Detects configuration presence, not runtime enforcement.
+ 2 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
Resolve the 2 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED (2). — One of this dimension's main actionable groups (2 warning-level).
Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d36_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the repository publishes a coordinated-vulnerability-disclosure policy (SECURITY.md or security.txt) with a reporting contact, so finders know how to report a vulnerability. Presence of a policy file with a contact, not whether the policy is adequate or honoured.
Method: Vulnerability-disclosure policy read deterministically from the repo: a SECURITY.md (root/.github/docs) or .well-known/security.txt / security.txt, regex-checked for a reporting contact (email / URL / mailto). Present + contact → 10; present without a contact → 4; NotApplicable when no policy file exists (it may live off-repo). Detects the policy file's presence + contact, not its adequacy.
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.
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.
Resolve the 38 No seccomp profile finding(s) in Kernel & Syscall Confinement — start with REDACTED (35), REDACTED, REDACTED. — One of this dimension's main actionable groups (38 recommendation-level).
Resolve the 8 AppArmor/SELinux confinement disabled finding(s) in Kernel & Syscall Confinement — start with REDACTED (8). — One of this dimension's main actionable groups (8 recommendation-level).
Resolve the 1 Seccomp disabled finding(s) in Kernel & Syscall Confinement — start with REDACTED. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d41_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
Resolve the 1 No runtime threat detection 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.
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. Scored 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. SCORED, not informational.
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.
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 6 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.
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.
What to do
The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
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.
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.
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.
Do you agree with this assessment?
AX8 · Test isolation10.0 / 10Exemplary✓ Tool-verified
Other · Architecture — Whether production projects stay free of references to test projects — tests may depend on production, never the reverse.
Method: Csproj graph: each production project checked for references to test projects (identified by test-framework presence, not name). Zero violations is clean. Deterministic.
Maturity · Maturity — Whether the repo and its projects have a README, and whether it's substantive and current.
Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.
216 code files changed in the last 6 months but the README was not touched — it may no longer reflect the system.
What to do
Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
Add a README to the 3 of 4 project(s) that lack one — worth up to 1.5 pts.
Review the README against recent changes; refresh the parts that drifted.
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.
Maturity · Maturity — Whether the README actually describes the code that exists (LLM-judged, advisory).
Method: Judged by language model at low temperature: README accuracy versus actual projects, within a disclosed tolerance. Advisory, not a measured number.
site/content/en/docs/_index.md links to `/images/screenshot.png`, but `images/screenshot.png` 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. — site/content/en/docs/_index.md:12
site/content/en/docs/contrib/drivers.en.md names `pkg/minikube/cluster/default_drivers.go`, but no file or folder `pkg/minikube/cluster/default_drivers.go` exists. 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. — site/content/en/docs/contrib/drivers.en.md:30
site/content/en/docs/handbook/pushing.md links to `/docs/handbook/pushing/#1-pushing-directly-to-the-in-cluster-docker-daemon-docker-env`, but `docs/handbook/pushing` 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. — site/content/en/docs/handbook/pushing.md:34
site/content/en/docs/tutorials/ai-playground.md links to `/images/open-webui-chat.png`, but `images/open-webui-chat.png` 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. — site/content/en/docs/tutorials/ai-playground.md:13
site/content/en/docs/tutorials/ai-playground.md documents the environment variable `OPENAI_API_BASE_URLS`, but no code, script or configuration file names it. 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. — site/content/en/docs/tutorials/ai-playground.md:408
site/content/en/docs/tutorials/running_minikube_on_aws_ec2.md links to `/images/minikube-on-ipad-via-ssh.jpeg`, but `images/minikube-on-ipad-via-ssh.jpeg` 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. — site/content/en/docs/tutorials/running_minikube_on_aws_ec2.md:10
site/content/en/docs/tutorials/running_minikube_on_aws_ec2.md links to `/images/minikube-start-on-ec2.png`, but `images/minikube-start-on-ec2.png` 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. — site/content/en/docs/tutorials/running_minikube_on_aws_ec2.md:110
site/content/en/docs/tutorials/running_minikube_on_aws_ec2.md links to `/images/kubectl-get-nodes-on-ec2.png`, but `images/kubectl-get-nodes-on-ec2.png` 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. — site/content/en/docs/tutorials/running_minikube_on_aws_ec2.md:118
site/content/en/docs/tutorials/setup_minikube_gui.md links to `/images/gui/windows.png`, but `images/gui/windows.png` 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. — site/content/en/docs/tutorials/setup_minikube_gui.md:41
site/content/en/docs/benchmarks/cpuUsage/linux.md links to `/images/benchmarks/cpuUsage/idleOnly/linux.png`, but `images/benchmarks/cpuUsage/idleOnly/linux.png` 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. — site/content/en/docs/benchmarks/cpuUsage/linux.md:16
site/content/en/docs/benchmarks/cpuUsage/linux.md links to `/images/benchmarks/cpuUsage/autoPause/linux.png`, but `images/benchmarks/cpuUsage/autoPause/linux.png` 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. — site/content/en/docs/benchmarks/cpuUsage/linux.md:42
site/content/en/docs/benchmarks/cpuUsage/macos.md links to `/images/benchmarks/cpuUsage/idleOnly/mac.png`, but `images/benchmarks/cpuUsage/idleOnly/mac.png` 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. — site/content/en/docs/benchmarks/cpuUsage/macos.md:16
site/content/en/docs/benchmarks/cpuUsage/macos.md links to `/images/benchmarks/cpuUsage/autoPause/mac.png`, but `images/benchmarks/cpuUsage/autoPause/mac.png` 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. — site/content/en/docs/benchmarks/cpuUsage/macos.md:39
site/content/en/docs/benchmarks/imageBuild/linuxbenchmark.md links to `/images/benchmarks/dockerRuntime/iterative.png`, but `images/benchmarks/dockerRuntime/iterative.png` 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. — site/content/en/docs/benchmarks/imageBuild/linuxbenchmark.md:14
site/content/en/docs/benchmarks/imageBuild/linuxbenchmark.md links to `/images/benchmarks/dockerRuntime/initial.png`, but `images/benchmarks/dockerRuntime/initial.png` 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. — site/content/en/docs/benchmarks/imageBuild/linuxbenchmark.md:15
site/content/en/docs/benchmarks/imageBuild/linuxbenchmark.md links to `/images/benchmarks/containerdRuntime/iterative.png`, but `images/benchmarks/containerdRuntime/iterative.png` 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. — site/content/en/docs/benchmarks/imageBuild/linuxbenchmark.md:19
site/content/en/docs/benchmarks/imageBuild/linuxbenchmark.md links to `/images/benchmarks/containerdRuntime/initial.png`, but `images/benchmarks/containerdRuntime/initial.png` 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. — site/content/en/docs/benchmarks/imageBuild/linuxbenchmark.md:20
site/content/en/docs/benchmarks/imageBuild/linuxbenchmark.md links to `/images/benchmarks/crioRuntime/iterative.png`, but `images/benchmarks/crioRuntime/iterative.png` 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. — site/content/en/docs/benchmarks/imageBuild/linuxbenchmark.md:23
site/content/en/docs/benchmarks/imageBuild/linuxbenchmark.md links to `/images/benchmarks/crioRuntime/initial.png`, but `images/benchmarks/crioRuntime/initial.png` 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. — site/content/en/docs/benchmarks/imageBuild/linuxbenchmark.md:24
site/content/en/docs/benchmarks/imageBuild/macbenchmark.md links to `/images/benchmarks/macArchitecture/iterative.png`, but `images/benchmarks/macArchitecture/iterative.png` 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. — site/content/en/docs/benchmarks/imageBuild/macbenchmark.md:13
site/content/en/docs/benchmarks/imageBuild/macbenchmark.md links to `/images/benchmarks/macArchitecture/initial.png`, but `images/benchmarks/macArchitecture/initial.png` 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. — site/content/en/docs/benchmarks/imageBuild/macbenchmark.md:14
site/content/en/docs/benchmarks/imageBuild/minikubevsothers.md links to `/images/benchmarks/minikubeVsOthers/iterative.png`, but `images/benchmarks/minikubeVsOthers/iterative.png` 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. — site/content/en/docs/benchmarks/imageBuild/minikubevsothers.md:13
site/content/en/docs/benchmarks/imageBuild/minikubevsothers.md links to `/images/benchmarks/minikubeVsOthers/initial.png`, but `images/benchmarks/minikubeVsOthers/initial.png` 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. — site/content/en/docs/benchmarks/imageBuild/minikubevsothers.md:14
site/content/en/docs/benchmarks/timeToK8s/v1.20.0.md links to `/images/benchmarks/timeToK8s/v1.20.0.png`, but `images/benchmarks/timeToK8s/v1.20.0.png` 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. — site/content/en/docs/benchmarks/timeToK8s/v1.20.0.md:7
site/content/en/docs/benchmarks/timeToK8s/v1.21.0.md links to `/images/benchmarks/timeToK8s/v1.21.0.png`, but `images/benchmarks/timeToK8s/v1.21.0.png` 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. — site/content/en/docs/benchmarks/timeToK8s/v1.21.0.md:7
site/content/en/docs/benchmarks/timeToK8s/v1.22.0.md links to `/images/benchmarks/timeToK8s/v1.22.0.png`, but `images/benchmarks/timeToK8s/v1.22.0.png` 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. — site/content/en/docs/benchmarks/timeToK8s/v1.22.0.md:7
site/content/en/docs/benchmarks/timeToK8s/v1.23.0.md links to `/images/benchmarks/timeToK8s/v1.23.0.png`, but `images/benchmarks/timeToK8s/v1.23.0.png` 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. — site/content/en/docs/benchmarks/timeToK8s/v1.23.0.md:7
site/content/en/docs/benchmarks/timeToK8s/v1.23.1.md links to `/images/benchmarks/timeToK8s/v1.23.1.png`, but `images/benchmarks/timeToK8s/v1.23.1.png` 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. — site/content/en/docs/benchmarks/timeToK8s/v1.23.1.md:7
site/content/en/docs/benchmarks/timeToK8s/v1.23.2.md links to `/images/benchmarks/timeToK8s/v1.23.2.png`, but `images/benchmarks/timeToK8s/v1.23.2.png` 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. — site/content/en/docs/benchmarks/timeToK8s/v1.23.2.md:7
site/content/en/docs/benchmarks/timeToK8s/v1.24.0.md links to `/images/benchmarks/timeToK8s/v1.24.0.png`, but `images/benchmarks/timeToK8s/v1.24.0.png` 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. — site/content/en/docs/benchmarks/timeToK8s/v1.24.0.md:7
site/content/en/docs/benchmarks/timeToK8s/v1.25.0.md links to `/images/benchmarks/timeToK8s/v1.25.0.png`, but `images/benchmarks/timeToK8s/v1.25.0.png` 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. — site/content/en/docs/benchmarks/timeToK8s/v1.25.0.md:7
site/content/en/docs/benchmarks/timeToK8s/v1.25.1.md links to `/images/benchmarks/timeToK8s/v1.25.1.png`, but `images/benchmarks/timeToK8s/v1.25.1.png` 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. — site/content/en/docs/benchmarks/timeToK8s/v1.25.1.md:7
site/content/en/docs/benchmarks/timeToK8s/v1.25.2.md links to `/images/benchmarks/timeToK8s/v1.25.2.png`, but `images/benchmarks/timeToK8s/v1.25.2.png` 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. — site/content/en/docs/benchmarks/timeToK8s/v1.25.2.md:7
site/content/en/docs/benchmarks/timeToK8s/v1.26.0.md links to `/images/benchmarks/timeToK8s/v1.26.0-time.png`, but `images/benchmarks/timeToK8s/v1.26.0-time.png` 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. — site/content/en/docs/benchmarks/timeToK8s/v1.26.0.md:7
site/content/en/docs/benchmarks/timeToK8s/v1.26.0.md links to `/images/benchmarks/timeToK8s/v1.26.0-cpu.png`, but `images/benchmarks/timeToK8s/v1.26.0-cpu.png` 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. — site/content/en/docs/benchmarks/timeToK8s/v1.26.0.md:21
site/content/en/docs/benchmarks/timeToK8s/v1.26.1.md links to `/images/benchmarks/timeToK8s/v1.26.1-time.png`, but `images/benchmarks/timeToK8s/v1.26.1-time.png` 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. — site/content/en/docs/benchmarks/timeToK8s/v1.26.1.md:7
site/content/en/docs/benchmarks/timeToK8s/v1.26.1.md links to `/images/benchmarks/timeToK8s/v1.26.1-cpu.png`, but `images/benchmarks/timeToK8s/v1.26.1-cpu.png` 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. — site/content/en/docs/benchmarks/timeToK8s/v1.26.1.md:21
site/content/en/docs/benchmarks/timeToK8s/v1.27.0.md links to `/images/benchmarks/timeToK8s/v1.27.0-time.png`, but `images/benchmarks/timeToK8s/v1.27.0-time.png` 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. — site/content/en/docs/benchmarks/timeToK8s/v1.27.0.md:7
site/content/en/docs/benchmarks/timeToK8s/v1.27.0.md links to `/images/benchmarks/timeToK8s/v1.27.0-cpu.png`, but `images/benchmarks/timeToK8s/v1.27.0-cpu.png` 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. — site/content/en/docs/benchmarks/timeToK8s/v1.27.0.md:21
site/content/en/docs/benchmarks/timeToK8s/v1.27.1.md links to `/images/benchmarks/timeToK8s/v1.27.1-time.png`, but `images/benchmarks/timeToK8s/v1.27.1-time.png` 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. — site/content/en/docs/benchmarks/timeToK8s/v1.27.1.md:7
What to do
Reconcile the README with reality: site/content/en/docs/_index.md links to `/images/screenshot.png`, but `images/screenshot.png` does not exist; site/content/en/docs/contrib/drivers.en.md names `pkg/minikube/cluster/default_drivers.go`, but no file or folder `pkg/minikube/cluster/default_drivers.go` exists; site/content/en/docs/handbook/pushing.md links to `/docs/handbook/pushing/#1-pushing-directly-to-the-in-cluster-docker-daemon-docker-env`, but `docs/handbook/pushing` does not exist; site/content/en/docs/tutorials/ai-playground.md links to `/images/open-webui-chat.png`, but `images/open-webui-chat.png` does not exist; site/content/en/docs/tutorials/ai-playground.md documents the environment variable `OPENAI_API_BASE_URLS`, but no code, script or configuration file names it.
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
Dependabot is configured but does not watch `npm`, `gitsubmodule` — add those `package-ecosystem` entries to REDACTED so those dependencies get the same automatic update and advisory pressure as the ones it already covers.
Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
Readiness · Readiness — Whether releases are automated and safely reversible (probes, rolling updates, approval gates) — from manifests/pipeline files, not the live environment.
Method: Filesystem scan: deployment manifests/IaC (K8s YAML, Helm, Terraform) for rolling updates, probes, approval gates, migration hooks. Exhaustive, deterministic.
Deployment is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY'S PIPELINE FILES. What was read: every file under `.github/workflows/`, `.forgejo/workflows/`, `.gitea/workflows/`, `.azuredevops/` and `.azure-pipelines/`, plus `.gitlab-ci*` and `azure-pipelines*` — with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab's `when: manual`, CircleCI's `type: approval`, an Azure `ManualValidation@` task or an `approvals:` block, a Jenkins `input` step, a `uses:` step naming an approval action, an `environment:` paired with `reviewers` / `required_reviewers` / `protection` / `wait-timer` / `deployment_branch_policy`, a draft-release step, a `workflow_dispatch` promotion, or a release-event gate. ★ What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy — all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever reaches the release trigger goes to production unreviewed, so a mistaken merge or tag is live before anyone can stop it.
What to do
Add an approval/environment gate (required reviewers / protection rules) before production promotion.
Do you agree with this assessment?
P5 · DR & Backup7.0 / 10Strong✓ 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).
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.Get(` 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. (×23) — cmd/minikube/cmd/dashboard.go:215, REDACTED:96, hack/update/calico_version/calico_version.go:64, …
`http.DefaultClient` 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. — hack/changelog/changelog.go:117
`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. (×2) — REDACTED:519, REDACTED:660
`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. (×5) — REDACTED:520, REDACTED:661, REDACTED:138, …
`http.Head(` 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. (×2) — pkg/minikube/download/licenses.go:37, pkg/minikube/download/preload.go:140
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.
Readiness · Performance — Whether the code protects its performance with benchmarks — a benchmark suite, allocation/memory measurement, and (ideally) a CI gate. Presence is credited as a bonus, never a deduction.
Method: Repo + source scan: BenchmarkDotNet referenced (csproj/source), [Benchmark]/[MemoryDiagnoser] attribute counts, and a benchmark step in CI; off .NET, the same ladder over Go testing.B, Rust criterion/#[bench]/divan, JMH/kotlinx-benchmark, pytest-benchmark/asv/pyperf, tinybench/mitata/vitest bench/benchmark.js and Swift package-benchmark — scored as a bonus ladder (absence is neutral, never a deduction). Deterministic, presence detection.
Readiness · Performance — Whether the code is written to minimise allocations so it doesn't pressure its host's memory manager — buffer/slice views over copies, object pooling, stack or value-type allocation, and buffer writers. Reward-only: credited where present, never penalised where a simpler style is fine.
Method: Production-source scan: density (per 1k LoC) of allocation-aware APIs — in .NET Span/Memory, ArrayPool/ObjectPool, stackalloc, ValueTask, value-type structs, IBufferWriter, string.Create, SkipLocalsInit; off .NET, with comments and strings blanked, Go's sync.Pool, preallocated slices/maps, Grow, strconv.Append* and buf[:0] reuse; the JVM's NIO buffer views, MemorySegment, primitive collections, pools and literal presizes (plus Kotlin primitive arrays and value classes, Scala AnyVal and @specialized); Swift's reserveCapacity, ContiguousArray, withUnsafe* access and ~Copyable. Activated off .NET on the same floor (400 lines, and benchmarks or 8 uses); Rust and garbage-collected scripting languages are not applicable. Reward-only. Deterministic, syntax/text detection.
What to do
Raise allocation-aware density on the hot paths — currently 15 use(s) across 92,184 production line(s) (~0.2/1k). More of the idioms below on the allocation-heavy paths climbs this toward 10.
Go: on hot paths, reuse buffers and objects through sync.Pool, preallocate slices and maps with make([]T, 0, n) / make(map[K]V, n), size builders with Grow, append with strconv.Append*, and reslice with buf[:0] instead of allocating anew.
Readiness · Performance — Whether asynchronous code stays responsive — it avoids sync-over-async blocking (a .NET .Wait()/.GetAwaiter().GetResult(), a time.sleep or blocking HTTP call inside a Python coroutine, a *Sync call inside an async JavaScript function, block_on inside a Rust async fn, runBlocking inside a Kotlin suspend function, block() inside a Reactor publisher) that stalls a thread or event loop and risks deadlock, and, where the code is a reusable library on .NET, awaits with ConfigureAwait(false) so it never captures and stalls its caller's context.
Method: Production-source scan: sync-over-async blocking counted everywhere — .Wait()/.GetAwaiter().GetResult() in .NET; off .NET, read from the language model, a blocking call inside an async function (Python, TS/JS, Rust, Kotlin, Swift, Dart) or inside a Java method returning a Reactor Mono/Flux or a Scala method returning a Future or effect — and, for a .NET library with ≥5 awaits, the share of awaits using ConfigureAwait(false). Deterministic, syntax/text detection.
Other · Security — Only what this repository's own non-C# files could be read for was assessed — and because this repository commits the configuration that serves its own HTTP surface, that configuration could be read in full for the security response headers it sets. Nothing else in this dimension was assessed: the transport, cookie, input-validation and crypto controls are read from a source model that was not loaded for this repository’s language, so their absence here is not a finding about this repository.
Method: Roslyn plus filesystem scan: HSTS/security headers, secure cookies, input validation, middleware order, weak crypto (MD5/SHA1/DES); HTTPS-metadata context-aware. On a repository with no .NET source it reads JavaScript/TypeScript, Dart, Ruby, Scala, Rust or Elixir source itself (test, vendored, generated and minified paths not) for the arms that hold whether or not the code serves HTTP: a weak hash or cipher, key material fixed in the source, a TLS client that accepts any certificate, and (JavaScript/TypeScript, Ruby, Scala, Rust and Elixir) an obsolete TLS version; the server controls are not assessed there, and a Dart, Ruby, Scala, Rust or Elixir repository that serves no HTTP of its own is N/A on them. Deterministic.
None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, …) is configured — defense in depth, even when a reverse proxy could set them. This is reported because `netlify.toml` configures this repository's static hosting, including its response headers, so the configuration that would carry these headers is in this repository and was read in full. (−2.0 on this card.) — netlify.toml:1
What to do
Set security response headers on the surface this repository serves: an `add_header` directive per header in the nginx/Caddy/Apache config, a `_headers` / `vercel.json` / `netlify.toml` entry for a static host, or `helmet()` in the HTTP server. `Content-Security-Policy` is the one that pays for itself first — it is what contains an injected script once one reaches the page — followed by `X-Content-Type-Options: nosniff` and a frame policy (`X-Frame-Options: DENY`, or CSP `frame-ancestors`). Where the app is served from a build container, the header configuration belongs in the image beside the built assets, so it ships with them rather than depending on where it lands.
Other · Code Health — Whether the code avoids sync-over-async (deadlock-prone blocking on tasks) and async void.
Method: Roslyn syntax scan: async methods scanned for .Wait()/.GetAwaiter().GetResult() and async-void outside event handlers. Deterministic, hard fact per invocation.
Other · Code Health — Whether any branch is dead by construction — a switch arm whose label can never equal a case-normalised subject, or an `else if` whose predicate the arm above has already swallowed.
Method: Roslyn syntax + semantics: switch labels compared against the subject's own case normaliser, and if/else-if chains checked for a literal an earlier arm's containment test already swallows. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X13 · Undrained process stream10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a child process that has BOTH standard streams redirected drains both — reading one to the end while the other is never read deadlocks once the child fills the unread pipe.
Method: Roslyn syntax + semantics: ProcessStartInfo launches with both streams redirected, checked for a drain of each stream across the enclosing type. 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 rule: a `spawn` imported from `child_process` whose stdout and stderr are both pipes (no options, no `stdio`, or `stdio` of `'pipe'`), bound to a local that never leaves its scope, where exactly one of the two streams is read, the other never, and the child’s `close`/`exit` (or the read stream’s end) is awaited; a shell redirect in the call’s arguments or a `kill` of the child suppresses it. The same rule reads Python’s `subprocess.Popen`, Dart’s `Process.start`, Ruby’s `Open3.popen3`, and Scala’s JDK process starts (`new ProcessBuilder(…).start()` with no `redirectErrorStream`/`redirectError`/`redirectOutput`/`inheritIO`, `Runtime.getRuntime.exec`) where one of `getInputStream`/`getErrorStream` is read and the other never while `waitFor()` is called or the read stream is read to its end. Deterministic, provable per finding. Advisory.
Other · Security — Whether a hand-rolled public/private IP check can be walked past — a method that unwraps IPv4-mapped IPv6 but returns the opposite verdict for the same host written as IPv4-compatible, 6to4 or NAT64.
Method: Roslyn syntax + semantics: methods that unwrap IPv4-mapped IPv6 and hand-roll IPv4 range carve-outs, checked for whether the IPv6 branch also accounts for the IPv4-compatible, 6to4 and NAT64 embeddings. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X15 · Unvalidated length from an untrusted reader10.0 / 10Exemplary○ Nothing flagged
Other · Security — Whether a length read out of the stream being parsed is bounded before it is allocated or read — an unchecked count taken from the input lets the input choose the allocation.
Method: Roslyn syntax + semantics: integer lengths read from a BinaryReader and spent on a bulk read or an array allocation, checked for any comparison or bounding call on the value anywhere in the method. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a loop that shortens a string until it fits a length budget has a floor — one with none grinds the value down to the empty string, or past it into a negative-length `Substring`.
Method: Roslyn syntax + semantics: while/do loops whose body's only effect on a string is to drop its last character, checked for whether anything — a direct comparison on the length, a body guard, a break — bounds that length below. 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 rule: a `while`/`do` loop whose body’s one assignment to a value is `x = x.slice(0, -1)` or `x = x.slice|substring|substr(0, x.length - 1)`, driven by a condition that reads `x.length` only as a term of a larger expression — never compared directly, never tested for truthiness, and with no other read of `x` — and whose body has no `break`, `return`, `throw` or `if` naming `x`. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X17 · Uncapped recursion over a caller-supplied document10.0 / 10Exemplary○ Nothing flagged
Other · Security — Whether a walk that recurses through a JSON/XML tree handed in by its caller bounds how deep it will go — an uncapped walk lets the document's nesting choose the stack depth, and the resulting StackOverflowException cannot be caught.
Method: Roslyn syntax + semantics: methods that take a JSON/XML document node and call themselves with a child of it, reachable from an externally-callable member of the same type that accepts a document, checked for any depth parameter, descent counter or threaded arithmetic anywhere in the walk. On a repository with no .NET source it reads TypeScript off the engine’s own token stream (test, vendored, generated and minified paths and `.d.ts` not) with the same rule: a function or method with a parameter typed as a document value — `unknown`, `any`, `object`, `Record<string, unknown|any>`, a JSON alias (`JsonValue`, `JSONObject`, …) or a DOM node global the file does not rebind — that calls itself (bare, or through `this` for a method, or hands itself to a call over the value as in `value.map(walk)`) with something it took out of that value and never through an ancestor accessor such as `closest()` or `parentElement`, that is exported or reached from an exported function (a public method of the same exported class) taking such a value, and that names no depth, level, nesting, recursion, remaining or budget anywhere and threads no `+`/`-` arithmetic through a self-call. Plain JavaScript is not read: with no annotation nothing tells a parsed document from a tree the code built itself. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a type's disposal matches what it OWNS — releasing what it created, leaving alone what it was handed, and not declaring a finalizer for state that has nothing unmanaged to finalize.
Method: Roslyn syntax + semantics: every assignment to a disposable field is read to decide whether the type CREATED the value or was handed it, and the type's disposal is checked against that answer — an injected interface it disposes, a value it constructed and never releases, a finalizer on a type holding nothing unmanaged, and a disposable local whose every reference is a plain member read. A value handed to a container that disposes its contents (a parent control's `Controls` collection, a component `IContainer`) is released by that container and is not reported; generated code is out of population. On a repository with no .NET source the same ownership questions are read in JavaScript/TypeScript off the engine’s own token stream (test, vendored, generated and minified paths not): a class declaring `dispose()`, `[Symbol.dispose]()` or `[Symbol.asyncDispose]()` that disposes a field it was handed through a constructor parameter typed as a repository interface or resolved by a dependency-injection container; that assigns a field only ever from `new X(…)` of a disposable class and neither releases it anywhere in the class nor names it in its disposal member or a method that member calls, nor hands it to anything else; and a `const`/`let` local built from literals only whose every reference opens a statement operating on a non-release member of it. A class is disposable when every repository declaration of its name declares or inherits a disposal member, or when it is a documented library disposable (`vscode` EventEmitter, CancellationTokenSource and Disposable; three.js geometries, materials, textures, render targets, renderers, controls and composers). The finalizer arm has no JavaScript counterpart: a class cannot declare one. Dart is read for the owned-and-never-released arm: a Flutter `State` (or a class declaring `dispose()`/`close()`) whose library-private field is written only with direct creations of a framework controller, `FocusNode`, `StreamController` or periodic `Timer` (or a `.listen(…)` into a field declared `StreamSubscription`), which nothing in the class or its library releases (`dispose`/`close`/`cancel`) and which is never handed on except as a named argument. Ruby is read for the owned-and-never-released arm and the abandoned-local arm: a class declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose instance variable is written only with a blockless core descriptor creation (`File.open`/`new`, `Tempfile`, `Dir.open`, `IO.popen`, the `socket` and `openssl` socket classes) that no method of the class closes and that is never handed on (passed, returned, stored, exposed by `attr_reader`, delegated) — a class whose superclass or mixin lies outside the repository is not judged — and a blockless creation read through and dropped (`File.open(path).read`) or held in a local that is never closed, returned, passed or stored (a `&:read` block-pass, an `autoclose: false` borrow and a `fileno` hand-over are not abandonment). PHP is read for the same two arms: a class (not a trait, and not one using a trait) declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose `private` property (or a `final` class's `protected` one) is written only with a direct core `fopen`, `tmpfile`, `popen`, `proc_open`, `fsockopen`, `stream_socket_client`/`server` or `opendir` that nothing in the class closes (`fclose`, `pclose`, `closedir`, `unset`, a reset to `null`) and that is never handed on, and a handle held in a function's local, or read through as the argument of a reader, that is never closed, returned, passed, captured or stored; a `php://` stream, `curl_init`, `SplFileObject`, `PDO` and a function the repository declares under the core name are not read. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a method that temporarily changes state belonging to the whole process — the working directory, an environment variable — puts it back on EVERY path: a restore reached only when nothing throws leaks the change to the rest of the process.
Method: Roslyn syntax + semantics: method bodies that write the process working directory or an environment variable and write it back in the same body, checked for whether that restore sits in a `finally`/`catch` or only on the straight-line path. On a repository with no .NET source the same rule reads production JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not): `process.chdir`, `process.env.NAME =`/`["NAME"] =` and `delete process.env.NAME`, and Deno’s `Deno.chdir`/`Deno.env.set`/`Deno.env.delete`, paired per function body (a nested function or arrow is its own body, and module top-level code is none), where the last write puts back a local the body captured from the same global or deletes a variable the first write set, with at least one statement between them; a write in a `catch`/`finally` of that body silences it. Deterministic, provable per finding. Advisory.
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 3/38 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.
`checkURL` calls `http.Get(…)` 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, …)`. — cmd/minikube/cmd/dashboard.go:214
`ImageTagsFromDockerHub` calls `http.Get(…)` 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, …)`. — hack/update/dockerhub.go:36
`updateHashFile` calls `http.Get(…)` 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, …)`. (×6) — REDACTED:86, REDACTED:93, REDACTED:81, …
`updateYAML` calls `http.Get(…)` 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, …)`. (×3) — hack/update/calico_version/calico_version.go:63, hack/update/flannel_version/flannel_version.go:45, hack/update/volcano_version/volcano_version.go:88
`updateHashFiles` calls `http.Get(…)` 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, …)`. (×3) — REDACTED:88, REDACTED:73, REDACTED:72
`getURLSHA256` calls `http.Get(…)` 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, …)`. — REDACTED:128
`getURLBytes` calls `http.Get(…)` 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, …)`. — REDACTED:191
`getHashesFromChecksums` calls `http.Get(…)` 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, …)`. — REDACTED:72
`goVersions` calls `http.Get(…)` 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, …)`. — REDACTED:117
`updateGoHashFile` calls `http.Get(…)` 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, …)`. — REDACTED:135
`updateDeploymentYAML` calls `http.Get(…)` 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, …)`. — hack/update/inspektor_gadget_version/inspektor_gadget_version.go:70
`downloadFile` calls `http.Get(…)` 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, …)`. — REDACTED:182
`httpUnixClient` calls `net.Dial(…)` 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) — REDACTED:519, REDACTED:660
`Create` calls `net.DialTimeout(…)` 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, …)`. — REDACTED:127
`RunQMPCommand` calls `net.Dial(…)` 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, …)`. — REDACTED:764
`GetState` calls `net.DialTimeout(…)` 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/drivers/ssh/ssh.go:175
`Start` calls `net.DialTimeout(…)` 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/drivers/vmware/driver.go:322
`downloadFileToDest` 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, …)`. — REDACTED:137
`defaultTimeout` calls `net.Dial(…)` 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/libmachine/mcnutils/b2d.go:60
`AttemptIPContact` calls `net.DialTimeout(…)` 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/libmachine/provision/boot2docker.go:224
`IsOnGCE` calls `http.Get(…)` 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/minikube/detect/detect.go:54
`remotePreloadExists` calls `http.Head(…)` 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/minikube/download/preload.go:139
`licensesTarballURL` calls `http.Head(…)` 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/minikube/download/licenses.go:32
`Licenses` calls `http.Get(…)` 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/minikube/download/licenses.go:48
`getJSON` 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/minikube/notify/notify.go:168
What to do
Thread a context.Context through functions that make requests, so the work stops when its caller gives up.
Other · Code Health — Whether a `when` guard is free of side effects — a guard that increments a counter or assigns while deciding whether its arm matches applies that change during PATTERN MATCHING, on an arm that may not be selected, and skips it entirely when a short-circuit to its left answers first.
Method: Roslyn syntax: `when` guards on case labels and switch-expression arms, read for a mutation (`++`/`--`/assignment) sitting in a position the guard's own `&&`/`||`/`??`/`?:`/`?.` can skip. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a method that TAKES a lock or semaphore and gives it back from a flag-guarded `finally` returns the value that flag implies — reporting success while the guard hands the primitive back admits a second caller the exclusion was there to keep out, and reporting failure while the guard keeps it leaves nothing to ever give it back.
Method: Roslyn syntax: `try` statements whose `finally` releases a synchronisation primitive under a bare local-bool guard, where the method also TOOK that same primitive before the `try`, checked for a `return` of a bool literal whose value disagrees with the flag state the method's own straight-line assignments put it in. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether the work a diagnostic log line costs is paid only when that line is wanted — C# evaluates a call's arguments BEFORE the call, so a trace/debug message joined or projected out of a collection is built in full on every pass, and then discarded by a sink the shipped configuration leaves switched off.
Method: Roslyn syntax: log calls at a diagnostic level (a `Log`-prefixed method naming Trace/Debug/Verbose, or a bare `Debug`/`Trace`/`Verbose` on a receiver named for a logger), whose argument list is read for a call whose cost scales with a sequence — a LINQ operator, a materialisation, `string.Join`, a serializer — with no enclosing level check or conditional-compilation region. 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 rule: a `debug`/`trace`/`verbose` call on a receiver named for a logger, or a `log`-prefixed method naming the level, whose argument calls an array operator (`map`/`filter`/`reduce`/`sort`/…), `Array.from`, `Object.keys/values/entries`, `JSON.stringify`/`util.inspect` over anything but a literal, or an array `join` — outside any arrow or function passed as an argument, which the logger calls only when the level is on — with no enclosing `if`, `&&` or `?:` whose condition names a level, a level string, or the `NODE_ENV`/`__DEV__`/`DEV` build switch. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X24 · Document value interpolated into markup unescaped10.0 / 10Exemplary○ Nothing flagged
Other · Security — Whether text read out of the document being converted is escaped before it is written into generated markup — a value the document's author chose, interpolated into an attribute the surrounding literal delimits, can close that attribute and open another.
Method: Roslyn semantic model over the whole compilation: a string-typed `Value`/`InnerText`/`InnerXml`/`Text` member declared inside `DocumentFormat.OpenXml` or `System.Xml` is a taint SOURCE, propagated through assignments, returns, arguments, tuple elements and string composition to its transitive closure, then read at interpolated-string holes that sit in a markup position the surrounding literal itself delimits. Escaper/encoder calls and enclosing validator conditions cut the flow. Flow- and container-insensitive by construction. A second arm needs no provenance at all and reports a type that CONTRADICTS ITSELF — the same expression escaped at one delimited markup hole and interpolated raw at another hole in the same markup position of the same type, which the type's own escaping proves is a defect without knowing where the value came from. On a repository with no .NET source it reads JavaScript/TypeScript off the token stream with the same rule: a DOM read of raw document text (`getAttribute`, `textContent`, `innerText`, `nodeValue`) is the source, propagated through local bindings and string composition, and judged at template-literal and concatenation holes in the same two delimited markup positions; escapers and validating conditions cut it, and documentation-site, test, vendored and minified scripts are not read. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a value the caller is invited to supply is the value the type actually uses — a constructor parameter stored in a private field that nothing ever reads while the default it was given is spelled out a second time at the site that should have read it, a keyed lookup that falls back to a different setting than the one its key names while the same type falls back to the matching one for that same key, or a culture-sensitive parse given no format provider by a type that feeds its own settable culture to the same kind of parse elsewhere, or a number an entry point writes to standard output under the host's culture while the same entry point formats with the invariant culture elsewhere. Either way, every caller who supplies a value silently gets something else.
Method: Roslyn syntax: private instance fields of a non-partial type assigned in a constructor from one of its own parameters with a `??` fallback, checked for whether anything in the type body reads the field and whether that same fallback expression is spelled out again outside the constructor; and `??` fallbacks onto a member access from a lookup call carrying exactly one string literal, grouped by that key across the type and checked for a fallback member whose folded name disagrees with the key while a sibling site for the same key agrees with it. On a repository with no .NET source the first two arms read JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `#x`, `private` or `private` parameter-property instance field filled in the constructor from a parameter (or one member of one) through `??`/`||` or a parameter default, never read anywhere in the file by name, whose constructed default is spelled again in the class body; and `lookup("key") ?? s.member` grouped by key per class, or per module outside every class. The culture arm has no JavaScript counterpart: its parses take no locale. Deterministic, provable per finding. Advisory.
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.
`Enable` starts a goroutine on every pass of a loop, and each one writes `enabledAddons`, a slice declared before the loop — `enabledAddons = append(enabledAddons, …)` on line 557. The loop never waits on `awg` before its next pass, so the goroutines of successive passes run at the same time and each one's write races the next one's; waiting on `awg` after the loop orders only what follows the wait. `enabledAddons = append(enabledAddons, …)` rewrites the slice variable itself — its pointer, length and capacity — so the other side reads or rewrites a variable mid-update: an append is lost, or a read sees a length its backing array does not have. `awg` is a `sync.WaitGroup`, which orders the handoff's signal and takes no exclusion over the slice's own state. Guard every write to `enabledAddons` with one `sync.Mutex`, or have each goroutine send its result on a channel that this body alone receives from and writes into `enabledAddons`. — pkg/addons/addons.go:557
What to do
In Go, hand values from a goroutine to the body waiting on it over a channel the body receives from, rather than through a map or slice beside a `sync.WaitGroup` or a signal channel — or hold one `sync.Mutex` over every access to the shared map or slice on both sides. The wait orders the signal; it takes no exclusion over the map's or slice's own state.
Do you agree with this assessment?
X28 · Index access outside its own emptiness guard10.0 / 10Exemplary○ Nothing flagged
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.
Do you agree with this assessment?
X29 · Per-element action decided by a fixed element10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a decision taken once per element is taken ABOUT that element — a test inside a counted loop that reads a fixed subscript of the very collection its guarded statement indexes by the loop variable applies element zero's answer to all of them, so the elements that differ from it are all handled wrongly, and in the same direction.
Method: Roslyn syntax only, no semantic model: every `for` statement declaring exactly ONE loop variable, and every `if` inside its body that is not under a nested loop or a lambda. A site enters the population when the `if`’s condition never mentions the loop variable while the statement it guards indexes some collection by that variable ALONE (`c[i]`; `c[i + 1]` and `c[i, j]` are outside it). A finding additionally needs the AGREEING TWIN at the same-collection grain: the condition must read THAT SAME collection at a subscript that does not move — written into the condition, or reached through a local declared BEFORE the loop, so an alias bound inside the body is not followed. Both collection expressions must be simple identifiers. On a repository with no .NET source the same rule reads JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `for (let|var|const x = …; …; …)` with one declarator and a braced body, an alias followed only when it is declared before the loop in a block that encloses it and never assigned inside the loop. Deterministic, provable per finding. Advisory.
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.
`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. (×18) — REDACTED:152, cmd/minikube/cmd/logs.go:145, cmd/minikube/cmd/logs.go:151, …
`if _, err := r.RunCmd(exec.Command(" ", " ")); 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. (×2) — cmd/minikube/cmd/podman-env.go:97, cmd/minikube/cmd/podman-env.go:106
`if _, err := exec.LookPath(ociBin); 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. (×2) — cmd/minikube/cmd/delete.go:161, cmd/minikube/cmd/delete.go:190
`if err := run(inspect, 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. — hack/kicbase_version/release_kicbase_version.go:190
`if err := run(pull, 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. — hack/kicbase_version/release_kicbase_version.go:200
`if err := runWithRetryNotify(ctx, inspect, nil, 1*time.Second, 10); 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. — hack/update/registry.go:109
`if err := runWithRetryNotify(ctx, pull, nil, 2*time.Minute, 10); 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. — hack/update/registry.go:119
`if _, err := runCmd(cmd); 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/drivers/kic/oci/oci.go:482
`if _, err := os.Stat(d.pidfilePath()); 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. (×4) — REDACTED:135, REDACTED:134, REDACTED:190, …
`if err := os.WriteFile(rawFile, buf.Bytes(), 0644); 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. (×3) — REDACTED:509, REDACTED:719, REDACTED:650
`if err := os.Truncate(rawFile, int64(size)*int64(1024*1024)); 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. (×2) — REDACTED:512, REDACTED:653
`if fullPath, err := exec.LookPath(bin); 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/minikube/cluster/ip.go:105
`if err := unix.Statfs(" ", &stat); 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. (×2) — pkg/minikube/detect/detect_linux.go:42, pkg/minikube/detect/detect_linux.go:47
`if err := unix.Uname(&uname); 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/minikube/detect/detect_linux.go:98
What to do
Swallowed exception (caught, then discarded)
Do you agree with this assessment?
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.
Do you agree with this assessment?
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.
Unscored — 3 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.
D11 Test Reliability — 13 observation(s) recorded · This repository declares 13 of its own test(s) unreliable. The built-in reliability runner does not support this repository's ecosystem (.go), so the suite was not re-run and no reliability score is given — these are the repository's own declarations, not our measurement.
X10 Duplicated predicate — 9 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
X7 Silent fallback defaults — 4 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 — 44 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 — Frontend below the scale floor (4 DOM element(s) < 25) — too little surface to assess accessibility.
AC2 Forms & labels — Frontend below the scale floor (4 DOM element(s) < 25) — too little surface to assess accessibility.
AC3 Page structure — Frontend below the scale floor (4 DOM element(s) < 25) — too little surface to assess accessibility.
AC4 Keyboard semantics — Frontend below the scale floor (4 DOM element(s) < 25) — too little surface to assess accessibility.
AC5 ARIA correctness — Frontend below the scale floor (4 DOM element(s) < 25) — too little surface to assess accessibility.
AC6 Visual & motion safety — Frontend below the scale floor (4 DOM element(s) < 25) — too little surface to assess accessibility.
AC7 A11y enforcement — Frontend below the scale floor (4 DOM element(s) < 25) — too little surface to assess accessibility.
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 JavaScript 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
AX6 Interface segregation — not assessed — interface segregation is computed over a type surface 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
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) — DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/bui…; 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 — ~37160 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.
D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
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+ projects each declaring an entity of their own. 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 — No inline comments to assess — comment value is not applicable here.
D25 ADR Conformance — no ADRs to check
D27 Navigability — D27 counts a call into the standard library or a dependency as unresolved for this repository's language (.go), so too few call sites counted as resolved to assess navigability. Not scored: this is a gap in the analyzer, not a verdict about this repository.
D32 Data Compliance (PII/GDPR) — 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.
D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
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
D8 Code Coverage — Coverage not included — suite not readable by the collector
DM1 Domain Modelling — not scored — this repository shows none of the 2 signals this lens looks for
ED1 Event-Driven — not scored — this repository shows none of the 3 signals this lens looks for
ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
GD1 Unfinished & placeholder code — no source files were read — this check reads C#, F#, JavaScript/TypeScript, Dart, Ruby and Scala, 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 — no coverage report found on disk — produce a coverage report in a standard format (`go test -coverprofile=coverage.out ./...`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
SC1 Supply-chain hygiene — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
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.
X27 Collection changed while being enumerated — 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 — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X5 Nullable reference types — 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.
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.
D11 · Test Reliability· Test declared unreliable · ×13
Test declared unreliable: TestDownloadOnly test/integration/aaa_download_only_test.go:48— This test is disabled or skipped with a reason naming unreliability — the repository's own words: "skipping: flaky on Docker driver: https://github.com/kubernetes/minikube/issues/23163". A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository's own test source — the suite itself was not re-run, since the reliability runner does not support this ecosystem.)
Test declared unreliable: TestDownloadOnlyKic test/integration/aaa_download_only_test.go:232— This test is disabled or skipped with a reason naming unreliability — the repository's own words: "skipping: flaky on Docker driver: https://github.com/kubernetes/minikube/issues/23163". A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository's own test source — the suite itself was not re-run, since the reliability runner does not support this ecosystem.)
Test declared unreliable: validateVolcanoAddon test/integration/addons_test.go:858— This test is disabled or skipped with a reason naming unreliability — the repository's own words: "skipping: flaky on KVM driver: https://github.com/kubernetes/minikube/issues/23138". A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository's own test source — the suite itself was not re-run, since the reliability runner does not support this ecosystem.)
Test declared unreliable: validateSoftStart test/integration/functional_test.go:761— This test is disabled or skipped with a reason naming unreliability — the repository's own words: "skipping: flaky on KVM driver: https://github.com/kubernetes/minikube/issues/23153". A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository's own test source — the suite itself was not re-run, since the reliability runner does not support this ecosystem.)
Test declared unreliable: validateExtraConfig test/integration/functional_test.go:874— This test is disabled or skipped with a reason naming unreliability — the repository's own words: "skipping: flaky on KVM driver: https://github.com/kubernetes/minikube/issues/23153". A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository's own test source — the suite itself was not re-run, since the reliability runner does not support this ecosystem.)
Test declared unreliable: validateComponentHealth test/integration/functional_test.go:926— This test is disabled or skipped with a reason naming unreliability — the repository's own words: "skipping: flaky on KVM driver: https://github.com/kubernetes/minikube/issues/23142". A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository's own test source — the suite itself was not re-run, since the reliability runner does not support this ecosystem.)
Test declared unreliable: validateMySQL test/integration/functional_test.go:1908— This test is disabled or skipped with a reason naming unreliability — the repository's own words: "skipping: flaky, ECR rate limits cause ImagePullBackOff: https://github.com/kubernetes/minikube/issues/23264". A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository's own test source — the suite itself was not re-run, since the reliability runner does not support this ecosystem.)
Test declared unreliable: validateMountCmd test/integration/functional_test_mount_test.go:295— This test is disabled or skipped with a reason naming unreliability — the repository's own words: "skipping: flaky mount cleanup timing: https://github.com/kubernetes/minikube/issues/23139". A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository's own test source — the suite itself was not re-run, since the reliability runner does not support this ecosystem.)
Test declared unreliable: validateHADeployApp test/integration/ha_test.go:127— This test is disabled or skipped with a reason naming unreliability — the repository's own words: "skipping: flaky on Docker driver: https://github.com/kubernetes/minikube/issues/23140". A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository's own test source — the suite itself was not re-run, since the reliability runner does not support this ecosystem.)
Test declared unreliable: validateHAPingHostFromPods test/integration/ha_test.go:192— This test is disabled or skipped with a reason naming unreliability — the repository's own words: "skipping: flaky on Docker driver: https://github.com/kubernetes/minikube/issues/23144". A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository's own test source — the suite itself was not re-run, since the reliability runner does not support this ecosystem.)
Test declared unreliable: TestMultiNode test/integration/multinode_test.go:43— This test is disabled or skipped with a reason naming unreliability — the repository's own words: "skipping: flaky on KVM driver, serial subtests are tightly coupled and cannot be skipped individually: https://github.com/kubernetes/minikube/issues/23134". A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository's own test source — the suite itself was not re-run, since the reliability runner does not support this ecosystem.)
Test declared unreliable: validateStartNoReconfigure test/integration/pause_test.go:90— This test is disabled or skipped with a reason naming unreliability — the repository's own words: "skipping: flaky on KVM driver: https://github.com/kubernetes/minikube/issues/23141". A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository's own test source — the suite itself was not re-run, since the reliability runner does not support this ecosystem.)
Test declared unreliable: TestRunningBinaryUpgrade test/integration/version_upgrade_test.go:93— This test is disabled or skipped with a reason naming unreliability — the repository's own words: "skipping: flaky on KVM driver: https://github.com/kubernetes/minikube/issues/23150". A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository's own test source — the suite itself was not re-run, since the reliability runner does not support this ecosystem.)
Boundary-crossing change coupling: kubernetes_version.go ↔ kubernetes_versions_list.go cmd/minikube/cmd/config/kubernetes_version.go:1— `cmd/minikube/cmd/config/kubernetes_version.go` (context cmd) and `hack/update/kubernetes_versions_list/kubernetes_versions_list.go` (context hack) sit in DIFFERENT parts of the tree yet change together 94% of the time (29 of the 31 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 29 shared commits counted here, the most recent 3 are `57388dc1` Update go-github from v84.0.0 to v85.0.0 (#22885); `957ebb47` Update go-github from v83.0.0 to v84.0.0 (#22716); `22684a1f` Update go-github from v82.0.0 to v83.0.0 (#22686) — run `git show` on any of them.
Boundary-crossing change coupling: kubernetes_versions_list.go ↔ github.go hack/update/kubernetes_versions_list/kubernetes_versions_list.go:1— `hack/update/kubernetes_versions_list/kubernetes_versions_list.go` (context hack) and `pkg/perf/monitor/github.go` (context pkg) sit in DIFFERENT parts of the tree yet change together 94% of the time (29 of the 31 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 29 shared commits counted here, the most recent 3 are `57388dc1` Update go-github from v84.0.0 to v85.0.0 (#22885); `957ebb47` Update go-github from v83.0.0 to v84.0.0 (#22716); `22684a1f` Update go-github from v82.0.0 to v83.0.0 (#22686) — run `git show` on any of them.
Boundary-crossing change coupling: ingress_version.go ↔ github.go hack/update/ingress_version/ingress_version.go:1— `hack/update/ingress_version/ingress_version.go` (context hack) and `pkg/perf/monitor/github.go` (context pkg) sit in DIFFERENT parts of the tree yet change together 88% of the time (29 of the 33 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 29 shared commits counted here, the most recent 3 are `57388dc1` Update go-github from v84.0.0 to v85.0.0 (#22885); `957ebb47` Update go-github from v83.0.0 to v84.0.0 (#22716); `22684a1f` Update go-github from v82.0.0 to v83.0.0 (#22686) — run `git show` on any of them.
Boundary-crossing change coupling: REDACTED ↔ github.go REDACTED:1— `REDACTED` (context hack) and `pkg/perf/monitor/github.go` (context pkg) sit in DIFFERENT parts of the tree yet change together 88% of the time (29 of the 33 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 29 shared commits counted here, the most recent 3 are `57388dc1` Update go-github from v84.0.0 to v85.0.0 (#22885); `957ebb47` Update go-github from v83.0.0 to v84.0.0 (#22716); `22684a1f` Update go-github from v82.0.0 to v83.0.0 (#22686) — run `git show` on any of them.
Boundary-crossing change coupling: kubernetes_version.go ↔ site_node_version.go cmd/minikube/cmd/config/kubernetes_version.go:1— `cmd/minikube/cmd/config/kubernetes_version.go` (context cmd) and `hack/update/site_node_version/site_node_version.go` (context hack) sit in DIFFERENT parts of the tree yet change together 86% of the time (24 of the 28 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 24 shared commits counted here, the most recent 3 are `57388dc1` Update go-github from v84.0.0 to v85.0.0 (#22885); `957ebb47` Update go-github from v83.0.0 to v84.0.0 (#22716); `22684a1f` Update go-github from v82.0.0 to v83.0.0 (#22686) — run `git show` on any of them.
Boundary-crossing change coupling: site_node_version.go ↔ github.go hack/update/site_node_version/site_node_version.go:1— `hack/update/site_node_version/site_node_version.go` (context hack) and `pkg/perf/monitor/github.go` (context pkg) sit in DIFFERENT parts of the tree yet change together 86% of the time (24 of the 28 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 24 shared commits counted here, the most recent 3 are `57388dc1` Update go-github from v84.0.0 to v85.0.0 (#22885); `957ebb47` Update go-github from v83.0.0 to v84.0.0 (#22716); `22684a1f` Update go-github from v82.0.0 to v83.0.0 (#22686) — run `git show` on any of them.
Boundary-crossing change coupling: kubernetes_version.go ↔ ingress_version.go cmd/minikube/cmd/config/kubernetes_version.go:1— `cmd/minikube/cmd/config/kubernetes_version.go` (context cmd) and `hack/update/ingress_version/ingress_version.go` (context hack) sit in DIFFERENT parts of the tree yet change together 82% of the time (28 of the 34 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 28 shared commits counted here, the most recent 3 are `57388dc1` Update go-github from v84.0.0 to v85.0.0 (#22885); `957ebb47` Update go-github from v83.0.0 to v84.0.0 (#22716); `22684a1f` Update go-github from v82.0.0 to v83.0.0 (#22686) — run `git show` on any of them.
Boundary-crossing change coupling: assets.go ↔ REDACTED deploy/addons/assets.go:1— `deploy/addons/assets.go` (context deploy) and `pkg/addons/config.go` (context pkg) sit in DIFFERENT parts of the tree yet change together 80% of the time (12 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are `00af7581` remove stale storage-provisioner-gluster addon; `60212f16` new: add kubetail addon (#20345); `f4ded199` remove tiller addon (#19636) — run `git show` on any of them.
Boundary-crossing change coupling: kubernetes_version.go ↔ REDACTED cmd/minikube/cmd/config/kubernetes_version.go:1— `cmd/minikube/cmd/config/kubernetes_version.go` (context cmd) and `REDACTED` (context hack) sit in DIFFERENT parts of the tree yet change together 76% of the time (29 of the 38 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 29 shared commits counted here, the most recent 3 are `57388dc1` Update go-github from v84.0.0 to v85.0.0 (#22885); `957ebb47` Update go-github from v83.0.0 to v84.0.0 (#22716); `22684a1f` Update go-github from v82.0.0 to v83.0.0 (#22686) — run `git show` on any of them.
Boundary-crossing change coupling: kubernetes_version.go ↔ github.go cmd/minikube/cmd/config/kubernetes_version.go:1— `cmd/minikube/cmd/config/kubernetes_version.go` (context cmd) and `hack/update/github.go` (context hack) sit in DIFFERENT parts of the tree yet change together 76% of the time (28 of the 37 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository's 10,000 most recent commits rather than its whole history — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 28 shared commits counted here, the most recent 3 are `57388dc1` Update go-github from v84.0.0 to v85.0.0 (#22885); `957ebb47` Update go-github from v83.0.0 to v84.0.0 (#22716); `22684a1f` Update go-github from v82.0.0 to v83.0.0 (#22686) — run `git show` on any of them.
TodoComment REDACTED:79— // TODO: actually require client cert — 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 cmd/minikube/cmd/start.go:1139— // TODO: Fix MB vs MiB confusion — 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 cmd/minikube/cmd/docker-env.go:418— // TODO: refactor to work with docker, temp fix to resolve regression — 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 cmd/minikube/cmd/docker-env.go:428— // TODO: refactor to work with docker, temp fix to resolve regression — 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 cmd/minikube/cmd/dashboard.go:51— // TODO(tstromberg): Get kubectl to implement a stable supported output format. — 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 hack/prow/minitest/deployer/docker_deployer.go:123— //todo: remove hard coded ports — 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 hack/prow/minitest/deployer/boskos_macos_deployer.go:96— //todo: clean up the VM? — 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 hack/prow/minitest/deployer/boskos_deployer.go:118— //todo: clean up the VM? — 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 hack/update/update_all/update_all.go:32— // TODO: add support before/after https://github.com/kubernetes/minikube/issues/21246
TodoComment hack/update/update_all/update_all.go:41— // not needed anymore (TODO: remove in future) — 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/addons/config.go:166— // TODO - add other settings — 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/addons/config.go:167— // TODO check if registry addon is enabled — 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/drivers/common/common.go:85— // TODO: Consider removing when libmachine API is part of minikube: — 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/minikube/machine/client.go:90— // TODO: Consider removing when libmachine API is part of minikube: — 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/drivers/common/virtiofs/virtiofs.go:49— // TODO: Drop when we have a flag supporting multiple mounts. — 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 REDACTED:152— // TODO: this should be fixed as a part of https://github.com/kubernetes/minikube/issues/6530
TodoComment pkg/drivers/kic/oci/network.go:45— // TODO: parse DaemonHost() — 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 REDACTED:376— // TODO: this stop request may be ignored by the guest: — 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 REDACTED:465— // TODO: duplicate from vfkit and qemu: https://github.com/kubernetes/minikube/issues/21090
TodoComment pkg/drivers/kvm/kvm.go:367— // TODO: Enhance the domain template to use variable for the logical name of the main disk and the cdrom disk. — 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 REDACTED:301— // TODO: Switch to --bootloader efi when x86_64 iso changed to EFI. — 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/drivers/virtualbox/virtualbox.go:586— // TODO do some basic Windows -> MSYS path conversion — 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/libmachine/libmachine.go:187— // TODO: Not really a fan of just checking "none" or "ci-test" 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/libmachine/cert/bootstrap.go:97— // TODO: I'm not super happy about this use of "org", the user should — 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.
Swallowed exception (caught, then discarded) REDACTED:152— `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) cmd/minikube/cmd/podman-env.go:97— `if _, err := r.RunCmd(exec.Command(" ", " ")); 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) cmd/minikube/cmd/podman-env.go:106— `if _, err := r.RunCmd(exec.Command(" ", " ")); 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) cmd/minikube/cmd/logs.go:145— `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) cmd/minikube/cmd/logs.go:151— `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) cmd/minikube/cmd/delete.go:161— `if _, err := exec.LookPath(ociBin); 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) cmd/minikube/cmd/delete.go:190— `if _, err := exec.LookPath(ociBin); 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) cmd/minikube/cmd/delete.go:701— `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) hack/kicbase_version/release_kicbase_version.go:190— `if err := run(inspect, 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.
Swallowed exception (caught, then discarded) hack/kicbase_version/release_kicbase_version.go:200— `if err := run(pull, 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.
Swallowed exception (caught, then discarded) hack/update/registry.go:109— `if err := runWithRetryNotify(ctx, inspect, nil, 1*time.Second, 10); 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) hack/update/registry.go:119— `if err := runWithRetryNotify(ctx, pull, nil, 2*time.Minute, 10); 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/drivers/kic/oci/oci.go:392— `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/drivers/kic/oci/oci.go:482— `if _, err := runCmd(cmd); 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) REDACTED:135— `if _, err := os.Stat(d.pidfilePath()); 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) REDACTED:509— `if err := os.WriteFile(rawFile, buf.Bytes(), 0644); 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) REDACTED:512— `if err := os.Truncate(rawFile, int64(size)*int64(1024*1024)); 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) REDACTED:134— `if _, err := os.Stat(d.pidfilePath()); 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) REDACTED:190— `if _, err := os.Stat(d.pidfilePath()); 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) REDACTED:719— `if err := os.WriteFile(rawFile, buf.Bytes(), 0644); 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/drivers/ssh/ssh.go:179— `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) REDACTED:137— `if _, err := os.Stat(d.pidfilePath()); 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) REDACTED:650— `if err := os.WriteFile(rawFile, buf.Bytes(), 0644); 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) REDACTED:653— `if err := os.Truncate(rawFile, int64(size)*int64(1024*1024)); 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/drivers/virtualbox/virtualbox_freebsd.go:27— `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.
+ 15 more in this group — see findings.md.
X2 · Cancellation propagation· Function without context.Context · ×35
Function without context.Context: checkURL cmd/minikube/cmd/dashboard.go:214— `checkURL` calls `http.Get(…)` 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: ImageTagsFromDockerHub hack/update/dockerhub.go:36— `ImageTagsFromDockerHub` calls `http.Get(…)` 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: updateHashFile REDACTED:86— `updateHashFile` calls `http.Get(…)` 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: updateYAML hack/update/calico_version/calico_version.go:63— `updateYAML` calls `http.Get(…)` 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: updateHashFile REDACTED:93— `updateHashFile` calls `http.Get(…)` 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: updateHashFiles REDACTED:88— `updateHashFiles` calls `http.Get(…)` 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: getURLSHA256 REDACTED:128— `getURLSHA256` calls `http.Get(…)` 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: getURLBytes REDACTED:191— `getURLBytes` calls `http.Get(…)` 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: updateHashFile REDACTED:81— `updateHashFile` calls `http.Get(…)` 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: updateHashFile REDACTED:102— `updateHashFile` calls `http.Get(…)` 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: updateHashFiles REDACTED:73— `updateHashFiles` calls `http.Get(…)` 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: getHashesFromChecksums REDACTED:72— `getHashesFromChecksums` calls `http.Get(…)` 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: updateHashFile REDACTED:76— `updateHashFile` calls `http.Get(…)` 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: updateYAML hack/update/flannel_version/flannel_version.go:45— `updateYAML` calls `http.Get(…)` 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: goVersions REDACTED:117— `goVersions` calls `http.Get(…)` 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: updateGoHashFile REDACTED:135— `updateGoHashFile` calls `http.Get(…)` 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: updateDeploymentYAML hack/update/inspektor_gadget_version/inspektor_gadget_version.go:70— `updateDeploymentYAML` calls `http.Get(…)` 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: downloadFile REDACTED:182— `downloadFile` calls `http.Get(…)` 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: updateHashFile REDACTED:86— `updateHashFile` calls `http.Get(…)` 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: updateHashFiles REDACTED:72— `updateHashFiles` calls `http.Get(…)` 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: updateYAML hack/update/volcano_version/volcano_version.go:88— `updateYAML` calls `http.Get(…)` 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: httpUnixClient REDACTED:519— `httpUnixClient` calls `net.Dial(…)` 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: Create REDACTED:127— `Create` calls `net.DialTimeout(…)` 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: RunQMPCommand REDACTED:764— `RunQMPCommand` calls `net.Dial(…)` 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: GetState pkg/drivers/ssh/ssh.go:175— `GetState` calls `net.DialTimeout(…)` 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, …)`.
Outbound HTTP without resilience cmd/minikube/cmd/dashboard.go:215— `http.Get(` 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.
Outbound HTTP without resilience hack/changelog/changelog.go:117— `http.DefaultClient` 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.
Outbound HTTP without resilience REDACTED:96— `http.Get(` 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.
Outbound HTTP without resilience hack/update/calico_version/calico_version.go:64— `http.Get(` 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.
Outbound HTTP without resilience REDACTED:94— `http.Get(` 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.
Outbound HTTP without resilience REDACTED:100— `http.Get(` 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.
Outbound HTTP without resilience REDACTED:129— `http.Get(` 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.
Outbound HTTP without resilience REDACTED:192— `http.Get(` 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.
Outbound HTTP without resilience REDACTED:91— `http.Get(` 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.
Outbound HTTP without resilience REDACTED:103— `http.Get(` 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.
Outbound HTTP without resilience REDACTED:74— `http.Get(` 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.
Outbound HTTP without resilience REDACTED:74— `http.Get(` 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.
Outbound HTTP without resilience REDACTED:77— `http.Get(` 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.
Outbound HTTP without resilience hack/update/flannel_version/flannel_version.go:46— `http.Get(` 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.
Outbound HTTP without resilience REDACTED:119— `http.Get(` 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.
Outbound HTTP without resilience REDACTED:147— `http.Get(` 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.
Outbound HTTP without resilience hack/update/ingress_version/ingress_version.go:68— `http.Get(` 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.
Outbound HTTP without resilience hack/update/inspektor_gadget_version/inspektor_gadget_version.go:71— `http.Get(` 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.
Outbound HTTP without resilience REDACTED:189— `http.Get(` 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.
Outbound HTTP without resilience REDACTED:87— `http.Get(` 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.
Outbound HTTP without resilience REDACTED:73— `http.Get(` 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.
Outbound HTTP without resilience hack/update/volcano_version/volcano_version.go:89— `http.Get(` 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.
Outbound HTTP without resilience REDACTED:519— `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.
Outbound HTTP without resilience REDACTED:520— `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.
Outbound HTTP without resilience REDACTED:660— `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.
Duplicated block (11 lines × 2) cmd/minikube/cmd/mount.go:277— cmd/minikube/cmd/mount.go:277-287 | pkg/minikube/node/start.go:675-685 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `cmd/minikube/cmd/mount.go:277` 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. 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 (11 lines × 2) hack/jenkins/release_update_releases_json.go:109— hack/jenkins/release_update_releases_json.go:109-119 | hack/jenkins/release_update_releases_json.go:223-233 — 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 `hack/jenkins/release_update_releases_json.go:109` 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.
Duplicated block (11 lines × 2) pkg/drivers/kic/oci/cli_runner.go:52— pkg/drivers/kic/oci/cli_runner.go:52-62 | REDACTED:97-107 — 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. 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 (11 lines × 2) REDACTED:359— REDACTED:359-369 | pkg/drivers/virtualbox/virtualbox.go:1318-1328 — 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. 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 (11 lines × 2) pkg/libmachine/provision/debian.go:116— pkg/libmachine/provision/debian.go:116-126 | pkg/libmachine/provision/ubuntu.go:110-120 — before extracting anything, compare `pkg/libmachine/provision/debian.go` and `pkg/libmachine/provision/ubuntu.go` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 69 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.
Duplicated block (11 lines × 2) pkg/minikube/command/ssh_runner.go:357— pkg/minikube/command/ssh_runner.go:357-367 | pkg/minikube/command/ssh_runner.go:416-426 — 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.
Duplicated block (11 lines × 2) pkg/minikube/machine/info.go:200— pkg/minikube/machine/info.go:200-210 | pkg/minikube/machine/info.go:223-233 — 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/minikube/machine/info.go:200` 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 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/minikube/tunnel/loadbalancer_patcher.go:108— pkg/minikube/tunnel/loadbalancer_patcher.go:108-118 | pkg/minikube/tunnel/loadbalancer_patcher.go:134-144 — 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/minikube/tunnel/route_linux.go:119— pkg/minikube/tunnel/route_linux.go:119-129 | pkg/minikube/tunnel/route_windows.go:120-130 — 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.
Duplicated block (11 lines × 2) pkg/provision/buildroot.go:62— pkg/provision/buildroot.go:62-72 | pkg/provision/ubuntu.go:63-73 — before extracting anything, compare `pkg/provision/buildroot.go` and `pkg/provision/ubuntu.go` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 70 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.
Duplicated block (11 lines × 2) REDACTED:261— REDACTED:261-271 | REDACTED:353-363 — `REDACTED` and `REDACTED` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 12 separate duplicated blocks between them, totalling at least 162 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:261` 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. 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 (11 lines × 2) pkg/drivers/vmware/vmware_windows.go:60— pkg/drivers/vmware/vmware_windows.go:60-70 | pkg/drivers/vmware/vmware_windows.go:73-83 — 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 (12 lines × 2) hack/jenkins/release_update_releases_json.go:88— hack/jenkins/release_update_releases_json.go:88-99 | hack/jenkins/release_update_releases_json.go:202-213 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) REDACTED:136— REDACTED:136-147 | REDACTED:138-149 — `REDACTED` and `REDACTED` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 12 separate duplicated blocks between them, totalling at least 162 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:136` 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.
Duplicated block (12 lines × 2) REDACTED:271— REDACTED:271-282 | REDACTED:207-218 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:271` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `REDACTED:206` calls `extractKernel` and `REDACTED:270` 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.
Duplicated block (12 lines × 2) pkg/libmachine/cert/cert.go:152— pkg/libmachine/cert/cert.go:152-164 | pkg/libmachine/cert/cert.go:236-247 — 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 (12 lines × 2) pkg/minikube/machine/build_images.go:189— pkg/minikube/machine/build_images.go:189-200 | pkg/minikube/machine/cache_images.go:293-304 — before extracting anything, compare `pkg/minikube/machine/build_images.go` and `pkg/minikube/machine/cache_images.go` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 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 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 (12 lines × 2) pkg/minikube/schedule/daemonize_windows.go:45— pkg/minikube/schedule/daemonize_windows.go:45-56 | pkg/minikube/schedule/daemonize_windows.go:83-94 — 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 (12 lines × 2) REDACTED:86— REDACTED:86-97 | REDACTED:88-99 — `REDACTED` and `REDACTED` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 12 separate duplicated blocks between them, totalling at least 162 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (12 lines × 2) REDACTED:313— REDACTED:313-324 | REDACTED:486-497 — `REDACTED` and `REDACTED` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 12 separate duplicated blocks between them, totalling at least 162 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (12 lines × 2) pkg/libmachine/provision/utils.go:62— pkg/libmachine/provision/utils.go:62-73 | pkg/provision/provision.go:215-226 — 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 (12 lines × 2) pkg/minikube/command/kic_runner.go:149— pkg/minikube/command/kic_runner.go:149-160 | pkg/minikube/command/ssh_runner.go:339-351 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `pkg/minikube/command/ssh_runner.go:352` calls `Infof`, `GetLength` and `pkg/minikube/command/kic_runner.go:161` does not — after which the two agree again for 3 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.
D12 · Dependency Hygiene· Dependency pinned to a stale untagged commit · ×9
Dependency pinned to a stale untagged commit: github.com/aregm/cpuid — Direct dependency `github.com/aregm/cpuid` is required at `v0.0.0-20181003105527-1a4a6f06a1c6` in REDACTED — a pseudo-version, which pins an UNTAGGED commit from 2018-10-03, 8.1 years ago. The pin itself is exact, so this is not a reproducibility defect, and it is not a claim that the module is unmaintained. What it says is that this repository tracks no RELEASE of `github.com/aregm/cpuid` and has not moved this requirement in 8.1 years: every fix the module has published since that commit — including any security fix — is absent from this build, whether the module went quiet or moved on without you. Check whether `github.com/aregm/cpuid` now publishes tagged releases and move the requirement to one; if it publishes none, re-pin to a current commit.
Dependency pinned to a stale untagged commit: github.com/hectane/go-acl — Direct dependency `github.com/hectane/go-acl` is required at `v0.0.0-20190604041725-da78bae5fc95` in REDACTED — a pseudo-version, which pins an UNTAGGED commit from 2019-06-04, 7.4 years ago. The pin itself is exact, so this is not a reproducibility defect, and it is not a claim that the module is unmaintained. What it says is that this repository tracks no RELEASE of `github.com/hectane/go-acl` and has not moved this requirement in 7.4 years: every fix the module has published since that commit — including any security fix — is absent from this build, whether the module went quiet or moved on without you. Check whether `github.com/hectane/go-acl` now publishes tagged releases and move the requirement to one; if it publishes none, re-pin to a current commit.
Dependency pinned to a stale untagged commit: github.com/icza/dyno — Direct dependency `github.com/icza/dyno` is required at `v0.0.0-20230330125955-09f820a8d9c0` in REDACTED — a pseudo-version, which pins an UNTAGGED commit from 2023-03-30, 3.6 years ago. The pin itself is exact, so this is not a reproducibility defect, and it is not a claim that the module is unmaintained. What it says is that this repository tracks no RELEASE of `github.com/icza/dyno` and has not moved this requirement in 3.6 years: every fix the module has published since that commit — including any security fix — is absent from this build, whether the module went quiet or moved on without you. Check whether `github.com/icza/dyno` now publishes tagged releases and move the requirement to one; if it publishes none, re-pin to a current commit.
Dependency pinned to a stale untagged commit: github.com/kballard/go-shellquote — Direct dependency `github.com/kballard/go-shellquote` is required at `v0.0.0-20180428030007-95032a82bc51` in REDACTED — a pseudo-version, which pins an UNTAGGED commit from 2018-04-28, 8.5 years ago. The pin itself is exact, so this is not a reproducibility defect, and it is not a claim that the module is unmaintained. What it says is that this repository tracks no RELEASE of `github.com/kballard/go-shellquote` and has not moved this requirement in 8.5 years: every fix the module has published since that commit — including any security fix — is absent from this build, whether the module went quiet or moved on without you. Check whether `github.com/kballard/go-shellquote` now publishes tagged releases and move the requirement to one; if it publishes none, re-pin to a current commit.
Dependency pinned to a stale untagged commit: github.com/mattbaird/jsonpatch — Direct dependency `github.com/mattbaird/jsonpatch` is required at `v0.0.0-20200820163806-098863c1fc24` in REDACTED — a pseudo-version, which pins an UNTAGGED commit from 2020-08-20, 6.2 years ago. The pin itself is exact, so this is not a reproducibility defect, and it is not a claim that the module is unmaintained. What it says is that this repository tracks no RELEASE of `github.com/mattbaird/jsonpatch` and has not moved this requirement in 6.2 years: every fix the module has published since that commit — including any security fix — is absent from this build, whether the module went quiet or moved on without you. Check whether `github.com/mattbaird/jsonpatch` now publishes tagged releases and move the requirement to one; if it publishes none, re-pin to a current commit.
Dependency pinned to a stale untagged commit: github.com/phayes/freeport — Direct dependency `github.com/phayes/freeport` is required at `v0.0.0-20180830031419-95f893ade6f2` in REDACTED — a pseudo-version, which pins an UNTAGGED commit from 2018-08-30, 8.2 years ago. The pin itself is exact, so this is not a reproducibility defect, and it is not a claim that the module is unmaintained. What it says is that this repository tracks no RELEASE of `github.com/phayes/freeport` and has not moved this requirement in 8.2 years: every fix the module has published since that commit — including any security fix — is absent from this build, whether the module went quiet or moved on without you. Check whether `github.com/phayes/freeport` now publishes tagged releases and move the requirement to one; if it publishes none, re-pin to a current commit.
Dependency pinned to a stale untagged commit: github.com/pkg/browser — Direct dependency `github.com/pkg/browser` is required at `v0.0.0-20210911075715-681adbf594b8` in REDACTED — a pseudo-version, which pins an UNTAGGED commit from 2021-09-11, 5.1 years ago. The pin itself is exact, so this is not a reproducibility defect, and it is not a claim that the module is unmaintained. What it says is that this repository tracks no RELEASE of `github.com/pkg/browser` and has not moved this requirement in 5.1 years: every fix the module has published since that commit — including any security fix — is absent from this build, whether the module went quiet or moved on without you. Check whether `github.com/pkg/browser` now publishes tagged releases and move the requirement to one; if it publishes none, re-pin to a current commit.
Dependency pinned to a stale untagged commit: golang.org/x/build — Direct dependency `golang.org/x/build` is required at `v0.0.0-20190927031335-2835ba2e683f` in REDACTED — a pseudo-version, which pins an UNTAGGED commit from 2019-09-27, 7.1 years ago. The pin itself is exact, so this is not a reproducibility defect, and it is not a claim that the module is unmaintained. What it says is that this repository tracks no RELEASE of `golang.org/x/build` and has not moved this requirement in 7.1 years: every fix the module has published since that commit — including any security fix — is absent from this build, whether the module went quiet or moved on without you. Check whether `golang.org/x/build` now publishes tagged releases and move the requirement to one; if it publishes none, re-pin to a current commit.
Dependency pinned to a stale untagged commit: github.com/phayes/freeport — Direct dependency `github.com/phayes/freeport` is required at `v0.0.0-20220201140144-74d24b5ae9f5` in REDACTED — a pseudo-version, which pins an UNTAGGED commit from 2022-02-01, 4.7 years ago. The pin itself is exact, so this is not a reproducibility defect, and it is not a claim that the module is unmaintained. What it says is that this repository tracks no RELEASE of `github.com/phayes/freeport` and has not moved this requirement in 4.7 years: every fix the module has published since that commit — including any security fix — is absent from this build, whether the module went quiet or moved on without you. Check whether `github.com/phayes/freeport` now publishes tagged releases and move the requirement to one; if it publishes none, re-pin to a current commit.
FileTooLong: cmd/start.go cmd/minikube/cmd/start.go— FileTooLong — 1232 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 732 over it, 2.46× 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: assets/addons.go pkg/minikube/assets/addons.go— FileTooLong — 879 significant lines (blank, comment-only and punctuation-only lines excluded), about 77% of them inside a single declaration: Addons (115-824). The bar is 500 significant lines; this is 379 over it, 1.76× 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: virtualbox/virtualbox.go pkg/drivers/virtualbox/virtualbox.go— FileTooLong — 836 significant lines (blank, comment-only and punctuation-only lines excluded), about 72% of them inside a single declaration: Driver (27 blocks, 69-1390). The bar is 500 significant lines; this is 336 over it, 1.67× 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: reason/known_issues.go pkg/minikube/reason/known_issues.go— FileTooLong — 801 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 301 over it, 1.60× 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: cmd/start_flags.go cmd/minikube/cmd/start_flags.go— FileTooLong — 771 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 271 over it, 1.54× 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: kubeadm/kubeadm.go pkg/minikube/bootstrapper/kubeadm/kubeadm.go— FileTooLong — 709 significant lines (blank, comment-only and punctuation-only lines excluded), about 80% of them inside a single declaration: Bootstrapper (24 blocks, 76-1173). The bar is 500 significant lines; this is 209 over it, 1.42× 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: machine/cache_images.go pkg/minikube/machine/cache_images.go— FileTooLong — 597 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 97 over it, 1.19× 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: REDACTED REDACTED— FileTooLong — 548 significant lines (blank, comment-only and punctuation-only lines excluded), about 75% of them inside a single declaration: Driver (30 blocks, 65-852). The bar is 500 significant lines; this is 48 over it, 1.10× 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: node/start.go pkg/minikube/node/start.go— FileTooLong — 543 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 43 over it, 1.09× 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.
Duplicated block (10 lines × 2) hack/jenkins/release_update_releases_json.go:169— hack/jenkins/release_update_releases_json.go:169-178 | hack/jenkins/release_update_releases_json.go:257-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. 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 (10 lines × 2) pkg/minikube/bootstrapper/kubeadm/kubeadm.go:1187— pkg/minikube/bootstrapper/kubeadm/kubeadm.go:1187-1196 | pkg/minikube/bootstrapper/kubeadm/kubeadm.go:1207-1216 — 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/minikube/bootstrapper/kubeadm/kubeadm.go:1187` 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 `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 (10 lines × 2) pkg/minikube/command/exec_runner.go:77— pkg/minikube/command/exec_runner.go:77-86 | pkg/minikube/command/ssh_runner.go:224-234 — 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. 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 (10 lines × 2) pkg/minikube/command/ssh_runner.go:169— pkg/minikube/command/ssh_runner.go:169-178 | pkg/minikube/command/ssh_runner.go:251-260 — 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 (10 lines × 2) pkg/minikube/cruntime/crio.go:316— pkg/minikube/cruntime/crio.go:316-325 | pkg/minikube/cruntime/docker.go:366-375 — 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.
Duplicated block (10 lines × 2) pkg/minikube/localpath/localpath.go:93— pkg/minikube/localpath/localpath.go:93-102 | pkg/minikube/localpath/localpath.go:118-127 — 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/minikube/localpath/localpath.go:93` 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.
Duplicated block (10 lines × 2) pkg/drivers/hyperv/hyperv.go:148— pkg/drivers/hyperv/hyperv.go:148-159 | pkg/drivers/vmware/driver.go:107-116 — 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 (10 lines × 2) REDACTED:448— REDACTED:448-457 | REDACTED:516-525 — 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 (10 lines × 2) REDACTED:88— REDACTED:88-97 | REDACTED:114-123 — 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 `REDACTED:88` 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 (9 lines × 2) REDACTED:75— REDACTED:75-83 | REDACTED:84-92 — `REDACTED` and `REDACTED` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 30 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (9 lines × 2) hack/update/inspektor_gadget_version/inspektor_gadget_version.go:72— hack/update/inspektor_gadget_version/inspektor_gadget_version.go:72-80 | hack/update/volcano_version/volcano_version.go:90-98 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `hack/update/inspektor_gadget_version/inspektor_gadget_version.go:72` 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 (9 lines × 2) pkg/drivers/kic/oci/cli_runner.go:66— pkg/drivers/kic/oci/cli_runner.go:66-74 | REDACTED:111-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. 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) REDACTED:519— REDACTED:519-527 | REDACTED:660-668 — `REDACTED` and `REDACTED` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 12 separate duplicated blocks between them, totalling at least 162 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (9 lines × 2) pkg/drivers/kic/kic.go:233— pkg/drivers/kic/kic.go:233-241 | pkg/minikube/bootstrapper/bsutil/binaries.go:114-122 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/drivers/kic/kic.go:233` 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 (9 lines × 2) cmd/minikube/cmd/image.go:86— cmd/minikube/cmd/image.go:86-94 | cmd/minikube/cmd/image.go:179-187 — 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 `cmd/minikube/cmd/image.go:86` 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 (9 lines × 2) cmd/minikube/cmd/service.go:90— cmd/minikube/cmd/service.go:90-98 | cmd/minikube/cmd/tunnel.go:64-72 — 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.
Duplicated block (7 lines × 2) cmd/minikube/cmd/start.go:623— cmd/minikube/cmd/start.go:623-629 | cmd/minikube/cmd/start.go:881-887 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `cmd/minikube/cmd/start.go:623` 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 (7 lines × 2) pkg/generate/errorcodes.go:44— pkg/generate/errorcodes.go:44-50 | pkg/generate/testdocs.go:50-56 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/generate/errorcodes.go:44` 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 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/minikube/cruntime/containerd.go:421— pkg/minikube/cruntime/containerd.go:421-427 | pkg/minikube/cruntime/crio.go:327-333 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/minikube/cruntime/containerd.go:421` 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 (7 lines × 2) pkg/libmachine/mcnutils/b2d.go:541— pkg/libmachine/mcnutils/b2d.go:541-547 | pkg/libmachine/mcnutils/b2d.go:550-556 — 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/libmachine/mcnutils/b2d.go:541` 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/minikube/registry/drvs/hyperv/vswitch.go:46— pkg/minikube/registry/drvs/hyperv/vswitch.go:46-52 | pkg/minikube/registry/drvs/hyperv/vswitch.go:67-73 — 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/minikube/registry/drvs/hyperv/vswitch.go:46` 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 `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) REDACTED:316— REDACTED:316-322 | pkg/drivers/virtualbox/vbm.go:147-153 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:316` 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 (7 lines × 2) pkg/minikube/registry/drvs/hyperv/hyperv.go:120— pkg/minikube/registry/drvs/hyperv/hyperv.go:120-126 | pkg/minikube/registry/drvs/hyperv/hyperv.go:129-135 — 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) hack/prow/minitest/deployer/boskos_deployer.go:62— hack/prow/minitest/deployer/boskos_deployer.go:62-69 | hack/prow/minitest/deployer/boskos_macos_deployer.go:52-59 — 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.
Duplicated block (8 lines × 2) REDACTED:88— REDACTED:88-95 | REDACTED:83-90 — `REDACTED` and `REDACTED` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 37 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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) REDACTED:353— REDACTED:353-360 | REDACTED:156-163 — `REDACTED` and `REDACTED` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 12 separate duplicated blocks between them, totalling at least 162 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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) REDACTED:297— REDACTED:297-304 | pkg/drivers/vmware/driver.go:335-342 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:297` 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 (8 lines × 2) pkg/minikube/download/iso.go:123— pkg/minikube/download/iso.go:123-130 | pkg/minikube/image/cache.go:105-112 — 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. 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) REDACTED:54— REDACTED:54-61 | REDACTED:92-99 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) hack/prow/minitest/deployer/boskos_deployer.go:146— hack/prow/minitest/deployer/boskos_deployer.go:146-151 | hack/prow/minitest/deployer/boskos_deployer.go:155-160 — 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 `hack/prow/minitest/deployer/boskos_deployer.go:146` 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 (6 lines × 2) hack/prow/minitest/deployer/boskos_macos_deployer.go:124— hack/prow/minitest/deployer/boskos_macos_deployer.go:124-129 | hack/prow/minitest/deployer/boskos_macos_deployer.go:133-138 — 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 `hack/prow/minitest/deployer/boskos_macos_deployer.go:124` 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 (6 lines × 2) pkg/minikube/assets/vm_assets.go:411— pkg/minikube/assets/vm_assets.go:411-416 | pkg/minikube/command/ssh_runner.go:83-88 — 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 (6 lines × 2) pkg/minikube/cluster/ip.go:53— pkg/minikube/cluster/ip.go:53-58 | pkg/minikube/cluster/ip.go:131-136 — 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/minikube/cluster/ip.go:53` 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/drivers/virtualbox/virtualbox.go:1161— pkg/drivers/virtualbox/virtualbox.go:1161-1166 | pkg/drivers/virtualbox/virtualbox.go:1233-1238 — 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/drivers/virtualbox/virtualbox.go:1161` 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 `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 (6 lines × 2) cmd/minikube/cmd/start.go:719— cmd/minikube/cmd/start.go:719-724 | cmd/minikube/cmd/start.go:729-734 — 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 `cmd/minikube/cmd/start.go:719` 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 `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.
HackComment REDACTED:61— // Hack: Strip 'v' prefix added in 'update.GHReleases' for this package — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
HackComment pkg/drivers/kic/oci/network_create.go:198— // hack -- 'support ancient versions of docker again (template parsing issue) #10362' and resolve 'Template parsing error: template: :1: unexpected "=" in operand' / 'exit status 64' — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
HackComment pkg/libmachine/provision/utils.go:274— // HACK: Check netstat's output to see if anyone's listening on the Docker API port. — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
HackComment pkg/libmachine/provision/debian.go:110— // HACK: since debian does not come with sudo by default we install — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
HackComment pkg/minikube/machine/delete.go:95— // Hack: give the Hyper-V VM more time to stop before deletion — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
FunctionTooLong: config.processRegistryCredsConfig cmd/minikube/cmd/config/configure_registry_creds.go:76— FunctionTooLong — processRegistryCredsConfig runs 156 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 56 over it, 1.56× 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: cmd.generateNewConfigFromFlags cmd/minikube/cmd/start_flags.go:643— FunctionTooLong — generateNewConfigFromFlags runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19× 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: bsutil.GenerateKubeadmYAML pkg/minikube/bootstrapper/bsutil/kubeadm.go:43— FunctionTooLong — GenerateKubeadmYAML runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12× 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: cluster.GetState pkg/minikube/cluster/status.go:194— FunctionTooLong — GetState runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06× 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.
ClassTooLong: Driver pkg/drivers/virtualbox/virtualbox.go:69— ClassTooLong — 605 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods, 27 blocks, lines 69-1390. The bar is 400 significant lines; this is 205 over it, 1.51× 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: Bootstrapper pkg/minikube/bootstrapper/kubeadm/kubeadm.go:76— ClassTooLong — 566 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods, 24 blocks, lines 76-1173. The bar is 400 significant lines; this is 166 over it, 1.42× 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: Driver REDACTED:65— ClassTooLong — 411 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods, 30 blocks, lines 65-852. The bar is 400 significant lines; this is 11 over it, 1.03× 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: Driver REDACTED:93— ClassTooLong — 402 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods, 21 blocks, lines 93-770. The bar is 400 significant lines; this is 2 over it, 1.01× 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.
Driver.Create (cyclomatic 17) pkg/drivers/hyperv/hyperv.go:215— Driver.Create 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.
Driver.Create (cyclomatic 17) pkg/drivers/kvm/kvm.go:318— Driver.Create has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body's own statements and 2 belong to one function literal inside it that branches. 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.
Driver.Create (cyclomatic 17) REDACTED:238— Driver.Create 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.
TooManyMethods: Driver REDACTED:73— TooManyMethods — 43 methods. The bar is 30 methods; this is 13 over it, 1.43× 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: Driver REDACTED:69— TooManyMethods — 35 methods. The bar is 30 methods; this is 5 over it, 1.17× 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: Docker pkg/minikube/cruntime/docker.go:70— TooManyMethods — 31 methods. The bar is 30 methods; this is 1 over it, 1.03× 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.
MethodTooLong: Driver.Create REDACTED:127— MethodTooLong — Create runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27× 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: Driver.Start REDACTED:375— MethodTooLong — Start runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04× 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: Driver.Create pkg/drivers/kic/kic.go:77— MethodTooLong — Create runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02× 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· Members sharing a duplicated core (4 members, 50+ identical tokens) · ×3
Members sharing a duplicated core (4 members, 50+ identical tokens) hack/prow/minitest/deployer/boskos_deployer.go:144— hack/prow/minitest/deployer/boskos_deployer.go:144-151 | hack/prow/minitest/deployer/boskos_deployer.go:153-160 | hack/prow/minitest/deployer/boskos_macos_deployer.go:122-129 | hack/prow/minitest/deployer/boskos_macos_deployer.go:131-138 — 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.
Members sharing a duplicated core (4 members, 50+ identical tokens) hack/prow/minitest/tester/docker_linux_arm64_integration.go:33— hack/prow/minitest/tester/docker_linux_arm64_integration.go:33-59 | hack/prow/minitest/tester/kvm_general.go:26-51 | hack/prow/minitest/tester/none_containerd_linux_amd64_integration.go:33-60 | hack/prow/minitest/tester/none_docker_linux_amd64_integration.go:33-60 — 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.
Members sharing a duplicated core (4 members, 50+ identical tokens) pkg/minikube/machine/build_images.go:168— pkg/minikube/machine/build_images.go:168-231 | pkg/minikube/machine/cache_images.go:279-319 | pkg/provision/provision.go:141-173 | pkg/provision/provision.go:175-213 — 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.
Duplicated block (17 lines × 2) cmd/auto-pause/auto-pause-hook/certs.go:49— cmd/auto-pause/auto-pause-hook/certs.go:49-65 | cmd/auto-pause/auto-pause-hook/certs.go:87-103 — 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 (17 lines × 2) REDACTED:97— REDACTED:97-113 | REDACTED:92-108 — `REDACTED` and `REDACTED` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 37 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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 (17 lines × 2) pkg/libmachine/persist/filestore.go:53— pkg/libmachine/persist/filestore.go:53-69 | pkg/minikube/config/profile.go:154-170 — 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. 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 (15–17 lines × 2) cmd/minikube/cmd/docker-env.go:290— cmd/minikube/cmd/docker-env.go:290-306 | cmd/minikube/cmd/podman-env.go:150-164 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `cmd/minikube/cmd/docker-env.go:290` 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 (15–17 lines × 2) pkg/libmachine/cert/cert.go:167— pkg/libmachine/cert/cert.go:167-183 | pkg/libmachine/cert/cert.go:250-264 — 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/libmachine/cert/cert.go:167` 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.
Duplicated block (15–17 lines × 2) pkg/libmachine/provision/utils.go:110— pkg/libmachine/provision/utils.go:110-126 | pkg/provision/provision.go:117-131 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/libmachine/provision/utils.go:110` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: `pkg/libmachine/provision/utils.go:110` is reached only past a guard at line 94 that tests `authOptions.CaCertPath` and leaves the function early, and `pkg/provision/provision.go:117` reads `authOptions.CaCertPath` with no such check. What separates these copies is not which lines they run but which PRECONDITION they enforce, so one of them is operating on state the other one refuses. Decide which is intended BEFORE unifying them — extract the shared part and whichever copy is missing the check keeps running unchecked, and if the guard is the correct behaviour then that hole is already live.
Duplicated block (16 lines × 2) pkg/drivers/kvm/network.go:431— pkg/drivers/kvm/network.go:431-446 | pkg/drivers/kvm/network.go:463-478 — 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/drivers/kvm/network.go:431` 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 (16 lines × 2) pkg/libmachine/cert/cert.go:295— pkg/libmachine/cert/cert.go:295-310 | pkg/minikube/machine/client.go:311-326 — 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. 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 (16 lines × 2) pkg/libmachine/libmachine.go:94— pkg/libmachine/libmachine.go:94-109 | pkg/minikube/machine/client.go:110-125 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/libmachine/libmachine.go:94` 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 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 (10 lines × 3) hack/update/amd_device_gpu_plugin_version/amd_device_gpu_plugin_version.go:51— hack/update/amd_device_gpu_plugin_version/amd_device_gpu_plugin_version.go:51-60 | hack/update/headlamp_version/headlamp_version.go:51-60 | hack/update/nvidia_device_plugin_version/nvidia_device_plugin_version.go:51-60 — `hack/update/headlamp_version/headlamp_version.go` and `hack/update/nvidia_device_plugin_version/nvidia_device_plugin_version.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 2 separate duplicated blocks between them, totalling at least 18 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `hack/update/amd_device_gpu_plugin_version/amd_device_gpu_plugin_version.go:51` 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.
Duplicated block (10 lines × 3) REDACTED:361— REDACTED:361-370 | pkg/drivers/virtualbox/virtualbox.go:256-265 | pkg/libmachine/drivers/fakedriver/fakedriver.go:48-57 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times.
Duplicated block (10 lines × 3) hack/update/cloud_spanner_emulator_version/cloud_spanner_emulator_version.go:62— hack/update/cloud_spanner_emulator_version/cloud_spanner_emulator_version.go:62-71 | hack/update/gcp_auth_version/gcp_auth_version.go:52-61 | hack/update/metrics_server_version/metrics_server_version.go:54-63 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `hack/update/cloud_spanner_emulator_version/cloud_spanner_emulator_version.go:62` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `hack/update/cloud_spanner_emulator_version/cloud_spanner_emulator_version.go:59` calls `TrimPrefix` and `hack/update/gcp_auth_version/gcp_auth_version.go:49` 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.
Duplicated block (9 lines × 3) pkg/drivers/kic/oci/cli_runner.go:216— pkg/drivers/kic/oci/cli_runner.go:216-224 | pkg/minikube/command/exec_runner.go:81-89 | pkg/minikube/command/ssh_runner.go:229-237 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/drivers/kic/oci/cli_runner.go:216` 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.
Duplicated block (9 lines × 3) REDACTED:185— REDACTED:185-193 | REDACTED:291-299 | REDACTED:220-228 — `REDACTED` and `REDACTED` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 83 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (9 lines × 3) hack/update/calico_version/calico_version.go:65— hack/update/calico_version/calico_version.go:65-73 | hack/update/inspektor_gadget_version/inspektor_gadget_version.go:72-80 | hack/update/volcano_version/volcano_version.go:90-98 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `hack/update/calico_version/calico_version.go:65` 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 (6 lines × 3) cmd/minikube/cmd/image.go:238— cmd/minikube/cmd/image.go:238-243 | cmd/minikube/cmd/image.go:256-261 | cmd/minikube/cmd/image.go:388-393 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `cmd/minikube/cmd/image.go:238` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `cmd/minikube/cmd/image.go:236` calls `MinimumNArgs` and `cmd/minikube/cmd/image.go:255` does not — after which the two agree again for 3 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.
Duplicated block (6 lines × 3) pkg/drivers/kic/kic.go:452— pkg/drivers/kic/kic.go:452-457 | pkg/drivers/none/none.go:217-222 | pkg/drivers/ssh/ssh.go:193-198 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `pkg/drivers/kic/kic.go:449` calls `NewKICRunner` and `pkg/drivers/none/none.go:216` does not — after which the two agree again for 4 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.
Duplicated block (6 lines × 3) pkg/minikube/cruntime/containerd.go:422— pkg/minikube/cruntime/containerd.go:422-427 | pkg/minikube/cruntime/crio.go:328-333 | pkg/minikube/cruntime/docker.go:377-382 — 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 all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/minikube/cruntime/containerd.go:422` 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 (5 lines × 2) cmd/minikube/cmd/docker-env.go:241— cmd/minikube/cmd/docker-env.go:241-245 | REDACTED:54-58 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `cmd/minikube/cmd/docker-env.go:241` 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 (5 lines × 2) pkg/minikube/tunnel/route_darwin.go:206— pkg/minikube/tunnel/route_darwin.go:206-210 | pkg/minikube/tunnel/route_darwin.go:216-220 — 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/minikube/tunnel/route_darwin.go:206` 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 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 (5 lines × 2) pkg/drivers/common/vmnet/vmnet.go:401— pkg/drivers/common/vmnet/vmnet.go:401-405 | pkg/drivers/common/vmnet/vmnet.go:421-425 — 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/drivers/common/vmnet/vmnet.go:401` 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.
Low cohesion: BaseDriver (LCOM4 5) pkg/libmachine/drivers/base.go:32— BaseDriver'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.
Low cohesion: FileAsset (LCOM4 5) pkg/minikube/assets/vm_assets.go:150— FileAsset'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.
Low cohesion: RPCServerDriver (LCOM4 4) pkg/libmachine/drivers/rpcdriver/server_driver.go:99— RPCServerDriver's methods fall into 4 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 4 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.
Deprecated module: github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric — `github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric` is required at v0.57.0 in REDACTED, and its author has DEPRECATED the module: "Use the standard OpenTelemetry OTLP metric exporter (go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc) instead." A deprecation is declared by the author in the module's own REDACTED and applies to the whole module, not to one release, so moving to a newer version of it does not clear this. Follow the replacement the notice names.
Deprecated module: github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/trace — `github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/trace` is required at v1.32.0 in REDACTED, and its author has DEPRECATED the module: "Use the standard OpenTelemetry OTLP trace exporter (go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc) instead." A deprecation is declared by the author in the module's own REDACTED and applies to the whole module, not to one release, so moving to a newer version of it does not clear this. Follow the replacement the notice names.
TooManyFields: ClusterConfig pkg/minikube/config/types.go:37— TooManyFields — 74 stored fields. The bar is 30 stored fields; this is 44 over it, 2.47× 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.
TooManyFields: dockerSysInfo pkg/drivers/kic/oci/info.go:79— TooManyFields — 63 stored fields. The bar is 30 stored fields; this is 33 over it, 2.10× 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 · ×2
D4 · Code Duplication· Members sharing a duplicated core (6 members, 50+ identical tokens) · ×2
Members sharing a duplicated core (6 members, 50+ identical tokens) hack/update/istio_operator_version/istio_operator_version.go:43— hack/update/istio_operator_version/istio_operator_version.go:43-62 | hack/update/kong_ingress_controller_version/kong_ingress_controller_version.go:43-62 | hack/update/kong_version/kong_version.go:44-63 | hack/update/kubectl_version/kubectl_version.go:42-58 | hack/update/registry_version/registry_version.go:44-63 | hack/update/yakd_version/yakd_version.go:43-62 — These 6 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 6 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 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) pkg/drivers/kic/oci/cli_runner.go:137— pkg/drivers/kic/oci/cli_runner.go:137-224 | pkg/minikube/command/exec_runner.go:49-89 | pkg/minikube/command/exec_runner.go:92-120 | pkg/minikube/command/kic_runner.go:54-130 | pkg/minikube/command/ssh_runner.go:185-237 | pkg/minikube/command/ssh_runner.go:266-306 — These 6 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 6 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 6 times.
D4 · Code Duplication· Members sharing a duplicated core (5 members, 50+ identical tokens) · ×2
Members sharing a duplicated core (5 members, 50+ identical tokens) pkg/drivers/kvm/kvm.go:59— pkg/drivers/kvm/kvm.go:59-78 | pkg/drivers/kvm/kvm.go:493-541 | pkg/drivers/kvm/network.go:123-164 | pkg/drivers/kvm/network.go:167-267 | pkg/drivers/kvm/network.go:269-335 — These 5 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 5 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 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) pkg/minikube/machine/cache_images.go:527— pkg/minikube/machine/cache_images.go:527-581 | pkg/minikube/machine/cache_images.go:607-662 | pkg/minikube/machine/cache_images.go:665-757 | pkg/minikube/machine/cache_images.go:835-889 | pkg/minikube/machine/cache_images.go:915-969 — These 5 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 5 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 5 times.
Duplicated block (35–36 lines × 2) pkg/minikube/machine/cache_images.go:210— pkg/minikube/machine/cache_images.go:210-244 | pkg/minikube/machine/cache_images.go:378-413 — 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/minikube/machine/cache_images.go:210` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `pkg/minikube/machine/cache_images.go:376` calls `Infof` and `pkg/minikube/machine/cache_images.go:208` does not — after which the two agree again for 4 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.
Duplicated block (35–36 lines × 2) pkg/provision/buildroot.go:162— pkg/provision/buildroot.go:162-196 | pkg/provision/ubuntu.go:178-213 — before extracting anything, compare `pkg/provision/buildroot.go` and `pkg/provision/ubuntu.go` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 70 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.
Duplicated block (29 lines × 2) pkg/drivers/none/none.go:153— pkg/drivers/none/none.go:153-181 | pkg/drivers/ssh/ssh.go:219-247 — 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. 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 (29 lines × 2) hack/update/gopogh_version/gopogh_version.go:28— hack/update/gopogh_version/gopogh_version.go:28-71 | hack/update/gotestsum_version/gotestsum_version.go:28-56 — 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 (26 lines × 2) pkg/libmachine/provision/debian.go:129— pkg/libmachine/provision/debian.go:129-154 | pkg/libmachine/provision/ubuntu.go:123-148 — before extracting anything, compare `pkg/libmachine/provision/debian.go` and `pkg/libmachine/provision/ubuntu.go` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 69 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/libmachine/provision/debian.go:129` 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.
Duplicated block (26 lines × 2) pkg/minikube/cruntime/containerd.go:608— pkg/minikube/cruntime/containerd.go:608-633 | pkg/minikube/cruntime/crio.go:534-559 — 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.
Duplicated block (23 lines × 2) pkg/provision/buildroot.go:131— pkg/provision/buildroot.go:131-153 | pkg/provision/ubuntu.go:147-169 — before extracting anything, compare `pkg/provision/buildroot.go` and `pkg/provision/ubuntu.go` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 70 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/provision/buildroot.go:131` 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.
Duplicated block (23 lines × 2) REDACTED:34— REDACTED:34-61 | REDACTED:34-56 — 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 (20 lines × 2) pkg/libmachine/provision/generic.go:134— pkg/libmachine/provision/generic.go:134-153 | pkg/libmachine/provision/systemd.go:76-95 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/libmachine/provision/generic.go:134` 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.
Duplicated block (20 lines × 2) pkg/libmachine/provision/debian.go:53— pkg/libmachine/provision/debian.go:53-72 | pkg/libmachine/provision/ubuntu.go:53-72 — before extracting anything, compare `pkg/libmachine/provision/debian.go` and `pkg/libmachine/provision/ubuntu.go` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 69 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/libmachine/provision/debian.go:53` 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 (15 lines × 2) REDACTED:63— REDACTED:63-77 | hack/update/kubernetes_versions_list/kubernetes_versions_list.go:53-67 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:63` 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 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `REDACTED:79` calls `Compare` and `hack/update/kubernetes_versions_list/kubernetes_versions_list.go:68` 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.
Duplicated block (15 lines × 2) REDACTED:279— REDACTED:279-293 | REDACTED:418-432 — `REDACTED` and `REDACTED` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 12 separate duplicated blocks between them, totalling at least 162 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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 (13 lines × 3) hack/prow/minitest/tester/docker_linux_arm64_integration.go:35— hack/prow/minitest/tester/docker_linux_arm64_integration.go:35-47 | hack/prow/minitest/tester/kvm_general.go:28-40 | hack/prow/minitest/tester/none_docker_linux_amd64_integration.go:36-48 — before extracting anything, compare `hack/prow/minitest/tester/docker_linux_arm64_integration.go` and `hack/prow/minitest/tester/kvm_general.go` as WHOLE FILES: 94% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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 `hack/prow/minitest/tester/docker_linux_arm64_integration.go:35` 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 `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 (13 lines × 3) REDACTED:326— REDACTED:326-338 | REDACTED:614-626 | REDACTED:499-511 — `REDACTED` and `REDACTED` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 83 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (11 lines × 3) REDACTED:135— REDACTED:135-145 | REDACTED:134-144 | REDACTED:137-147 — `REDACTED` and `REDACTED` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 83 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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 × 3) REDACTED:281— REDACTED:281-291 | REDACTED:518-528 | REDACTED:420-430 — `REDACTED` and `REDACTED` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 83 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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 (9 lines × 4) hack/prow/minitest/tester/docker_linux_arm64_integration.go:34— hack/prow/minitest/tester/docker_linux_arm64_integration.go:34-42 | hack/prow/minitest/tester/kvm_general.go:27-35 | hack/prow/minitest/tester/none_containerd_linux_amd64_integration.go:35-43 | hack/prow/minitest/tester/none_docker_linux_amd64_integration.go:35-43 — before extracting anything, compare `hack/prow/minitest/tester/docker_linux_arm64_integration.go` and `hack/prow/minitest/tester/kvm_general.go` as WHOLE FILES: 94% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. 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.
Duplicated block (9 lines × 4) hack/update/cloud_spanner_emulator_version/cloud_spanner_emulator_version.go:62— hack/update/cloud_spanner_emulator_version/cloud_spanner_emulator_version.go:62-70 | hack/update/gcp_auth_version/gcp_auth_version.go:52-60 | hack/update/inspektor_gadget_version/inspektor_gadget_version.go:58-66 | hack/update/metrics_server_version/metrics_server_version.go:54-62 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times. Read the line range as the matched WINDOW rather than a finished unit: at `hack/update/cloud_spanner_emulator_version/cloud_spanner_emulator_version.go:62` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `hack/update/cloud_spanner_emulator_version/cloud_spanner_emulator_version.go:59` calls `TrimPrefix` and `hack/update/gcp_auth_version/gcp_auth_version.go:49` 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.
cluster.GetState (cyclomatic 35) pkg/minikube/cluster/status.go:194— cluster.GetState 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.
node.Start (cyclomatic 34) pkg/minikube/node/start.go:95— node.Start has cyclomatic complexity 34 (threshold 15). Of this number, 27 points are the body's own statements and 7 belong to 2 function literals inside it that branch. 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.
Driver.Create (cyclomatic 34) REDACTED:127— Driver.Create has cyclomatic complexity 34 (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.
oci.CreateContainerNode (cyclomatic 33) pkg/drivers/kic/oci/oci.go:150— oci.CreateContainerNode has cyclomatic complexity 33 (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.
cmd.validateFlags (cyclomatic 31) cmd/minikube/cmd/start.go:1263— cmd.validateFlags has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
cmd.runStart (cyclomatic 29) cmd/minikube/cmd/start.go:158— cmd.runStart has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
Bootstrapper.restartPrimaryControlPlane (cyclomatic 29) pkg/minikube/bootstrapper/kubeadm/kubeadm.go:592— Bootstrapper.restartPrimaryControlPlane has cyclomatic complexity 29 (threshold 15). Of this number, 25 points are the body's own statements and 4 belong to 2 function literals inside it that branch. 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.
cluster.HostIP (cyclomatic 28) pkg/minikube/cluster/ip.go:39— cluster.HostIP has cyclomatic complexity 28 (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.
cmd.selectDriver (cyclomatic 27) cmd/minikube/cmd/start.go:694— cmd.selectDriver has cyclomatic complexity 27 (threshold 15). Of this number, 26 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.
cmd.updateExistingConfigFromFlags (cyclomatic 27) cmd/minikube/cmd/start_flags.go:876— cmd.updateExistingConfigFromFlags has cyclomatic complexity 27 (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.
Driver.Start (cyclomatic 25) pkg/drivers/virtualbox/virtualbox.go:619— Driver.Start 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.
bsutil.GenerateKubeadmYAML (cyclomatic 25) pkg/minikube/bootstrapper/bsutil/kubeadm.go:43— bsutil.GenerateKubeadmYAML has cyclomatic complexity 25 (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.
cmd.provisionWithDriver (cyclomatic 24) cmd/minikube/cmd/start.go:312— cmd.provisionWithDriver has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
cmd.validateKubernetesVersion (cyclomatic 24) cmd/minikube/cmd/start.go:1773— cmd.validateKubernetesVersion 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.
config.processRegistryCredsConfig (cyclomatic 24) cmd/minikube/cmd/config/configure_registry_creds.go:76— config.processRegistryCredsConfig 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.
addons.addonSpecificChecks (cyclomatic 24) pkg/addons/addons.go:322— addons.addonSpecificChecks 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.
Driver.Start (cyclomatic 24) REDACTED:375— Driver.Start 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.
Driver.CreateVM (cyclomatic 24) pkg/drivers/virtualbox/virtualbox.go:369— Driver.CreateVM has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
Bootstrapper.WaitForNode (cyclomatic 24) pkg/minikube/bootstrapper/kubeadm/kubeadm.go:499— Bootstrapper.WaitForNode 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.
Driver.Create (cyclomatic 23) pkg/drivers/kic/kic.go:77— Driver.Create has cyclomatic complexity 23 (threshold 15). Of this number, 20 points are the body's own statements and 3 belong to one function literal inside it that branches. 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.
bootstrapper.SetupCerts (cyclomatic 22) REDACTED:65— bootstrapper.SetupCerts has cyclomatic complexity 22 (threshold 15). Of this number, 20 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.
bsutil.extraKubeletOpts (cyclomatic 22) pkg/minikube/bootstrapper/bsutil/kubelet.go:49— bsutil.extraKubeletOpts has cyclomatic complexity 22 (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.
node.beginDownloadKicBaseImage (cyclomatic 22) pkg/minikube/node/cache.go:133— node.beginDownloadKicBaseImage has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to one function literal inside it that branches (line 138). 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.
provision.ConfigureAuth (cyclomatic 21) pkg/libmachine/provision/utils.go:75— provision.ConfigureAuth has cyclomatic complexity 21 (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.
cluster.NodeStatus (cyclomatic 21) pkg/minikube/cluster/status.go:356— cluster.NodeStatus has cyclomatic complexity 21 (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.
download.ImageToCache (cyclomatic 21) pkg/minikube/download/image.go:125— download.ImageToCache has cyclomatic complexity 21 (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.
generate.ErrorCodes (cyclomatic 20) pkg/generate/errorcodes.go:33— generate.ErrorCodes has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 7 of the 20 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 97, 57). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
assets.GenerateTemplateData (cyclomatic 20) pkg/minikube/assets/addons.go:927— assets.GenerateTemplateData 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.
Bootstrapper.init (cyclomatic 20) pkg/minikube/bootstrapper/kubeadm/kubeadm.go:175— Bootstrapper.init has cyclomatic complexity 20 (threshold 15). Of this number, 17 points are the body's own statements and 3 belong to 3 function literals inside it that branch. 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.
CRIO.Preload (cyclomatic 20) pkg/minikube/cruntime/crio.go:418— CRIO.Preload has cyclomatic complexity 20 (threshold 15). Of this number, 19 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.
machine.BuildImage (cyclomatic 20) pkg/minikube/machine/build_images.go:50— machine.BuildImage 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.
bootstrapper.generateProfileCerts (cyclomatic 19) REDACTED:249— bootstrapper.generateProfileCerts 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.
Bootstrapper.UpdateNode (cyclomatic 19) pkg/minikube/bootstrapper/kubeadm/kubeadm.go:929— Bootstrapper.UpdateNode 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.
cruntime.generateContainerdConfig (cyclomatic 19) pkg/minikube/cruntime/containerd.go:132— cruntime.generateContainerdConfig 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.
Docker.Enable (cyclomatic 19) pkg/minikube/cruntime/docker.go:135— Docker.Enable 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.
machine.ListImages (cyclomatic 19) pkg/minikube/machine/cache_images.go:665— machine.ListImages 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.
cmd.generateNewConfigFromFlags (cyclomatic 18) cmd/minikube/cmd/start_flags.go:643— cmd.generateNewConfigFromFlags 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.
oci.runCmd (cyclomatic 18) pkg/drivers/kic/oci/cli_runner.go:137— oci.runCmd 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.
main.processCommitFolder (cyclomatic 18) hack/legacy_fill_db/filldb.go:111— main.processCommitFolder has cyclomatic complexity 18 (threshold 15). Of this number, 12 points are the body's own statements and 6 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.
cmd.validateRequestedMemorySize (cyclomatic 17) cmd/minikube/cmd/start.go:1138— cmd.validateRequestedMemorySize 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.
cmd.validateCPUCount (cyclomatic 17) cmd/minikube/cmd/start.go:1202— cmd.validateCPUCount 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.
addons.EnableOrDisableAddon (cyclomatic 17) pkg/addons/addons.go:246— addons.EnableOrDisableAddon 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.
oci.RoutableHostIPFromInside (cyclomatic 17) pkg/drivers/kic/oci/network.go:37— oci.RoutableHostIPFromInside 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.
Driver.generateDiskImage (cyclomatic 17) pkg/drivers/vmware/driver.go:230— Driver.generateDiskImage 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.
X509CertGenerator.GenerateCert (cyclomatic 17) pkg/libmachine/cert/cert.go:189— X509CertGenerator.GenerateCert 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.
cmd.runDelete (cyclomatic 16) cmd/minikube/cmd/delete.go:211— cmd.runDelete 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.
cmd.Execute (cyclomatic 16) cmd/minikube/cmd/root.go:99— cmd.Execute 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.
cmd.writeStatusesAtInterval (cyclomatic 16) cmd/minikube/cmd/status.go:108— cmd.writeStatusesAtInterval 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.
Driver.createNetwork (cyclomatic 16) pkg/drivers/kvm/network.go:167— Driver.createNetwork has cyclomatic complexity 16 (threshold 15). Of this number, 15 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.
virtualbox.listHostOnlyAdapters (cyclomatic 16) pkg/drivers/virtualbox/network.go:126— virtualbox.listHostOnlyAdapters has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 136). 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.
host.MigrateHost (cyclomatic 16) pkg/libmachine/host/migrate.go:63— host.MigrateHost 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.
extract.writeStringsToFiles (cyclomatic 16) pkg/minikube/extract/extract.go:451— extract.writeStringsToFiles has cyclomatic complexity 16 (threshold 15). 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 452). 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.
mustload.running (cyclomatic 16) pkg/minikube/mustload/mustload.go:93— mustload.running 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.
persistentRegistry.Register (cyclomatic 16) pkg/minikube/tunnel/registry.go:77— persistentRegistry.Register has cyclomatic complexity 16 (threshold 15). Of this number, 15 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.
update.GHReleases (cyclomatic 16) hack/update/github.go:46— update.GHReleases 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.
main.main (cyclomatic 16) hack/update/get_version/get_version.go:85— main.main 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.
Hotspot: cmd/minikube/cmd/start.go cmd/minikube/cmd/start.go:1263— cmd/minikube/cmd/start.go changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in cmd.validateFlags at line 1263. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 03:37:04 +03:00' --until='2026-10-23 03:37:04 +03:00' --full-history --no-merges -- cmd/minikube/cmd/start.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.
FixmeComment pkg/drivers/virtualbox/disk.go:63— // FIXME: why isn't this just using the vbm*() functions? — 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.
node.Start (cognitive 59) pkg/minikube/node/start.go:95— node.Start has cognitive complexity 59 (threshold 15). Drivers by points: if/else 31 (54 pts), boolean chains 5 (nesting depth added 23). Of this number, 42 points are the body's own statements and 17 belong to 2 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.
generate.ErrorCodes (cognitive 54) pkg/generate/errorcodes.go:33— generate.ErrorCodes has cognitive complexity 54 (threshold 15). Drivers by points: if/else 17 (52 pts), boolean chains 1, loops 1 (nesting depth added 35). Most of this is not in the body itself: 10 of the 54 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 97, 57). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
cluster.GetState (cognitive 52) pkg/minikube/cluster/status.go:194— cluster.GetState has cognitive complexity 52 (threshold 15). Drivers by points: if/else 17 (37 pts), loops 4 (7 pts), match/switch 2 (5 pts), boolean chains 3 (nesting depth added 26). 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.
cmd.runStart (cognitive 51) cmd/minikube/cmd/start.go:158— cmd.runStart has cognitive complexity 51 (threshold 15). Drivers by points: if/else 26 (46 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 22). 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.
Driver.Create (cognitive 48) REDACTED:127— Driver.Create has cognitive complexity 48 (threshold 15). Drivers by points: if/else 31 (45 pts), loops 2 (3 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.
cmd.selectDriver (cognitive 45) cmd/minikube/cmd/start.go:694— cmd.selectDriver has cognitive complexity 45 (threshold 15). Drivers by points: if/else 16 (31 pts), loops 4 (8 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 20). Of this number, 43 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.
cmd.validateFlags (cognitive 42) cmd/minikube/cmd/start.go:1263— cmd.validateFlags has cognitive complexity 42 (threshold 15). Drivers by points: if/else 26 (38 pts), boolean chains 3, loops 1 (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.
machine.BuildImage (cognitive 42) pkg/minikube/machine/build_images.go:50— machine.BuildImage has cognitive complexity 42 (threshold 15). Drivers by points: if/else 15 (36 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 22). 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.
Bootstrapper.WaitForNode (cognitive 40) pkg/minikube/bootstrapper/kubeadm/kubeadm.go:499— Bootstrapper.WaitForNode has cognitive complexity 40 (threshold 15). Drivers by points: if/else 22 (39 pts), boolean chains 1 (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.
oci.CreateContainerNode (cognitive 39) pkg/drivers/kic/oci/oci.go:150— oci.CreateContainerNode has cognitive complexity 39 (threshold 15). Drivers by points: if/else 19 (29 pts), boolean chains 8, loops 1, match/switch 1 (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.
cmd.writeStatusesAtInterval (cognitive 38) cmd/minikube/cmd/status.go:108— cmd.writeStatusesAtInterval has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (30 pts), loops 2 (4 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 22). 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.
update.GHReleases (cognitive 38) hack/update/github.go:46— update.GHReleases has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (34 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 23). 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.
Bootstrapper.restartPrimaryControlPlane (cognitive 37) pkg/minikube/bootstrapper/kubeadm/kubeadm.go:592— Bootstrapper.restartPrimaryControlPlane has cognitive complexity 37 (threshold 15). Drivers by points: if/else 25 (32 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 8). Of this number, 29 points are the body's own statements and 8 belong to 2 function literals inside it that branch. 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.
cluster.HostIP (cognitive 37) pkg/minikube/cluster/ip.go:39— cluster.HostIP has cognitive complexity 37 (threshold 15). Drivers by points: if/else 16 (34 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 19). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
machine.ListImages (cognitive 35) pkg/minikube/machine/cache_images.go:665— machine.ListImages has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (26 pts), loops 4 (8 pts), match/switch 1 (nesting depth added 19). 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.
cmd.validateKubernetesVersion (cognitive 34) cmd/minikube/cmd/start.go:1773— cmd.validateKubernetesVersion has cognitive complexity 34 (threshold 15). Drivers by points: if/else 21 (31 pts), boolean chains 3 (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.
addons.addonSpecificChecks (cognitive 34) pkg/addons/addons.go:322— addons.addonSpecificChecks has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (27 pts), boolean chains 7 (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.
Driver.Start (cognitive 34) REDACTED:375— Driver.Start has cognitive complexity 34 (threshold 15). Drivers by points: if/else 23 (31 pts), match/switch 2, loops 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.
host.MigrateHost (cognitive 34) pkg/libmachine/host/migrate.go:63— host.MigrateHost has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (29 pts), match/switch 1 (3 pts), loops 1 (2 pts) (nesting depth added 21). 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.
bootstrapper.SetupCerts (cognitive 34) REDACTED:65— bootstrapper.SetupCerts has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (26 pts), loops 5 (7 pts), boolean chains 1 (nesting depth added 13). Of this number, 31 points are the body's own statements and 3 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.
download.ImageToCache (cognitive 34) pkg/minikube/download/image.go:125— download.ImageToCache has cognitive complexity 34 (threshold 15). Drivers by points: if/else 19 (30 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (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.
mustload.running (cognitive 34) pkg/minikube/mustload/mustload.go:93— mustload.running has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (33 pts), loops 1 (nesting depth added 19). 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.
cmd.generateNewConfigFromFlags (cognitive 33) cmd/minikube/cmd/start_flags.go:643— cmd.generateNewConfigFromFlags has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (29 pts), boolean chains 4 (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.
cmd.validateInsecureRegistry (cognitive 32) cmd/minikube/cmd/start.go:1659— cmd.validateInsecureRegistry has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (26 pts), boolean chains 4, loops 1 (2 pts) (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.
Driver.Start (cognitive 31) pkg/drivers/virtualbox/virtualbox.go:619— Driver.Start has cognitive complexity 31 (threshold 15). Drivers by points: if/else 20 (28 pts), boolean chains 2, 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.
bootstrapper.generateProfileCerts (cognitive 31) REDACTED:249— bootstrapper.generateProfileCerts has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (27 pts), loops 3, boolean chains 1 (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.
machine.DoLoadImages (cognitive 31) pkg/minikube/machine/cache_images.go:203— machine.DoLoadImages has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (28 pts), loops 2 (3 pts) (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.
node.beginDownloadKicBaseImage (cognitive 31) pkg/minikube/node/cache.go:133— node.beginDownloadKicBaseImage has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (24 pts), boolean chains 5, loops 2 (nesting depth added 10). None of this is in the body itself: all 31 points belong to one function literal inside it that branches (line 138). 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.
Driver.Create (cognitive 30) pkg/drivers/kic/kic.go:77— Driver.Create has cognitive complexity 30 (threshold 15). Drivers by points: if/else 22 (28 pts), boolean chains 2 (nesting depth added 6). Of this number, 25 points are the body's own statements and 5 belong to one function literal inside it that branches. 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.
CRIO.Preload (cognitive 30) pkg/minikube/cruntime/crio.go:418— CRIO.Preload has cognitive complexity 30 (threshold 15). Drivers by points: if/else 18 (26 pts), loops 2 (4 pts) (nesting depth added 10). Of this number, 29 points are the body's own statements and 1 belongs 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.
Driver.CreateVM (cognitive 29) pkg/drivers/virtualbox/virtualbox.go:369— Driver.CreateVM has cognitive complexity 29 (threshold 15). Drivers by points: if/else 23 (28 pts), boolean chains 1 (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.
cert.BootstrapCertificates (cognitive 29) pkg/libmachine/cert/bootstrap.go:90— cert.BootstrapCertificates has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16 (29 pts) (nesting depth added 13). 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.
bootstrapper.collectCACerts (cognitive 29) REDACTED:454— bootstrapper.collectCACerts has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (24 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 15). Most of this is not in the body itself: 8 of the 29 points are its own statements and the rest belongs to one function literal inside it that branches (line 461). 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.
machine.DoSaveImages (cognitive 29) pkg/minikube/machine/cache_images.go:369— machine.DoSaveImages has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (26 pts), loops 2 (3 pts) (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.
cmd.updateExistingConfigFromFlags (cognitive 28) cmd/minikube/cmd/start_flags.go:876— cmd.updateExistingConfigFromFlags has cognitive complexity 28 (threshold 15). Drivers by points: if/else 18 (19 pts), boolean chains 9 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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.
oci.RoutableHostIPFromInside (cognitive 28) pkg/drivers/kic/oci/network.go:37— oci.RoutableHostIPFromInside has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (21 pts), match/switch 1 (3 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 13). 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.
cmd.dockerSetScript (cognitive 27) cmd/minikube/cmd/docker-env.go:456— cmd.dockerSetScript has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 1 (3 pts), match/switch 1 (2 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.
cmd.provisionWithDriver (cognitive 27) cmd/minikube/cmd/start.go:312— cmd.provisionWithDriver has cognitive complexity 27 (threshold 15). Drivers by points: if/else 18 (22 pts), boolean chains 5 (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.
oci.runCmd (cognitive 27) pkg/drivers/kic/oci/cli_runner.go:137— oci.runCmd has cognitive complexity 27 (threshold 15). Drivers by points: if/else 16 (25 pts), boolean chains 2 (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.
Driver.Create (cognitive 27) REDACTED:238— Driver.Create has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (22 pts), loops 2 (4 pts), match/switch 1 (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.
assets.GenerateTemplateData (cognitive 27) pkg/minikube/assets/addons.go:927— assets.GenerateTemplateData has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 3, loops 3 (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.
bsutil.GenerateKubeadmYAML (cognitive 27) pkg/minikube/bootstrapper/bsutil/kubeadm.go:43— bsutil.GenerateKubeadmYAML has cognitive complexity 27 (threshold 15). Drivers by points: if/else 22 (25 pts), boolean chains 2 (nesting depth added 3). 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.
Bootstrapper.UpdateNode (cognitive 27) pkg/minikube/bootstrapper/kubeadm/kubeadm.go:929— Bootstrapper.UpdateNode has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17 (26 pts), boolean chains 1 (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.
Docker.Enable (cognitive 27) pkg/minikube/cruntime/docker.go:135— Docker.Enable has cognitive complexity 27 (threshold 15). Drivers by points: if/else 18 (27 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.
cmd.validateCPUCount (cognitive 26) cmd/minikube/cmd/start.go:1202— cmd.validateCPUCount has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 3, match/switch 2 (3 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.
addons.patchServiceAccounts (cognitive 26) pkg/addons/addons_gcpauth.go:140— addons.patchServiceAccounts has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 4 (8 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.
Driver.createNetwork (cognitive 26) pkg/drivers/kvm/network.go:167— Driver.createNetwork has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17 (25 pts), loops 1 (nesting depth added 8). Of this number, 25 points are the body's own statements and 1 belongs 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.
cmd.dockerUnsetScript (cognitive 25) cmd/minikube/cmd/docker-env.go:508— cmd.dockerUnsetScript has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (20 pts), loops 1 (3 pts), match/switch 1 (2 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.
cmd.validateRequestedMemorySize (cognitive 25) cmd/minikube/cmd/start.go:1138— cmd.validateRequestedMemorySize has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 3 (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.
addons.refreshExistingPods (cognitive 25) pkg/addons/addons_gcpauth.go:189— addons.refreshExistingPods has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 3 (6 pts) (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.
addons.disableAddonGCPAuth (cognitive 25) pkg/addons/addons_gcpauth.go:247— addons.disableAddonGCPAuth has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 3 (6 pts) (nesting depth added 13). 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.
cruntime.generateContainerdConfig (cognitive 25) pkg/minikube/cruntime/containerd.go:132— cruntime.generateContainerdConfig has cognitive complexity 25 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 1, 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.
cmd.runDelete (cognitive 24) cmd/minikube/cmd/delete.go:211— cmd.runDelete has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (21 pts), loops 1 (2 pts), boolean chains 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.
cmd.Execute (cognitive 24) cmd/minikube/cmd/root.go:99— cmd.Execute has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 2, loops 1 (2 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.
kubeadm.adviseNodePressure (cognitive 24) pkg/minikube/bootstrapper/kubeadm/kubeadm.go:1176— kubeadm.adviseNodePressure has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 2 (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.
kicRunner.Copy (cognitive 24) pkg/minikube/command/kic_runner.go:145— kicRunner.Copy has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 1 (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.
hyperv.chooseSwitch (cognitive 24) pkg/minikube/registry/drvs/hyperv/vswitch.go:146— hyperv.chooseSwitch has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 3 (7 pts), boolean chains 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.
main.main (cognitive 24) hack/update/update_all/update_all.go:73— main.main has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 1, 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.
config.printAddonsList (cognitive 23) cmd/minikube/cmd/config/addons_list.go:95— config.printAddonsList has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (19 pts), loops 2 (4 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.
config.processRegistryCredsConfig (cognitive 23) cmd/minikube/cmd/config/configure_registry_creds.go:76— config.processRegistryCredsConfig has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (19 pts), match/switch 4 (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.
config.profilesToTableData (cognitive 23) cmd/minikube/cmd/config/profile_list.go:158— config.profilesToTableData has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 3 (7 pts), match/switch 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.
cluster.NodeStatus (cognitive 23) pkg/minikube/cluster/status.go:356— cluster.NodeStatus has cognitive complexity 23 (threshold 15). Drivers by points: if/else 20 (21 pts), boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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.
main.processCommitFolder (cognitive 23) hack/legacy_fill_db/filldb.go:111— main.processCommitFolder has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 8). Of this number, 17 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.
cmd.deleteProfile (cognitive 22) cmd/minikube/cmd/delete.go:331— cmd.deleteProfile has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 3, loops 1 (3 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.
X509CertGenerator.GenerateCert (cognitive 22) pkg/libmachine/cert/cert.go:189— X509CertGenerator.GenerateCert has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16 (19 pts), loops 1 (2 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.
bsutil.extraKubeletOpts (cognitive 22) pkg/minikube/bootstrapper/bsutil/kubelet.go:49— bsutil.extraKubeletOpts has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 3, loops 2 (nesting depth added 3). 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.
Bootstrapper.init (cognitive 22) pkg/minikube/bootstrapper/kubeadm/kubeadm.go:175— Bootstrapper.init has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17 (20 pts), boolean chains 2 (nesting depth added 3). Of this number, 19 points are the body's own statements and 3 belong to 3 function literals inside it that branch. 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.
persistentRegistry.Register (cognitive 22) pkg/minikube/tunnel/registry.go:77— persistentRegistry.Register has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 2, loops 1 (nesting depth added 6). Of this number, 21 points are the body's own statements and 1 belongs 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.
cmd.appendKnownHelper (cognitive 21) cmd/minikube/cmd/ssh-host.go:53— cmd.appendKnownHelper has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (21 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.
Driver.Create (cognitive 21) pkg/drivers/hyperv/hyperv.go:215— Driver.Create has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16 (21 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.
virtualbox.listHostInterfaces (cognitive 21) pkg/drivers/virtualbox/network.go:375— virtualbox.listHostInterfaces has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (9 pts), match/switch 2 (6 pts), loops 3 (5 pts), boolean chains 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.
provision.configureSwarm (cognitive 21) pkg/libmachine/provision/configure_swarm.go:34— provision.configureSwarm has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (17 pts), loops 2 (4 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.
provision.ConfigureAuth (cognitive 21) pkg/libmachine/provision/utils.go:75— provision.ConfigureAuth has cognitive complexity 21 (threshold 15). Drivers by points: if/else 20 (21 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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.
extract.extractAdvice (cognitive 21) pkg/minikube/extract/extract.go:533— extract.extractAdvice has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 1 (3 pts) (nesting depth added 12). None of this is in the body itself: all 21 points belong to one function literal inside it that branches (line 534). 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.
main.main (cognitive 21) REDACTED:60— main.main has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 3 (4 pts), boolean chains 1 (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.
addons.enableOrDisableAddonInternal (cognitive 20) pkg/addons/addons.go:426— addons.enableOrDisableAddonInternal has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 1 (nesting depth added 9). Of this number, 16 points are the body's own statements and 4 belong to 2 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.
oci.DaemonHost (cognitive 20) pkg/drivers/kic/oci/oci.go:696— oci.DaemonHost has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (20 pts) (nesting depth added 12). 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.
Driver.Create (cognitive 20) pkg/drivers/kvm/kvm.go:318— Driver.Create has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15 (19 pts), loops 1 (nesting depth added 4). Of this number, 18 points are the body's own statements and 2 belong to one function literal inside it that branches. 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.
virtualbox.parseHostOnlyNet (cognitive 20) pkg/drivers/virtualbox/virtualbox.go:971— virtualbox.parseHostOnlyNet has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 8). Of this number, 15 points are the body's own statements and 5 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.
Driver.getIPfromVmnetConfigurationFile (cognitive 20) pkg/drivers/vmware/driver.go:469— Driver.getIPfromVmnetConfigurationFile has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 1, loops 1 (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.
driver.Suggest (cognitive 20) pkg/minikube/driver/driver.go:320— driver.Suggest has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 2 (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.
image.retrieveImage (cognitive 20) pkg/minikube/image/image.go:137— image.retrieveImage has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 2 (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.
proxy.SetDockerEnv (cognitive 20) pkg/minikube/proxy/proxy.go:174— proxy.SetDockerEnv has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (17 pts), boolean chains 2, loops 1 (nesting depth added 12). Of this number, 19 points are the body's own statements and 1 belongs 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.
virtualbox.status (cognitive 20) pkg/minikube/registry/drvs/virtualbox/virtualbox.go:82— virtualbox.status has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 2 (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.
network.FreeSubnet (cognitive 20) pkg/network/network.go:189— network.FreeSubnet has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 1 (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.
cmd.startWithDriver (cognitive 19) cmd/minikube/cmd/start.go:473— cmd.startWithDriver has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 2 (3 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.
addons.EnableOrDisableAddon (cognitive 19) pkg/addons/addons.go:246— addons.EnableOrDisableAddon has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 2 (nesting depth added 2). 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.
addons.enableAddonGCPAuth (cognitive 19) pkg/addons/addons_gcpauth.go:68— addons.enableAddonGCPAuth has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 2 (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.
Driver.parseIPForMACFromIPAddr (cognitive 19) pkg/drivers/virtualbox/virtualbox.go:1026— Driver.parseIPForMACFromIPAddr has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (17 pts), boolean chains 1, 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.
DefaultRPCClientDriverFactory.NewRPCClientDriver (cognitive 19) pkg/libmachine/drivers/rpcdriver/client_driver.go:136— DefaultRPCClientDriverFactory.NewRPCClientDriver has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (16 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 7). Most of this is not in the body itself: 8 of the 19 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 188, 144). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
extract.writeStringsToFiles (cognitive 19) pkg/minikube/extract/extract.go:451— extract.writeStringsToFiles has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14 (17 pts), loops 2 (nesting depth added 3). Most of this is not in the body itself: 3 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 452). 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.
machine.PullImages (cognitive 19) pkg/minikube/machine/cache_images.go:527— machine.PullImages has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 1 (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: 3 other methods here (machine.RemoveImages, machine.TagImage, machine.PushImages) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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.
machine.RemoveImages (cognitive 19) pkg/minikube/machine/cache_images.go:607— machine.RemoveImages has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 1 (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: 3 other methods here (machine.PullImages, machine.TagImage, machine.PushImages) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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.
machine.TagImage (cognitive 19) pkg/minikube/machine/cache_images.go:835— machine.TagImage has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 1 (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: 3 other methods here (machine.PullImages, machine.RemoveImages, machine.PushImages) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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.
machine.PushImages (cognitive 19) pkg/minikube/machine/cache_images.go:915— machine.PushImages has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 1 (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: 3 other methods here (machine.PullImages, machine.RemoveImages, machine.TagImage) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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.
machine.postStartSetup (cognitive 19) pkg/minikube/machine/start.go:291— machine.postStartSetup has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 2 (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.
node.validateNetwork (cognitive 19) pkg/minikube/node/start.go:734— node.validateNetwork has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 3, loops 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.
update.fsUpdate (cognitive 19) hack/update/filesystem.go:30— update.fsUpdate has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (18 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.
main.LatestControllerTag (cognitive 19) hack/update/ingress_version/ingress_version.go:89— main.LatestControllerTag has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 2 (3 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.
dhcp.parseLeases (cognitive 18) pkg/drivers/common/dhcp/lease.go:114— dhcp.parseLeases has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 pts), match/switch 2 (5 pts), loops 1 (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.
oci.ForwardedPort (cognitive 18) pkg/drivers/kic/oci/network.go:160— oci.ForwardedPort has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 2 (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.
kvm.getPassthroughableNVIDIADevices (cognitive 18) pkg/drivers/kvm/gpu.go:105— kvm.getPassthroughableNVIDIADevices has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 3 (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.
ssh.NewExternalClient (cognitive 18) REDACTED:348— ssh.NewExternalClient has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (17 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.
assets.SelectAndPersistImages (cognitive 18) pkg/minikube/assets/addons.go:872— assets.SelectAndPersistImages has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (4 pts), boolean chains 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.
extract.checkIdentForStringValue (cognitive 18) pkg/minikube/extract/extract.go:295— extract.checkIdentForStringValue has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 1 (2 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.
extract.checkKeyValueExpression (cognitive 18) pkg/minikube/extract/extract.go:371— extract.checkKeyValueExpression has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 1 (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.
extract.checkBinaryExpression (cognitive 18) pkg/minikube/extract/extract.go:407— extract.checkBinaryExpression has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (18 pts) (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.
machine.mergeImageLists (cognitive 18) pkg/minikube/machine/cache_images.go:761— machine.mergeImageLists has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (11 pts), loops 4 (7 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.
machine.recreateIfNeeded (cognitive 18) pkg/minikube/machine/fix.go:105— machine.recreateIfNeeded has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 3 (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.
node.teardown (cognitive 18) REDACTED:94— node.teardown has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (18 pts) (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.
service.printURLsForService (cognitive 18) pkg/minikube/service/service.go:149— service.printURLsForService has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 3 (6 pts), boolean chains 1 (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.
cmd.interpretWaitFlag (cognitive 17) cmd/minikube/cmd/start_flags.go:1058— cmd.interpretWaitFlag has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (3 pts), boolean chains 2 (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.
main.setFlags (cognitive 17) REDACTED:192— main.setFlags has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2 (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.
addons.enableOrDisableStorageClasses (cognitive 17) pkg/addons/addons_storage_classes.go:33— addons.enableOrDisableStorageClasses 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.
Driver.Stop (cognitive 17) pkg/drivers/kic/kic.go:447— Driver.Stop has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (17 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.
NativeClient.Shell (cognitive 17) REDACTED:284— NativeClient.Shell has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (17 pts) (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.
cluster.getIPForInterface (cognitive 17) pkg/minikube/cluster/ip.go:169— cluster.getIPForInterface has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (4 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.
SSHRunner.Copy (cognitive 17) pkg/minikube/command/ssh_runner.go:335— SSHRunner.Copy has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14 (17 pts) (nesting depth added 3). Of this number, 11 points are the body's own statements and 6 belong to 2 function literals inside it that branch. 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.
cruntime.containerdImagesPreloaded (cognitive 17) pkg/minikube/cruntime/containerd.go:593— cruntime.containerdImagesPreloaded has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (6 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.
cruntime.listCRIContainers (cognitive 17) pkg/minikube/cruntime/cri.go:84— cruntime.listCRIContainers has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 2, loops 2 (nesting depth added 3). 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.
cruntime.crioImagesPreloaded (cognitive 17) pkg/minikube/cruntime/crio.go:526— cruntime.crioImagesPreloaded has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (6 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.
download.PreloadExists (cognitive 17) pkg/minikube/download/preload.go:179— download.PreloadExists has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 3, 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.
download.Preload (cognitive 17) pkg/minikube/download/preload.go:242— download.Preload has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 2 (nesting depth added 3). 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.
machine.MaybeDisplayAdvice (cognitive 17) pkg/minikube/machine/advice.go:30— machine.MaybeDisplayAdvice has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 4 (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.
SSHTunnel.Start (cognitive 17) pkg/minikube/tunnel/kic/ssh_tunnel.go:77— SSHTunnel.Start has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (5 pts), match/switch 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.
osRouter.padCIDR (cognitive 17) pkg/minikube/tunnel/route_darwin.go:118— osRouter.padCIDR has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (7 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.
cmd.maybeDeleteAndRetry (cognitive 16) cmd/minikube/cmd/start.go:619— cmd.maybeDeleteAndRetry has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (14 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.
cmd.selectImageRepository (cognitive 16) cmd/minikube/cmd/start.go:978— cmd.selectImageRepository has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (5 pts), boolean chains 1 (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.
Driver.checkDomains (cognitive 16) pkg/drivers/kvm/network.go:337— Driver.checkDomains has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (3 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.
Driver.generateDiskImage (cognitive 16) pkg/drivers/vmware/driver.go:230— Driver.generateDiskImage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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.
bootstrapper.installCertSymlinks (cognitive 16) REDACTED:539— bootstrapper.installCertSymlinks has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 1, 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.
kverify.NodePressure (cognitive 16) pkg/minikube/bootstrapper/bsutil/kverify/node_conditions.go:100— kverify.NodePressure has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (3 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.
Containerd.BuildImage (cognitive 16) pkg/minikube/cruntime/containerd.go:382— Containerd.BuildImage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), 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.
extract.checkCallExpression (cognitive 16) pkg/minikube/extract/extract.go:217— extract.checkCallExpression has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (4 pts), boolean chains 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.
mustload.Healthy (cognitive 16) pkg/minikube/mustload/mustload.go:183— mustload.Healthy has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 1 (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.
podman.status (cognitive 16) pkg/minikube/registry/drvs/podman/podman.go:106— podman.status has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 2 (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.
D4 · Code Duplication· Near-duplicate member family (4 members, 39 shared lines) · ×1
Near-duplicate member family (4 members, 39 shared lines) REDACTED:466— REDACTED:466-517 | REDACTED:676-734 | REDACTED:607-658 | pkg/drivers/vmware/driver.go:230-320 — These 4 members are variants of one another: a block of 39 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them 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· Near-duplicate member family (3 members, 40 shared lines) · ×1
Near-duplicate member family (3 members, 40 shared lines) pkg/minikube/cruntime/containerd.go:527— pkg/minikube/cruntime/containerd.go:527-585 | pkg/minikube/cruntime/crio.go:418-523 | pkg/minikube/cruntime/docker.go:611-679 — These 3 members are variants of one another: a block of 40 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 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 3 times.
D4 · Code Duplication· Edited copy of a member (25 corresponding lines) · ×1
Edited copy of a member (25 corresponding lines) pkg/drivers/virtualbox/virtualbox_windows.go:46— pkg/drivers/virtualbox/virtualbox_windows.go:46-73 | pkg/minikube/driver/driver_windows.go:43-73 — 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· Members sharing a duplicated core (11 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (11 members, 50+ identical tokens) REDACTED:86— REDACTED:86-123 | REDACTED:93-122 | REDACTED:118-137 | REDACTED:141-159 | REDACTED:81-118 | REDACTED:102-131 | REDACTED:73-102 | REDACTED:129-148 | REDACTED:76-105 | REDACTED:86-115 | REDACTED:72-101 — These 11 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 11 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 11 times.
Duplicated block (39 lines × 4) REDACTED:469— REDACTED:469-507 | REDACTED:679-717 | REDACTED:610-648 | pkg/drivers/vmware/driver.go:235-273 — `REDACTED` and `REDACTED` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 83 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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 (33 lines × 2) cmd/minikube/cmd/docker-env.go:471— cmd/minikube/cmd/docker-env.go:471-503 | cmd/minikube/cmd/docker-env.go:517-549 — 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 `cmd/minikube/cmd/docker-env.go:471` 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 (30 lines × 2) pkg/minikube/command/fake_runner.go:56— pkg/minikube/command/fake_runner.go:56-85 | pkg/minikube/command/fake_runner.go:102-131 — 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 (26 lines × 3) pkg/minikube/cruntime/containerd.go:545— pkg/minikube/cruntime/containerd.go:545-570 | pkg/minikube/cruntime/crio.go:470-495 | pkg/minikube/cruntime/docker.go:633-658 — 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 all 3 call sites, so a change lands once. 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/minikube/cruntime/containerd.go:572` calls `Now` and `pkg/minikube/cruntime/docker.go:661` does not — after which the two agree again for 3 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.
Duplicated block (25 lines × 4) pkg/minikube/machine/cache_images.go:528— pkg/minikube/machine/cache_images.go:528-552 | pkg/minikube/machine/cache_images.go:608-632 | pkg/minikube/machine/cache_images.go:836-860 | pkg/minikube/machine/cache_images.go:916-940 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/minikube/machine/cache_images.go:528` 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 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 (24 lines × 2) pkg/drivers/virtualbox/virtualbox_windows.go:47— pkg/drivers/virtualbox/virtualbox_windows.go:47-70 | pkg/minikube/driver/driver_windows.go:44-67 — 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 (23 lines × 5) pkg/minikube/machine/cache_images.go:545— pkg/minikube/machine/cache_images.go:545-567 | pkg/minikube/machine/cache_images.go:625-647 | pkg/minikube/machine/cache_images.go:681-703 | pkg/minikube/machine/cache_images.go:853-875 | pkg/minikube/machine/cache_images.go:933-955 — all 5 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. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/minikube/machine/cache_images.go:545` 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 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 (18–19 lines × 2) pkg/minikube/cruntime/containerd.go:230— pkg/minikube/cruntime/containerd.go:230-247 | pkg/minikube/cruntime/docker.go:136-154 — 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. 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 (19 lines × 2) pkg/minikube/registry/drvs/docker/docker.go:66— pkg/minikube/registry/drvs/docker/docker.go:66-84 | pkg/minikube/registry/drvs/podman/podman.go:73-91 — 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. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/minikube/registry/drvs/docker/docker.go:66` 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 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 (18 lines × 3) pkg/minikube/machine/build_images.go:100— pkg/minikube/machine/build_images.go:100-117 | pkg/minikube/machine/cache_images.go:226-243 | pkg/minikube/machine/cache_images.go:395-412 — before extracting anything, compare `pkg/minikube/machine/build_images.go` and `pkg/minikube/machine/cache_images.go` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 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/minikube/machine/build_images.go:100` 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 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 (15 lines × 3) pkg/libmachine/provision/boot2docker.go:189— pkg/libmachine/provision/boot2docker.go:189-203 | pkg/libmachine/provision/generic.go:133-147 | pkg/libmachine/provision/systemd.go:75-89 — 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 all 3 call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `pkg/libmachine/provision/boot2docker.go:205` calls `Join`, `GetDockerOptionsDir` and `pkg/libmachine/provision/generic.go:149` 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.
Duplicated block (14 lines × 2) cmd/minikube/cmd/podman-env.go:119— cmd/minikube/cmd/podman-env.go:119-132 | pkg/libmachine/host/host.go:93-106 — 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 (13 lines × 6) pkg/drivers/kic/oci/cli_runner.go:167— pkg/drivers/kic/oci/cli_runner.go:167-179 | pkg/minikube/command/exec_runner.go:58-70 | pkg/minikube/command/exec_runner.go:98-110 | pkg/minikube/command/kic_runner.go:96-108 | pkg/minikube/command/ssh_runner.go:196-208 | pkg/minikube/command/ssh_runner.go:282-294 — there are 6 copies across 4 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `pkg/minikube/command/ssh_runner.go:194` calls `Now` and `pkg/drivers/kic/oci/cli_runner.go:166` does not — after which the two agree again for 4 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.
Duplicated block (13 lines × 2) cmd/minikube/cmd/config/configure.go:108— cmd/minikube/cmd/config/configure.go:108-120 | cmd/minikube/cmd/pause.go:79-91 — 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 (12 lines × 11) REDACTED:107— REDACTED:107-118 | REDACTED:106-117 | REDACTED:121-132 | REDACTED:143-154 | REDACTED:102-113 | REDACTED:115-126 | REDACTED:86-97 | REDACTED:132-143 | REDACTED:89-100 | REDACTED:99-110 | REDACTED:85-96 — `REDACTED` and `REDACTED` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 37 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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 before the matched lines, `REDACTED:104` calls `Sprintf` and `REDACTED:105` does not — after which the two agree again for 3 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.
Duplicated block (11–12 lines × 3) pkg/minikube/cruntime/containerd.go:528— pkg/minikube/cruntime/containerd.go:528-539 | pkg/minikube/cruntime/crio.go:419-430 | pkg/minikube/cruntime/docker.go:612-622 — 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 all 3 call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (11–12 lines × 2) pkg/addons/addons_gcpauth.go:141— pkg/addons/addons_gcpauth.go:141-151 | pkg/addons/addons_gcpauth.go:264-275 — 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/addons/addons_gcpauth.go:141` 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 (9 lines × 6) REDACTED:95— REDACTED:95-103 | REDACTED:104-112 | REDACTED:75-83 | REDACTED:78-86 | REDACTED:88-96 | REDACTED:74-82 — `REDACTED` and `REDACTED` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 30 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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 (9 lines × 5) pkg/drivers/kvm/kvm.go:60— pkg/drivers/kvm/kvm.go:60-68 | pkg/drivers/kvm/kvm.go:496-504 | pkg/drivers/kvm/network.go:124-132 | pkg/drivers/kvm/network.go:172-180 | pkg/drivers/kvm/network.go:270-278 — there are 5 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. 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 before the matched lines, `pkg/drivers/kvm/kvm.go:493` calls `Remove`, `Info` and `pkg/drivers/kvm/network.go:170` 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.
Duplicated block (6–9 lines × 2) pkg/util/retry/retry.go:92— pkg/util/retry/retry.go:92-97 | pkg/util/retry/retry.go:114-122 — 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/util/retry/retry.go:114` 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 that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (8 lines × 3) pkg/minikube/command/exec_runner.go:148— pkg/minikube/command/exec_runner.go:148-155 | pkg/minikube/command/exec_runner.go:184-191 | pkg/minikube/command/kic_runner.go:161-168 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `pkg/minikube/command/exec_runner.go:147` calls `Infof`, `GetLength` and `pkg/minikube/command/kic_runner.go:160` does not — after which the two agree again for 3 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.
Duplicated block (7–8 lines × 2) hack/prow/minitest/deployer/docker_deployer.go:201— hack/prow/minitest/deployer/docker_deployer.go:201-207 | hack/prow/minitest/deployer/docker_deployer.go:210-217 — 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. 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 (3–8 lines × 3) pkg/minikube/cruntime/containerd.go:575— pkg/minikube/cruntime/containerd.go:575-582 | pkg/minikube/cruntime/crio.go:500-507 | pkg/minikube/cruntime/docker.go:661-663 — 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 all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `pkg/minikube/cruntime/containerd.go:575` 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 × 4) pkg/minikube/machine/build_images.go:192— pkg/minikube/machine/build_images.go:192-198 | pkg/minikube/machine/cache_images.go:296-302 | pkg/provision/provision.go:161-167 | pkg/provision/provision.go:201-207 — before extracting anything, compare `pkg/minikube/machine/build_images.go` and `pkg/minikube/machine/cache_images.go` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 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/minikube/machine/build_images.go:192` 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 (5 lines × 4) hack/prow/minitest/deployer/boskos_deployer.go:145— hack/prow/minitest/deployer/boskos_deployer.go:145-149 | hack/prow/minitest/deployer/boskos_deployer.go:154-158 | hack/prow/minitest/deployer/boskos_macos_deployer.go:123-127 | hack/prow/minitest/deployer/boskos_macos_deployer.go:132-136 — there are 4 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart.
Duplicated block (12 lines × 3) pkg/libmachine/provision/debian.go:85— pkg/libmachine/provision/debian.go:85-96 | pkg/libmachine/provision/redhat.go:129-140 | pkg/libmachine/provision/ubuntu.go:85-96 — before extracting anything, compare `pkg/libmachine/provision/debian.go` and `pkg/libmachine/provision/ubuntu.go` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 69 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.
Duplicated block (10 lines × 6) hack/update/istio_operator_version/istio_operator_version.go:53— hack/update/istio_operator_version/istio_operator_version.go:53-62 | hack/update/kong_ingress_controller_version/kong_ingress_controller_version.go:53-62 | hack/update/kong_version/kong_version.go:54-63 | hack/update/kubectl_version/kubectl_version.go:49-58 | hack/update/registry_version/registry_version.go:54-63 | hack/update/yakd_version/yakd_version.go:53-62 — `hack/update/istio_operator_version/istio_operator_version.go` and `hack/update/kong_ingress_controller_version/kong_ingress_controller_version.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 10 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `hack/update/istio_operator_version/istio_operator_version.go:53` 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.
Duplicated block (8 lines × 4) hack/update/amd_device_gpu_plugin_version/amd_device_gpu_plugin_version.go:48— hack/update/amd_device_gpu_plugin_version/amd_device_gpu_plugin_version.go:48-55 | hack/update/headlamp_version/headlamp_version.go:48-55 | hack/update/nvidia_device_plugin_version/nvidia_device_plugin_version.go:48-55 | hack/update/portainer_version/update_portainer_version.go:47-54 — `hack/update/headlamp_version/headlamp_version.go` and `hack/update/nvidia_device_plugin_version/nvidia_device_plugin_version.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 2 separate duplicated blocks between them, totalling at least 18 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `hack/update/amd_device_gpu_plugin_version/amd_device_gpu_plugin_version.go:48` 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.
M1 · Documentation (README)· README may be stale · ×1
README may be stale — 216 code files changed in the last 6 months but the README was not touched — it may no longer reflect the system.
Collection crosses a callback boundary unsynchronised pkg/addons/addons.go:557— `Enable` starts a goroutine on every pass of a loop, and each one writes `enabledAddons`, a slice declared before the loop — `enabledAddons = append(enabledAddons, …)` on line 557. The loop never waits on `awg` before its next pass, so the goroutines of successive passes run at the same time and each one's write races the next one's; waiting on `awg` after the loop orders only what follows the wait. `enabledAddons = append(enabledAddons, …)` rewrites the slice variable itself — its pointer, length and capacity — so the other side reads or rewrites a variable mid-update: an append is lost, or a read sees a length its backing array does not have. `awg` is a `sync.WaitGroup`, which orders the handoff's signal and takes no exclusion over the slice's own state. Guard every write to `enabledAddons` with one `sync.Mutex`, or have each goroutine send its result on a channel that this body alone receives from and writes into `enabledAddons`.
Orphaned file cmd/minikube/cmd/image.go:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pkg/minikube/cni/cni.go:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pkg/drivers/hyperv/hyperv.go:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pkg/drivers/kic/oci/network_create.go:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pkg/minikube/service/service.go:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pkg/drivers/virtualbox/network.go:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pkg/drivers/kic/oci/info.go:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pkg/addons/addons_gcpauth.go:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file cmd/minikube/cmd/completion.go:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pkg/libmachine/drivers/rpcdriver/client_driver.go:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file cmd/minikube/cmd/podman-env.go:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file hack/prow/minitest/deployer/docker_deployer.go:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file cmd/minikube/cmd/config/configure_registry_creds.go:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pkg/minikube/config/profile.go:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pkg/drivers/kic/oci/network.go:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file hack/prow/minitest/deployer/boskos_deployer.go:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file REDACTED:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pkg/minikube/mustload/mustload.go:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file hack/jenkins/test-flake-chart/report_flakes/report_flake.go:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pkg/kapi/kapi.go:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pkg/libmachine/provision/boot2docker.go:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pkg/network/network.go:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pkg/libmachine/host/host.go:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file hack/benchmark/image-build/generate-chart.go:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pkg/provision/ubuntu.go:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
README/code drift site/content/en/docs/_index.md:12— site/content/en/docs/_index.md links to `/images/screenshot.png`, but `images/screenshot.png` 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 site/content/en/docs/contrib/drivers.en.md:30— site/content/en/docs/contrib/drivers.en.md names `pkg/minikube/cluster/default_drivers.go`, but no file or folder `pkg/minikube/cluster/default_drivers.go` exists. 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 site/content/en/docs/handbook/pushing.md:34— site/content/en/docs/handbook/pushing.md links to `/docs/handbook/pushing/#1-pushing-directly-to-the-in-cluster-docker-daemon-docker-env`, but `docs/handbook/pushing` 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 site/content/en/docs/tutorials/ai-playground.md:13— site/content/en/docs/tutorials/ai-playground.md links to `/images/open-webui-chat.png`, but `images/open-webui-chat.png` 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 site/content/en/docs/tutorials/ai-playground.md:408— site/content/en/docs/tutorials/ai-playground.md documents the environment variable `OPENAI_API_BASE_URLS`, but no code, script or configuration file names it. 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 site/content/en/docs/tutorials/running_minikube_on_aws_ec2.md:10— site/content/en/docs/tutorials/running_minikube_on_aws_ec2.md links to `/images/minikube-on-ipad-via-ssh.jpeg`, but `images/minikube-on-ipad-via-ssh.jpeg` 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 site/content/en/docs/tutorials/running_minikube_on_aws_ec2.md:110— site/content/en/docs/tutorials/running_minikube_on_aws_ec2.md links to `/images/minikube-start-on-ec2.png`, but `images/minikube-start-on-ec2.png` 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 site/content/en/docs/tutorials/running_minikube_on_aws_ec2.md:118— site/content/en/docs/tutorials/running_minikube_on_aws_ec2.md links to `/images/kubectl-get-nodes-on-ec2.png`, but `images/kubectl-get-nodes-on-ec2.png` 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 site/content/en/docs/tutorials/setup_minikube_gui.md:41— site/content/en/docs/tutorials/setup_minikube_gui.md links to `/images/gui/windows.png`, but `images/gui/windows.png` 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 site/content/en/docs/benchmarks/cpuUsage/linux.md:16— site/content/en/docs/benchmarks/cpuUsage/linux.md links to `/images/benchmarks/cpuUsage/idleOnly/linux.png`, but `images/benchmarks/cpuUsage/idleOnly/linux.png` 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 site/content/en/docs/benchmarks/cpuUsage/linux.md:42— site/content/en/docs/benchmarks/cpuUsage/linux.md links to `/images/benchmarks/cpuUsage/autoPause/linux.png`, but `images/benchmarks/cpuUsage/autoPause/linux.png` 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 site/content/en/docs/benchmarks/cpuUsage/macos.md:16— site/content/en/docs/benchmarks/cpuUsage/macos.md links to `/images/benchmarks/cpuUsage/idleOnly/mac.png`, but `images/benchmarks/cpuUsage/idleOnly/mac.png` 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 site/content/en/docs/benchmarks/cpuUsage/macos.md:39— site/content/en/docs/benchmarks/cpuUsage/macos.md links to `/images/benchmarks/cpuUsage/autoPause/mac.png`, but `images/benchmarks/cpuUsage/autoPause/mac.png` 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 site/content/en/docs/benchmarks/imageBuild/linuxbenchmark.md:14— site/content/en/docs/benchmarks/imageBuild/linuxbenchmark.md links to `/images/benchmarks/dockerRuntime/iterative.png`, but `images/benchmarks/dockerRuntime/iterative.png` 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 site/content/en/docs/benchmarks/imageBuild/linuxbenchmark.md:15— site/content/en/docs/benchmarks/imageBuild/linuxbenchmark.md links to `/images/benchmarks/dockerRuntime/initial.png`, but `images/benchmarks/dockerRuntime/initial.png` 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 site/content/en/docs/benchmarks/imageBuild/linuxbenchmark.md:19— site/content/en/docs/benchmarks/imageBuild/linuxbenchmark.md links to `/images/benchmarks/containerdRuntime/iterative.png`, but `images/benchmarks/containerdRuntime/iterative.png` 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 site/content/en/docs/benchmarks/imageBuild/linuxbenchmark.md:20— site/content/en/docs/benchmarks/imageBuild/linuxbenchmark.md links to `/images/benchmarks/containerdRuntime/initial.png`, but `images/benchmarks/containerdRuntime/initial.png` 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 site/content/en/docs/benchmarks/imageBuild/linuxbenchmark.md:23— site/content/en/docs/benchmarks/imageBuild/linuxbenchmark.md links to `/images/benchmarks/crioRuntime/iterative.png`, but `images/benchmarks/crioRuntime/iterative.png` 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 site/content/en/docs/benchmarks/imageBuild/linuxbenchmark.md:24— site/content/en/docs/benchmarks/imageBuild/linuxbenchmark.md links to `/images/benchmarks/crioRuntime/initial.png`, but `images/benchmarks/crioRuntime/initial.png` 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 site/content/en/docs/benchmarks/imageBuild/macbenchmark.md:13— site/content/en/docs/benchmarks/imageBuild/macbenchmark.md links to `/images/benchmarks/macArchitecture/iterative.png`, but `images/benchmarks/macArchitecture/iterative.png` 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 site/content/en/docs/benchmarks/imageBuild/macbenchmark.md:14— site/content/en/docs/benchmarks/imageBuild/macbenchmark.md links to `/images/benchmarks/macArchitecture/initial.png`, but `images/benchmarks/macArchitecture/initial.png` 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 site/content/en/docs/benchmarks/imageBuild/minikubevsothers.md:13— site/content/en/docs/benchmarks/imageBuild/minikubevsothers.md links to `/images/benchmarks/minikubeVsOthers/iterative.png`, but `images/benchmarks/minikubeVsOthers/iterative.png` 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 site/content/en/docs/benchmarks/imageBuild/minikubevsothers.md:14— site/content/en/docs/benchmarks/imageBuild/minikubevsothers.md links to `/images/benchmarks/minikubeVsOthers/initial.png`, but `images/benchmarks/minikubeVsOthers/initial.png` 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 site/content/en/docs/benchmarks/timeToK8s/v1.20.0.md:7— site/content/en/docs/benchmarks/timeToK8s/v1.20.0.md links to `/images/benchmarks/timeToK8s/v1.20.0.png`, but `images/benchmarks/timeToK8s/v1.20.0.png` 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 site/content/en/docs/benchmarks/timeToK8s/v1.21.0.md:7— site/content/en/docs/benchmarks/timeToK8s/v1.21.0.md links to `/images/benchmarks/timeToK8s/v1.21.0.png`, but `images/benchmarks/timeToK8s/v1.21.0.png` 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.
No seccomp profile REDACTED:8— 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:119657— 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:119906— 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:120123— 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:120340— 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:121529— 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:121575— 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:121678— 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:121732— 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:121782— 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:121852— 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:121894— 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:121969— 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:122007— 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:122089— 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:122147— 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:122216— 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:122247— 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:122323— 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:122357— 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:122410— 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:122552— 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:122603— 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:122644— 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:122748— 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.
Duplicated predicate pkg/minikube/cluster/status.go:448— `!config.IsHA(cc) || driver.NeedsPortForward(cc.Driver)` appears character-identically in 2 files — pkg/minikube/cluster/status.go, pkg/minikube/node/start.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.
Duplicated predicate cmd/minikube/cmd/mount.go:134— `driver.IsQEMU(co.Config.Driver) && pkgnetwork.IsBuiltinQEMU(co.Config.Network)` appears character-identically in 3 files — cmd/minikube/cmd/mount.go, cmd/minikube/cmd/service.go, cmd/minikube/cmd/tunnel.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.
Duplicated predicate cmd/minikube/cmd/start.go:1552— `memString == constants.NoLimit && driver.IsKIC(drvName)` appears character-identically in 2 files — cmd/minikube/cmd/start.go, cmd/minikube/cmd/start_flags.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.
Duplicated predicate cmd/minikube/cmd/start.go:417— `runtime.GOOS == "darwin" && runtime.GOARCH == "arm64"` appears character-identically in 3 files — cmd/minikube/cmd/start.go, pkg/drivers/virtualbox/virtualbox.go, pkg/minikube/registry/drvs/virtualbox/virtualbox.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.
Duplicated predicate pkg/drivers/kic/oci/network.go:87— `runtime.GOOS == "darwin" || runtime.GOOS == "windows"` appears character-identically in 2 files — pkg/drivers/kic/oci/network.go, pkg/minikube/driver/driver.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.
Duplicated predicate cmd/minikube/cmd/start_flags.go:785— `runtime.GOOS == "linux" && si.DockerOS == "Docker Desktop"` appears character-identically in 2 files — cmd/minikube/cmd/start_flags.go, pkg/minikube/driver/driver.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.
Duplicated predicate pkg/minikube/cruntime/containerd.go:272— `sha != "" && !strings.Contains(rr.Output(), sha)` appears character-identically in 3 files — pkg/minikube/cruntime/containerd.go, pkg/minikube/cruntime/crio.go, pkg/minikube/cruntime/docker.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.
Duplicated predicate pkg/minikube/tunnel/route_darwin.go:86— `skip || strings.HasPrefix(line, "default")` appears character-identically in 2 files — pkg/minikube/tunnel/route_darwin.go, pkg/minikube/tunnel/route_freebsd.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.
Duplicated predicate cmd/minikube/cmd/start.go:1997— `viper.GetInt(nodes) > 1 || viper.GetBool(ha)` appears character-identically in 2 files — cmd/minikube/cmd/start.go, cmd/minikube/cmd/start_flags.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.
AppArmor/SELinux confinement disabled REDACTED:977— The workload opts out of mandatory access control (AppArmor `Unconfined`, or the SELinux super-privileged type `spc_t`), switching off the profile the container runtime would otherwise apply by default.
AppArmor/SELinux confinement disabled REDACTED:1213— The workload opts out of mandatory access control (AppArmor `Unconfined`, or the SELinux super-privileged type `spc_t`), switching off the profile the container runtime would otherwise apply by default.
AppArmor/SELinux confinement disabled REDACTED:1248— The workload opts out of mandatory access control (AppArmor `Unconfined`, or the SELinux super-privileged type `spc_t`), switching off the profile the container runtime would otherwise apply by default.
AppArmor/SELinux confinement disabled REDACTED:1303— The workload opts out of mandatory access control (AppArmor `Unconfined`, or the SELinux super-privileged type `spc_t`), switching off the profile the container runtime would otherwise apply by default.
AppArmor/SELinux confinement disabled REDACTED:1337— The workload opts out of mandatory access control (AppArmor `Unconfined`, or the SELinux super-privileged type `spc_t`), switching off the profile the container runtime would otherwise apply by default.
AppArmor/SELinux confinement disabled REDACTED:1093— The workload opts out of mandatory access control (AppArmor `Unconfined`, or the SELinux super-privileged type `spc_t`), switching off the profile the container runtime would otherwise apply by default.
AppArmor/SELinux confinement disabled REDACTED:1513— The workload opts out of mandatory access control (AppArmor `Unconfined`, or the SELinux super-privileged type `spc_t`), switching off the profile the container runtime would otherwise apply by default.
AppArmor/SELinux confinement disabled REDACTED:1579— The workload opts out of mandatory access control (AppArmor `Unconfined`, or the SELinux super-privileged type `spc_t`), switching off the profile the container runtime would otherwise apply by default.
Silent fallback default on error pkg/minikube/audit/audit.go:44— `userName` turns a non-nil `err` into `return "UNKNOWN"` — a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the `if` or in the doc comment, and the row stops firing.
Silent fallback default on error pkg/minikube/cruntime/docker.go:765— `getCriDockerdPath` turns a non-nil `err` into `return "/usr/bin/cri-dockerd"` — a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the `if` or in the doc comment, and the row stops firing.
Silent fallback default on error pkg/minikube/driver/driver.go:419— `IndexFromMachineName` turns a non-nil `err` into `return 1` — a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the `if` or in the doc comment, and the row stops firing.
Silent fallback default on error pkg/minikube/notify/notify.go:240— `timeFromFileIfExists` turns a non-nil `err` into `return time.Time{}` — a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the `if` or in the doc comment, and the row stops firing.
Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 14 significant file(s) lose their only recent owner: pkg/minikube/reason/known_issues.go, REDACTED, REDACTED, pkg/drivers/none/none.go, pkg/minikube/command/fake_runner.go, hack/jenkins/release_update_releases_json.go, REDACTED, pkg/minikube/kubeconfig/settings.go (+6 more). Pair on, review, or document these before any departure.
Off-boarding risk: anonymized user #2 — If anonymized user #2 becomes unavailable, 7 significant file(s) lose their only recent owner: pkg/minikube/constants/constants_kubeadm_images.go, pkg/minikube/assets/addons.go, pkg/minikube/bootstrapper/images/images.go, pkg/minikube/cluster/ha/kube-vip/kube-vip.go, pkg/perf/monitor/github.go, hack/update/github.go, pkg/drivers/kic/types.go. Pair on, review, or document these before any departure.
Off-boarding risk: anonymized user #3 — If anonymized user #3 becomes unavailable, 6 significant file(s) lose their only recent owner: REDACTED, pkg/minikube/cruntime/cruntime.go, pkg/drivers/common/dhcp/lease.go, cmd/minikube/cmd/config/validations.go, pkg/drivers/common/ssh.go, cmd/minikube/cmd/config/util.go. Pair on, review, or document these before any departure.
D16 · Bus Factor· Further sole-owners (lower concentration) · ×1
Further sole-owners (lower concentration) — 8 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 (37 single-owned of 340 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 340 of the 541 production source files in this repository met that bar). They are anonymized user #4 (2 file(s)), anonymized user #5 (2 file(s)), anonymized user #6 (1 file(s)), anonymized user #7 (1 file(s)), anonymized user #8 (1 file(s)), anonymized user #9 (1 file(s)) (+2 more) — spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: cmd/minikube/cmd/unpause.go, cmd/minikube/cmd/pause.go, pkg/minikube/node/provisioner.go, pkg/minikube/node/linux_provisioner.go, hack/prow/minitest/deployer/boskos_macos_deployer.go, pkg/minikube/tunnel/kic/ssh_conn.go, pkg/minikube/tunnel/route_windows.go, pkg/drivers/parallels/prlctl.go (+2 more).
No ADRs found — 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/`.
D26 · Project Cohesion· Projects may be oversized for their cohesion · ×1
Projects may be oversized for their cohesion — 2 of 4 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is `(repository root)` (73136 LoC, 446 module-visible types across 147 directories). Review these for cohesion — draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers.
D28 · Secrets (history)· Rotate the exposed credentials · ×1
D34 · Knowledge Freshness· Orphaned files with no living knowledge · ×1
Orphaned files with no living knowledge — 148 of 343 analysed file(s) have no living knowledge left — their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 343 of the 541 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each — most significant first: cmd/minikube/cmd/image.go, pkg/minikube/cni/cni.go, pkg/drivers/hyperv/hyperv.go, pkg/drivers/kic/oci/network_create.go, pkg/minikube/service/service.go, pkg/drivers/virtualbox/network.go, pkg/drivers/kic/oci/info.go, pkg/addons/addons_gcpauth.go (and 140 more). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway.
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.
Seccomp disabled REDACTED:979— The seccomp profile in force is not RuntimeDefault or Localhost (Unconfined), so the container's system calls are not filtered. Set `type: RuntimeDefault`, or a Localhost profile that allows only what the workload needs.
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.
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.
Logging is not universal — Only 3/4 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `.`.
No release approval gate — Deployment is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY'S PIPELINE FILES. What was read: every file under `.github/workflows/`, `.forgejo/workflows/`, `.gitea/workflows/`, `.azuredevops/` and `.azure-pipelines/`, plus `.gitlab-ci*` and `azure-pipelines*` — with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab's `when: manual`, CircleCI's `type: approval`, an Azure `ManualValidation@` task or an `approvals:` block, a Jenkins `input` step, a `uses:` step naming an approval action, an `environment:` paired with `reviewers` / `required_reviewers` / `protection` / `wait-timer` / `deployment_branch_policy`, a draft-release step, a `workflow_dispatch` promotion, or a release-event gate. ★ What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy — all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever reaches the release trigger goes to production unreviewed, so a mistaken merge or tag is live before anyone can stop it.
No security response headers detected netlify.toml:1— None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, …) is configured — defense in depth, even when a reverse proxy could set them. This is reported because `netlify.toml` configures this repository's static hosting, including its response headers, so the configuration that would carry these headers is in this repository and was read in full. (−2.0 on this card.)
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 3/38 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.
Outdated: cloud.google.com/go/storage — `cloud.google.com/go/storage` is required at v1.69.0 in REDACTED, but v1.70.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/storage@v1.70.0 && go mod tidy` and commit the updated REDACTED and go.sum.
Outdated: cloud.google.com/go/storage — `cloud.google.com/go/storage` is required at v1.56.0 in hack/jenkins/test-flake-chart/report_flakes/REDACTED, but v1.70.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/storage@v1.70.0 && go mod tidy` and commit the updated REDACTED and go.sum.
Outdated: cloud.google.com/go/storage — `cloud.google.com/go/storage` is required at v1.69.0 in REDACTED, but v1.70.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/storage@v1.70.0 && go mod tidy` and commit the updated REDACTED and go.sum.
Outdated: github.com/GoogleCloudPlatform/cloudsql-proxy — `github.com/GoogleCloudPlatform/cloudsql-proxy` is required at v1.37.7 in REDACTED, but v1.38.4 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/cloudsql-proxy@v1.38.4 && go mod tidy` and commit the updated REDACTED and go.sum.
Outdated: github.com/cenkalti/backoff/v7 — `github.com/cenkalti/backoff/v7` is required at v7.0.0 in REDACTED, but v7.0.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/cenkalti/backoff/v7@v7.0.1 && go mod tidy` and commit the updated REDACTED and go.sum.
Outdated: github.com/cenkalti/backoff/v7 — `github.com/cenkalti/backoff/v7` is required at v7.0.0 in REDACTED, but v7.0.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/cenkalti/backoff/v7@v7.0.1 && go mod tidy` and commit the updated REDACTED and go.sum.
Outdated: github.com/cloudevents/sdk-go/v2 — `github.com/cloudevents/sdk-go/v2` is required at v2.16.0 in REDACTED, but v2.16.2 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get github.com/cloudevents/sdk-go/v2@v2.16.2 && go mod tidy` and commit the updated REDACTED and go.sum.
Outdated: github.com/diskfs/go-diskfs — `github.com/diskfs/go-diskfs` is required at v1.9.3 in REDACTED, but v1.9.4 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get github.com/diskfs/go-diskfs@v1.9.4 && go mod tidy` and commit the updated REDACTED and go.sum.
Outdated: github.com/docker/cli — `github.com/docker/cli` is required at v29.7.2+incompatible in REDACTED, but v29.9.2+incompatible is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get github.com/docker/cli@v29.9.2+incompatible && go mod tidy` and commit the updated REDACTED and go.sum.
Outdated: github.com/docker/go-connections — `github.com/docker/go-connections` is required at v0.6.0 in REDACTED, but v0.8.2 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get github.com/docker/go-connections@v0.8.2 && go mod tidy` and commit the updated REDACTED and go.sum.
Outdated: github.com/elazarl/goproxy — `github.com/elazarl/goproxy` is required at v1.9.1 in REDACTED, but v1.9.2 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get github.com/elazarl/goproxy@v1.9.2 && go mod tidy` and commit the updated REDACTED and go.sum.
Outdated: github.com/hashicorp/go-getter — `github.com/hashicorp/go-getter` is required at v1.8.6 in REDACTED, but v1.8.10 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get github.com/hashicorp/go-getter@v1.8.10 && go mod tidy` and commit the updated REDACTED and go.sum.
Outdated: github.com/hectane/go-acl — `github.com/hectane/go-acl` is required at v0.0.0-20190604041725-da78bae5fc95 in REDACTED, but v1.0.0 is the module's current release — so this build is missing every fix published since, including any security fix. This crosses a major version — v0 releases carry no compatibility promise, so read the changelog before taking it. Run `go get github.com/hectane/go-acl@v1.0.0 && go mod tidy` and commit the updated REDACTED and go.sum.
Outdated: github.com/klauspost/cpuid/v2 — `github.com/klauspost/cpuid/v2` is required at v2.4.0 in REDACTED, but v2.4.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/klauspost/cpuid/v2@v2.4.1 && go mod tidy` and commit the updated REDACTED and go.sum.
Outdated: github.com/moby/moby/api — `github.com/moby/moby/api` is required at v1.52.0-beta.1 in REDACTED, but v1.56.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/moby/moby/api@v1.56.1 && go mod tidy` and commit the updated REDACTED and go.sum.
Outdated: github.com/moby/moby/client — `github.com/moby/moby/client` is required at v0.1.0-beta.0 in REDACTED, but v0.6.2 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get github.com/moby/moby/client@v0.6.2 && go mod tidy` and commit the updated REDACTED and go.sum.
Outdated: github.com/shirou/gopsutil/v4 — `github.com/shirou/gopsutil/v4` is required at v4.26.8 in REDACTED, but v4.26.9 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get github.com/shirou/gopsutil/v4@v4.26.9 && go mod tidy` and commit the updated REDACTED and go.sum.
Outdated: go.opentelemetry.io/otel — `go.opentelemetry.io/otel` is required at v1.46.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 — `go.opentelemetry.io/otel` is required at v1.46.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/metric — `go.opentelemetry.io/otel/metric` is required at v1.46.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/metric@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.46.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: go.opentelemetry.io/otel/sdk/metric — `go.opentelemetry.io/otel/sdk/metric` is required at v1.46.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/metric@v1.47.0 && go mod tidy` and commit the updated REDACTED and go.sum.
Outdated: go.opentelemetry.io/otel/trace — `go.opentelemetry.io/otel/trace` is required at v1.46.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/trace@v1.47.0 && go mod tidy` and commit the updated REDACTED and go.sum.
Outdated: golang.org/x/crypto — `golang.org/x/crypto` is required at v0.52.0 in REDACTED, but v0.58.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/crypto@v0.58.0 && go mod tidy` and commit the updated REDACTED and go.sum.
Outdated: gonum.org/v1/plot — `gonum.org/v1/plot` is required at v0.16.0 in REDACTED, but v0.17.0 is the module's current release — so this build is missing every fix published since, including any security fix. Run `go get gonum.org/v1/plot@v0.17.0 && go mod tidy` and commit the updated REDACTED and go.sum.
+ 2 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.
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.
Run 01a16b9c-71cc-76c8-b3cd-059d105cb8e5 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.
Issues: 264 · Warnings: 1685 · Recommendations: 469 · Info: 27 — Appendix A · all findings · full markdown report.
Generated by Watchdog — deterministic code-health analysis. 24-10-2026 @ 01:52 UTC.
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.