Repository Analysis

vercel/next.js

The React Framework

2.3 Likely human-written View on GitHub
2.3
Adjusted Score
2.3
Raw Score
100%
Time Factor
2026-05-30
Last Push
139,599
Stars
JavaScript
Language
2,032,359
Lines of Code
23447
Files
5168
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 3HIGH 8MEDIUM 50LOW 5107

Pattern Findings

5168 matches across 15 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers4146 hits · 3436 pts
SeverityFileLineSnippet
LOWbench/vercel/generate-package-json.js44async function getCurrentRootReactPackagesVersions() {
LOWbench/render-pipeline/benchmark.ts659async function runMinimalServerModeBenchmark(
LOWbench/render-pipeline/benchmark.ts720async function runMinimalServerBenchmarks(
LOWevals/evals/agent-022-prefer-server-actions/EVAL.ts28function readContactFormAndImports(): string {
LOW…t-custom-transforms/tests/loader/issue-40231/output.js1function loadSomethingWithDynamicImport(param) {
LOW…xt-custom-transforms/tests/loader/issue-40231/input.js1function loadSomethingWithDynamicImport(param) {
LOWtest/get-test-filter.js49function getTestFilterFromManifest(manifest) {
LOW…ir/instant-navs-devtools/instant-navs-devtools.test.ts12 async function waitForPanelRouterTransition() {
LOW…ir/instant-navs-devtools/instant-navs-devtools.test.ts38 async function waitForInstantModeCookieAbsent(
LOW…ir/instant-navs-devtools/instant-navs-devtools.test.ts84 async function waitForInstantNavPanelOpen(browser: Playwright) {
LOW…ir/instant-navs-devtools/instant-navs-devtools.test.ts117 async function clickInstantNavMenuItemIfMounted(browser: Playwright) {
LOW…ir/instant-navs-devtools/instant-navs-devtools.test.ts130 async function reopenInstantNavPanelFromMenu(browser: Playwright) {
LOW…ir/instant-navs-devtools/instant-navs-devtools.test.ts156 async function expectInstantNavPanelText(
LOW…ir/instant-navs-devtools/instant-navs-devtools.test.ts252 async function openHomeWithTargetPageWarmup() {
LOW…st/development/app-dir/owner-stack/owner-stack.test.ts6function normalizeBrowserConsoleStackTrace(trace: unknown) {
LOW…/cache-components-tasks/cache-components-tasks.test.ts56 function assertNoUnexpectedErrorsInCli() {
LOW…/enabled-features-trace/enabled-features-trace.test.ts113async function createTestTraceUploadServer(): Promise<{
LOWtest/development/basic/allowed-dev-origins.test.ts59function requestInternalDevMiddleware(
LOWtest/development/basic/allowed-dev-origins.test.ts79async function expectBlockedDevResourceMessage(
LOW…pment/basic/hmr/run-hot-module-reload-hmr-test.util.ts5export function runHotModuleReloadHmrTest(nextConfig: {
LOWtest/development/client-dev-overlay/index.test.ts18 function elementExistsInNextJSPortalShadowDOM(
LOW…ction/app-dir/graceful-degrade/delete-dynamic-chunk.js5export async function deleteBrowserDynamicChunks(next) {
LOW…duction/app-dir/actions-tree-shaking/_testing/utils.ts18async function getActionsMappingByRuntime(
LOW…duction/app-dir/actions-tree-shaking/_testing/utils.ts29export function nextTestSetupActionTreeShaking(opts) {
LOW…duction/app-dir/actions-tree-shaking/_testing/utils.ts79export async function getActionsRoutesStateByRuntime(next: NextInstance) {
LOW…tions-tree-shaking/client-actions-tree-shaking.test.ts6function getServerReferenceIdsFromBundle(source: string): string[] {
LOW…tion/app-dir/use-cache-expire/use-cache-expire.test.ts18 async function expectBlockingRevalidation(path: string) {
LOW…r-action-period-hash/server-action-period-hash.test.ts3async function getServerActionManifestNodeKeys(next: NextInstance) {
LOW…riod-hash/server-action-period-hash-custom-key.test.ts3async function getServerActionManifestNodeKeys(next: NextInstance) {
LOW…te-request-smuggling/rewrite-request-smuggling.test.ts66 async function sendAbsoluteUrlUpgradePayload({
LOWtest/production/next-image-legacy/basic/basic.test.ts13 async function hasPreloadLinkMatchingUrl(browser, url) {
LOWtest/production/next-image-legacy/basic/basic.test.ts25 async function hasImagePreloadBeforeCSSPreload(browser) {
LOW…ion-entry/required-files-instrumentation-entry.test.ts3async function readRequiredFilesManifest(next: any) {
LOW…t/production/create-next-app/templates/app-api.test.ts12function shouldBeApiTemplateProject({
LOW…production/production-browser-sourcemaps/index.test.ts13async function validateSourceMapForChunk(
LOW…t/production/css-features/basic-global-support.test.ts457async function assertMultiGlobalReversedCss(
LOWtest/production/css-features/css-rendering.test.ts7function baseNextConfigWithLightning(useLightningcss: boolean) {
LOWtest/production/graceful-shutdown/index.test.ts295async function waitForAppToStartRefusingConnections(
LOWtest/lib/next-test-utils.ts209export function expectVaryHeaderToContain(
LOWtest/lib/next-test-utils.ts1010export async function toggleDevToolsIndicatorPopover(
LOWtest/lib/next-test-utils.ts1031export async function getSegmentExplorerContent(browser: Playwright) {
LOWtest/lib/next-test-utils.ts1086export async function assertNoDevToolsIndicator(browser: Playwright) {
LOWtest/lib/next-test-utils.ts1203export function getRedboxEnvironmentLabel(
LOWtest/lib/next-test-utils.ts1248export function getRedboxDescriptionWarning(
LOWtest/lib/next-test-utils.ts1298export function getPageFilesFromBuildManifest(dir: string, page: string) {
LOWtest/lib/next-test-utils.ts1308export function getContentOfPageFilesFromBuildManifest(
LOWtest/lib/next-test-utils.ts1319export function getPageFileFromBuildManifest(dir: string, page: string) {
LOWtest/lib/next-test-utils.ts1334export function readNextBuildClientPageFile(appDir: string, page: string) {
LOWtest/lib/next-test-utils.ts1351export function getPageFileFromPagesManifest(dir: string, page: string) {
LOWtest/lib/next-test-utils.ts1361export function readNextBuildServerPageFile(appDir: string, page: string) {
LOWtest/lib/next-test-utils.ts1380export function getClientBuildManifestLoaderChunkUrlPath(
LOWtest/lib/next-test-utils.ts1758export async function getRedboxCallStackCollapsed(
LOWtest/lib/next-test-utils.ts1803export function getUrlFromBackgroundImage(backgroundImage: string) {
LOWtest/lib/next-test-utils.ts1959export async function toggleCollapseCallStackFrames(browser: Playwright) {
LOWtest/lib/next-test-utils.ts2087export function getClientReferenceManifest(
LOWtest/lib/e2e-utils/ppr.ts19export async function splitResponseWithPPRSentinel(
LOWtest/lib/e2e-utils/instant-validation.ts24export function extractBuildValidationError(
LOWtest/lib/e2e-utils/instant-validation.ts140export function expectNoBuildValidationErrors(result: PrerenderResult) {
LOWtest/lib/e2e-utils/instant-validation.ts151export function expectBuildValidationSkipped(result: PrerenderResult) {
LOW…ness/segment-cache-per-page-dynamic-stale-time.test.ts15 async function startBrowserWithFakeClock(url: string) {
4086 more matches not shown…
Over-Commented Block685 hits · 664 pts
SeverityFileLineSnippet
LOWCargo.toml61# crate boundaries), this minimizes overall function duplication in the binary.
LOWrun-tests.js1021 // <testsuite name="${timing.file}" file="${
LOWbench/basic-app/benchmark.sh1#!/bin/bash
LOW…ustom-transforms/tests/fixture/server-actions/index.ts1/// <reference types="./next" />
LOW…ransforms/tests/fixture/track-dynamic-imports/index.ts1/// <reference types="./next" />
LOW…custom-transforms/src/transforms/strip_page_exports.rs81 exports: FxHashMap<Id, ExportType>,
LOW…ext-custom-transforms/src/transforms/server_actions.rs301 ModuleExportName::Str(s) => &s.value.as_bytes(),
LOW…ext-custom-transforms/src/transforms/server_actions.rs321 // in the function signature. If there is, the bit is set to 1.
LOW…ext-custom-transforms/src/transforms/server_actions.rs3221 ..Default::default()
LOWcrates/next-custom-transforms/src/transforms/dynamic.rs61#[derive(Debug, Clone, Eq, PartialEq)]
LOWcrates/next-custom-transforms/src/transforms/dynamic.rs301 // turbopack doesn't need this
LOWcrates/next-code-frame/src/highlight.rs201 /// Build a windowed line index. Only stores line-start offsets for
LOWcrates/next-code-frame/src/highlight.rs441 end,
LOWcrates/next-code-frame/src/highlight.rs461/// Two-phase heuristic:
LOWcrates/next-code-frame/src/highlight.rs641 TOKEN_RULES[id.as_usize()].0
LOWcrates/next-code-frame/src/highlight.rs661/// - `\[(?:[^\]\\\n\r]|\\.)*\]` — character classes with their own escapes
LOWcrates/next-code-frame/src/highlight.rs1541 // -----------------------------------------------------------------------
LOWcrates/next-code-frame/src/frame.rs41 /// column highlighting — only the line itself is highlighted.
LOWcrates/next-api/src/dynamic_imports.rs1//! If an import is specified as dynamic, next.js does few things:
LOWcrates/next-api/src/project.rs901 }
LOWcrates/next-api/src/project.rs1701 /// shape.
LOWcrates/next-api/src/project.rs1721 // (public feature specifier, path suffix) pairs. The suffix identifies the resolved
LOWcrates/next-core/src/url_node.rs341 // So in the case that is test/e2e/dynamic-routing it'll be this:
LOWcrates/next-core/src/util.rs81 // VERCEL_GIT_REPO_ID
LOWcrates/next-core/src/next_telemetry.rs1use turbo_rcstr::RcStr;
LOWcrates/next-core/src/segment_config.rs301
LOWcrates/next-core/src/segment_config.rs321/// `ModuleAssetContext` first. This is the common/happy codepath.
LOWcrates/next-core/src/segment_config.rs341///
LOWcrates/next-core/src/app_structure.rs201 pub url_tree: UrlSegmentTree,
LOWcrates/next-core/src/app_structure.rs1081 )
LOWcrates/next-core/src/app_structure.rs1321 // /[...catchAll]/@slot - is_inside_catchall = true (skip validation) ✓
LOWcrates/next-core/src/next_config.rs121 production_browser_source_maps: bool,
LOWcrates/next-core/src/next_config.rs1041 #[serde(default)]
LOWcrates/next-core/src/next_config.rs1301 ///
LOW…next-core/src/next_app/app_client_references_chunks.rs61 // client_reference.ty,
LOW…next-core/src/next_app/app_client_references_chunks.rs81 // client_chunk_group.availability_info,
LOW…next-core/src/next_app/app_client_references_chunks.rs101 // }
LOW…next-core/src/next_app/app_client_references_chunks.rs121 // .try_join()
LOWcrates/next-core/src/next_app/metadata/mod.rs321 result[..len].iter().collect()
LOW…t-core/src/next_manifests/client_reference_manifest.rs41 /// Same as `ssr_module_mapping`, but for Edge SSR.
LOWcrates/next-core/src/next_font/local/font_fallback.rs161 .iter()
LOWcrates/next-core/src/next_shared/webpack_rules/mod.rs21};
LOWcrates/next-napi-bindings/src/turbo_trace_server.rs61 /// Average corrected duration across spans in the group.
LOWcrates/next-napi-bindings/src/code_frame.rs41 /// Number of lines to show above the error (default: 2)
LOWcrates/next-napi-bindings/src/code_frame.rs81
LOWcrates/next-napi-bindings/src/turbopack.rs21 /// The project's directory.
LOWcrates/next-napi-bindings/src/next_api/turbopack_ctx.rs61 }
LOWcrates/next-napi-bindings/src/next_api/turbopack_ctx.rs141pub struct NapiNextTurbopackCallbacksJsObject {
LOW…/cache-components-tasks/cache-components-tasks.test.ts81
LOW…/cache-components-tasks/cache-components-tasks.test.ts121
LOW…ponents-dev-warmup/cache-components.dev-warmup.test.ts141 'AbortError: This operation was aborted'
LOW…v-cache-scope/cache-components-dev-cache-scope.test.ts41
LOW…development/acceptance-app/ReactRefreshRequire.test.ts181
LOWtest/development/acceptance/ReactRefreshRequire.test.ts181 // This is the module graph:
LOWtest/development/app-functional/pages/_app.js1function MyApp({ Component, pageProps }) {
LOWtest/.stats-app/stats-config.js161 // 'http://localhost:$PORT/',
LOWtest/production/typescript-basic/app/next-env.d.ts1/// <reference types="next" />
LOW…production/typescript-basic/typechecking/next-env.d.ts1/// <reference types="next" />
LOW…t/production/webpack-config-mainjs/client/polyfills.js1/* eslint no-extend-native: 0 */
LOW…oduction/static-routes-info/static-routes-info.test.ts201 // the layout-segment entry in `entryCSSFiles`. This catches the
625 more matches not shown…
Fake / Example Data126 hits · 164 pts
SeverityFileLineSnippet
LOWbench/basic-app/app/api/app/route.js2 return Response.json({ name: 'John Doe' })
LOWbench/basic-app/pages/api/page-api.js2 res.status(200).json({ name: 'John Doe' })
LOWevals/evals/agent-033-forbidden-auth/app/lib/auth.ts17 name: 'John Doe',
LOWevals/evals/agent-032-use-cache-directive/lib/api.ts6 { id: 1, title: 'Getting Started with Next.js', author: 'Jane Doe' },
LOWtest/production/create-next-app/utils.ts184 expect(await apiRes.json()).toEqual({ name: 'John Doe' })
LOW…e/prefetch-runtime/app/(default)/fully-static/page.tsx17 .map(() => 'Lorem ipsum dolor sit amet.')}
LOW…e/prefetch-runtime/app/(default)/fully-static/page.tsx17 .map(() => 'Lorem ipsum dolor sit amet.')}
LOW…2e/app-dir/actions-streaming/actions-streaming.test.ts24 'Lorem ipsum dolor sit'
LOW…dir/actions-streaming/app/readable-stream/api/route.ts4 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.\n'
LOW…dir/actions-streaming/app/readable-stream/api/route.ts4 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.\n'
LOWtest/e2e/next-dynamic-css/src/Component2.jsx8 Contrary to popular belief, Lorem Ipsum is not simply random text. It
LOWtest/e2e/next-dynamic-css/src/Component2.jsx12 Latin words, consectetur, from a Lorem Ipsum passage, and going through
LOWtest/e2e/next-dynamic-css/src/Component2.jsx14 undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33
LOWtest/e2e/next-dynamic-css/src/Component2.jsx18 Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section
LOWtest/e2e/next-dynamic-css/src/Component2.jsx18 Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section
LOWtest/e2e/next-dynamic-css/src/Component2.jsx19 1.10.32. The standard chunk of Lorem Ipsum used since the 1500s is
LOWtest/e2e/next-dynamic-css/src/Content.jsx9 Contrary to popular belief, Lorem Ipsum is not simply random text. It
LOWtest/e2e/next-dynamic-css/src/Content.jsx13 Latin words, consectetur, from a Lorem Ipsum passage, and going through
LOWtest/e2e/next-dynamic-css/src/Content.jsx15 undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33
LOWtest/e2e/next-dynamic-css/src/Content.jsx19 Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section
LOWtest/e2e/next-dynamic-css/src/Content.jsx19 Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section
LOWtest/e2e/next-dynamic-css/src/Content.jsx20 1.10.32. The standard chunk of Lorem Ipsum used since the 1500s is
LOW…t/e2e/next-dynamic-css-asset-prefix/src/Component2.jsx8 Contrary to popular belief, Lorem Ipsum is not simply random text. It
LOW…t/e2e/next-dynamic-css-asset-prefix/src/Component2.jsx12 Latin words, consectetur, from a Lorem Ipsum passage, and going through
LOW…t/e2e/next-dynamic-css-asset-prefix/src/Component2.jsx14 undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33
LOW…t/e2e/next-dynamic-css-asset-prefix/src/Component2.jsx18 Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section
LOW…t/e2e/next-dynamic-css-asset-prefix/src/Component2.jsx18 Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section
LOW…t/e2e/next-dynamic-css-asset-prefix/src/Component2.jsx19 1.10.32. The standard chunk of Lorem Ipsum used since the 1500s is
LOWtest/e2e/next-dynamic-css-asset-prefix/src/Content.jsx9 Contrary to popular belief, Lorem Ipsum is not simply random text. It
LOWtest/e2e/next-dynamic-css-asset-prefix/src/Content.jsx13 Latin words, consectetur, from a Lorem Ipsum passage, and going through
LOWtest/e2e/next-dynamic-css-asset-prefix/src/Content.jsx15 undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33
LOWtest/e2e/next-dynamic-css-asset-prefix/src/Content.jsx19 Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section
LOWtest/e2e/next-dynamic-css-asset-prefix/src/Content.jsx19 Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section
LOWtest/e2e/next-dynamic-css-asset-prefix/src/Content.jsx20 1.10.32. The standard chunk of Lorem Ipsum used since the 1500s is
LOW…es/with-nhost-auth-realtime-graphql/pages/api/hello.js2 res.status(200).json({ name: "John Doe" });
LOWexamples/cms-builder-io/builder/post/second.json18 "intro": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore",
LOWexamples/cms-builder-io/builder/post/second.json18 "intro": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore",
LOWexamples/cms-builder-io/builder/post/second.json87 "text": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
LOWexamples/cms-builder-io/builder/post/second.json87 "text": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
LOWexamples/cms-builder-io/builder/post/second.json114 "text": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
LOWexamples/cms-builder-io/builder/post/second.json114 "text": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
LOWexamples/cms-builder-io/builder/post/second.json142 "text": "<p>Lorem ipsum dolor sit amet,</p>"
LOWexamples/cms-builder-io/builder/post/second.json142 "text": "<p>Lorem ipsum dolor sit amet,</p>"
LOWexamples/cms-builder-io/builder/post/second.json396 "text": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incid
LOWexamples/cms-builder-io/builder/post/second.json396 "text": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incid
LOWexamples/cms-builder-io/builder/post/second.json545 "text": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incid
LOWexamples/cms-builder-io/builder/post/second.json545 "text": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incid
LOWexamples/cms-builder-io/builder/post/second.json694 "text": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incid
LOWexamples/cms-builder-io/builder/post/second.json694 "text": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incid
LOWexamples/cms-builder-io/builder/post/second.json843 "text": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incid
LOWexamples/cms-builder-io/builder/post/second.json843 "text": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incid
LOWexamples/cms-builder-io/builder/post/second.json989 "text": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incid
LOWexamples/cms-builder-io/builder/post/second.json989 "text": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incid
LOWexamples/cms-builder-io/builder/post/second.json1135 "text": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incid
LOWexamples/cms-builder-io/builder/post/second.json1135 "text": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incid
LOWexamples/cms-builder-io/builder/post/first-one.json84 "text": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod temp
LOWexamples/cms-builder-io/builder/post/first-one.json84 "text": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod temp
LOWexamples/cms-builder-io/builder/post/schema.model.json123 "defaultValue": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labo
LOWexamples/cms-builder-io/builder/post/schema.model.json123 "defaultValue": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labo
LOWexamples/cms-tina/_posts/hello-world.md3excerpt: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
66 more matches not shown…
Verbosity Indicators74 hits · 121 pts
SeverityFileLineSnippet
LOW…st/development/stale-dev-types/stale-dev-types.test.ts10 // Step 1: Wait for dev server to generate .next/dev/types/validator.ts
LOW…st/development/stale-dev-types/stale-dev-types.test.ts29 // Step 2: Stop dev server
LOW…st/development/stale-dev-types/stale-dev-types.test.ts32 // Step 3: Delete the temp-route (simulating user deleting a route)
LOW…st/development/stale-dev-types/stale-dev-types.test.ts39 // Step 4: Run build - should NOT fail due to stale .next/dev types
LOW…st/e2e/app-dir/static-siblings/static-siblings.test.ts67 // Step 1: Navigate to the dynamic route first to "discover" it
LOW…st/e2e/app-dir/static-siblings/static-siblings.test.ts79 // Step 2: Navigate back to the home page
LOW…st/e2e/app-dir/static-siblings/static-siblings.test.ts83 // Step 3: Navigate to the static sibling with prefetch={false}
LOW…st/e2e/app-dir/static-siblings/static-siblings.test.ts106 // Step 1: Navigate to the dynamic route first to "discover" it
LOW…st/e2e/app-dir/static-siblings/static-siblings.test.ts118 // Step 2: Navigate back to the home page
LOW…st/e2e/app-dir/static-siblings/static-siblings.test.ts122 // Step 3: Navigate to the static sibling with prefetch={false}
LOW…st/e2e/app-dir/static-siblings/static-siblings.test.ts145 // Step 1: Navigate to the dynamic route first to "discover" it
LOW…st/e2e/app-dir/static-siblings/static-siblings.test.ts157 // Step 2: Navigate back to the home page
LOW…st/e2e/app-dir/static-siblings/static-siblings.test.ts161 // Step 3: Navigate to the static sibling with prefetch={false}
LOW…st/e2e/app-dir/static-siblings/static-siblings.test.ts191 // Step 1: Navigate to the dynamic route first to "discover" it
LOW…st/e2e/app-dir/static-siblings/static-siblings.test.ts205 // Step 2: Navigate back to the home page
LOW…st/e2e/app-dir/static-siblings/static-siblings.test.ts209 // Step 3: Navigate to the deeply nested static sibling with prefetch={false}
LOW…/app-dir/optimistic-routing/optimistic-routing.test.ts55 // Step 1: Reveal and prefetch the first blog post link.
LOW…/app-dir/optimistic-routing/optimistic-routing.test.ts70 // Step 2: Reveal the second link and navigate to it.
LOW…/app-dir/optimistic-routing/optimistic-routing.test.ts91 // Step 3: After act completes, verify the full page eventually loads
LOW…/app-dir/optimistic-routing/optimistic-routing.test.ts104 // Step 1: Reveal and prefetch the first product link.
LOW…/app-dir/optimistic-routing/optimistic-routing.test.ts118 // Step 2: Navigate to a different product with different category AND id.
LOW…/app-dir/optimistic-routing/optimistic-routing.test.ts152 // Step 1: Prefetch /docs (index route, no slug segments)
LOW…/app-dir/optimistic-routing/optimistic-routing.test.ts165 // Step 2: Navigate to /docs/intro (one segment)
LOW…/app-dir/optimistic-routing/optimistic-routing.test.ts191 // Step 1: Prefetch /docs/intro (one segment)
LOW…/app-dir/optimistic-routing/optimistic-routing.test.ts204 // Step 2: Navigate to /docs/guide/getting-started (two segments).
LOW…/app-dir/optimistic-routing/optimistic-routing.test.ts238 // Step 1: Prefetch /files/documents/report.pdf (three segments)
LOW…/app-dir/optimistic-routing/optimistic-routing.test.ts251 // Step 2: Navigate to /files/a/b/c/d (four segments).
LOW…/app-dir/optimistic-routing/optimistic-routing.test.ts281 // Step 1: Prefetch /blog/post-1 to learn the /blog/[slug] pattern.
LOW…/app-dir/optimistic-routing/optimistic-routing.test.ts295 // Step 2: Navigate to /blog/featured (static sibling).
LOW…/app-dir/optimistic-routing/optimistic-routing.test.ts332 // Step 1: Navigate to /rewritten/first.
LOW…/app-dir/optimistic-routing/optimistic-routing.test.ts348 // Step 2: Navigate forward to /hub. We use a hub page rather than
LOW…/app-dir/optimistic-routing/optimistic-routing.test.ts363 // Step 3: From /hub, reveal /rewritten/second. This link has
LOW…/app-dir/optimistic-routing/optimistic-routing.test.ts403 // Step 1: Navigate to /search-rewrite?v=alpha
LOW…/app-dir/optimistic-routing/optimistic-routing.test.ts421 // Step 2: Navigate forward to /hub instead of using browser.back() to
LOW…/app-dir/optimistic-routing/optimistic-routing.test.ts434 // Step 3: From /hub, reveal /search-rewrite?v=beta.
LOW…/app-dir/optimistic-routing/optimistic-routing.test.ts467 // Step 1: Prefetch /dashboard/anything/here to learn the catch-all pattern
LOW…/app-dir/optimistic-routing/optimistic-routing.test.ts481 // Step 2: Prefetch /dashboard/settings to populate the static child
LOW…/app-dir/optimistic-routing/optimistic-routing.test.ts496 // Step 3: Navigate to /dashboard/settings/profile (prefetch={false}).
LOWturbopack/crates/turbo-tasks-backend/src/backend/mod.rs1506 // Step 1: Fast read-only cache lookup (read lock, no allocation).
LOWturbopack/crates/turbo-tasks-backend/src/backend/mod.rs1517 // Step 2: Check backing storage using borrowed components (no box needed yet).
LOW…pack/crates/turbo-tasks-backend/src/backend/storage.rs937 // Step 1: modify the task outside snapshot mode (data_modified = true).
LOW…pack/crates/turbo-tasks-backend/src/backend/storage.rs943 // Step 2: enter snapshot mode.
LOW…pack/crates/turbo-tasks-backend/src/backend/storage.rs947 // Step 3: `take_snapshot` scans the shard. At this point the task has
LOW…pack/crates/turbo-tasks-backend/src/backend/storage.rs952 // Step 4: now that the scan is done but before we consume the iterator,
LOW…pack/crates/turbo-tasks-backend/src/backend/storage.rs963 // Step 5: consume the iterator. The iterator encodes from the pre-snapshot copy,
LOW…pack/crates/turbo-tasks-backend/src/backend/storage.rs1009 // Step 1: modify meta only, outside snapshot mode.
LOW…pack/crates/turbo-tasks-backend/src/backend/storage.rs1017 // Step 2: enter snapshot mode.
LOW…pack/crates/turbo-tasks-backend/src/backend/storage.rs1021 // Step 3: take_snapshot — task goes into modified list (meta_modified = true).
LOW…pack/crates/turbo-tasks-backend/src/backend/storage.rs1024 // Step 4: modify data during snapshot. The `(true, false)` branch fires:
LOW…pack/crates/turbo-tasks-backend/src/backend/storage.rs1033 // Step 5: consume the iterator — must not panic.
LOW…s/turbopack-ecmascript/src/tree_shake/optimizations.rs132 // Step 1: Build a reverse reachability map (which starting nodes can reach each node)
LOW…s/turbopack-ecmascript/src/tree_shake/optimizations.rs160 // Step 2: Find nodes that are reachable from exactly one starting node
LOW…s/turbopack-ecmascript/src/tree_shake/optimizations.rs190 // Step 3: Merge nodes into their starting points
LOW…es/turbo-tasks-macros/src/derive/task_storage_macro.rs2275 // Generate remove body - for lazy fields, we need to check if the map exists first
LOWscripts/pr-status.js433 // Step 1: Look up the PR number and first comment's databaseId from the
LOWscripts/pr-status.js474 // Step 2: Post the reply via REST. Unlike the GraphQL mutation
LOWscripts/pr-status.js1402 // Step 1: Delete and recreate output directory
LOWscripts/pr-status.js1408 // Step 2: Get branch info
LOWscripts/pr-status.js1415 // Step 3: Get workflow runs
LOWscripts/pr-status.js1430 // Step 4: Get run metadata
14 more matches not shown…
AI Slop Vocabulary30 hits · 88 pts
SeverityFileLineSnippet
MEDIUM…ment-cache/prefetch-inlining/prefetch-inlining.test.ts501 // recovery path needs a more robust test harness.
MEDIUM…/app-dir/app-static/app/force-cache-revalidate/page.js1// we want to bail out of ISR, but still leverage fetch caching
MEDIUM…e2e/app-dir/monaco-editor/components/editor/editor.tsx7// We leverage `use` to wait for the promise.
MEDIUM…t/e2e/filesystem-cache/warm-restart-task-stats.test.ts90 // Turbopack sorts on the Rust side, but sort again here to be robust
MEDIUMturbopack/crates/turbo-tasks-fs/src/watcher.rs558 // or the source we may able to utilize later.
MEDIUM.cargo/config.toml18# state-of-the-art in Rust optimization land (which might change month-to-month!).
MEDIUMpackages/next/src/server/base-server.ts1490 // This is needed for pages router to leverage unstable_cache
MEDIUMpackages/next/src/server/config.ts1108 // only leverage deploymentId
MEDIUMpackages/next/src/server/web/adapter.ts213 // leverage the shared instance if not we need
MEDIUMpackages/next/src/server/lib/patch-fetch.ts542 // prerendering so that we can still leverage the fetch cache between
MEDIUMpackages/next/src/server/lib/incremental-cache/index.ts141 // if we have a global cache handler available leverage it
MEDIUMpackages/next/src/server/lib/incremental-cache/index.ts478 // we don't leverage the prerender cache in dev mode
MEDIUMpackages/next/src/server/dev/middleware-webpack.ts481 // Try Client Compilation first. In `pages` we leverage
MEDIUMpackages/next/src/server/response-cache/web.ts69 // we keep the previous cache entry around to leverage
MEDIUMpackages/next/src/compiled/serve-handler/index.js19 */a.exports=rangeParser;function rangeParser(a,e,i){var n=e.indexOf("=");if(n===-1){return-2}var o=e.slice(n+1).split("
MEDIUMpackages/next/src/compiled/serve-handler/index.js19 */a.exports=rangeParser;function rangeParser(a,e,i){var n=e.indexOf("=");if(n===-1){return-2}var o=e.slice(n+1).split("
MEDIUM…t/src/compiled/@modelcontextprotocol/sdk/server/mcp.js3(function(e,t){true?t(r):0})(this,(function(e){"use strict";function merge(){for(var e=arguments.length,r=Array(e),t=0;t
MEDIUMpackages/next/src/compiled/compression/index.js58 */a.exports=vary;a.exports.append=append;var e=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function append(a,i){if(typeof a!=="str
MEDIUMpackages/next/src/compiled/compression/index.js58 */a.exports=vary;a.exports.append=append;var e=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function append(a,i){if(typeof a!=="str
MEDIUMpackages/next/src/shared/lib/router/router.ts197 // leverage x-matched-path to detect next.config.js rewrites
MEDIUMpackages/next/src/shared/lib/router/router.ts2383 // links via the equivalent of a hard navigation and hence never utilize these
MEDIUM…ges/next/src/shared/lib/router/utils/interpolate-as.ts31 // TODO: more robust handling for user-error (passing `/`)
MEDIUMpackages/next/src/lib/fs/rename.ts46 // is locked by AV software. We do leverage graceful-fs to iron
MEDIUMpackages/next/src/export/index.ts684 // that even setups with only a few static pages can leverage a shared
MEDIUM…next/src/client/components/segment-cache/navigation.ts243 // not just the page segments. Essentially treating it the same as a refresh()
MEDIUM…rc/client/components/router-reducer/ppr-navigations.ts1991 // Trigger a "soft" refresh. Essentially the same as calling `refresh()`
MEDIUMpackages/next-codemod/bin/upgrade.ts729 // TODO: Asking package manager for the installed version is most robust e.g. `pnpm why ${dependency}`
MEDIUMpackages/next-codemod/transforms/cra-to-next.ts539 // Remove this to leverage Next.js' static image handling
MEDIUM.github/workflows/build_reusable.yml136 # efficient, but won't fully utilize all available CPU cores. A small value here makes sense since
LOW.github/workflows/build_reusable.yml285 # TODO: May be sufficient to just set `$FNM_MULTISHELL_PATH/bin` from `fnm env --json` into GITHUB_PATH
Overly Generic Function Names67 hits · 64 pts
SeverityFileLineSnippet
LOW…s/tests/fixture/server-actions/server-graph/63/data.ts2export async function getData() {}
LOW…pment/basic/node-builtins/app/server-component/page.js25async function getData() {
LOW…node-builtins/app/server-component/node-schema/page.js22async function getData() {
LOW…uction/app-dir/use-cache-cross-deployment/app/page.tsx4async function getData() {
LOW…on/build-trace-extra-entries-turbo/app/lib/get-data.js4export function getData() {
LOW…/production/turborepo-access-trace/app/lib/get-data.js4export function getData() {
LOW…ion/turbotrace-with-webpack-worker/app/lib/get-data.js4export function getData() {
LOW…oduction/build-trace-extra-entries/app/lib/get-data.js4export function getData() {
LOWtest/e2e/app-dir/app-prefetch/app/dashboard/layout.js3async function getData() {
LOWtest/e2e/app-dir/app-prefetch/app/dashboard/page.js5async function getData() {
LOW…st/e2e/app-dir/app-prefetch/app/dashboard/[id]/page.js4async function getData() {
LOW…pp-dir/app-prefetch/app/prefetch-auto/[slug]/layout.js3function getData() {
LOW…/app-dir/app-prefetch/app/prefetch-auto/[slug]/page.js3function getData() {
LOW…e/app-dir/app-fetch-deduping/app/trace-headers/page.js1async function getData() {
LOWtest/e2e/app-dir/app/app/layout.js9async function getData() {
LOW…pp-dir/app/app/slow-layout-with-loading/slow/layout.js3async function getData() {
LOWtest/e2e/app-dir/app/app/(newroot)/layout.js3async function getData() {
LOW…pp/app/(newroot)/dashboard/project/[projectId]/page.js3async function getData({ params }) {
LOW…p/app/slow-layout-and-page-with-loading/slow/layout.js3async function getData() {
LOW…app/app/slow-layout-and-page-with-loading/slow/page.js3async function getData() {
LOW…st/e2e/app-dir/app/app/dashboard/deployments/layout.js3async function getData() {
LOW…e2e/app-dir/app/app/dashboard/deployments/[id]/page.js5async function getData({ params }) {
LOWtest/e2e/app-dir/app/app/slow-page-with-loading/page.js3async function getData() {
LOWtest/e2e/app-dir/app/app/slow-page-no-loading/page.js3async function getData() {
LOW…st/e2e/app-dir/app-rendering/app/static-only/layout.js3async function getData() {
LOW…e/app-dir/app-rendering/app/static-only/slow/layout.js3async function getData() {
LOW…e2e/app-dir/app-rendering/app/static-only/slow/page.js5async function getData() {
LOW…e/app-dir/app-rendering/app/static-only/nested/page.js5async function getData() {
LOW…-dir/app-rendering/app/isr-ssr-combined/slow/layout.js3async function getData() {
LOW…pp-dir/app-rendering/app/isr-ssr-combined/slow/page.js3async function getData() {
LOW…ir/app-rendering/app/isr-ssr-combined/nested/layout.js3async function getData() {
LOW…-dir/app-rendering/app/isr-ssr-combined/nested/page.js3async function getData() {
LOWtest/e2e/app-dir/app-rendering/app/ssr-only/layout.js5async function getData() {
LOW…/e2e/app-dir/app-rendering/app/ssr-only/slow/layout.js5async function getData() {
LOW…st/e2e/app-dir/app-rendering/app/ssr-only/slow/page.js4async function getData() {
LOW…/e2e/app-dir/app-rendering/app/ssr-only/nested/page.js3async function getData() {
LOW…t/e2e/app-dir/app-rendering/app/isr-multiple/layout.js3async function getData() {
LOW…/app-dir/app-rendering/app/isr-multiple/nested/page.js5async function getData() {
LOWtest/e2e/app-dir/use-cache-hanging/app/shared.ts21export function getData(url: string): Promise<Response> {
LOW…/app-dir/app-compilation/app/page-with-loading/page.js3async function getData() {
LOW…2e/app-dir/parallel-routes-revalidation/app/actions.ts13export async function getData() {
LOWtest/e2e/app-dir/use-cache-dev/app/page.tsx10async function getData() {
LOW…e-cache/app/(dynamic)/cache-fetch-auth-header/page.tsx4async function getData() {
LOW…cache/app/(partially-static)/fetch-revalidate/page.tsx3async function getData() {
LOW…e/app/(partially-static)/cache-fetch-no-store/page.tsx3async function getData() {
LOW…/use-cache/app/(partially-static)/cache-fetch/page.tsx3async function getData() {
LOW…-dir/revalidate-path-with-rewrites/app/shared-page.tsx1async function getData() {
LOWtest/e2e/app-dir/use-cache-deadlock-probe/app/shared.ts21export function getData(url: string): Promise<Response> {
LOWtest/e2e/app-dir/use-cache-custom-handler/app/page.tsx7async function getData() {
LOW…ersideprops-preview/getserversideprops-preview.test.ts6function getData(html: string) {
LOWtest/e2e/prerender-preview/prerender-preview.test.ts6function getData(html: string) {
LOWtest/e2e/draft-mode/draft-mode.test.ts5function getData(html: string) {
LOWtest/e2e/switchable-runtime/app/node-rsc-isr/page.js5async function getData() {
LOWtest/e2e/switchable-runtime/app/node-rsc-ssg/page.js5async function getData() {
LOWtest/e2e/switchable-runtime/app/node-rsc-ssr/page.js5async function getData() {
LOW…s/execution/webpack/inner-graph/switch/input/module.js21function doSomething(obj) {
LOW…mascript/tests/benches/react-dom-client.development.js3363 function getData() {
LOW…press/src/components/Globals/Navigation/Navigation.tsx10async function getData() {
LOW…ompiled/react-dom/cjs/react-dom-profiling.profiling.js1807function getData() {
LOW…/compiled/react-dom/cjs/react-dom-client.production.js1710function getData() {
7 more matches not shown…
Decorative Section Separators13 hits · 39 pts
SeverityFileLineSnippet
MEDIUMcrates/next-code-frame/src/frame.rs184 // ── Validate and normalize the location ──────────────────────────────
MEDIUM…pack-trace-server-query/turbopack-trace-server.test.ts21// ─── helpers ─────────────────────────────────────────────────────────────────
MEDIUM…pack-trace-server-query/turbopack-trace-server.test.ts112// ─── test suite ──────────────────────────────────────────────────────────────
MEDIUM…pack-trace-server-query/turbopack-trace-server.test.ts237 // ─── MCP HTTP API tests ──────────────────────────────────────────────────
MEDIUM…pack-trace-server-query/turbopack-trace-server.test.ts317 // ─── CLI tests ───────────────────────────────────────────────────────────
MEDIUMturbopack/crates/turbo-persistence/src/db.rs905 // ── Point of no return ──────────────────────────────────────────
MEDIUM…ev-overlay/components/instant/instant-guidance-data.ts69// ── Blocking-route cards ──────────────────────────
MEDIUM…ev-overlay/components/instant/instant-guidance-data.ts154// ── Unrendered-segment cards ──────────────────────
MEDIUM…ev-overlay/components/instant/instant-guidance-data.ts195// ── Metadata cards ────────────────────────────────
MEDIUM…ev-overlay/components/instant/instant-guidance-data.ts245// ── Viewport cards ────────────────────────────────
MEDIUM…ev-overlay/components/instant/instant-guidance-data.ts295// ── Sync IO cards (per API) ───────────────────────
MEDIUM…ev-overlay/components/instant/instant-guidance-data.ts416// ── Client sync IO cards (no Suspense above) ──────
MEDIUM…ev-overlay/components/instant/instant-guidance-data.ts504// ── Card lookup ───────────────────────────────────
Hallucination Indicators3 hits · 30 pts
SeverityFileLineSnippet
CRITICALcrates/next-custom-transforms/src/chain_transforms.rs378 let syntax = self.swc.config.jsc.syntax.unwrap_or_default();
CRITICALcrates/next-custom-transforms/src/chain_transforms.rs379 let target = self.swc.config.jsc.target.unwrap_or_else(EsVersion::latest);
CRITICALpackages/next/src/compiled/crypto-browserify/index.js1(function(){var e={9186:function(e,t,r){var i=t;i.bignum=r(5944);i.define=r(5673).define;i.base=r(8747);i.constants=r(80
Cross-Language Confusion (JS/TS)5 hits · 25 pts
SeverityFileLineSnippet
HIGHexamples/cms-wordpress/src/app/not-found.tsx15 print(SeoQuery),
HIGHexamples/cms-wordpress/src/app/[[...slug]]/page.tsx24 print(SeoQuery),
HIGHexamples/cms-wordpress/src/app/[[...slug]]/page.tsx53 print(ContentInfoQuery),
HIGHexamples/cms-wordpress/src/app/api/preview/route.ts37 print(mutation),
HIGHexamples/cms-wordpress/src/app/api/preview/route.ts55 print(query),
Magic Placeholder Names3 hits · 15 pts
SeverityFileLineSnippet
HIGHexamples/with-firebase-cloud-messaging/utils/webPush.js12 apiKey: "YOUR-API-KEY",
HIGH…rebase-cloud-messaging/public/firebase-messaging-sw.js6 apiKey: "YOUR-API-KEY",
HIGHexamples/with-apivideo/pages/videos/index.tsx58 API key set in your .env file this way: <i>API_KEY=YOUR_API_KEY</i>
Slop Phrases6 hits · 13 pts
SeverityFileLineSnippet
LOWcrates/next-error-code-swc-plugin/build-and-move.sh27echo " (Don't forget to commit the generated .wasm file!)" >&2
MEDIUMtest/lib/next-test-utils.ts1731 // Feel free to adjust this heuristic if it accidentally hides too much.
MEDIUM…/app-dir/server-source-maps/server-source-maps.test.ts587 // Feel free to adjust these locations. They're just here to showcase
LOWexamples/with-http2/server.js13// Don't forget to create the keys for your development
LOWexamples/with-typescript/pages/users/index.tsx29 // Don't forget to include the respective types for any props passed into
MEDIUMexamples/with-supabase/proxy.ts16 * Feel free to modify this pattern to include more paths.
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippet
MEDIUM…th-docker-compose/compose.prod-without-multistage.yaml18# Define a network, which allows containers to communicate
MEDIUMexamples/with-docker-compose/compose.dev.yaml27# Define a network, which allows containers to communicate
MEDIUMexamples/with-docker-compose/compose.prod.yaml18# Define a network, which allows containers to communicate
Example Usage Blocks4 hits · 6 pts
SeverityFileLineSnippet
LOWbench/basic-app/benchmark.sh9# Usage:
LOWscripts/run-jest.sh6# Usage:
LOWscripts/benchmark-boot-time.sh11# Usage:
LOWpackages/next-codemod/scripts/test-upgrade-fixture.sh5# Usage:
Excessive Try-Catch Wrapping2 hits · 4 pts
SeverityFileLineSnippet
MEDIUMturbopack/scripts/analyze_cache_effectiveness.py332 print(f"Error: File not found: {e.filename}")
MEDIUMturbopack/scripts/analyze_cache_effectiveness.py335 print(f"Error parsing JSON: {e}")
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippet
LOWturbopack/scripts/analyze_cache_effectiveness.py104 # Print results