AI Slop Code Risk Monitor

kedacore/keda

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

KEDA is a Kubernetes-based Event Driven Autoscaling component. It provides event driven scale for any container running in Kubernetes

1.2 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for kedacore/keda, a Go project with 10,684 GitHub stars. SynthScan examined 209,738 lines of code across 706 source files, recording 124 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 1.2 (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.2
Adjusted Signal
1.2
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
10.7K
Stars
Go
Language
209.7K
Lines of Code
706
Files
124
Pattern Hits
2026-10-31
Scan Date
0.00
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 4.4/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.7/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? 22 finding(s).

PR Review Velocity Impact 4.5/100 · LOW

Which changes need focused human review? 124 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 2HIGH 0MEDIUM 25LOW 97

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 124 distinct pattern matches across 10 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.

Modern AI Meta-Vocabulary15 hits · 50 pts
SeverityFileLineSnippetContext
MEDIUM.golangci.yml199 # Exclude gci check for //+kubebuilder:scaffold:imports comments. Waiting toCOMMENT
MEDIUM.golangci.yml199 # Exclude gci check for //+kubebuilder:scaffold:imports comments. Waiting toCOMMENT
MEDIUMcmd/webhooks/main.go53 //+kubebuilder:scaffold:schemeCOMMENT
MEDIUMcmd/webhooks/main.go127 //+kubebuilder:scaffold:builderCOMMENT
MEDIUMcmd/operator/main.go70 //+kubebuilder:scaffold:schemeCOMMENT
MEDIUMcmd/operator/main.go350 //+kubebuilder:scaffold:builderCOMMENT
MEDIUMapis/keda/v1alpha1/suite_test.go99 //+kubebuilder:scaffold:schemeCOMMENT
MEDIUMapis/keda/v1alpha1/suite_test.go130 //+kubebuilder:scaffold:webhookCOMMENT
MEDIUMapis/eventing/v1alpha1/cloudeventsource_webhook_test.go93 //+kubebuilder:scaffold:schemeCOMMENT
MEDIUMapis/eventing/v1alpha1/cloudeventsource_webhook_test.go118 //+kubebuilder:scaffold:webhookCOMMENT
MEDIUM⚡config/crd/kustomization.yaml11# +kubebuilder:scaffold:crdkustomizeresourceCOMMENT
MEDIUM⚡config/crd/kustomization.yaml20# +kubebuilder:scaffold:crdkustomizewebhookpatchCOMMENT
MEDIUM⚡config/crd/kustomization.yaml26# +kubebuilder:scaffold:crdkustomizecainjectionpatchCOMMENT
MEDIUMconfig/samples/kustomization.yaml9# +kubebuilder:scaffold:manifestskustomizesamplesCOMMENT
MEDIUMcontrollers/keda/suite_test.go124 // +kubebuilder:scaffold:schemeCOMMENT
Verbosity Indicators21 hits · 43 pts
SeverityFileLineSnippetContext
LOW⚡tests/scalers/temporal/temporal_test.go353 // Step 1: Start worker with 1 replica to register the deployment versionCOMMENT
LOW⚡tests/scalers/temporal/temporal_test.go359 // Step 2: Set this version as currentCOMMENT
LOW⚡tests/scalers/temporal/temporal_test.go365 // Step 3: Scale worker back to 0 and apply the ScaledObjectCOMMENT
LOW⚡tests/scalers/temporal/temporal_test.go372 // Step 4: Submit workflows to create backlog → scale outCOMMENT
LOW⚡tests/scalers/temporal/temporal_test.go380 // Step 5: Scale in after workflows drainCOMMENT
LOW⚡tests/scalers/elastic_forecast/elastic_forecast_test.go253 // Step 1: wait for the ES pod to be ready.COMMENT
LOW⚡tests/scalers/elastic_forecast/elastic_forecast_test.go260 // Step 2: activate trial licence so ML features are available.COMMENT
LOW⚡tests/scalers/elastic_forecast/elastic_forecast_test.go264 // Step 3: create the index that will hold training data.COMMENT
LOW⚡tests/scalers/elastic_forecast/elastic_forecast_test.go277 // Step 4: ingest synthetic training data.COMMENT
LOW⚡tests/scalers/elastic_forecast/elastic_forecast_test.go281 // Step 5: create the ML anomaly-detection job.COMMENT
LOW⚡tests/scalers/elastic_forecast/elastic_forecast_test.go340 // Step 9: wait until the datafeed has finished processing the historical window.COMMENT
LOW⚡tests/scalers/elastic_forecast/elastic_forecast_test.go344 // Step 10: verify the ML job has processed enough buckets to produce a meaningful forecast.COMMENT
LOW⚡tests/scalers/elastic_forecast/elastic_forecast_test.go348 // Step 11: re-open the ML job.COMMENT
LOWtests/scalers/elastic_forecast/elastic_forecast_test.go294 // Step 6: create the datafeed that links the job to the index.COMMENT
LOWtests/scalers/elastic_forecast/elastic_forecast_test.go311 // Step 7: open the job (required before starting the datafeed).COMMENT
LOWtests/scalers/elastic_forecast/elastic_forecast_test.go324 // Step 8: start the datafeed over the full 2-hour historical window.COMMENT
LOWpkg/scalers/kafka_scaler.go981 // Step 1: build one OffsetRequest instance per broker.COMMENT
LOWpkg/scalers/kafka_scaler.go999 // Step 2: send requests, one per broker, and collect topicPartitionsOffsetsCOMMENT
LOW⚡pkg/scalers/apache_kafka_scaler.go542 // Step 1: build one OffsetRequestCOMMENT
LOW⚡pkg/scalers/apache_kafka_scaler.go551 // Step 2: send requestCOMMENT
LOW⚡pkg/scalers/apache_kafka_scaler.go560 // Step 3: parse response and returnCOMMENT
Structural Annotation Overuse21 hits · 43 pts
SeverityFileLineSnippetContext
LOW⚡tests/scalers/temporal/temporal_test.go353 // Step 1: Start worker with 1 replica to register the deployment versionCOMMENT
LOW⚡tests/scalers/temporal/temporal_test.go359 // Step 2: Set this version as currentCOMMENT
LOW⚡tests/scalers/temporal/temporal_test.go365 // Step 3: Scale worker back to 0 and apply the ScaledObjectCOMMENT
LOW⚡tests/scalers/temporal/temporal_test.go372 // Step 4: Submit workflows to create backlog → scale outCOMMENT
LOW⚡tests/scalers/temporal/temporal_test.go380 // Step 5: Scale in after workflows drainCOMMENT
LOW⚡tests/scalers/elastic_forecast/elastic_forecast_test.go253 // Step 1: wait for the ES pod to be ready.COMMENT
LOW⚡tests/scalers/elastic_forecast/elastic_forecast_test.go260 // Step 2: activate trial licence so ML features are available.COMMENT
LOW⚡tests/scalers/elastic_forecast/elastic_forecast_test.go264 // Step 3: create the index that will hold training data.COMMENT
LOW⚡tests/scalers/elastic_forecast/elastic_forecast_test.go277 // Step 4: ingest synthetic training data.COMMENT
LOW⚡tests/scalers/elastic_forecast/elastic_forecast_test.go281 // Step 5: create the ML anomaly-detection job.COMMENT
LOW⚡tests/scalers/elastic_forecast/elastic_forecast_test.go340 // Step 9: wait until the datafeed has finished processing the historical window.COMMENT
LOW⚡tests/scalers/elastic_forecast/elastic_forecast_test.go344 // Step 10: verify the ML job has processed enough buckets to produce a meaningful forecast.COMMENT
LOW⚡tests/scalers/elastic_forecast/elastic_forecast_test.go348 // Step 11: re-open the ML job.COMMENT
LOWtests/scalers/elastic_forecast/elastic_forecast_test.go294 // Step 6: create the datafeed that links the job to the index.COMMENT
LOWtests/scalers/elastic_forecast/elastic_forecast_test.go311 // Step 7: open the job (required before starting the datafeed).COMMENT
LOWtests/scalers/elastic_forecast/elastic_forecast_test.go324 // Step 8: start the datafeed over the full 2-hour historical window.COMMENT
LOWpkg/scalers/kafka_scaler.go981 // Step 1: build one OffsetRequest instance per broker.COMMENT
LOWpkg/scalers/kafka_scaler.go999 // Step 2: send requests, one per broker, and collect topicPartitionsOffsetsCOMMENT
LOW⚡pkg/scalers/apache_kafka_scaler.go542 // Step 1: build one OffsetRequestCOMMENT
LOW⚡pkg/scalers/apache_kafka_scaler.go551 // Step 2: send requestCOMMENT
LOW⚡pkg/scalers/apache_kafka_scaler.go560 // Step 3: parse response and returnCOMMENT
Over-Commented Block33 hits · 33 pts
SeverityFileLineSnippetContext
LOWapis/keda/v1alpha1/triggerauthentication_types.go21)COMMENT
LOWapis/keda/v1alpha1/scaledjob_types.go61 // +optionalCOMMENT
LOWapis/keda/v1alpha1/scaledobject_types.go21 "reflect"COMMENT
LOWapis/keda/v1alpha1/scaledobject_types.go101// +kubebuilder:validation:XValidation:rule="!has(self.minReplicaCount) || self.minReplicaCount <= (has(self.maxReplicaCCOMMENT
LOWapis/keda/v1alpha1/scaledobject_webhook.go61// namespace List scans on every admission. Without these indexes eachCOMMENT
LOWapis/keda/v1alpha1/condition_types.go21)COMMENT
LOWconfig/default/kustomization.yaml1# Adds namespace to all resources.COMMENT
LOWconfig/minimal/kustomization.yaml1# Adds namespace to all resources.COMMENT
LOWtests/helper/helper.go1341// KedaEventually checks if the provided conditionFunc eventually returns trueCOMMENT
LOWhack/verify_go_versions_test.py1# Copyright 2026 The KEDA Authors.COMMENT
LOWhack/verify-manifests.sh1#!/usr/bin/env bashCOMMENT
LOWhack/verify_go_versions.py1#!/usr/bin/env python3COMMENT
LOWhack/verify-schema.sh1#!/usr/bin/env bashCOMMENT
LOW.github/workflows/scorecards.yml41 # - you want to enable the Branch-Protection check on a *public* repository, orCOMMENT
LOWcontrollers/keda/scaledobject_controller.go61// +kubebuilder:rbac:groups="",resources=configmaps;configmaps/status,verbs=get;list;watchCOMMENT
LOWpkg/util/value_by_path.go1package utilCOMMENT
LOWpkg/util/watch.go41 if len(nss) == 0 || err != nil {COMMENT
LOWpkg/util/watch.go61// Example: "environment=production" reconciles only resources labelledCOMMENT
LOWpkg/scalers/temporal_scaler.go241 return []external_metrics.ExternalMetricValue{metric}, isActive, nilCOMMENT
LOWpkg/scalers/azure_cosmosdb_scaler.go381 resourceLink := fmt.Sprintf("dbs/%s/colls/%s", c.leaseDatabaseID, c.leaseContainerID)COMMENT
LOWpkg/scalers/azure_cosmosdb_scaler.go581COMMENT
LOWpkg/scalers/selenium_grid_scaler.go201COMMENT
LOWpkg/scalers/arangodb_scaler.go41 // +optionalCOMMENT
LOWpkg/scalers/externalscaler/externalscaler_grpc.pb.go141 //COMMENT
LOWpkg/scalers/azure/azure_service_principal.go41 // stackCloud is the cloud name for Azure Stack, whose environment isCOMMENT
LOWpkg/scalers/aws/aws_http.go21COMMENT
LOWpkg/scaling/scale_handler_raw_metrics.go41// RawMetricsMode defines the different modes for sending raw metricsCOMMENT
LOWpkg/scaling/scale_handler.go141 ObjectMeta: metav1.ObjectMeta{Name: name, Namespace: namespace},COMMENT
LOWpkg/scaling/cache/scalers_cache.go281// uid and generation. The identity guard prevents a stale streaming watcherCOMMENT
LOWpkg/scaling/executor/scale_scaledobjects.go141 returnCOMMENT
LOWpkg/metricsservice/client.go101 grpcClient := GrpcClient{client: api.NewMetricsServiceClient(conn), connection: conn}COMMENT
LOWpkg/metricsservice/api/metrics_grpc.pb.go1//COMMENT
LOWpkg/metricsservice/api/metrics.pb.go1//COMMENT
Decorative Section Separators9 hits · 27 pts
SeverityFileLineSnippetContext
MEDIUMtests/scalers/gcp/gcp_spanner/gcp_spanner_test.go68// ── Kubernetes manifest templates ────────────────────────────────────────────COMMENT
MEDIUMtests/scalers/gcp/gcp_spanner/gcp_spanner_test.go190// ── Test entry point ──────────────────────────────────────────────────────────COMMENT
MEDIUMtests/scalers/gcp/gcp_spanner/gcp_spanner_test.go216// ── Spanner setup / teardown ──────────────────────────────────────────────────COMMENT
MEDIUMtests/scalers/gcp/gcp_spanner/gcp_spanner_test.go326// ── Scaling scenarios ─────────────────────────────────────────────────────────COMMENT
MEDIUMtests/scalers/gcp/gcp_spanner/gcp_spanner_test.go362// ── Helpers ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMpkg/scalers/gcp_spanner_scaler_test.go55 // ── required fields ──────────────────────────────────────────────────────COMMENT
MEDIUMpkg/scalers/gcp_spanner_scaler_test.go87 // ── authentication methods ────────────────────────────────────────────────COMMENT
MEDIUMpkg/scalers/gcp_spanner_scaler_test.go113 // ── optional numeric parameters ───────────────────────────────────────────COMMENT
MEDIUMpkg/scalers/gcp_spanner_scaler_test.go204// ── metric name generation ────────────────────────────────────────────────────COMMENT
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALpkg/scalers/mssql_scaler.go246 if s.metadata.azureAuthContext.token != nil && s.metadata.azureAuthContext.token.ExpiresOn.Before(time.Now()) {CODE
CRITICALpkg/scalers/postgresql_scaler.go206 if s.metadata.azureAuthContext.token.ExpiresOn.Before(time.Now()) {CODE
Hyper-Verbose Identifiers13 hits · 18 pts
SeverityFileLineSnippetContext
LOWhack/verify_go_versions_test.py37 def test_patch_versions_can_differ(self):CODE
LOWhack/verify_go_versions_test.py40 def test_checks_every_image_location(self):CODE
LOW⚡hack/verify_go_versions_test.py53 def test_original_devcontainer_mismatch(self):CODE
LOW⚡hack/verify_go_versions_test.py57 def test_all_references_in_workflow_are_checked(self):CODE
LOW⚡hack/verify_go_versions_test.py61 def test_major_version_mismatch(self):CODE
LOW⚡hack/verify_go_versions_test.py65 def test_image_suffix_and_digest(self):CODE
LOW⚡hack/verify_go_versions_test.py69 def test_digest_only_workflow_images_are_rejected(self):CODE
LOW⚡hack/verify_go_versions_test.py78 def test_tagged_and_pinned_workflow_images_are_checked(self):CODE
LOW⚡hack/verify_go_versions_test.py88 def test_comments_and_unrelated_images_are_ignored(self):CODE
LOW⚡hack/verify_go_versions_test.py92 def test_go_directive_without_patch(self):CODE
LOW⚡hack/verify_go_versions_test.py96 def test_missing_go_directive(self):CODE
LOW⚡hack/verify_go_versions_test.py100 def test_unversioned_image_is_rejected(self):CODE
LOW⚡hack/verify_go_versions_test.py104 def test_missing_image_is_rejected(self):CODE
Fake / Example Data8 hits · 8 pts
SeverityFileLineSnippetContext
LOWtests/scalers/opensearch/opensearch_test.go199 parameters: "dummy_value:1;dumb_value:oOooo"CODE
LOWtests/scalers/opensearch/opensearch_test.go291 "dummy": "{{dummy_value}}"CODE
LOWtests/scalers/elasticsearch/elasticsearch_test.go230 parameters: "dummy_value:1;dumb_value:oOooo"CODE
LOWtests/scalers/elasticsearch/elasticsearch_test.go322 "dummy": "{{dummy_value}}"CODE
LOWpkg/scalers/loki_scaler_test.go53 {map[string]string{"serverAddress": "http://localhost:3100", "threshold": "1", "query": "sum(rate({filename=\"/var/log/CODE
LOWpkg/scalers/arangodb_scaler_test.go60 {map[string]string{"endpoints": "https://http://34.162.13.192:8529,https://34.162.13.193:8529", "collection": "demo", "CODE
LOW…/scalers/authentication/authentication_helpers_test.go96 _, err := w.Write([]byte(`{"access_token":"fake_token","token_type":"Bearer","expires_in":3600}`))CODE
LOW…/scalers/authentication/authentication_helpers_test.go124 assert.Equal(t, "fake_token", token.AccessToken)CODE
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/pr-bot-welcome.yml27 body: 'Thank you for your contribution! 🙏\n\nPlease understand that we will do our best to review your PR CODE
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippetContext
LOWhack/verify_go_versions.py28CODE