AI Slop Code Risk Monitor

rook/rook

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

Storage Orchestration for Kubernetes

3.4 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for rook/rook, a Go project with 13,700 GitHub stars. SynthScan examined 306,058 lines of code across 1258 source files, recording 577 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 3.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.

3.4
Adjusted Signal
3.4
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
13.7K
Stars
Go
Language
306.1K
Lines of Code
1.3K
Files
577
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 9.6/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 5.7/100 · LOW

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

Agent Over-Engineering Ratio 1.8/100 · LOW

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

PR Review Velocity Impact 15.6/100 · LOW

Which changes need focused human review? 577 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 29HIGH 13MEDIUM 66LOW 469

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 577 distinct pattern matches across 19 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 Indicators29 hits · 355 pts
SeverityFileLineSnippetContext
CRITICALpkg/operator/ceph/cluster/cleanup.go122 {Name: sanitizeMethod, Value: cluster.Spec.CleanupPolicy.SanitizeDisks.Method.String()},CODE
CRITICALpkg/operator/ceph/cluster/cleanup.go123 {Name: sanitizeDataSource, Value: cluster.Spec.CleanupPolicy.SanitizeDisks.DataSource.String()},CODE
CRITICALpkg/operator/ceph/cluster/mgr/mgr.go466 interval := c.spec.Monitoring.Interval.Duration.Seconds()CODE
CRITICAL⚡pkg/operator/ceph/file/mds/config.go85 if !c.fs.Spec.MetadataServer.Resources.Limits.Memory().IsZero() {CODE
CRITICAL⚡pkg/operator/ceph/file/mds/config.go91 mdsCacheMemoryLimit := float64(c.fs.Spec.MetadataServer.Resources.Limits.Memory().Value()) * limitFactorCODE
CRITICAL⚡pkg/operator/ceph/file/mds/config.go93 } else if !c.fs.Spec.MetadataServer.Resources.Requests.Memory().IsZero() {CODE
CRITICAL⚡pkg/operator/ceph/file/mds/config.go99 mdsCacheMemoryRequest := float64(c.fs.Spec.MetadataServer.Resources.Requests.Memory().Value()) * requestFactorCODE
CRITICAL⚡pkg/operator/ceph/file/mds/spec.go83 c.fs.Spec.MetadataServer.Annotations.ApplyToObjectMeta(&podSpec.ObjectMeta)CODE
CRITICAL⚡pkg/operator/ceph/file/mds/spec.go84 c.fs.Spec.MetadataServer.Labels.ApplyToObjectMeta(&podSpec.ObjectMeta)CODE
CRITICAL⚡pkg/operator/ceph/file/mds/spec.go85 c.fs.Spec.MetadataServer.Placement.ApplyToPodSpec(&podSpec.Spec)CODE
CRITICALpkg/operator/ceph/file/mds/spec.go116 c.fs.Spec.MetadataServer.Annotations.ApplyToObjectMeta(&d.ObjectMeta)CODE
CRITICALpkg/operator/ceph/file/mds/spec.go117 c.fs.Spec.MetadataServer.Labels.ApplyToObjectMeta(&d.ObjectMeta)CODE
CRITICALpkg/operator/ceph/object/spec.go184 c.store.Spec.Gateway.Annotations.ApplyToObjectMeta(&d.ObjectMeta)CODE
CRITICALpkg/operator/ceph/object/spec.go185 c.store.Spec.Gateway.Labels.ApplyToObjectMeta(&d.ObjectMeta)CODE
CRITICALpkg/operator/ceph/object/spec.go295 kmsNeedsToken := kmsEnabled && c.store.Spec.Security.KeyManagementService.IsTokenAuthEnabled()CODE
CRITICALpkg/operator/ceph/object/spec.go296 s3NeedsToken := s3Enabled && c.store.Spec.Security.ServerSideEncryptionS3.IsTokenAuthEnabled()CODE
CRITICALpkg/operator/ceph/object/spec.go315 c.store.Spec.Gateway.Placement.ApplyToPodSpec(&podSpec)CODE
CRITICAL⚡pkg/operator/ceph/object/spec.go328 c.store.Spec.Gateway.Annotations.ApplyToObjectMeta(&podTemplateSpec.ObjectMeta)CODE
CRITICAL⚡pkg/operator/ceph/object/spec.go329 c.store.Spec.Gateway.Labels.ApplyToObjectMeta(&podTemplateSpec.ObjectMeta)CODE
CRITICAL⚡pkg/operator/ceph/object/spec.go339 addVols, addMounts := c.store.Spec.Gateway.AdditionalVolumeMounts.GenerateVolumesAndMounts("/var/rgw/")CODE
CRITICALpkg/operator/ceph/object/spec.go530 if c.store.Spec.Security.KeyManagementService.IsTokenAuthEnabled() {CODE
CRITICALpkg/operator/ceph/object/spec.go533 if c.store.Spec.Security.KeyManagementService.IsTLSEnabled() {CODE
CRITICAL⚡pkg/operator/ceph/object/spec.go575 if c.store.Spec.Security.ServerSideEncryptionS3.IsAgentAuthEnabled() {CODE
CRITICAL⚡pkg/operator/ceph/object/spec.go577 } else if c.store.Spec.Security.ServerSideEncryptionS3.IsTokenAuthEnabled() {CODE
CRITICAL⚡pkg/operator/ceph/object/spec.go580 if c.store.Spec.Security.ServerSideEncryptionS3.IsTLSEnabled() {CODE
CRITICALpkg/operator/ceph/object/spec.go801 c.store.Spec.Gateway.Service.Annotations.ApplyToObjectMeta(&svc.ObjectMeta)CODE
CRITICALpkg/operator/ceph/object/spec.go802 c.store.Spec.Gateway.Service.Labels.ApplyToObjectMeta(&svc.ObjectMeta)CODE
CRITICALpkg/operator/ceph/object/spec.go926 if c.store.Spec.Security != nil && c.store.Spec.Security.KeyManagementService.IsEnabled() {CODE
CRITICALpkg/operator/ceph/object/spec.go959 if c.store.Spec.Security != nil && c.store.Spec.Security.ServerSideEncryptionS3.IsEnabled() {CODE
Over-Commented Block360 hits · 290 pts
SeverityFileLineSnippetContext
LOWdesign/ceph/rgw-user-multitenancy-and-placement.md161to. This mirrors go-ceph's flat `admin.User` shape; a nestedCOMMENT
LOWdesign/ceph/rgw-user-multitenancy-and-placement.md181 Tenant string `json:"tenant,omitempty"`COMMENT
LOWdesign/ceph/ceph-nfs-ganesha.md101 # - matchExpressions:COMMENT
LOWdesign/ceph/update-osds-in-parallel.md141 # continueUpgradeAfterChecksEvenIfNotHealthy is merely relocated from specCOMMENT
LOWdesign/ceph/object/store.md321 dataPoolName: rgw-data-pool # results to rgw-data-pool:<CephObjectStore.name>.dataCOMMENT
LOW…n/CRDs/Shared-Filesystem/ceph-fs-subvolumegroup-crd.md21 namespace: rook-ceph # namespace:clusterCOMMENT
LOW…entation/CRDs/Shared-Filesystem/ceph-filesystem-crd.md41 placement:COMMENT
LOW…mentation/CRDs/Object-Storage/ceph-object-store-crd.md41 port: 80COMMENT
LOW…mentation/CRDs/Object-Storage/ceph-object-store-crd.md61 # topologySpreadConstraints:COMMENT
LOW…orage-Configuration/Block-Storage-RBD/block-storage.md41 clusterID: rook-cephCOMMENT
LOW…orage-Configuration/Block-Storage-RBD/block-storage.md61COMMENT
LOW…Object-Storage-RGW/ceph-object-bucket-notifications.md61# ackLevel: broker [13]COMMENT
LOWimages/ceph/toolbox.sh1#!/usr/bin/env -S bash -eCOMMENT
LOWdeploy/charts/rook-ceph/values.yaml1# Default values for rook-ceph-operatorCOMMENT
LOWdeploy/charts/rook-ceph/values.yaml161cephCommandsTimeoutSeconds: "15"COMMENT
LOWdeploy/charts/rook-ceph/values.yaml181 # -- The specific key of the taint to tolerateCOMMENT
LOWdeploy/charts/rook-ceph/values.yaml221# -- Blacklist certain disks according to the regex provided.COMMENT
LOWdeploy/charts/library/Chart.yaml1---COMMENT
LOWdeploy/charts/library/Chart.yaml21# the 'charts/' dir of dependent charts via a symlink does not require usingCOMMENT
LOWdeploy/charts/rook-ceph-cluster/values.yaml1# Default values for a single rook-ceph clusterCOMMENT
LOWdeploy/charts/rook-ceph-cluster/values.yaml21# osd_pool_default_min_size = 2COMMENT
LOWdeploy/charts/rook-ceph-cluster/values.yaml81 # NVMeoFHighWriteLatency:COMMENT
LOWdeploy/charts/rook-ceph-cluster/values.yaml101 # configMap:COMMENT
LOWdeploy/charts/rook-ceph-cluster/values.yaml121# If specifying these values, do not include the cephVersion section in the cephClusterSpec.COMMENT
LOWdeploy/charts/rook-ceph-cluster/values.yaml141 # as in the host-based example (cluster.yaml). For a different configuration such as aCOMMENT
LOWdeploy/charts/rook-ceph-cluster/values.yaml201 enabled: trueCOMMENT
LOWdeploy/charts/rook-ceph-cluster/values.yaml221 # The nbd and fuse drivers are *not* recommended in production since restarting the csi driver pod will disconnectCOMMENT
LOWdeploy/charts/rook-ceph-cluster/values.yaml241 # #COMMENT
LOWdeploy/charts/rook-ceph-cluster/values.yaml261 periodicity: daily # one of: hourly, daily, weekly, monthlyCOMMENT
LOWdeploy/charts/rook-ceph-cluster/values.yaml281 dataSource: zeroCOMMENT
LOWdeploy/charts/rook-ceph-cluster/values.yaml301 # - storage-nodeCOMMENT
LOWdeploy/charts/rook-ceph-cluster/values.yaml321 # osd:COMMENT
LOWdeploy/charts/rook-ceph-cluster/values.yaml421 # config:COMMENT
LOWdeploy/charts/rook-ceph-cluster/values.yaml481 # If the dashboard has ssl: true the following will make sure the NGINX Ingress controller can expose the dashboard COMMENT
LOWdeploy/charts/rook-ceph-cluster/values.yaml501 # external-dns/private: "true"COMMENT
LOWdeploy/charts/rook-ceph-cluster/values.yaml541 # - storage-nodeCOMMENT
LOWdeploy/charts/rook-ceph-cluster/values.yaml721 # path: /COMMENT
LOWdeploy/charts/rook-ceph-cluster/values.yaml741 # namespace: kube-systemCOMMENT
LOWdeploy/charts/rook-ceph-cluster/values.yaml761# zoneGroup: zonegroup-aCOMMENT
LOWdeploy/charts/rook-ceph-cluster/values.yaml781## remove the comments and set desired values to enable them. SeeCOMMENT
LOWdeploy/charts/rook-ceph-cluster/values.yaml801# codingChunks: 1COMMENT
LOWdeploy/charts/rook-ceph-cluster/values.yaml821#COMMENT
LOWdeploy/examples/bucket-topic.yaml21 # ackLevel: broker # none, broker(default), routableCOMMENT
LOWdeploy/examples/common-external.yaml1###################################################################################################################COMMENT
LOWdeploy/examples/rbdmirror.yaml1#################################################################################################################COMMENT
LOWdeploy/examples/rbdmirror.yaml21 # nodeAffinity:COMMENT
LOWdeploy/examples/object-a.yaml1#################################################################################################################COMMENT
LOWdeploy/examples/object-a.yaml41 matchExpressions:COMMENT
LOWdeploy/examples/object-a.yaml61 # podAffinity:COMMENT
LOWdeploy/examples/osd-purge.yaml1#################################################################################################################COMMENT
LOWdeploy/examples/pool.yaml21 # hybridStorage:COMMENT
LOWdeploy/examples/pool.yaml41 # Set any property on a given poolCOMMENT
LOWdeploy/examples/pool.yaml61 mirror:COMMENT
LOWdeploy/examples/object-multi-instance-test.yaml1#################################################################################################################COMMENT
LOWdeploy/examples/cluster-tnf.yaml1#################################################################################################################COMMENT
LOWdeploy/examples/cluster-on-pvc.yaml61 - name: set1COMMENT
LOWdeploy/examples/cluster-on-pvc.yaml141 - ReadWriteOnceCOMMENT
LOWdeploy/examples/cluster-on-pvc.yaml161 # # Find the right size https://docs.ceph.com/docs/master/rados/configuration/bluestore-config-ref/#siziCOMMENT
LOWdeploy/examples/cluster-on-pvc.yaml181 osd: system-node-criticalCOMMENT
LOWdeploy/examples/cluster-on-pvc.yaml201 # KMS_PROVIDER: "vault"COMMENT
300 more matches not shown…
Self-Referential Comments47 hits · 141 pts
SeverityFileLineSnippetContext
MEDIUMdeploy/examples/pool-test.yaml2# Create a Ceph pool with settings a test environment. Only a single OSD is required.COMMENT
MEDIUMdeploy/examples/object-multisite-pull-realm-test.yaml2# Create an object store with settings for a test environment. Only a single OSD is required in this example.COMMENT
MEDIUMdeploy/examples/common-external.yaml2# Create the common resources that are necessary to start an external Ceph cluster in a different namespaceCOMMENT
MEDIUMdeploy/examples/object-external.yaml2# Create an object store with settings for an external Ceph cluster.COMMENT
MEDIUMdeploy/examples/object-a.yaml2# Create an object store with settings for shared pools in a production environment. A minimum of 3 hosts withCOMMENT
MEDIUMdeploy/examples/object-multisite-pull-realm.yaml2# Create an object store with multisite settings that is syncing with another multisite cluster for aCOMMENT
MEDIUMdeploy/examples/object-test.yaml2# Create an object store with settings for a test environment. Only a single OSD is required in this example.COMMENT
MEDIUMdeploy/examples/object-multisite.yaml2# Create an object store with multisite settings for a production environment. A minimum of 3 hosts with OSDsCOMMENT
MEDIUMdeploy/examples/cluster-test.yaml2# Define the settings for the rook-ceph cluster with common settings for a small test cluster.COMMENT
MEDIUMdeploy/examples/common.yaml2# Create the common resources that are necessary to start the operator and the ceph cluster.COMMENT
MEDIUMdeploy/examples/object-shared-pools-test.yaml2# Create the pools that can be shared by multiple object stores. A single OSD is requiredCOMMENT
MEDIUMdeploy/examples/pool.yaml2# Create a Ceph pool with settings for replication in production environments. A minimum of 3 OSDs onCOMMENT
MEDIUMdeploy/examples/pool-ec.yaml2# Create a Ceph pool with settings for erasure coding. A minimum of 3 OSDs are required in this example.COMMENT
MEDIUMdeploy/examples/cluster-external-management.yaml2# Define the settings for the rook-ceph-external cluster with common settings for a production cluster.COMMENT
MEDIUMdeploy/examples/object-multi-instance-test.yaml2# Create an object store with settings for a test environment. Only a single OSD is required in this example.COMMENT
MEDIUMdeploy/examples/object-multisite-test.yaml2# Create an object store with settings for a test environment. Only a single OSD is required in this example.COMMENT
MEDIUMdeploy/examples/cluster-tnf.yaml2# Define the settings for the rook-ceph cluster with DRBD floating monitor for testing.COMMENT
MEDIUMdeploy/examples/cluster-stretched-aws.yaml2# Define the settings for the rook-ceph cluster with common settings for a production cluster.COMMENT
MEDIUMdeploy/examples/cluster-on-pvc.yaml2# Define the settings for the rook-ceph cluster with common settings for a production cluster on top of cloud instances.COMMENT
MEDIUMdeploy/examples/object-account.yaml2# Create an object store account to manage RGW resources.COMMENT
MEDIUMdeploy/examples/object.yaml2# Create an object store with settings for replication in a production environment. A minimum of 3 hosts withCOMMENT
MEDIUMdeploy/examples/cluster-on-local-pvc.yaml2# Define the settings for the rook-ceph cluster with common settings for a production cluster on top of bare metal.COMMENT
MEDIUMdeploy/examples/filesystem-test.yaml2# Create a filesystem with settings for a test environment where only a single OSD is required.COMMENT
MEDIUMdeploy/examples/cluster.yaml2# Define the settings for the rook-ceph cluster with common settings for a production cluster.COMMENT
MEDIUMdeploy/examples/cluster-stretched.yaml2# Define the settings for the rook-ceph cluster with common settings for a production cluster.COMMENT
MEDIUMdeploy/examples/object-shared-pools.yaml2# Create the pools that can be shared by multiple object stores. A minimum of 3 hosts withCOMMENT
MEDIUMdeploy/examples/filesystem-ec.yaml2# Create a filesystem with settings for erasure-coding instead of replication. A minimum of three nodes with OSDsCOMMENT
MEDIUMdeploy/examples/object-ec.yaml2# Create an object store with settings for erasure coding for the data pool. A minimum of 3 nodes with OSDs areCOMMENT
MEDIUMdeploy/examples/two-object-one-zone-test.yaml2# Create an two object stores with the same set of pre-created poolsCOMMENT
MEDIUMdeploy/examples/filesystem.yaml2# Create a filesystem with settings with replication enabled for a production environment.COMMENT
MEDIUMdeploy/examples/object-user.yaml2# Create an object store user for access to the s3 endpoint.COMMENT
MEDIUMdeploy/examples/object-b.yaml2# Create an object store with settings for shared pools in a production environment. A minimum of 3 hosts withCOMMENT
MEDIUMdeploy/examples/pool-mirrored.yaml2# Create a mirroring enabled Ceph pool.COMMENT
MEDIUMdeploy/examples/toolbox-operator-image.yaml2# Define the toolbox that will run with the Rook operator image.COMMENT
MEDIUMdeploy/examples/headless-mon-service.yaml1# Create a headless service which will effectively referenced by the EndpointSlice resourcesCOMMENT
MEDIUMdeploy/examples/cluster-external.yaml2# Define the settings for the rook-ceph-external cluster with common settings for a production cluster.COMMENT
MEDIUMdeploy/examples/operator-openshift.yaml2# Create the rook operator and necessary security context constraints for runningCOMMENT
MEDIUMdeploy/examples/object-openshift.yaml2# Create an object store with settings specific for OpenShift. A minimum of 3 OSDs are required in this exampleCOMMENT
MEDIUMdeploy/examples/nfs.yaml2# Create a Ceph pool with settings for replication in production environments. A minimum of 3 OSDs onCOMMENT
MEDIUMdeploy/examples/cluster-multus-test.yaml2# Define the settings for the rook-ceph cluster with common settings for a small test cluster.COMMENT
MEDIUMdeploy/examples/cluster-on-pvc-minikube.yaml2# Define the settings for the rook-ceph cluster with settings for a minikube cluster with a single nodeCOMMENT
MEDIUMdeploy/examples/csi/rbd/storageclass-ec.yaml2# Create a storage class with a data pool that uses erasure coding for a production environment.COMMENT
MEDIUM…loy/examples/csi/rbd/volumeattributesclass-cgroup.yaml2# Create a VolumeAttributesClass for RBD QoS using cgroup v2 io.max limits.COMMENT
MEDIUMdeploy/examples/external/object-external.yaml2# Create an object store with settings for an external Ceph cluster.COMMENT
MEDIUMtests/scripts/github-action-helper.sh186 # Create an extra disk if doesn't exist.COMMENT
MEDIUMtests/scripts/deploy-validate-vault.sh157 # Create a token for RookCOMMENT
MEDIUMtests/manifests/test-object.yaml2# Create an object store with settings for a test environment. Only a single OSD is required in this example.COMMENT
Hyper-Verbose Identifiers58 hits · 55 pts
SeverityFileLineSnippetContext
LOWdeploy/examples/create-external-cluster-resources.py532 def validate_rbd_metadata_ec_pool_name(self):CODE
LOWdeploy/examples/create-external-cluster-resources.py582 def validate_rgw_endpoint_tls_cert(self):CODE
LOWdeploy/examples/create-external-cluster-resources.py724 def get_ceph_external_mon_data(self):CODE
LOWdeploy/examples/create-external-cluster-resources.py803 def get_active_and_standby_mgrs(self):CODE
LOWdeploy/examples/create-external-cluster-resources.py895 def get_cephfs_provisioner_caps_and_entity(self, generation):CODE
LOWdeploy/examples/create-external-cluster-resources.py920 def get_cephfs_node_caps_and_entity(self, generation):CODE
LOWdeploy/examples/create-external-cluster-resources.py978 def get_rbd_provisioner_caps_and_entity(self, generation):CODE
LOWdeploy/examples/create-external-cluster-resources.py1016 def get_rbd_node_caps_and_entity(self, generation):CODE
LOWdeploy/examples/create-external-cluster-resources.py1135 def get_cephfs_data_pool_details(self):CODE
LOWdeploy/examples/create-external-cluster-resources.py1286 def create_rgw_admin_ops_user(self):CODE
LOWdeploy/examples/create-external-cluster-resources.py1417 def get_or_create_subvolume_group(self, subvolume_group, cephfs_filesystem_name):CODE
LOWdeploy/examples/create-external-cluster-resources.py1567 def convert_comma_separated_to_array(self, value):CODE
LOWdeploy/examples/create-external-cluster-resources.py1570 def raise_exception_if_any_topology_flag_is_missing(self):CODE
LOWdeploy/examples/create-external-cluster-resources.py1607 def validate_topology_rbd_pools(self, topology_rbd_pools):CODE
LOWdeploy/examples/create-external-cluster-resources.py1635 def get_cephx_latest_key_generation(self):CODE
LOWdeploy/examples/create-external-cluster-resources.py2138 def upgrade_users_permissions(self, generation):CODE
LOWdeploy/examples/create-external-cluster-resources.py2161 def get_rgw_pool_name_during_upgrade(self, user, caps):CODE
LOWdeploy/examples/import-external-cluster.sh179function createInputCommadConfigMap() {CODE
LOWdeploy/examples/import-external-cluster.sh228function importCsiRBDProvisionerSecret() {CODE
LOWdeploy/examples/import-external-cluster.sh250function importCsiCephFSNodeSecret() {CODE
LOWdeploy/examples/import-external-cluster.sh271function importCsiCephFSProvisionerSecret() {CODE
LOWdeploy/examples/import-external-cluster.sh402function createRBDTopologyStorageClass() {CODE
LOW…oy/examples/create-external-cluster-resources-tests.py84 def test_non_zero_return_and_error(self):CODE
LOW…oy/examples/create-external-cluster-resources-tests.py93 def test_multi_filesystem_scenario(self):CODE
LOW…oy/examples/create-external-cluster-resources-tests.py131 def test_multi_data_pool_scenario(self):CODE
LOW…oy/examples/create-external-cluster-resources-tests.py168 def test_upgrade_user_permissions(self):CODE
LOW…oy/examples/create-external-cluster-resources-tests.py181 def test_monitoring_endpoint_validation(self):CODE
LOW…oy/examples/create-external-cluster-resources-tests.py236 def test_skip_monitoring_endpoint_no_prometheus(self):CODE
LOW…oy/examples/create-external-cluster-resources-tests.py266 def test_skip_monitoring_endpoint(self):CODE
LOW…examples/external/create-external-cluster-resources.py532 def validate_rbd_metadata_ec_pool_name(self):CODE
LOW…examples/external/create-external-cluster-resources.py582 def validate_rgw_endpoint_tls_cert(self):CODE
LOW…examples/external/create-external-cluster-resources.py724 def get_ceph_external_mon_data(self):CODE
LOW…examples/external/create-external-cluster-resources.py803 def get_active_and_standby_mgrs(self):CODE
LOW…examples/external/create-external-cluster-resources.py895 def get_cephfs_provisioner_caps_and_entity(self, generation):CODE
LOW…examples/external/create-external-cluster-resources.py920 def get_cephfs_node_caps_and_entity(self, generation):CODE
LOW…examples/external/create-external-cluster-resources.py978 def get_rbd_provisioner_caps_and_entity(self, generation):CODE
LOW…examples/external/create-external-cluster-resources.py1016 def get_rbd_node_caps_and_entity(self, generation):CODE
LOW…examples/external/create-external-cluster-resources.py1135 def get_cephfs_data_pool_details(self):CODE
LOW…examples/external/create-external-cluster-resources.py1286 def create_rgw_admin_ops_user(self):CODE
LOW…examples/external/create-external-cluster-resources.py1417 def get_or_create_subvolume_group(self, subvolume_group, cephfs_filesystem_name):CODE
LOW…examples/external/create-external-cluster-resources.py1567 def convert_comma_separated_to_array(self, value):CODE
LOW…examples/external/create-external-cluster-resources.py1570 def raise_exception_if_any_topology_flag_is_missing(self):CODE
LOW…examples/external/create-external-cluster-resources.py1607 def validate_topology_rbd_pools(self, topology_rbd_pools):CODE
LOW…examples/external/create-external-cluster-resources.py1635 def get_cephx_latest_key_generation(self):CODE
LOW…examples/external/create-external-cluster-resources.py2138 def upgrade_users_permissions(self, generation):CODE
LOW…examples/external/create-external-cluster-resources.py2161 def get_rgw_pool_name_during_upgrade(self, user, caps):CODE
LOWdeploy/examples/external/import-external-cluster.sh179function createInputCommadConfigMap() {CODE
LOWdeploy/examples/external/import-external-cluster.sh228function importCsiRBDProvisionerSecret() {CODE
LOWdeploy/examples/external/import-external-cluster.sh250function importCsiCephFSNodeSecret() {CODE
LOWdeploy/examples/external/import-external-cluster.sh271function importCsiCephFSProvisionerSecret() {CODE
LOWdeploy/examples/external/import-external-cluster.sh402function createRBDTopologyStorageClass() {CODE
LOW…es/external/create-external-cluster-resources-tests.py84 def test_non_zero_return_and_error(self):CODE
LOW…es/external/create-external-cluster-resources-tests.py93 def test_multi_filesystem_scenario(self):CODE
LOW…es/external/create-external-cluster-resources-tests.py131 def test_multi_data_pool_scenario(self):CODE
LOW…es/external/create-external-cluster-resources-tests.py168 def test_upgrade_user_permissions(self):CODE
LOW…es/external/create-external-cluster-resources-tests.py181 def test_monitoring_endpoint_validation(self):CODE
LOW…es/external/create-external-cluster-resources-tests.py236 def test_skip_monitoring_endpoint_no_prometheus(self):CODE
LOW…es/external/create-external-cluster-resources-tests.py266 def test_skip_monitoring_endpoint(self):CODE
Structural Annotation Overuse20 hits · 30 pts
SeverityFileLineSnippetContext
LOW…tation/Storage-Configuration/Advanced/ceph-osd-mgmt.md222### Step 1: Trigger the replacementCOMMENT
LOW…tation/Storage-Configuration/Advanced/ceph-osd-mgmt.md235### Step 2: Wait until the disk is ready to swapCOMMENT
LOW…tation/Storage-Configuration/Advanced/ceph-osd-mgmt.md265### Step 3: Swap the diskCOMMENT
LOW…tation/Storage-Configuration/Advanced/ceph-osd-mgmt.md272### Step 4: Verify the replacement completedCOMMENT
LOW…torage-Configuration/Advanced/two-node-cluster-drbd.md20### Step 1: Install DRBD Kernel ModulesCOMMENT
LOW…torage-Configuration/Advanced/two-node-cluster-drbd.md46### Step 2: Identify Block DevicesCOMMENT
LOW…torage-Configuration/Advanced/two-node-cluster-drbd.md81### Step 3: Run DRBD Setup ScriptCOMMENT
LOW…torage-Configuration/Advanced/two-node-cluster-drbd.md104### Step 4: Verify DRBD SetupCOMMENT
LOW…torage-Configuration/Advanced/two-node-cluster-drbd.md119### Step 5: Deploy Rook CephClusterCOMMENT
LOW…torage-Configuration/Advanced/two-node-cluster-drbd.md129### Step 6: Verify Ceph ClusterCOMMENT
LOW…ion/Storage-Configuration/Block-Storage-RBD/nvme-of.md40### Step 1: Create the NVMe-oF GatewayCOMMENT
LOW…ion/Storage-Configuration/Block-Storage-RBD/nvme-of.md98### Step 2: Deploy the NVMe-oF CSI Driver via CSI OperatorCOMMENT
LOW…ion/Storage-Configuration/Block-Storage-RBD/nvme-of.md122### Step 3: Create the Data PoolCOMMENT
LOW…ion/Storage-Configuration/Block-Storage-RBD/nvme-of.md149### Step 4: Create the StorageClassCOMMENT
LOW…ion/Storage-Configuration/Block-Storage-RBD/nvme-of.md201### Step 5: Create a PersistentVolumeClaimCOMMENT
LOW…ion/Storage-Configuration/Block-Storage-RBD/nvme-of.md222### Step 6: Create a PodCOMMENT
LOW…ion/Storage-Configuration/Block-Storage-RBD/nvme-of.md267### Step 4: Create a VolumeAttributesClassCOMMENT
LOW…ion/Storage-Configuration/Block-Storage-RBD/nvme-of.md278### Step 5: Create the External StorageClass and PVCCOMMENT
LOW…ion/Storage-Configuration/Block-Storage-RBD/nvme-of.md304### Step 6: Create LoadBalancer ServicesCOMMENT
LOW…ion/Storage-Configuration/Block-Storage-RBD/nvme-of.md329### Step 7: Connect from the External ClientCOMMENT
AI Slop Vocabulary11 hits · 30 pts
SeverityFileLineSnippetContext
MEDIUMdeploy/examples/object-a.yaml4# shared metadata and data pools. The pool sharing will utilize RADOS namespaces to keep the object storeCOMMENT
LOWdeploy/examples/create-external-cluster-resources.py1193 # just return silentlyCOMMENT
MEDIUMdeploy/examples/object-shared-pools-test.yaml4# shared metadata and data pools. The pool sharing will utilize RADOS namespaces to keep the object storeCOMMENT
MEDIUMdeploy/examples/object-shared-pools.yaml4# shared metadata and data pools. The pool sharing will utilize RADOS namespaces to keep the object storeCOMMENT
MEDIUMdeploy/examples/object-b.yaml4# shared metadata and data pools. The pool sharing will utilize RADOS namespaces to keep the object storeCOMMENT
LOW…examples/external/create-external-cluster-resources.py1193 # just return silentlyCOMMENT
MEDIUMpkg/apis/ceph.rook.io/v1/types.go3489 // network attachment definitions. Rook's methods are robust but may be imprecise forCOMMENT
MEDIUMpkg/daemon/ceph/osd/kms/vault_test.go209 // the previous file. Essentially we are verifying that defer does what it is supposed to do.COMMENT
MEDIUMpkg/operator/ceph/cluster/predicate.go151 // Definitely non-trivial but nice to have in the futureCOMMENT
MEDIUMpkg/operator/ceph/cluster/osd/spec.go1257 // Essentially, the device cannot be found because it was not mounted in the containerCOMMENT
MEDIUMpkg/operator/ceph/config/datapath.go76// NewDatalessDaemonDataPathMap returns a new DataPathMap for a daemon which does not utilize a dataCOMMENT
Cross-File Repetition5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHdeploy/examples/create-external-cluster-resources.py0copyright 2022 the rook authors. all rights reserved. licensed under the apache license, version 2.0 (the "license"); yoSTRING
HIGH…examples/external/create-external-cluster-resources.py0copyright 2022 the rook authors. all rights reserved. licensed under the apache license, version 2.0 (the "license"); yoSTRING
HIGH…oy/examples/create-external-cluster-resources-tests.py0copyright 2022 the rook authors. all rights reserved. licensed under the apache license, version 2.0 (the "license"); yoSTRING
HIGH…es/external/create-external-cluster-resources-tests.py0copyright 2022 the rook authors. all rights reserved. licensed under the apache license, version 2.0 (the "license"); yoSTRING
HIGHtests/scripts/pythonwebserver/server.py0copyright 2022 the rook authors. all rights reserved. licensed under the apache license, version 2.0 (the "license"); yoSTRING
AI Response Leakage3 hits · 22 pts
SeverityFileLineSnippetContext
HIGHDocumentation/Contributing/development-flow.md439# In this example, the last 5 commits will be opened in the git rebase tool.COMMENT
HIGHdeploy/examples/cluster-stretched-aws.yaml129 # settings as other mons. In this example, the arbiter has a toleration to run on a control-plane node.COMMENT
HIGHdeploy/examples/cluster-stretched.yaml57 # settings as other mons. In this example, the arbiter has a toleration to run on a control-plane node.COMMENT
Empty Error Handlers3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHdeploy/examples/create-external-cluster-resources.py244except:CODE
HIGH…examples/external/create-external-cluster-resources.py244except:CODE
HIGHtests/scripts/pythonwebserver/server.py48except KeyboardInterrupt:CODE
Excessive Try-Catch Wrapping8 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUMdeploy/examples/create-external-cluster-resources.py43 print(f"Error: {noModErr}\nExiting the script...")CODE
MEDIUMdeploy/examples/create-external-cluster-resources.py49 print(f"Error: {noModErr}\nExiting the script...")CODE
MEDIUMdeploy/examples/create-external-cluster-resources.py2271 print(f"Error while trying to output the data: {osErr}")CODE
LOWdeploy/examples/create-external-cluster-resources.py645 except Exception as err:CODE
MEDIUM…examples/external/create-external-cluster-resources.py43 print(f"Error: {noModErr}\nExiting the script...")CODE
MEDIUM…examples/external/create-external-cluster-resources.py49 print(f"Error: {noModErr}\nExiting the script...")CODE
MEDIUM…examples/external/create-external-cluster-resources.py2271 print(f"Error while trying to output the data: {osErr}")CODE
LOW…examples/external/create-external-cluster-resources.py645 except Exception as err:CODE
Slop Phrases9 hits · 14 pts
SeverityFileLineSnippetContext
LOWdeploy/charts/rook-ceph-cluster/values.yaml148 # Important: if you reinstall the cluster, make sure you delete this directory from each host or else the mons will faCOMMENT
LOWdeploy/examples/cluster-on-pvc.yaml197 # To enable the KMS configuration properly don't forget to uncomment the Secret at the end of the fileCOMMENT
LOWdeploy/examples/cluster-on-pvc.yaml197 # To enable the KMS configuration properly don't forget to uncomment the Secret at the end of the fileCOMMENT
LOWdeploy/examples/object.yaml148 # To enable the Server Side Encryption configuration properly don't forget to uncomment the Secret at the end of the fCOMMENT
LOWdeploy/examples/object.yaml148 # To enable the Server Side Encryption configuration properly don't forget to uncomment the Secret at the end of the fCOMMENT
LOWdeploy/examples/cluster.yaml38 # Important: if you reinstall the cluster, make sure you delete this directory from each host or else the mons will faCOMMENT
LOWdeploy/examples/object-openshift.yaml109 # To enable the KMS configuration properly don't forget to uncomment the Secret at the end of the fileCOMMENT
LOWdeploy/examples/object-openshift.yaml109 # To enable the KMS configuration properly don't forget to uncomment the Secret at the end of the fileCOMMENT
LOWpkg/util/sys/device.go370 // (don't forget to remove surrounding quotes from the value)COMMENT
Synthetic Comment Markers2 hits · 12 pts
SeverityFileLineSnippetContext
HIGHpkg/operator/ceph/cluster/osd/osd.go190 // Fall back to use the same placement as requested for the osd daemonsCOMMENT
HIGHpkg/operator/ceph/client/controller.go494 return client.Spec.SecretName // return the secret name as requested by user.CODE
Modern AI Meta-Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMdeploy/charts/rook-ceph/values.yaml215# -- Disable automatic orchestration when new devices are discovered.COMMENT
MEDIUMdeploy/examples/operator.yaml75 # Disable automatic orchestration when new devices are discoveredCOMMENT
MEDIUMdeploy/examples/operator-openshift.yaml158 # Disable automatic orchestration when new devices are discoveredCOMMENT
Redundant / Tautological Comments5 hits · 8 pts
SeverityFileLineSnippetContext
LOWdeploy/charts/ceph-csi-drivers/values.yaml24 # Set snapshotPolicy to enable snapshot/group snapshot support.COMMENT
LOWdeploy/examples/operator.yaml239 # Set this to true if SELinux is enabled (e.g. OpenShift) to workaround the anyuid issues.COMMENT
LOWdeploy/examples/operator.yaml244 # Set this to true if mon pods are CrashLooping on SELinux-enabled systems despite other settings.COMMENT
LOWdeploy/examples/operator-openshift.yaml309 # Set this to true if SELinux is enabled (e.g. OpenShift) to workaround the anyuid issues.COMMENT
LOWtests/scripts/deploy-validate-vault.sh233 # Set SA_CA_CRT to the PEM encoded CA cert used to talk to Kubernetes APICOMMENT
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippetContext
LOWcmd/rook/ceph/osd.go437 // For backward compatibility we need to check if the env var is still setCOMMENT
LOWpkg/operator/ceph/cluster/osd/activate-osd.sh107 # keep OSD pods from crashing repeatedly after a reboot, we need to check if theCOMMENT
LOWpkg/operator/ceph/cluster/mon/health.go139 // Since c.ClusterInfo.IsInitialized() below uses a different context, we need to check if the context is doneCOMMENT
Deep Nesting8 hits · 4 pts
SeverityFileLineSnippetContext
LOWdeploy/examples/create-external-cluster-resources.py611CODE
LOWdeploy/examples/create-external-cluster-resources.py1135CODE
LOWdeploy/examples/create-external-cluster-resources.py1635CODE
LOWdeploy/examples/create-external-cluster-resources.py1681CODE
LOW…examples/external/create-external-cluster-resources.py611CODE
LOW…examples/external/create-external-cluster-resources.py1135CODE
LOW…examples/external/create-external-cluster-resources.py1635CODE
LOW…examples/external/create-external-cluster-resources.py1681CODE
Decorative Section Separators1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMdeploy/examples/cleanup-job.yaml9# ---------------COMMENT
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWpkg/operator/ceph/controller/mirror_peer_test.go76 // TODO: Add test cases.COMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWpkg/operator/ceph/object/config_test.go279 fakeUser := generateCephXUser("rook-ceph-rgw-fake-store-fake-user")CODE