AI Slop Code Risk Monitor

kubevirt/kubevirt

SlopCodeMonitor badge for kubevirt/kubevirt Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Kubernetes Virtualization API and runtime in order to define and manage virtual machines.

2.5 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for kubevirt/kubevirt, a Go project with 7,155 GitHub stars. SynthScan examined 718,268 lines of code across 2947 source files, recording 629 pattern matches distributed across 15 syntactic categories. The legacy adjusted pattern signal is 2.5 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

2.5
Adjusted Signal
2.5
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
7.2K
Stars
Go
Language
718.3K
Lines of Code
2.9K
Files
629
Pattern Hits
2026-10-31
Scan Date
0.03
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 5.6/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 534 finding(s).

Hallucinated Dependency & Supply Chain Risk 6.3/100 · LOW

Are imports declared and package/API names verified? 93 finding(s).

Agent Over-Engineering Ratio 0.1/100 · LOW

Are wrappers, guards, and repeated structures necessary? 11 finding(s).

PR Review Velocity Impact 10.5/100 · LOW

Which changes need focused human review? 629 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 76HIGH 0MEDIUM 138LOW 415

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 629 distinct pattern matches across 15 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hallucination Indicators76 hits · 910 pts
SeverityFileLineSnippetContext
CRITICALtests/canary_upgrade_test.go94 g.Expect(ds.Spec.UpdateStrategy.RollingUpdate.MaxUnavailable.IntValue()).To(Equal(1))CODE
CRITICAL⚡tests/vm_test.go363 vmiMemory := vmi.Spec.Domain.Resources.Requests.Memory()CODE
CRITICAL⚡tests/vm_test.go364 vmMemory := vm.Spec.Template.Spec.Domain.Resources.Requests.Memory()CODE
CRITICAL⚡tests/vm_test.go374 vmiMemory = vmi.Spec.Domain.Resources.Requests.Memory()CODE
CRITICAL⚡tests/vm_test.go375 vmMemory = updatedVM.Spec.Template.Spec.Domain.Resources.Requests.Memory()CODE
CRITICALtests/hotplug/memory.go194 Expect(vm.Spec.Template.Spec.Domain.Memory.Guest.Value()).To(Equal(newGuestMemory.Value()))CODE
CRITICALtests/hotplug/memory.go232 Expect(vmi.Spec.Domain.Resources.Requests.Memory().Value()).To(Equal(newGuestMemory.Value()))CODE
CRITICALtests/hotplug/instancetype.go170 Expect(vmi.Spec.Domain.Memory.Guest.Value()).To(Equal(maxGuest.Value()))CODE
CRITICALtests/hotplug/instancetype.go227 newMemory := vm.Spec.Template.Spec.Domain.Resources.Requests.Memory().DeepCopy()CODE
CRITICALtests/hotplug/instancetype.go232 patch.WithTest(memoryPath, vm.Spec.Template.Spec.Domain.Resources.Requests.Memory().String()),CODE
CRITICALtests/compute/cpu.go83 Expect(vmi.Spec.Domain.Resources.Requests.Memory().String()).To(Equal("128Mi"))CODE
CRITICALtests/instancetype/reference_policy.go91 Expect(vm.Spec.Template.Spec.Domain.Memory.Guest.Value()).To(Equal(instancetype.Spec.Memory.Guest.Value()))CODE
CRITICALtests/migration/namespace.go554 targetVMI.Spec.Domain.Firmware = sourceVM.Spec.Template.Spec.Domain.Firmware.DeepCopy()CODE
CRITICALtests/operator/operator.go352 return ds.Status.DesiredNumberScheduled == ds.Status.NumberReady && ds.Spec.UpdateStrategy.RollingUpdate.MaxUnavaiCODE
CRITICALpkg/virt-launcher/virtwrap/manager.go535 log.Log.V(2).Infof("hotplugging guest memory to %v", vmi.Spec.Domain.Memory.Guest.Value())CODE
CRITICALpkg/virt-launcher/virtwrap/converter/compute/memory.go34 (vmi.Spec.Domain.Memory.Guest != nil && vmi.Spec.Domain.Memory.Guest.Equal(*vmi.Spec.Domain.Memory.MaxGuest)) {CODE
CRITICALpkg/virt-handler/migration-target.go1178 requiredMemory.Add(*vmi.Spec.Domain.Resources.Requests.Memory())CODE
CRITICALpkg/virt-handler/migration-target.go1182 return fmt.Errorf("amount of requested guest memory (%s) exceeds the launcher memory request (%s)", vmi.Spec.Domain.MeCODE
CRITICALpkg/virt-handler/migration-source.go171 migrationEndUnix := vmi.Status.MigrationState.EndTimestamp.Time.UTC().Unix()CODE
CRITICALpkg/virt-handler/vm.go1660 startTime = dom.Spec.Metadata.KubeVirt.GracePeriod.DeletionTimestamp.UTC().Unix()CODE
CRITICAL…webhooks/mutating-webhook/mutators/vmi-mutator_test.go574 Expect(vmiSpec.Domain.Resources.Requests.Cpu()).To(Equal(vmi.Spec.Domain.Resources.Requests.Cpu()))CODE
CRITICAL…webhooks/mutating-webhook/mutators/vmi-mutator_test.go575 Expect(vmiSpec.Domain.Resources.Requests.Memory()).To(Equal(vmi.Spec.Domain.Resources.Requests.Memory()))CODE
CRITICALpkg/virt-api/rest/expand_test.go232 Expect(responseVm.Spec.Template.Spec.Domain.Memory.Guest.Value()).To(Equal(clusterInstancetype.Spec.Memory.Guest.ValuCODE
CRITICALpkg/virt-api/rest/expand_test.go374 Expect(responseVm.Spec.Template.Spec.Domain.Memory.Guest.Value()).To(Equal(namespacedInstancetype.Spec.Memory.Guest.VCODE
CRITICALpkg/render/render_test.go404 Expect(result.VMI.Spec.Domain.Memory.Guest.String()).To(Equal("2Gi"))CODE
CRITICALpkg/storage/snapshot/external.go718 capacityBound += volumeBackup.PersistentVolumeClaim.Spec.Resources.Requests.Storage().Value()CODE
CRITICALpkg/defaults/defaults.go143 maxGuest = resource.NewQuantity(vmi.Spec.Domain.Memory.Guest.Value()*int64(clusterConfig.GetMaxHotplugRatio()), resourCODE
CRITICAL⚡pkg/virt-controller/watch/vm/vm.go590 if !vm.Spec.Template.Spec.Domain.Resources.Requests.Cpu().IsZero() {CODE
CRITICAL⚡pkg/virt-controller/watch/vm/vm.go591 newCpuReq := vmi.Spec.Domain.Resources.Requests.Cpu().DeepCopy()CODE
CRITICAL⚡pkg/virt-controller/watch/vm/vm.go595 patch.WithTest("/spec/domain/resources/requests/cpu", vmi.Spec.Domain.Resources.Requests.Cpu().String()),CODE
CRITICAL⚡pkg/virt-controller/watch/vm/vm.go601 if !vm.Spec.Template.Spec.Domain.Resources.Limits.Cpu().IsZero() {CODE
CRITICAL⚡pkg/virt-controller/watch/vm/vm.go602 newCpuLimit := vmi.Spec.Domain.Resources.Limits.Cpu().DeepCopy()CODE
CRITICAL⚡pkg/virt-controller/watch/vm/vm.go606 patch.WithTest("/spec/domain/resources/limits/cpu", vmi.Spec.Domain.Resources.Limits.Cpu().String()),CODE
CRITICAL⚡pkg/virt-controller/watch/vm/vm.go3470 vmCopyWithInstancetype.Spec.Template.Spec.Domain.Memory.Guest.Cmp(*vmi.Status.Memory.GuestAtBoot) == -1 {CODE
CRITICAL⚡pkg/virt-controller/watch/vm/vm.go3479 vmCopyWithInstancetype.Spec.Template.Spec.Domain.Memory.Guest.Cmp(*vmi.Spec.Domain.Memory.MaxGuest) == 1 {CODE
CRITICAL⚡pkg/virt-controller/watch/vm/vm.go3484 memoryDelta := resource.NewQuantity(vmCopyWithInstancetype.Spec.Template.Spec.Domain.Memory.Guest.Value()-vmi.Status.MeCODE
CRITICAL⚡pkg/virt-controller/watch/vm/vm.go3487 patch.WithTest("/spec/domain/memory/guest", vmi.Spec.Domain.Memory.Guest.String()),CODE
CRITICAL⚡pkg/virt-controller/watch/vm/vm.go3488 patch.WithReplace("/spec/domain/memory/guest", vmCopyWithInstancetype.Spec.Template.Spec.Domain.Memory.Guest.String())CODE
CRITICAL⚡pkg/virt-controller/watch/vm/vm.go3491 logMsg := fmt.Sprintf("hotplugging memory to %s", vmCopyWithInstancetype.Spec.Template.Spec.Domain.Memory.Guest.String(CODE
CRITICAL⚡pkg/virt-controller/watch/vm/vm.go3493 if !vmi.Spec.Domain.Resources.Requests.Memory().IsZero() {CODE
CRITICAL⚡pkg/virt-controller/watch/vm/vm.go3494 newMemoryReq := vmi.Spec.Domain.Resources.Requests.Memory().DeepCopy()CODE
CRITICAL⚡pkg/virt-controller/watch/vm/vm.go3502 memoryDelta = resource.NewQuantity(vmCopyWithInstancetype.Spec.Template.Spec.Domain.Memory.Guest.Value()-newMemoryReqCODE
CRITICAL⚡pkg/virt-controller/watch/vm/vm.go3506 patch.WithTest("/spec/domain/resources/requests/memory", vmi.Spec.Domain.Resources.Requests.Memory().String()),CODE
CRITICAL⚡pkg/virt-controller/watch/vm/vm.go3512 if !vmCopyWithInstancetype.Spec.Template.Spec.Domain.Resources.Limits.Memory().IsZero() {CODE
CRITICAL⚡pkg/virt-controller/watch/vm/vm.go3513 newMemoryLimit := vmi.Spec.Domain.Resources.Limits.Memory().DeepCopy()CODE
CRITICAL⚡pkg/virt-controller/watch/vm/vm.go3517 patch.WithTest("/spec/domain/resources/limits/memory", vmi.Spec.Domain.Resources.Limits.Memory().String()),CODE
CRITICALpkg/virt-controller/watch/vm/vm.go1587 retryAfter := vm.Status.StartFailure.RetryAfterTimestamp.Time.UTC().Unix()CODE
CRITICALpkg/virt-controller/watch/vm/vm.go3441 if vmCopyWithInstancetype.Spec.Template.Spec.Domain.Memory.Guest.Equal(*vmi.Spec.Domain.Memory.Guest) {CODE
CRITICAL⚡pkg/virt-controller/watch/vm/vm_test.go5526 expectedCpuReq := vmi.Spec.Domain.Resources.Requests.Cpu().DeepCopy()CODE
CRITICAL⚡pkg/virt-controller/watch/vm/vm_test.go5529 Expect(updatedVMI.Spec.Domain.Resources.Requests.Cpu().String()).To(Equal(expectedCpuReq.String()))CODE
CRITICAL⚡pkg/virt-controller/watch/vm/vm_test.go5533 expectedCpuLim := vmi.Spec.Domain.Resources.Limits.Cpu().DeepCopy()CODE
CRITICAL⚡pkg/virt-controller/watch/vm/vm_test.go5536 Expect(updatedVMI.Spec.Domain.Resources.Limits.Cpu().String()).To(Equal(expectedCpuLim.String()))CODE
CRITICAL⚡pkg/virt-controller/watch/vm/vm_test.go5601 expectedCpuReq := originalVMI.Spec.Domain.Resources.Requests.Cpu().DeepCopy()CODE
CRITICAL⚡pkg/virt-controller/watch/vm/vm_test.go5603 Expect(vmi.Spec.Domain.Resources.Requests.Cpu().String()).To(Equal(expectedCpuReq.String()))CODE
CRITICAL⚡pkg/virt-controller/watch/vm/vm_test.go5605 expectedCpuLim := originalVMI.Spec.Domain.Resources.Limits.Cpu().DeepCopy()CODE
CRITICAL⚡pkg/virt-controller/watch/vm/vm_test.go5607 Expect(vmi.Spec.Domain.Resources.Limits.Cpu().String()).To(Equal(expectedCpuLim.String()))CODE
CRITICALpkg/virt-controller/watch/vm/vm_test.go5706 Expect(vmi.Spec.Domain.Memory.Guest.Cmp(*vm.Spec.Template.Spec.Domain.Memory.Guest)).To(Equal(0), "The VMI Guest shCODE
CRITICALpkg/virt-controller/watch/vm/vm_test.go5710 Expect(vmi.Spec.Domain.Resources.Requests.Memory().Value()).To(Equal(expectedMemReq))CODE
CRITICALpkg/virt-controller/watch/vmi/lifecycle.go1171 return vmi.Spec.Domain.Memory.Guest.Value() != vmi.Status.Memory.GuestRequested.Value()CODE
CRITICALpkg/virt-controller/services/template_test.go2454 Expect(vmi.Spec.Domain.Resources.Requests.Memory().String()).To(Equal("64M"))CODE
16 more matches not shown…
Self-Referential Comments133 hits · 459 pts
SeverityFileLineSnippetContext
MEDIUMimages/disks-images-provider/entrypoint.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMimages/disks-images-provider/entrypoint.sh51# Create a 4Gi blank disk imageCOMMENT
MEDIUMtests/entrypoint.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/cluster-build.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/olm.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/dump.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/go-build-functests.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/integration-test.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/cluster-clean.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/functests.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/bazel-build-functests.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/virtctl.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/build-copy-artifacts.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/realtime-perftests.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/lint-test-cleanup-label.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/push-container-manifest.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/cluster-up.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/build-manifests.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/golangci-lint.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/whatchanged.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/bazel-build-images.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/cluster-sync.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/multi-arch.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/bootstrap.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/bazel-fmt.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/bazel-push-images.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/perftests.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/gofumpt.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/cluster-deploy.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/cluster-deploy.sh85# Create the installation namespace if it does not exist alreadyCOMMENT
MEDIUMhack/license-header-check.sh2# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/license-header-check.sh46# Define the required license lines based on hack/boilerplate (order does not matter)COMMENT
MEDIUMhack/perfscale-kube-burner-test.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/manifests.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/build-go.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/lint-newcirros-deprecation.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/sync-kubevirtci-stable-provider.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/bazel-build.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/go-test-cache.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/perfscale-tests.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/config-kubevirtci.sh2# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/go-fix.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/virt-template/push-images.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/prom-rule-ci/verify-rules.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/prom-metric-linter/metrics_collector.sh4# This file is part of the KubeVirt projectCOMMENT
MEDIUMhack/prom-metric-linter/metric_name_linter.sh4# This file is part of the KubeVirt projectCOMMENT
MEDIUMkubevirtci/cluster-up/cli.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMkubevirtci/cluster-up/kubectl.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMkubevirtci/cluster-up/check.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMkubevirtci/cluster-up/kubeconfig.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUM…i/cluster-up/cluster/dra-cpu/install_dra_driver_cpu.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMkubevirtci/cluster-up/cluster/kind-1.37/provider.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUM…ster-up/cluster/vfio-gpu/install_dra_example_driver.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUM…tci/cluster-up/cluster/vfio-gpu/setup-fake-pci-host.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUM…tci/cluster-up/cluster/vfio-gpu/setup-host-vfio-pci.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMkubevirtci/cluster-up/cluster/kind/check-cluster-up.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMkubevirtci/cluster-up/cluster/kind/bump-kind.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMkubevirtci/cluster-up/cluster/kind-ovn/provider.sh2# This file is part of the KubeVirt projectCOMMENT
MEDIUMkubevirtci/cluster-up/cluster/kind-ovn/install-ovn.sh3# This file is part of the KubeVirt projectCOMMENT
MEDIUMkubevirtci/hack/bump-cdi.sh3# This file is part of the KubeVirt projectCOMMENT
73 more matches not shown…
Over-Commented Block362 hits · 317 pts
SeverityFileLineSnippetContext
LOWcmd/container-disk-v2alpha/main.c1#include <errno.h>COMMENT
LOWcmd/virt-launcher-monitor/main.c21COMMENT
LOW…t-launcher-monitor/virt_launcher_monitor_suite_test.go1// This file is part of the KubeVirt projectCOMMENT
LOWcmd/virt-launcher-monitor/main_test.go1// This file is part of the KubeVirt projectCOMMENT
LOWtools/analyzers/banncheck/config/config.go1// Copyright 2020 Google LLCCOMMENT
LOWtools/analyzers/banncheck/banncheck/banned_api.go1// Copyright 2020 Google LLCCOMMENT
LOW…rt.io/client-go/externalsnapshotter/scheme/register.go41//COMMENT
LOW…virt.io/client-go/externalsnapshotter/fake/register.go41//COMMENT
LOW…o/networkattachmentdefinitionclient/scheme/register.go41//COMMENT
LOW…-go/networkattachmentdefinitionclient/fake/register.go41//COMMENT
LOWstaging/src/kubevirt.io/client-go/kubecli/kubecli.go141//COMMENT
LOWstaging/src/kubevirt.io/client-go/kubecli/kubecli.go161//COMMENT
LOWstaging/src/kubevirt.io/client-go/kubecli/kubecli.go181//COMMENT
LOW…irt.io/client-go/prometheusoperator/scheme/register.go41//COMMENT
LOW…evirt.io/client-go/prometheusoperator/fake/register.go41//COMMENT
LOW…client-go/containerizeddataimporter/scheme/register.go41// AddToScheme adds all types of this clientset into the given scheme. This allows compositionCOMMENT
LOW…o/client-go/containerizeddataimporter/fake/register.go41// AddToScheme adds all types of this clientset into the given scheme. This allows compositionCOMMENT
LOW…/src/kubevirt.io/client-go/kubevirt/scheme/register.go61 snapshotv1alpha1.AddToScheme,COMMENT
LOW…virt/typed/core/v1/virtualmachineinstance_expansion.go261 // With metav1.ObjectMeta added the openapi validation fails on pkg/virt-api/api.go:310COMMENT
LOW…ng/src/kubevirt.io/client-go/kubevirt/fake/register.go61 snapshotv1alpha1.AddToScheme,COMMENT
LOWstaging/src/kubevirt.io/api/snapshot/v1beta1/types.go61)COMMENT
LOWstaging/src/kubevirt.io/api/snapshot/v1beta1/types.go81COMMENT
LOWstaging/src/kubevirt.io/api/snapshot/v1beta1/types.go441 VolumeOwnershipPolicy *VolumeOwnershipPolicy `json:"volumeOwnershipPolicy,omitempty"`COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go101 Domain DomainSpec `json:"domain"`COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go121 // TopologySpreadConstraints describes how a group of VMIs will be spread across a given topologyCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go141 StartStrategy *StartStrategy `json:"startStrategy,omitempty"`COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go161 // +optionalCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go181 // configuration based on DNSPolicy.COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go201 // +optionalCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go221 // feature-gate CrossArchitectureVirtualization is enabled.COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go241 // VolumeClaimTemplate is the template the controller uses to create PVCs itCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go261COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go321type VirtualMachineInstanceStatus struct {COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go341 // Represents the method using which the vmi can be migrated: live migration or block migrationCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go361 ActivePods map[types.UID]string `json:"activePods,omitempty"`COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go381 FSFreezeStatus string `json:"fsFreezeStatus,omitempty"`COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go401COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go421 // +optionalCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go441 VolumeName string `json:"volumeName"`COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go841 // Reason means that VMI is not live migratable because it uses IBM Secure ExecutionCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go1081 // +listType=atomicCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go1121 // Indicates the migration completedCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go1261 FuncTestMemoryHotplugFailAnnotation string = "kubevirt.io/func-test-memory-hotplug-fail"COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go1281 MigrationNameLabel string = "kubevirt.io/migrationName"COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go1301 NodeSchedulable string = "kubevirt.io/schedulable"COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go1361 // Used on VirtualMachineInstance.COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go1521 // MigrationTargetReadyTimestamp indicates the time at which the target nodeCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go1541 // happens.COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go1561 // At most one resource of each type may carry this label; duplicates withinCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go1581 // DisablePCIHole64 indicates that the 64-Bit PCI hole should be disabled on a VirtualMachineInstance.COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go1601 // access to cluster services otherwise blocked by the strict network policy (NP).COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go1621 // - key: np.kubevirt.io/allow-access-cluster-servicesCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go2061 },COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go2141 // Deprecated: VirtualMachineInstance field "Running" is now deprecated, please use RunStrategy instead.COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go2201 // VirtualMachineStatusCrashLoopBackOff indicates that the virtual machine is currently in a crash loop waiting to be rCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go2241COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go2261 // e.g. stop a specific VMI then start a new one.COMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go2281 // +optionalCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go2301 // updates related to the volumeUpdateStrategyCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go2381 // BackupName is the name of the executed backupCOMMENT
302 more matches not shown…
Fake / Example Data13 hits · 16 pts
SeverityFileLineSnippetContext
LOWtools/csv-generator/csv-generator.go44 namespace := flag.String("namespace", "placeholder", "Namespace to use.")CODE
LOWtools/manifest-templator/manifest-templator.go92 csvNamespace := flag.String("csv-namespace", "placeholder", "")CODE
LOW…lidating-webhook/admitters/vmi-create-admitter_test.go584 map[string]string{v1.IgnitionAnnotation: "fake-data"},CODE
LOW…lidating-webhook/admitters/vmi-create-admitter_test.go607 map[string]string{v1.IgnitionAnnotation: "fake-data"},CODE
LOW⚡pkg/virtctl/ssh/ssh_test.go79 fakeName = "fake-name"CODE
LOW⚡pkg/virtctl/ssh/ssh_test.go87 Entry("with SSH username", ssh.SSHOptions{SSHUsername: "testuser"}, "testuser@fake-kind.fake-name.fake-ns"),CODE
LOW⚡pkg/virtctl/ssh/ssh_test.go88 Entry("without SSH username", ssh.SSHOptions{}, "fake-kind.fake-name.fake-ns"),CODE
LOW⚡pkg/virtctl/scp/scp_test.go66 Name: "fake-name",CODE
LOW⚡pkg/virtctl/scp/scp_test.go74 Expect(scpTarget[0]).To(Equal("testuser@fake-kind.fake-name.fake-ns:/remote/fakepath"))CODE
LOW⚡pkg/virtctl/scp/scp_test.go80 Expect(scpTarget[0]).To(Equal("fake-kind.fake-name.fake-ns:/remote/fakepath"))CODE
LOWpkg/virtctl/scp/scp_test.go105 Expect(scpTarget[0]).To(Equal("fake-kind.fake-name.fake-ns:/remote/fakepath"))CODE
LOWpkg/virtctl/scp/scp_test.go113 Expect(scpTarget[1]).To(Equal("fake-kind.fake-name.fake-ns:/remote/fakepath"))CODE
LOWpkg/virtctl/create/clone/clone_test.go60 flags := addFlag(nil, virtctlclone.SourceNameFlag, "fake-name")CODE
Redundant / Tautological Comments9 hits · 14 pts
SeverityFileLineSnippetContext
LOWhack/version.sh54 # Check if the tree is dirty. default to dirtyCOMMENT
LOWhack/gen-client-python/deploy.sh34# Check if there are changes to commit, ignoring api_client.py & configuration.pyCOMMENT
LOWhack/prom-metric-linter/metric_name_linter.sh57# Check if the linter found any errors with the metrics names, if yes print and failCOMMENT
LOW…luster-up/cluster/k8s-1.35/sriov-node/configure_vfs.sh10 # Check if a VF is bound to a different driverCOMMENT
LOW…luster-up/cluster/k8s-1.35/sriov-node/configure_vfs.sh15 # Check if VF already configured with supported driverCOMMENT
LOW…luster-up/cluster/k8s-1.36/sriov-node/configure_vfs.sh10 # Check if a VF is bound to a different driverCOMMENT
LOW…luster-up/cluster/k8s-1.36/sriov-node/configure_vfs.sh15 # Check if VF already configured with supported driverCOMMENT
LOW…luster-up/cluster/k8s-1.37/sriov-node/configure_vfs.sh10 # Check if a VF is bound to a different driverCOMMENT
LOW…luster-up/cluster/k8s-1.37/sriov-node/configure_vfs.sh15 # Check if VF already configured with supported driverCOMMENT
Structural Annotation Overuse8 hits · 12 pts
SeverityFileLineSnippetContext
LOWtests/console/console.go82// NOTE: This functions heritage limitations from `ExpectBatchWithValidatedSend` refer to it to check them.COMMENT
LOWtests/console/console.go91// NOTE: This functions inherits limitations from `ExpectBatchWithValidatedSend`, refer to it for more information.COMMENT
LOWdocs/debugging.md94### Step 1 - recompile go code, build and publish container imageCOMMENT
LOWdocs/debugging.md103### Step 2 - modify workload manifest to consume debug container image and execute delveCOMMENT
LOWdocs/debugging.md184### Step 3 - port-forward a local port to the target pod designated debug portCOMMENT
LOWdocs/debugging.md187### Step 4 - connect to localhost:2345 with your debuggerCOMMENT
LOWpkg/storage/snapshot/restore.go755 // Step 1: Remove backend label from the original backend PVC, if it still existsCOMMENT
LOWpkg/storage/snapshot/restore.go771 // Step 2: Update the restore PVC with backend labelsCOMMENT
AI Slop Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMstaging/src/kubevirt.io/api/core/v1/types.go720// migration state is not nil. Essentially this happens after the migration resource is created.COMMENT
MEDIUMpkg/virt-config/featuregate/active.go86 // These backups leverage libvirt's native backup capabilities, providing a storage-agnostic solution.COMMENT
MEDIUM…rt-launcher/virtwrap/converter/storage/configurator.go117 // we don't want to allocate an auto thread pool larger than what a VM can utilizeCOMMENT
Example Usage Blocks6 hits · 9 pts
SeverityFileLineSnippetContext
LOWhack/oci-import.sh10# Usage:COMMENT
LOWhack/go-test-cache.sh25# Usage:COMMENT
LOW…/observability/examples/kubevirt-vm-labels-config.yaml1# Usage:COMMENT
LOW…ci/cluster-up/cluster/kind/configure-registry-proxy.sh16# Usage example:COMMENT
LOWautomation/repeated_test.sh229# How to use:COMMENT
LOWautomation/test.sh555# How to use:COMMENT
Hyper-Verbose Identifiers7 hits · 7 pts
SeverityFileLineSnippetContext
LOWautomation/label-approved-veps.py66def extract_enhancements_references(pr_body):CODE
LOWautomation/label-approved-veps.py131def _is_item_field_tracked_status(field_value_node):CODE
LOWautomation/label-approved-veps.py144def _check_item_fields_for_tracked_status(field_value_nodes):CODE
LOWautomation/label-approved-veps.py148def _extract_issue_if_tracked(item_node):CODE
LOWautomation/label-approved-veps.py183def _extract_page_data_from_gql_result(result, project_number_for_logging):CODE
LOWautomation/label-approved-veps.py209def get_tracked_enhancement_issues_from_project(project_number):CODE
LOWpkg/network/dhcp/server/server_test.go103 Context("function convertSearchDomainsToBytes(searchDomainStrings []string) ([]byte, error)", func() {CODE
Unused Imports4 hits · 4 pts
SeverityFileLineSnippetContext
LOW…client-python/hard-coded-modules/v1_interface_slirp.py15CODE
LOW…client-python/hard-coded-modules/v1_interface_slirp.py16CODE
LOW…lient-python/hard-coded-modules/v1_interface_bridge.py15CODE
LOW…lient-python/hard-coded-modules/v1_interface_bridge.py16CODE
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWstaging/src/kubevirt.io/client-go/log/log.go410 //TODO: implement proper behavior for unsupported GA commandsCOMMENT
LOWstaging/src/kubevirt.io/api/core/v1/types.go2569 // TODO: implement a realistic TCP lifecycle hookCOMMENT
Decorative Section Separators1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMhack/version.sh20# -----------------------------------------------------------------------------COMMENT
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippetContext
LOWpkg/storage/snapshot/restore.go755 // Step 1: Remove backend label from the original backend PVC, if it still existsCOMMENT
LOWpkg/storage/snapshot/restore.go771 // Step 2: Update the restore PVC with backend labelsCOMMENT
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOW…client-python/hard-coded-modules/v1_interface_slirp.py40CODE
LOW…lient-python/hard-coded-modules/v1_interface_bridge.py40CODE
Excessive Try-Catch Wrapping1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMautomation/label-approved-veps.py249 print(f"Error parsing project URL '{TARGET_PROJECT_URL}':\n{e}")CODE