Repository Analysis

grafana/k6

A modern load testing tool, using Go and JavaScript

2.3 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of grafana/k6, a Go project with 31,012 GitHub stars. SynthScan v2.0 examined 233,989 lines of code across 1180 source files, recording 367 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 2.3 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

2.3
Adjusted Score
2.3
Raw Score
100%
Time Factor
2026-07-14
Last Push
31.0K
Stars
Go
Language
234.0K
Lines of Code
1.2K
Files
367
Pattern Hits
2026-07-14
Scan Date
0.01
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 6HIGH 3MEDIUM 34LOW 324

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 367 distinct pattern matches across 16 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block190 hits · 190 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.go41COMMENT
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/modulestest/runtime.go81 goModules, loader, c, r.VU.InitEnvField.CWD, r.VU.InitEnvField.Usage, r.VU.InitEnvField.Logger)COMMENT
LOWjs/modules/modules.go41// VU gives access to the currently executing VU to a module InstanceCOMMENT
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/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// }COMMENT
LOWinternal/cmd/tests/cmd_cloud_upload_test.go41 cmd.ExecuteWithGlobalState(ts.GlobalState)COMMENT
LOWinternal/cmd/tests/doc.go1// Package tests contains integration tests that run k6 commands, and interactCOMMENT
LOWinternal/cmd/tests/cmd_run_test.go2421 },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/runner.go561 }COMMENT
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…experimental/streams/readable_stream_default_reader.go101//COMMENT
LOW…ules/k6/experimental/streams/readable_stream_reader.go21// ReadableStreamGenericReader defines common internal getters/settersCOMMENT
LOW…rimental/streams/readable_stream_default_controller.go321COMMENT
LOW…rimental/streams/readable_stream_default_controller.go361//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
LOW…nal/js/modules/k6/browser/tests/lifecycle_wait_test.go41// 1. The HTML is loaded.COMMENT
LOW…al/js/modules/k6/browser/tests/network_manager_test.go181 // the page's response body won't be available yet due to requestCOMMENT
LOWinternal/js/modules/k6/browser/tests/test_browser.go61COMMENT
LOWinternal/js/modules/k6/browser/tests/test_browser.go141COMMENT
LOW…s/modules/k6/browser/tests/static/react.development.js461 return true;COMMENT
LOW…s/modules/k6/browser/tests/static/react.development.js2941 //COMMENT
LOWinternal/js/modules/k6/browser/chromium/browser_type.go161// which can be used for controlling the Chrome browser.COMMENT
LOWinternal/js/modules/k6/browser/browser/registry.go261 for e := range eventsCh {COMMENT
LOWinternal/js/modules/k6/browser/common/frame.go421 // to the actual destination for the iframe;COMMENT
130 more matches not shown…
Fake / Example Data84 hits · 93 pts
SeverityFileLineSnippetContext
LOWjs/modules/k6/html/elements_gen_test.go171 {"input7", "placeholder", "help text"},CODE
LOWjs/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
LOWjs/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.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
LOWjs/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
LOWjs/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.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
LOWjs/modules/k6/html/html_test.go181 assert.Equal(t, "Lorem ipsumThis is the footer.", sel.Text())CODE
LOWjs/modules/k6/html/html_test.go189 assert.Equal(t, "Lorem ipsumThis is the footer.", sel.Text())CODE
LOWjs/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
LOWjs/modules/k6/html/element_test.go16 <h1 id="top">Lorem ipsum</h1>CODE
LOWjs/modules/k6/html/element_test.go18 <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>CODE
LOWjs/modules/k6/html/element_test.go18 <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>CODE
LOWjs/modules/k6/html/element_test.go19 <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>CODE
LOWjs/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.go193 {"InputElement", "Placeholder", "placeholder", stringTemplate, nil},CODE
LOWjs/modules/k6/html/gen/gen_elements.go284 {"TextAreaElement", "Placeholder", "placeholder", stringTemplate, nil},CODE
LOWjs/modules/k6/http/request_test.go1399 Lorem ipsum dolor sit amet, consectetur adipiscing elit.CODE
LOWjs/modules/k6/http/request_test.go1399 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.go40// note: "lorem ipsum",COMMENT
LOWinternal/cmd/tests/cmd_cloud_run_test.go48// "note": "lorem ipsum",COMMENT
LOWinternal/cmd/tests/cmd_cloud_run_test.go88 require.Equal(t, "lorem ipsum", metadata.Options.Cloud.Note)CODE
LOWinternal/cmd/tests/cmd_cloud_upload_test.go56 // note: "lorem ipsum",COMMENT
LOWinternal/cmd/tests/cmd_cloud_upload_test.go64 // "note": "lorem ipsum",COMMENT
LOWinternal/cmd/tests/cmd_cloud_upload_test.go104 require.Equal(t, "lorem ipsum", metadata.Options.Cloud.Note)CODE
LOWinternal/cmd/tests/cmd_cloud_test.go160 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.go847 throw new Error("lorem ipsum")CODE
LOWinternal/js/modules/k6/websockets/websockets_test.go851 assert.Equal(t, "Error: lorem ipsum at <eval>:5:10(7)", err.Error())CODE
LOWinternal/js/modules/k6/websockets/websockets_test.go1224 const text string = `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas sed pharetra sapien. Nunc laoreeCODE
24 more matches not shown…
Decorative Section Separators20 hits · 81 pts
SeverityFileLineSnippetContext
MEDIUMinternal/js/modules/k6/browser/common/connection.go87// ┌───────────────────────────────────────────────────────────────────┐COMMENT
MEDIUMinternal/js/modules/k6/browser/common/connection.go91// └───────────────────────────────────────────────────────────────────┘COMMENT
MEDIUMinternal/js/modules/k6/browser/common/connection.go92// ┌───────────────────────────┐ │ ▲COMMENT
MEDIUMinternal/js/modules/k6/browser/common/connection.go95// │ them on incoming queue of │ ┌───────────────────────────────────────────────────────────────────┐COMMENT
MEDIUMinternal/js/modules/k6/browser/common/connection.go96// │ target session, as ├─────────────■ │COMMENT
MEDIUMinternal/js/modules/k6/browser/common/connection.go99// │ without a session ID are │ └───────────────────────────────────────────────────────────────────┘COMMENT
MEDIUMinternal/js/modules/k6/browser/common/connection.go102// └───────────────────────────┘ ▼ │ ▼ │COMMENT
MEDIUMinternal/js/modules/k6/browser/common/connection.go103// ┌───────────────────────────┐ ┌────────────────────┐ ┌────────────────────┐COMMENT
MEDIUMinternal/js/modules/k6/browser/common/connection.go104// │ Handles CDP messages on ├─────────────■ │ │ │COMMENT
MEDIUMinternal/js/modules/k6/browser/common/connection.go107// │ channel of WS connection. │ └────────────────────┘ └────────────────────┘COMMENT
MEDIUMinternal/js/modules/k6/browser/common/connection.go108// └───────────────────────────┘ │ ▲ │ ▲COMMENT
MEDIUMinternal/js/modules/k6/browser/common/connection.go112// ┌───────────────────────────┐ ┌────────────────────┐ ┌────────────────────┐COMMENT
MEDIUMinternal/js/modules/k6/browser/common/connection.go113// │Registers with session as a├─────────────■ │ │ │COMMENT
MEDIUMinternal/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.go174 dialer.LocalAddr = &net.TCPAddr{IP: r.Bundle.Options.LocalIPs.Pool.GetIP(ipIndex)}CODE
CRITICALinternal/js/runner.go888 durationDiff := u.Runner.Bundle.Options.MinIterationDuration.TimeDuration() - totalTimeCODE
CRITICALinternal/js/runner.go918 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.go2070 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.go60// the k6 codebase. This gives us the ability to mock them and have robust andCOMMENT
MEDIUMinternal/cmd/root.go66 # 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.go834// 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
MEDIUMinternal/cmd/new.go102 # Create a new k6 script with the default templateCOMMENT
MEDIUMinternal/cmd/new.go111 # Create a script using a specific templateCOMMENT
MEDIUMinternal/cmd/new.go114 # Create a cloud-ready script with a specific project IDCOMMENT
MEDIUMinternal/cmd/root.go53 # 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.go160 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
LOWinternal/cmd/test_load.go348 // Step 2: all k6/x/ imports, registered or not.COMMENT
LOWinternal/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.go2610 // 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
LOWinternal/cmd/test_load.go348 // Step 2: all k6/x/ imports, registered or not.COMMENT
LOWinternal/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.go52// 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
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOW.github/workflows/summary-code-generation.yml42 # 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