AI Slop Code Risk Monitor

grafana/k6

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

A modern load testing tool, using Go and JavaScript

2.2 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for grafana/k6, a Go project with 32,087 GitHub stars. SynthScan examined 263,826 lines of code across 1277 source files, recording 399 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 2.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.

2.2
Adjusted Signal
2.2
Raw Pattern Score
100%
Time Factor
2026-10-29
Last Push
32.1K
Stars
Go
Language
263.8K
Lines of Code
1.3K
Files
399
Pattern Hits
2026-10-31
Scan Date
0.01
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 6.0/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 3.1/100 · LOW

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

Agent Over-Engineering Ratio 2.4/100 · LOW

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

PR Review Velocity Impact 9.8/100 · LOW

Which changes need focused human review? 399 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 6HIGH 3MEDIUM 38LOW 352

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 399 distinct pattern matches across 17 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 Block213 hits · 213 pts
SeverityFileLineSnippetContext
LOWpackaging/bin/generate_index.py1#!/usr/bin/env python3COMMENT
LOWpackaging/bin/create-rpm-repo.sh1#!/bin/bashCOMMENT
LOWpackaging/bin/entrypoint.sh1#!/bin/bashCOMMENT
LOWpackaging/bin/create-deb-repo.sh1#!/bin/bashCOMMENT
LOWmetrics/tags.go21// values for map indexes and caching.COMMENT
LOWmetrics/tags.go41// existing TagSet except the one with the given key.COMMENT
LOWmetrics/tags.go121 json.MarshalerCOMMENT
LOWmetrics/package.go1// Package metrics contains various k6 components that deal with metrics andCOMMENT
LOWmetrics/thresholds_parser.go21 // in the event it is a percentile. For instance: an expression of the form p(99.9) < 200,COMMENT
LOWmetrics/thresholds_parser.go41// expression ("p(somefloatingpointvalue)"), we need to handle thisCOMMENT
LOWmetrics/thresholds_parser.go61// aggregation_method -> trend | rate | gauge | counterCOMMENT
LOWcmd/state/doc.go1// Package state contains the types and functionality used for keeping track ofCOMMENT
LOWcmd/state/state.go61// process-external state like CLI arguments, env vars, standard input, outputCOMMENT
LOWjs/promises/promises.go1// Package promises provides helpers for working with promises in k6.COMMENT
LOWjs/common/initenv.go21// GetAbsFilePath should be used to access the FileSystems, since afero has aCOMMENT
LOWjs/modules/modules.go41// VU gives access to the currently executing VU to a module InstanceCOMMENT
LOWjs/modules/k6/html/gen/gen_elements.go101// stringTemplate: doesn't use any TemplateArgsCOMMENT
LOWjs/modules/k6/http/request.go181 // application/x-www-form-urlencoded string representation.COMMENT
LOWrelease notes/v0.55.0.md141 // You can call metric.tag multiple times within the callback function.COMMENT
LOWsecretsource/doc.go1// Package secretsource is a package to provide secret source interface and common functionalityCOMMENT
LOWinternal/cmd/config.go161// Permissions for the on-disk config file and its containing directory.COMMENT
LOWinternal/cmd/outputs_cloud.go201// applyExternalProvisioningCreds handles the externally-provisionedCOMMENT
LOWinternal/cmd/test_load.go321// because they are already built into the binary. Step 1 misses those.COMMENT
LOWinternal/cmd/subcommand.go21//COMMENT
LOWinternal/cmd/tests/cmd_cloud_run_test.go41// cloud: {COMMENT
LOW…ernal/cmd/tests/cmd_cloud_run_push_credentials_test.go161 // Record the provisioning-mode push (/v1/metrics) and any stray pushCOMMENT
LOW…ernal/cmd/tests/cmd_cloud_run_push_credentials_test.go181// and token via K6_CLOUD_METRICS_PUSH_URL and K6_CLOUD_TEST_RUN_TOKEN,COMMENT
LOWinternal/cmd/tests/cmd_cloud_upload_test.go61 assert.Contains(t, stdout, `output: https://stack.grafana.com/a/k6-app/tests/456`)COMMENT
LOWinternal/cmd/tests/doc.go1// Package tests contains integration tests that run k6 commands, and interactCOMMENT
LOWinternal/cmd/tests/cmd_run_test.go2461 name: "browser option not set",COMMENT
LOWinternal/ds/histogram/hdr.go21// Hdr represents a distribution of metrics samples' values as histogram.COMMENT
LOWinternal/ds/histogram/hdr.go121 // distribution (2^7=128 primary buckets of which each can be furtherCOMMENT
LOWinternal/ds/histogram/hdr.go141 // the "sub" bucket within that major bucket. This system provides us with a fine levelCOMMENT
LOWinternal/js/summary.go21var jslibSummaryCode stringCOMMENT
LOWinternal/js/eventloop/eventloop.go61// asynchronous work off the main thread and that you may need to execute someCOMMENT
LOWinternal/js/eventloop/eventloop.go81// scenario has ended). Any error returned by any callback on the main threadCOMMENT
LOWinternal/js/eventloop/eventloop.go101// resolve(result)COMMENT
LOW…s/modules/k6/experimental/streams/underlying_source.go21 // PullFunc is a function that is called whenever the stream's internal queue of chunksCOMMENT
LOW…s/modules/k6/experimental/streams/underlying_source.go41 Cancel sobek.Value `json:"cancel"`COMMENT
LOW…rimental/streams/writable_stream_default_controller.go41 stream *WritableStreamCOMMENT
LOW…rimental/streams/writable_stream_default_controller.go421COMMENT
LOW…ules/k6/experimental/streams/readable_stream_reader.go21// ReadableStreamGenericReader defines common internal getters/settersCOMMENT
LOW…rimental/streams/readable_stream_default_controller.go361// resetQueue resets the controller's internal queue.COMMENT
LOW…js/modules/k6/experimental/streams/writable_streams.go81//COMMENT
LOW…experimental/streams/writable_stream_default_writer.go441 if state == WritableStreamStateClosed {COMMENT
LOW…/js/modules/k6/experimental/streams/underlying_sink.go1package streamsCOMMENT
LOW…/js/modules/k6/experimental/streams/underlying_sink.go21COMMENT
LOW…/js/modules/k6/experimental/streams/underlying_sink.go41 // rejected promise.COMMENT
LOWinternal/js/modules/k6/experimental/streams/errors.go21 throw(rt, newError(kind, message))COMMENT
LOWinternal/js/modules/k6/experimental/csv/reader.go21 // options holds the reader's options.COMMENT
LOWinternal/js/modules/k6/experimental/csv/module.go301 ToLine null.Int `js:"toLine"`COMMENT
LOWinternal/js/modules/k6/experimental/fs/cache_test.go61//COMMENT
LOWinternal/js/modules/k6/experimental/fs/cache.go21// already caches the content of the files it opens. However, the current implementation ofCOMMENT
LOWinternal/js/modules/k6/experimental/fs/cache.go41type cache struct {COMMENT
LOWinternal/js/modules/k6/experimental/fs/cache.go61// If the file was previously "opened" (and thus cached), itCOMMENT
LOWinternal/js/modules/k6/experimental/fs/module.go181type File struct {COMMENT
LOWinternal/js/modules/k6/experimental/fs/errors.go41COMMENT
LOWinternal/js/modules/k6/browser/k6ext/k6test/vu.go61}COMMENT
LOWinternal/js/modules/k6/browser/trace/trace.go81// TraceNavigation is only to be used when a frame has navigated.COMMENT
LOW…nal/js/modules/k6/browser/tests/lifecycle_wait_test.go21// Remove the promises. We don't need them anymore.COMMENT
153 more matches not shown…
Fake / Example Data89 hits · 98 pts
SeverityFileLineSnippetContext
LOWjs/modules/k6/html/elements_gen_test.go171 {"input7", "placeholder", "help text"},CODE
LOW⚡js/modules/k6/html/serialize_test.go16 <h1 id="top" data-test="dataval" data-num-a="123" data-num-b="1.5" data-not-num-a="1.50" data-not-num-b="1.1e02">Lorem CODE
LOW⚡js/modules/k6/html/serialize_test.go17 <p data-test-b="true" data-opts='{"id":101}' data-test-empty="">Lorem ipsum dolor sit amet, consectetur adipiscing elitCODE
LOW⚡js/modules/k6/html/serialize_test.go17 <p data-test-b="true" data-opts='{"id":101}' data-test-empty="">Lorem ipsum dolor sit amet, consectetur adipiscing elitCODE
LOWjs/modules/k6/html/serialize_test.go36 <textarea id="textarea" name="textarea" multiple>Lorem ipsum dolor sit amet</textarea>CODE
LOWjs/modules/k6/html/serialize_test.go36 <textarea id="textarea" name="textarea" multiple>Lorem ipsum dolor sit amet</textarea>CODE
LOWjs/modules/k6/html/serialize_test.go86 assert.Equal(t, "Lorem ipsum dolor sit amet", arr[6].Value.String())CODE
LOWjs/modules/k6/html/serialize_test.go86 assert.Equal(t, "Lorem ipsum dolor sit amet", arr[6].Value.String())CODE
LOWjs/modules/k6/html/serialize_test.go150 assert.Equal(t, "Lorem ipsum dolor sit amet", obj["textarea"].String())CODE
LOWjs/modules/k6/html/serialize_test.go150 assert.Equal(t, "Lorem ipsum dolor sit amet", obj["textarea"].String())CODE
LOWjs/modules/k6/html/elements_gen.go586 return i.attrAsString("placeholder")CODE
LOWjs/modules/k6/html/elements_gen.go1035 return t.attrAsString("placeholder")CODE
LOW⚡js/modules/k6/html/html_test.go23 <h1 id="top" data-test="dataval" data-num-a="123" data-num-b="1.5" data-not-num-a="1.50" data-not-num-b="1.1e02">Lorem CODE
LOW⚡js/modules/k6/html/html_test.go25 <p data-test-b="true" data-opts='{"id":101}' data-test-empty="">Lorem ipsum dolor sit amet, consectetur adipiscing elitCODE
LOW⚡js/modules/k6/html/html_test.go25 <p data-test-b="true" data-opts='{"id":101}' data-test-empty="">Lorem ipsum dolor sit amet, consectetur adipiscing elitCODE
LOWjs/modules/k6/html/html_test.go43 <textarea id="textarea" name="textarea" multiple>Lorem ipsum dolor sit amet</textarea>CODE
LOWjs/modules/k6/html/html_test.go43 <textarea id="textarea" name="textarea" multiple>Lorem ipsum dolor sit amet</textarea>CODE
LOWjs/modules/k6/html/html_test.go128 assert.Equal(t, "Lorem ipsum", sel.Text())CODE
LOWjs/modules/k6/html/html_test.go142 assert.Equal(t, "Lorem ipsum dolor", text[:17])CODE
LOW⚡js/modules/k6/html/html_test.go181 assert.Equal(t, "Lorem ipsumThis is the footer.", sel.Text())CODE
LOW⚡js/modules/k6/html/html_test.go189 assert.Equal(t, "Lorem ipsumThis is the footer.", sel.Text())CODE
LOW⚡js/modules/k6/html/html_test.go199 assert.Equal(t, "Lorem ipsum", v.Export())CODE
LOWjs/modules/k6/html/html_test.go236 assert.Equal(t, "Lorem ipsum", v.Export())CODE
LOWjs/modules/k6/html/html_test.go279 assert.Equal(t, "Lorem ipsum dolor sit amet", v.Export())CODE
LOWjs/modules/k6/html/html_test.go279 assert.Equal(t, "Lorem ipsum dolor sit amet", v.Export())CODE
LOWjs/modules/k6/html/html_test.go356 v, err := rt.RunString(`doc.find("h1").is(function(idx, val){ return val.text() == "Lorem ipsum" })`)CODE
LOWjs/modules/k6/html/html_test.go838 assert.Contains(t, sel.Text(), "Lorem ipsum dolor")CODE
LOWjs/modules/k6/html/html_test.go869 assert.Contains(t, elem.InnerHTML().Export(), "Lorem ipsum dolor sit amet")CODE
LOWjs/modules/k6/html/html_test.go869 assert.Contains(t, elem.InnerHTML().Export(), "Lorem ipsum dolor sit amet")CODE
LOWjs/modules/k6/html/html_test.go892 assert.Contains(t, arr[0].sel.Text(), "Lorem ipsum dolor sit amet")CODE
LOWjs/modules/k6/html/html_test.go892 assert.Contains(t, arr[0].sel.Text(), "Lorem ipsum dolor sit amet")CODE
LOW⚡js/modules/k6/html/element_test.go16 <h1 id="top">Lorem ipsum</h1>CODE
LOW⚡js/modules/k6/html/element_test.go18 <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>CODE
LOW⚡js/modules/k6/html/element_test.go18 <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>CODE
LOW⚡js/modules/k6/html/element_test.go19 <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>CODE
LOW⚡js/modules/k6/html/element_test.go19 <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>CODE
LOWjs/modules/k6/html/element_test.go60 assert.Equal(t, "Lorem ipsum", v.String())CODE
LOWjs/modules/k6/html/gen/gen_elements.go195 {"InputElement", "Placeholder", "placeholder", stringTemplate, nil},CODE
LOWjs/modules/k6/html/gen/gen_elements.go286 {"TextAreaElement", "Placeholder", "placeholder", stringTemplate, nil},CODE
LOWjs/modules/k6/http/request_test.go1481 Lorem ipsum dolor sit amet, consectetur adipiscing elit.CODE
LOWjs/modules/k6/http/request_test.go1481 Lorem ipsum dolor sit amet, consectetur adipiscing elit.CODE
LOWjs/modules/k6/http/response_test.go34 <textarea name="textarea" multiple>Lorem ipsum dolor sit amet</textarea>CODE
LOWjs/modules/k6/http/response_test.go34 <textarea name="textarea" multiple>Lorem ipsum dolor sit amet</textarea>CODE
LOWjs/modules/k6/http/response_test.go388 data.textarea[0] !== "Lorem ipsum dolor sit amet"CODE
LOWjs/modules/k6/http/response_test.go388 data.textarea[0] !== "Lorem ipsum dolor sit amet"CODE
LOWrelease notes/v1.3.0.md165await frame.getByLabel('Email').fill('user@example.com');CODE
LOWrelease notes/v1.3.0.md174await paymentFrame.getByLabel('Cardholder name').fill('John Doe');CODE
LOWrelease notes/v1.6.0.md314 username: 'user@example.com',CODE
LOWinternal/cmd/tests/cmd_cloud_run_test.go44// note: "lorem ipsum",COMMENT
LOWinternal/cmd/tests/cmd_cloud_run_test.go52// "note": "lorem ipsum",COMMENT
LOWinternal/cmd/tests/cmd_cloud_run_test.go92 require.Equal(t, "lorem ipsum", metadata.Options.Cloud.Note)CODE
LOWinternal/cmd/tests/cmd_cloud_upload_test.go71 // note: "lorem ipsum",COMMENT
LOWinternal/cmd/tests/cmd_cloud_upload_test.go79 // "note": "lorem ipsum",COMMENT
LOWinternal/cmd/tests/cmd_cloud_upload_test.go119 require.Equal(t, "lorem ipsum", metadata.Options.Cloud.Note)CODE
LOWinternal/cmd/tests/cmd_cloud_test.go223 v6test.AbortedByUserProgress("user@example.com"))CODE
LOWinternal/js/modules/k6/grpc/stream_test.go135 return status.Error(codes.Internal, "lorem ipsum")CODE
LOWinternal/js/modules/k6/grpc/stream_test.go181 "Code: 13 Message: lorem ipsum",CODE
LOWinternal/js/modules/k6/websockets/websockets_test.go1021 throw new Error("lorem ipsum")CODE
LOWinternal/js/modules/k6/websockets/websockets_test.go1025 assert.Equal(t, "Error: lorem ipsum at <eval>:5:10(7)", err.Error())CODE
LOWinternal/js/modules/k6/websockets/websockets_test.go1398 const text string = `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas sed pharetra sapien. Nunc laoreeCODE
29 more matches not shown…
Decorative Section Separators23 hits · 90 pts
SeverityFileLineSnippetContext
MEDIUMinternal/js/runner_aia_test.go110 // ── 1. Build a three-level certificate chain ────────────────────────────COMMENT
MEDIUMinternal/js/runner_aia_test.go140 // ── 3. Build intermediate CA and leaf with AIA URL ────────────────────────COMMENT
MEDIUMinternal/js/runner_aia_test.go165 // ── 5. Table-driven sub-tests ─────────────────────────────────────────────COMMENT
MEDIUM⚡internal/js/modules/k6/browser/common/connection.go87// ┌───────────────────────────────────────────────────────────────────┐COMMENT
MEDIUM⚡internal/js/modules/k6/browser/common/connection.go91// └───────────────────────────────────────────────────────────────────┘COMMENT
MEDIUM⚡internal/js/modules/k6/browser/common/connection.go92// ┌───────────────────────────┐ │ ▲COMMENT
MEDIUM⚡internal/js/modules/k6/browser/common/connection.go95// │ them on incoming queue of │ ┌───────────────────────────────────────────────────────────────────┐COMMENT
MEDIUM⚡internal/js/modules/k6/browser/common/connection.go96// │ target session, as ├─────────────■ │COMMENT
MEDIUM⚡internal/js/modules/k6/browser/common/connection.go99// │ without a session ID are │ └───────────────────────────────────────────────────────────────────┘COMMENT
MEDIUM⚡internal/js/modules/k6/browser/common/connection.go102// └───────────────────────────┘ ▼ │ ▼ │COMMENT
MEDIUM⚡internal/js/modules/k6/browser/common/connection.go103// ┌───────────────────────────┐ ┌────────────────────┐ ┌────────────────────┐COMMENT
MEDIUM⚡internal/js/modules/k6/browser/common/connection.go104// │ Handles CDP messages on ├─────────────■ │ │ │COMMENT
MEDIUM⚡internal/js/modules/k6/browser/common/connection.go107// │ channel of WS connection. │ └────────────────────┘ └────────────────────┘COMMENT
MEDIUM⚡internal/js/modules/k6/browser/common/connection.go108// └───────────────────────────┘ │ ▲ │ ▲COMMENT
MEDIUM⚡internal/js/modules/k6/browser/common/connection.go112// ┌───────────────────────────┐ ┌────────────────────┐ ┌────────────────────┐COMMENT
MEDIUM⚡internal/js/modules/k6/browser/common/connection.go113// │Registers with session as a├─────────────■ │ │ │COMMENT
MEDIUM⚡internal/js/modules/k6/browser/common/connection.go116// └───────────────────────────┘ └────────────────────┘ └────────────────────┘COMMENT
MEDIUM.github/scripts/check-feature-briefs.sh28# ──────────────────────────────────────────────COMMENT
MEDIUM.github/scripts/check-feature-briefs.sh30# ──────────────────────────────────────────────COMMENT
MEDIUM.github/scripts/check-feature-briefs.sh83# ──────────────────────────────────────────────COMMENT
MEDIUM.github/scripts/check-feature-briefs.sh85# ──────────────────────────────────────────────COMMENT
MEDIUM.github/scripts/check-feature-briefs.sh112# ──────────────────────────────────────────────COMMENT
MEDIUM.github/scripts/check-feature-briefs.sh114# ──────────────────────────────────────────────COMMENT
Hallucination Indicators6 hits · 60 pts
SeverityFileLineSnippetContext
CRITICALinternal/js/runner.go176 dialer.LocalAddr = &net.TCPAddr{IP: r.Bundle.Options.LocalIPs.Pool.GetIP(ipIndex)}CODE
CRITICALinternal/js/runner.go915 durationDiff := u.Runner.Bundle.Options.MinIterationDuration.TimeDuration() - totalTimeCODE
CRITICALinternal/js/runner.go945 if !u.Runner.Bundle.Options.NoCookiesReset.ValueOrZero() {CODE
CRITICAL.github/workflows/xk6-tests/xk6-test.js14 'summary-results.txt': data.metrics.foos.values.count.toString(),CODE
CRITICALlib/executor/base_executor.go78 if bs.executionState.Test.Options.SystemTags.Has(metrics.TagScenario) {CODE
CRITICALlib/executor/base_executor.go81 if vuID != nil && bs.executionState.Test.Options.SystemTags.Has(metrics.TagVU) {CODE
Hyper-Verbose Identifiers36 hits · 36 pts
SeverityFileLineSnippetContext
LOWjs/modules/k6/http/request_test.go2152 function handleResponseEncodingError (encoding) {CODE
LOWinternal/js/summary-legacy.js173function toFixedNoTrailingZerosTrunc(val, prec) {CODE
LOWinternal/js/summary-legacy.js235function nonTrendMetricValueForSum(metric, timeUnit) {CODE
LOWinternal/js/summary.js966function renderMetricNameForThresholds(CODE
LOWinternal/js/summary.js992function renderMetricValueForThresholds(CODE
LOWinternal/js/summary.js1375function toFixedNoTrailingZerosTrunc(val, prec) {CODE
LOWinternal/js/summary.js1448function nonTrendMetricValueForSum(metric, timeUnit) {CODE
LOW…s/modules/k6/browser/tests/static/react.development.js644 function defineKeyPropWarningGetter(props, displayName) {CODE
LOW…s/modules/k6/browser/tests/static/react.development.js662 function defineRefPropWarningGetter(props, displayName) {CODE
LOW…s/modules/k6/browser/tests/static/react.development.js680 function warnIfStringRefCannotBeAutoConverted(config) {CODE
LOW…s/modules/k6/browser/tests/static/react.development.js1765 function describeBuiltInComponentFrame(name, source, ownerFn) {CODE
LOW…s/modules/k6/browser/tests/static/react.development.js1789 function describeNativeComponentFrame(fn, construct) {CODE
LOW…s/modules/k6/browser/tests/static/react.development.js1948 function describeFunctionComponentFrame(fn, source, ownerFn) {CODE
LOW…s/modules/k6/browser/tests/static/react.development.js1959 function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {CODE
LOW…s/modules/k6/browser/tests/static/react.development.js2012 function setCurrentlyValidatingElement(element) {CODE
LOW…s/modules/k6/browser/tests/static/react.development.js2091 function getDeclarationErrorAddendum() {CODE
LOW…s/modules/k6/browser/tests/static/react.development.js2103 function getSourceInfoErrorAddendum(source) {CODE
LOW…s/modules/k6/browser/tests/static/react.development.js2113 function getSourceInfoErrorAddendumForProps(elementProps) {CODE
LOW…s/modules/k6/browser/tests/static/react.development.js2129 function getCurrentComponentErrorInfo(parentType) {CODE
LOW…s/modules/k6/browser/tests/static/react.development.js2311 function createElementWithValidation(type, props, children) {CODE
LOW…s/modules/k6/browser/tests/static/react.development.js2375 function createFactoryWithValidation(type) {CODE
LOW…s/modules/k6/browser/tests/static/react.development.js2402 function cloneElementWithValidation(element, props, children) {CODE
LOW…s/modules/k6/browser/tests/static/react.development.js3239 function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {CODE
LOW…nal/js/modules/k6/browser/common/js/injected_script.js59function parentElementOrShadowHost(element) {CODE
LOW…nal/js/modules/k6/browser/common/js/injected_script.js67function enclosingShadowRootOrDocument(element) {CODE
LOW…nal/js/modules/k6/browser/common/js/injected_script.js92function isElementStyleVisibilityVisible(element, style) {CODE
LOW…nal/js/modules/k6/browser/common/js/injected_script.js121function hasExplicitAccessibleName(e) {CODE
LOW…nal/js/modules/k6/browser/common/js/injected_script.js388function hasPresentationConflictResolution(element, role) {CODE
LOW…nal/js/modules/k6/browser/common/js/injected_script.js427function belongsToDisplayNoneOrAriaHiddenOrNonSlotted(element) {CODE
LOW…nal/js/modules/k6/browser/common/js/injected_script.js510function getAriaLabelledByElements(element) {CODE
LOW…nal/js/modules/k6/browser/common/js/injected_script.js539function getTextAlternativeInternal(element, options) {CODE
LOW…nal/js/modules/k6/browser/common/js/injected_script.js764function innerAccumulatedElementText(element, options) {CODE
LOW…nal/js/modules/k6/browser/common/js/injected_script.js873function belongsToDisabledFieldSet(element) {CODE
LOW…nal/js/modules/k6/browser/common/js/injected_script.js893function getAccessibleNameFromAssociatedLabels(labels, options) {CODE
LOW…nal/js/modules/k6/browser/common/js/injected_script.js1345function shouldSkipForTextMatching(element) {CODE
LOWinternal/js/modules/k6/webcrypto/tests/util/helpers.js175function allAlgorithmSpecifiersFor(algorithmName) {CODE
AI Slop Vocabulary8 hits · 23 pts
SeverityFileLineSnippetContext
MEDIUMcmd/state/state.go66// the k6 codebase. This gives us the ability to mock them and have robust andCOMMENT
MEDIUMinternal/cmd/root.go67 # Look up the JavaScript API, examples, and best practicesCOMMENT
MEDIUMinternal/ds/histogram/hdr.go15 // Essentially, it excludes negative numbers.COMMENT
MEDIUMinternal/js/initcontext_test.go428 // A more robust version of this polyfill is available here:COMMENT
MEDIUMinternal/js/modules/k6/experimental/fs/module.go190 // from other modules that would want to leverage its implementation ofCOMMENT
MEDIUMinternal/js/modules/k6/browser/common/element_handle.go842// TODO: look into making more robust using retriesCOMMENT
MEDIUMinternal/js/modules/k6/webcrypto/subtle_crypto.go714// a `CryptoKey` object rather than an ArrayBuffer. Essentially `SubtleCrypto.DeriveKey` is composedCOMMENT
MEDIUMinternal/output/summary/summary.go104 return // Essentially skip samples tagged with group: setup/teardown.CODE
Self-Referential Comments5 hits · 20 pts
SeverityFileLineSnippetContext
MEDIUMpackaging/bin/create-rpm-repo.sh86# Create the RPM repository package if it doesn't exist already.COMMENT
MEDIUM⚡internal/cmd/new.go102 # Create a new k6 script with the default templateCOMMENT
MEDIUM⚡internal/cmd/new.go111 # Create a script using a specific templateCOMMENT
MEDIUM⚡internal/cmd/new.go114 # Create a cloud-ready script with a specific project IDCOMMENT
MEDIUMinternal/cmd/root.go54 # Create a testCOMMENT
Magic Placeholder Names2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHinternal/cmd/cloud_login.go41 $ {{.}} cloud login -t <YOUR_TOKEN> --stack <YOUR_STACK_URL_OR_SLUG>CODE
HIGHinternal/cmd/tests/cmd_run_test.go161 containsOutput: fmt.Sprintf("%s cloud login -t <YOUR_TOKEN>", ts.BinaryName),CODE
Verbosity Indicators5 hits · 9 pts
SeverityFileLineSnippetContext
LOWinternal/cmd/test_load.go337 // Step 1: modules that failed to load.COMMENT
LOW⚡internal/cmd/test_load.go348 // Step 2: all k6/x/ imports, registered or not.COMMENT
LOW⚡internal/cmd/test_load.go357 // Step 3: explicit version constraints from "use k6" directives in script files.COMMENT
LOWinternal/js/modules/k6/experimental/fs/module.go267 // If the read operation failed, we need to check if it was an io.EOF errorCOMMENT
LOWinternal/js/modules/k6/browser/tests/page_test.go2663 // We need to check if the response is JSON before calling json()COMMENT
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHinternal/output/prometheusrw/remotewrite/trend.go239// as requested by the Prometheus convention.COMMENT
Structural Annotation Overuse3 hits · 6 pts
SeverityFileLineSnippetContext
LOWinternal/cmd/test_load.go337 // Step 1: modules that failed to load.COMMENT
LOW⚡internal/cmd/test_load.go348 // Step 2: all k6/x/ imports, registered or not.COMMENT
LOW⚡internal/cmd/test_load.go357 // Step 3: explicit version constraints from "use k6" directives in script files.COMMENT
Slop Phrases2 hits · 4 pts
SeverityFileLineSnippetContext
LOWinternal/js/modules/k6/browser/browser/mapping_test.go277// to the module. This is to ensure that we don't forget to mapCOMMENT
MEDIUM…se/opentelemetry/grafana/dashboards/k6-prometheus.json1937 "content": "### Visualize other k6 results \n\nAt the top of the dashboard, click `Add` and select `VisualizatiCODE
Excessive Try-Catch Wrapping2 hits · 2 pts
SeverityFileLineSnippetContext
LOWpackaging/bin/generate_index.py50 except Exception as e:CODE
LOWpackaging/bin/generate_index.py380 except Exception as e:CODE
Modern AI Meta-Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMrelease notes/v2.2.0.md134- [#6170](https://github.com/grafana/k6/pull/6170) Lets an orchestration service that provisioned a test run itself suppCODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOW.github/workflows/summary-code-generation.yml43 # Check if there are any changes in the Git working directoryCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOW.github/scripts/check-feature-briefs.sh4# Usage:COMMENT
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippetContext
LOWpackaging/bin/generate_index.py36CODE