AI Slop Code Risk Monitor

cloudnative-pg/cloudnative-pg

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

The most popular Kubernetes Operator for PostgreSQL.

1.4 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for cloudnative-pg/cloudnative-pg, a Go project with 9,519 GitHub stars. SynthScan examined 572,248 lines of code across 1421 source files, recording 476 pattern matches distributed across 16 syntactic categories. The legacy adjusted pattern signal is 1.4 (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.

1.4
Adjusted Signal
1.4
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
9.5K
Stars
Go
Language
572.2K
Lines of Code
1.4K
Files
476
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.0/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.6/100 · LOW

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

Agent Over-Engineering Ratio 1.1/100 · LOW

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

PR Review Velocity Impact 6.7/100 · LOW

Which changes need focused human review? 476 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 7HIGH 33MEDIUM 44LOW 392

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 476 distinct pattern matches across 16 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.

Over-Commented Block316 hits · 278 pts
SeverityFileLineSnippetContext
LOWdocker-bake.hcl1#COMMENT
LOW.gitvote.yml1# GitVote configuration for cloudnative-pg/cloudnative-pg.COMMENT
LOWconfig/crd/kustomization.yaml21# patches here are for enabling the conversion webhook for each CRDCOMMENT
LOWconfig/crd/kustomization.yaml41# patches here are for enabling the CA injection for each CRDCOMMENT
LOWconfig/crd/kustomization.yaml61# name: databases.postgresql.cnpg.ioCOMMENT
LOWconfig/default/kustomization.yaml41 version: v1COMMENT
LOWconfig/default/kustomization.yaml61# group: cert-manager.ioCOMMENT
LOWconfig/default/kustomization.yaml81# kind: ServiceCOMMENT
LOWtests/config/config.go41// specify one.COMMENT
LOWtests/internal/asserts/doc.go21// Ginkgo specs in tests/e2e. Each topic lives in its own subpackageCOMMENT
LOWtests/utils/namespaces/namespace.go101 }COMMENT
LOWtests/utils/forwardconnection/forwardconnection.go41)COMMENT
LOWtests/e2e/eviction_test.go41COMMENT
LOWtests/e2e/upgrade_plugin_barman_cloud_test.go541 // Upgrading to the new release will trigger aCOMMENT
LOWtests/e2e/initdb_test.go201 }COMMENT
LOWtests/e2e/disk_space_test.go181 })COMMENT
LOWtests/e2e/certificates_test.go41COMMENT
LOWtests/e2e/failure_domain_test.go41COMMENT
LOWinternal/webhook/v1/pooler_webhook.go261// Without a user-supplied clientTLSSecret the metrics server falls back toCOMMENT
LOWinternal/cmd/plugin/status/status.go881 status.AddLine(columns...)COMMENT
LOWinternal/cmd/plugin/report/operator_report.go121// operator implements the "report operator" subcommandCOMMENT
LOWinternal/cmd/manager/walrestore/cmd.go141 if err != nil {COMMENT
LOWinternal/cmd/manager/walrestore/cmd.go341 // so it is not derivable from the cluster spec here) and caches it for us.COMMENT
LOWinternal/cmd/manager/controller/controller.go141 // Helm stores each release revision as a Secret containing the fullCOMMENT
LOWinternal/cmd/manager/controller/controller.go401 return errCOMMENT
LOWinternal/cmd/manager/instance/run/osdb.go21COMMENT
LOWinternal/cmd/manager/instance/run/lifecycle/run.go41 contextLogger := log.FromContext(ctx)COMMENT
LOWinternal/cmd/manager/instance/run/lifecycle/run.go61 // permissions and user maps to start it.COMMENT
LOWinternal/cmd/manager/instance/run/lifecycle/reaper.go41// the following reasons:COMMENT
LOW…ternal/cmd/manager/instance/run/lifecycle/lifecycle.go81 // will contain any error returned by the process.COMMENT
LOWinternal/cmd/manager/instance/run/lease/stepdown.go61// Update implements resourcelock.Interface.COMMENT
LOWinternal/cmd/manager/instance/run/lease/stepdown.go81// otherwise delay the step-down by the size of the step. The replicas timeCOMMENT
LOWinternal/cmd/manager/instance/run/lease/stepdown.go101// preAcquire takes over the retries.COMMENT
LOWinternal/cmd/manager/instance/run/lease/stepdown.go181COMMENT
LOWinternal/cmd/manager/instance/run/lease/runnable.go41const (COMMENT
LOWinternal/cmd/manager/instance/run/lease/runnable.go61 defaultReleasedLeaseDuration = 1 * time.SecondCOMMENT
LOWinternal/cmd/manager/instance/run/lease/runnable.go141 // detect a holder that has stopped renewing without comparing against theCOMMENT
LOWinternal/cmd/manager/instance/run/lease/runnable.go281 r.cancelElector()COMMENT
LOWinternal/cmd/manager/instance/run/lease/runnable.go301// lease held instead; the Identity is the pod name, which the replacementCOMMENT
LOWinternal/cmd/manager/instance/run/lease/runnable.go381 // leaseUnverifiable means the lease could not be read (e.g. the API server isCOMMENT
LOWinternal/cmd/manager/instance/run/lease/runnable.go421// released lease (empty holder) is taken immediately. A lease still namingCOMMENT
LOWinternal/cmd/manager/instance/run/lease/runnable.go601 timer.Reset(r.config.RetryPeriod)COMMENT
LOWinternal/cmd/manager/instance/run/lease/runnable.go621// other pod has promoted. We detect this by reading the lease after le.RunCOMMENT
LOWinternal/cmd/manager/instance/run/lease/runnable.go641// either: the operator deliberately skips switchover while the current primaryCOMMENT
LOWinternal/configuration/configuration.go81COMMENT
LOWinternal/configuration/configuration.go141 // This is the lifetime of the generated certificatesCOMMENT
LOWinternal/configuration/configuration.go161 // of instances in the same PostgreSQL cluster.COMMENT
LOWinternal/management/controller/instance_startup.go61 switch {COMMENT
LOWinternal/management/controller/instance_token.go41 // have prevented this to happen. If we're here, two thingsCOMMENT
LOWinternal/management/controller/instance_controller.go381COMMENT
LOWinternal/management/controller/instance_controller.go1261 clusterstatus.SetPhase(phase, phaseReason),COMMENT
LOWinternal/management/controller/instance_controller.go1641// adjusting the necessary signal files and configuration, and thenCOMMENT
LOWinternal/controller/cluster_controller.go141// +kubebuilder:rbac:groups=admissionregistration.k8s.io,resources=validatingwebhookconfigurations,verbs=get;patchCOMMENT
LOWinternal/controller/cluster_controller.go601 // register PhaseHealthy as the LAST status mutation. See #8582.COMMENT
LOWinternal/controller/cluster_controller.go621// the expected steady state rather than a stale probe to wait out.COMMENT
LOWinternal/controller/cluster_controller.go1161 //COMMENT
LOWinternal/controller/cluster_controller.go1381 &apiv1.DatabaseRole{},COMMENT
LOWinternal/controller/cluster_create.go1141) (ctrl.Result, error) {COMMENT
LOWinternal/controller/cluster_create.go1201 return ctrl.Result{RequeueAfter: time.Second}, ErrNextLoopCOMMENT
LOWinternal/controller/cluster_create.go1521 return ctrl.Result{}, errCOMMENT
256 more matches not shown…
Cross-File Repetition20 hits · 100 pts
SeverityFileLineSnippetContext
HIGHreleases/cnpg-1.22.0.yaml0type: string resourcefieldref: description: 'selects a resource of the container: only resources limits and requests (liSTRING
HIGHreleases/cnpg-1.22.1.yaml0type: string resourcefieldref: description: 'selects a resource of the container: only resources limits and requests (liSTRING
HIGHreleases/cnpg-1.20.1.yaml0type: string resourcefieldref: description: 'selects a resource of the container: only resources limits and requests (liSTRING
HIGHreleases/cnpg-1.20.0.yaml0type: string resourcefieldref: description: 'selects a resource of the container: only resources limits and requests (liSTRING
HIGHreleases/cnpg-1.23.2.yaml0type: string resourcefieldref: description: 'selects a resource of the container: only resources limits and requests (liSTRING
HIGHreleases/cnpg-1.23.3.yaml0type: string resourcefieldref: description: 'selects a resource of the container: only resources limits and requests (liSTRING
HIGHreleases/cnpg-1.19.0.yaml0type: string resourcefieldref: description: 'selects a resource of the container: only resources limits and requests (liSTRING
HIGHreleases/cnpg-1.23.0.yaml0type: string resourcefieldref: description: 'selects a resource of the container: only resources limits and requests (liSTRING
HIGHreleases/cnpg-1.23.1.yaml0type: string resourcefieldref: description: 'selects a resource of the container: only resources limits and requests (liSTRING
HIGHreleases/cnpg-1.19.1.yaml0type: string resourcefieldref: description: 'selects a resource of the container: only resources limits and requests (liSTRING
HIGHreleases/cnpg-1.21.0.yaml0type: string resourcefieldref: description: 'selects a resource of the container: only resources limits and requests (liSTRING
HIGHreleases/cnpg-1.22.2.yaml0type: string resourcefieldref: description: 'selects a resource of the container: only resources limits and requests (liSTRING
HIGHreleases/cnpg-1.20.2.yaml0type: string resourcefieldref: description: 'selects a resource of the container: only resources limits and requests (liSTRING
HIGHreleases/cnpg-1.18.0.yaml0type: string resourcefieldref: description: 'selects a resource of the container: only resources limits and requests (liSTRING
HIGHreleases/cnpg-1.18.1.yaml0type: string resourcefieldref: description: 'selects a resource of the container: only resources limits and requests (liSTRING
HIGHreleases/cnpg-1.17.1.yaml0type: string resourcefieldref: description: 'selects a resource of the container: only resources limits and requests (liSTRING
HIGHreleases/cnpg-1.17.0.yaml0type: string resourcefieldref: description: 'selects a resource of the container: only resources limits and requests (liSTRING
HIGHreleases/cnpg-1.16.0.yaml0type: string resourcefieldref: description: 'selects a resource of the container: only resources limits and requests (liSTRING
HIGHreleases/cnpg-1.15.1.yaml0type: string resourcefieldref: description: 'selects a resource of the container: only resources limits and requests (liSTRING
HIGHreleases/cnpg-1.15.0.yaml0type: string resourcefieldref: description: 'selects a resource of the container: only resources limits and requests (liSTRING
Self-Referential Comments26 hits · 82 pts
SeverityFileLineSnippetContext
MEDIUMconfig/crd/kustomizeconfig.yaml1# This file is for teaching kustomize how to substitute name and namespace reference in CRDCOMMENT
MEDIUMinternal/cmd/plugin/fio/fio.go55 # Create a fio job with default values.COMMENT
MEDIUMinternal/cmd/plugin/fio/fio.go61 # Create a job with given values and clusterName "cluster-example"COMMENT
MEDIUMinternal/cmd/plugin/pgadmin/cmd.go40 # Create a pgadmin job with default values.COMMENT
MEDIUM⚡internal/cmd/plugin/pgbench/pgbench.go57 # Create a pgbench job with default values and [cluster] "cluster-example"COMMENT
MEDIUM⚡internal/cmd/plugin/pgbench/pgbench.go64 # Create a job with given values and [cluster] "cluster-example"COMMENT
MEDIUM⚡internal/cmd/plugin/pgbench/pgbench.go68 # Create a job with given values on [cluster] "cluster-example". The job will be cleaned after 10 minutes.COMMENT
MEDIUMhack/release.sh127# Create a new branch for the release that originates the PRCOMMENT
MEDIUMhack/e2e/generate-e2e-config.sh22# This file is meant to be sourced. It defines generate_e2e_config, whichCOMMENT
MEDIUMhack/testing-tools/k8s-engines/kind/setup.sh81 # Create the apiserver audit log directory beforehand, otherwise it will beCOMMENT
MEDIUMhack/testing-tools/k8s-engines/kind/setup.sh144 # Create the clusterCOMMENT
MEDIUMhack/testing-tools/common/10-config.sh21# This file defines global, configurable constants and dependency versions.COMMENT
MEDIUMhack/testing-tools/common/10-config.sh54# Define the operator source and deployment method.COMMENT
MEDIUMhack/testing-tools/common/10-config.sh83# Define the full array of helper images used by load-helper-imagesCOMMENT
MEDIUMhack/testing-tools/common/40-utils-registry.sh21# This file contains functions for managing the local Docker registry and builder.COMMENT
MEDIUMhack/testing-tools/common/50-utils-images-load.sh21# This file contains the generic logic for loading images into the local cluster.COMMENT
MEDIUMhack/testing-tools/common/20-utils-k8s.sh21# This file contains functions for interacting with the Kubernetes API using $K8S_CLI.COMMENT
MEDIUMhack/testing-tools/common/20-utils-k8s.sh400 ## Create a temporary file for the modified plugin deployment. This updates the image tag.COMMENT
MEDIUM.github/workflows/continuous-delivery.yml817 # Create an individual artifact for each E2E test, which will be used toCOMMENT
MEDIUM.github/workflows/continuous-delivery.yml1019 - # Create an individual artifact for each E2E testCODE
MEDIUM.github/workflows/continuous-delivery.yml1363 # Create an individual artifact for each E2E test, which will be used toCOMMENT
MEDIUM.github/workflows/continuous-delivery.yml1739 # Create an individual artifact for each E2E test, which will be used toCOMMENT
MEDIUM.github/workflows/continuous-delivery.yml2096 # Create an individual artifact for each E2E test, which will be used toCOMMENT
MEDIUM.github/workflows/continuous-delivery.yml2462 # Create an individual artifact for each E2E test, which will be used toCOMMENT
MEDIUM.github/workflows/release-pr.yml1# Create a PR for a release when a commit is pushed on a release/v* branchCOMMENT
MEDIUM.github/workflows/release-tag.yml1# Create a tag when a PR on a release/v* branch is mergedCOMMENT
Hallucination Indicators7 hits · 70 pts
SeverityFileLineSnippetContext
CRITICALtests/internal/asserts/pgbouncer/pgbouncer.go93 g.Expect(deployment.Spec.Strategy.RollingUpdate.MaxSurge.String()).To(BeEquivalentTo(expectedMaxSurge))CODE
CRITICALtests/internal/asserts/pgbouncer/pgbouncer.go94 g.Expect(deployment.Spec.Strategy.RollingUpdate.MaxUnavailable.String()).To(BeEquivalentTo(expectedMaxUnavailable))CODE
CRITICALinternal/cmd/plugin/status/status.go730 fullStatus.Cluster.Spec.ReplicationSlots.HighAvailability.GetEnabled()CODE
CRITICALapi/v1/cluster_funcs.go952 return cluster.Spec.Bootstrap.InitDB.PostInitApplicationSQLRefs.HasElements()CODE
CRITICALapi/v1/cluster_funcs.go967 return cluster.Spec.Bootstrap.InitDB.PostInitTemplateSQLRefs.HasElements()CODE
CRITICALapi/v1/cluster_funcs.go982 return cluster.Spec.Bootstrap.InitDB.PostInitSQLRefs.HasElements()CODE
CRITICALpkg/management/postgres/restore.go641 cluster.Spec.Bootstrap.Recovery.RecoveryTarget.BuildPostgresOptions())CODE
Docstring Block Structure13 hits · 65 pts
SeverityFileLineSnippetContext
HIGHreleases/cnpg-1.22.0.yaml3392 type: string resourceFieldRef: STRING
HIGHreleases/cnpg-1.20.1.yaml3006 type: string resourceFieldRef: STRING
HIGHreleases/cnpg-1.20.0.yaml2942 type: string resourceFieldRef: STRING
HIGHreleases/cnpg-1.22.1.yaml3646 type: string resourceFieldRef: STRING
HIGHreleases/cnpg-1.23.2.yaml4246 type: string resourceFieldRef: STRING
HIGHreleases/cnpg-1.23.3.yaml4246 type: string resourceFieldRef: STRING
HIGHreleases/cnpg-1.19.0.yaml2825 type: string resourceFieldRef: STRING
HIGHreleases/cnpg-1.23.0.yaml4148 type: string resourceFieldRef: STRING
HIGHreleases/cnpg-1.23.1.yaml4148 type: string resourceFieldRef: STRING
HIGHreleases/cnpg-1.19.1.yaml2836 type: string resourceFieldRef: STRING
HIGHreleases/cnpg-1.21.0.yaml3109 type: string resourceFieldRef: STRING
HIGHreleases/cnpg-1.22.2.yaml3982 type: string resourceFieldRef: STRING
HIGHreleases/cnpg-1.20.2.yaml3013 type: string resourceFieldRef: STRING
Verbosity Indicators30 hits · 54 pts
SeverityFileLineSnippetContext
LOWtests/e2e/rolling_update_test.go89 // We need to check if a pod is ready, otherwise weCOMMENT
LOWinternal/cmd/plugin/install/generate.go249 The document is a YAML file that contains a single Kubernetes resource. We need to check if that resource isCODE
LOWinternal/cmd/manager/walrestore/cmd.go178 // Step 1: check if this WAL file is not already in the spoolCOMMENT
LOWinternal/cmd/manager/walrestore/cmd.go191 // Step 2: return error if the end-of-wal-stream flag is set.COMMENT
LOWinternal/cmd/manager/walrestore/cmd.go204 // Step 3: gather the WAL files names to restore. If the required file isn't a regular WAL, we download it directly.COMMENT
LOWinternal/cmd/manager/walrestore/cmd.go216 // Step 4: download the WAL files into the required placeCOMMENT
LOWinternal/cmd/manager/walrestore/cmd.go227 // Step 5: set end-of-wal-stream flag if any regular WAL download job returned file-not-foundCOMMENT
LOWinternal/cmd/manager/instance/restoresnapshot/cmd.go68 // Step 1: build the managerCOMMENT
LOWinternal/cmd/manager/instance/restoresnapshot/cmd.go89 // Step 2: add the restore process to the managerCOMMENT
LOWinternal/cmd/manager/instance/restoresnapshot/cmd.go120 // Step 3: start everythingCOMMENT
LOWinternal/cmd/manager/instance/restore/cmd.go64 // Step 1: build the managerCOMMENT
LOWinternal/cmd/manager/instance/restore/cmd.go85 // Step 2: add the restore process to the managerCOMMENT
LOWinternal/cmd/manager/instance/restore/cmd.go99 // Step 3: start everythingCOMMENT
LOWinternal/controller/replicas_quorum.go75 // Step 1: coherence check of the synchrouous replication informationCOMMENT
LOW⚡internal/controller/replicas_quorum.go88 // Step 2: detect promotable replicasCOMMENT
LOW⚡internal/controller/replicas_quorum.go96 // Step 3: evaluate quorum check algorithmCOMMENT
LOWinternal/controller/backup_controller.go904 // Step 1: Elect the target pod based on backup target policyCOMMENT
LOW⚡pkg/specs/pods.go116 // Step 1: detect changes in the envFrom sectionCOMMENT
LOW⚡pkg/specs/pods.go123 // Step 2: detect changes in the env sectionCOMMENT
LOWpkg/management/postgres/pidfile.go121 // The PID file is existing. We need to check if it is staleCOMMENT
LOW⚡pkg/management/postgres/archiver/archiver.go206 // Step 1: Check if the archive location is safe to perform archivingCOMMENT
LOW⚡pkg/management/postgres/archiver/archiver.go213 // Step 2: check if this WAL file has not been already archivedCOMMENT
LOWpkg/management/postgres/archiver/archiver.go227 // Step 3: gather the WAL files names to archiveCOMMENT
LOWpkg/management/postgres/archiver/archiver.go248 // Step 5: archive the WAL files in parallelCOMMENT
LOW⚡pkg/reconciler/backup/volumesnapshot/reconciler.go211 // Step 1: backup preparation.COMMENT
LOW⚡pkg/reconciler/backup/volumesnapshot/reconciler.go219 // Step 2: create snapshotCOMMENT
LOW⚡pkg/reconciler/backup/volumesnapshot/reconciler.go232 // Step 3: wait for snapshots to be provisionedCOMMENT
LOW⚡pkg/reconciler/backup/volumesnapshot/reconciler.go237 // Step 4: backup finalization.COMMENT
LOW⚡pkg/reconciler/backup/volumesnapshot/reconciler.go249 // Step 5: wait for snapshots to be ready to useCOMMENT
LOW⚡pkg/reconciler/backup/volumesnapshot/reconciler.go254 // Step 6: set backup as completed, adds remaining metadataCOMMENT
Structural Annotation Overuse29 hits · 52 pts
SeverityFileLineSnippetContext
LOWinternal/cmd/manager/walrestore/cmd.go178 // Step 1: check if this WAL file is not already in the spoolCOMMENT
LOWinternal/cmd/manager/walrestore/cmd.go191 // Step 2: return error if the end-of-wal-stream flag is set.COMMENT
LOWinternal/cmd/manager/walrestore/cmd.go204 // Step 3: gather the WAL files names to restore. If the required file isn't a regular WAL, we download it directly.COMMENT
LOWinternal/cmd/manager/walrestore/cmd.go216 // Step 4: download the WAL files into the required placeCOMMENT
LOWinternal/cmd/manager/walrestore/cmd.go227 // Step 5: set end-of-wal-stream flag if any regular WAL download job returned file-not-foundCOMMENT
LOWinternal/cmd/manager/instance/restoresnapshot/cmd.go68 // Step 1: build the managerCOMMENT
LOWinternal/cmd/manager/instance/restoresnapshot/cmd.go89 // Step 2: add the restore process to the managerCOMMENT
LOWinternal/cmd/manager/instance/restoresnapshot/cmd.go120 // Step 3: start everythingCOMMENT
LOWinternal/cmd/manager/instance/restore/cmd.go64 // Step 1: build the managerCOMMENT
LOWinternal/cmd/manager/instance/restore/cmd.go85 // Step 2: add the restore process to the managerCOMMENT
LOWinternal/cmd/manager/instance/restore/cmd.go99 // Step 3: start everythingCOMMENT
LOWinternal/controller/replicas_quorum.go75 // Step 1: coherence check of the synchrouous replication informationCOMMENT
LOW⚡internal/controller/replicas_quorum.go88 // Step 2: detect promotable replicasCOMMENT
LOW⚡internal/controller/replicas_quorum.go96 // Step 3: evaluate quorum check algorithmCOMMENT
LOWinternal/controller/backup_controller.go904 // Step 1: Elect the target pod based on backup target policyCOMMENT
LOWdocs/src/logical_replication.md400### Step 1: Setting Up the Publisher (`freddie`)COMMENT
LOWdocs/src/logical_replication.md455### Step 2: Setting Up the Subscriber (`king`)COMMENT
LOW⚡pkg/specs/pods.go116 // Step 1: detect changes in the envFrom sectionCOMMENT
LOW⚡pkg/specs/pods.go123 // Step 2: detect changes in the env sectionCOMMENT
LOW⚡pkg/management/postgres/archiver/archiver.go206 // Step 1: Check if the archive location is safe to perform archivingCOMMENT
LOW⚡pkg/management/postgres/archiver/archiver.go213 // Step 2: check if this WAL file has not been already archivedCOMMENT
LOWpkg/management/postgres/archiver/archiver.go227 // Step 3: gather the WAL files names to archiveCOMMENT
LOWpkg/management/postgres/archiver/archiver.go248 // Step 5: archive the WAL files in parallelCOMMENT
LOW⚡pkg/reconciler/backup/volumesnapshot/reconciler.go211 // Step 1: backup preparation.COMMENT
LOW⚡pkg/reconciler/backup/volumesnapshot/reconciler.go219 // Step 2: create snapshotCOMMENT
LOW⚡pkg/reconciler/backup/volumesnapshot/reconciler.go232 // Step 3: wait for snapshots to be provisionedCOMMENT
LOW⚡pkg/reconciler/backup/volumesnapshot/reconciler.go237 // Step 4: backup finalization.COMMENT
LOW⚡pkg/reconciler/backup/volumesnapshot/reconciler.go249 // Step 5: wait for snapshots to be ready to useCOMMENT
LOW⚡pkg/reconciler/backup/volumesnapshot/reconciler.go254 // Step 6: set backup as completed, adds remaining metadataCOMMENT
Modern AI Meta-Vocabulary12 hits · 35 pts
SeverityFileLineSnippetContext
MEDIUMconfig/olm-scorecard/kustomization.yaml16#+kubebuilder:scaffold:patchesJson6902COMMENT
MEDIUMconfig/crd/kustomization.yaml18# +kubebuilder:scaffold:crdkustomizeresourceCOMMENT
MEDIUMconfig/crd/kustomization.yaml38# +kubebuilder:scaffold:crdkustomizewebhookpatchCOMMENT
MEDIUMconfig/crd/kustomization.yaml70# +kubebuilder:scaffold:crdkustomizecainjectionpatchCOMMENT
MEDIUMtests/e2e/suite_test.go42 // +kubebuilder:scaffold:importsCOMMENT
MEDIUMinternal/scheme/scheme.go92 // +kubebuilder:scaffold:schemeCOMMENT
MEDIUMinternal/cmd/plugin/suite_test.go78 // +kubebuilder:scaffold:schemeCOMMENT
MEDIUMinternal/cmd/manager/controller/controller.go133 // In the default scaffold provided, the program ends immediately afterCOMMENT
MEDIUMinternal/cmd/manager/controller/controller.go294 // +kubebuilder:scaffold:builderCOMMENT
MEDIUMinternal/controller/suite_test.go43 // +kubebuilder:scaffold:importsCOMMENT
MEDIUMdocs/src/cloudnative-pg.v1.md1450| `type` _[SnapshotType](#snapshottype)_ | The import type. Can be `microservice` or `monolith`. | True | | Enum: [micrCODE
MEDIUMdocs/src/database_import.md78## The `microservice` typeCOMMENT
Decorative Section Separators5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMhack/testing-tools/k8s-engines/k3d/setup.sh43# --------------------------------------------------------COMMENT
MEDIUMhack/testing-tools/k8s-engines/k3d/setup.sh101# ---------------------------------------------------------------------------------COMMENT
MEDIUMhack/testing-tools/k8s-engines/kind/setup.sh43# --------------------------------------------------------COMMENT
MEDIUMhack/testing-tools/k8s-engines/kind/setup.sh184# ---------------------------------------------------------------------------------COMMENT
MEDIUMhack/testing-tools/common/00-paths.sh70# -----------------------------------------------COMMENT
Hyper-Verbose Identifiers6 hits · 8 pts
SeverityFileLineSnippetContext
LOW.github/e2e-matrix-generator.py221def build_pull_request_include_kind():CODE
LOW⚡.github/e2e-matrix-generator.py255def build_schedule_include_kind():CODE
LOW⚡.github/e2e-matrix-generator.py261def build_push_include_default(engine_version_list):CODE
LOW⚡.github/e2e-matrix-generator.py265def build_pull_request_include_default(engine_version_list):CODE
LOW⚡.github/e2e-matrix-generator.py271def build_main_include_default(engine_version_list):CODE
LOW⚡.github/e2e-matrix-generator.py277def build_schedule_include_default(engine_version_list):CODE
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWhack/testing-tools/k8s-engines/manage.sh41# Usage:COMMENT
LOWpkg/specs/services.go165// Example usage:COMMENT
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWhack/testing-tools/common/00-paths.sh64# Check if stdout is a terminal; if not, clear the codes to prevent output pollution.COMMENT
LOW.github/workflows/require-labels.yml1# Verify if a pull request contains the labels required to enable the merge button.COMMENT
Unused Imports3 hits · 3 pts
SeverityFileLineSnippetContext
LOW.github/postgres-versions-update.py21CODE
LOW.github/postgres-versions-update.py22CODE
LOW.github/generate-test-artifacts.py25CODE
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOW.github/postgres-versions-update.py59CODE
LOW.github/vpc_destroy.py92CODE
Excessive Try-Catch Wrapping2 hits · 2 pts
SeverityFileLineSnippetContext
MEDIUM.github/generate-test-artifacts.py177 print(f"Error: {e}")STRING
LOW.github/generate-test-artifacts.py294 except Exception as e:CODE
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOW.github/postgres-versions-update.py101 # make sure to update between two different names of the most recent version (it might be a release)COMMENT