AI Slop Code Risk Monitor

sveltejs/svelte

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

web development for the rest of us

0.3 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for sveltejs/svelte, a JavaScript project with 88,498 GitHub stars. SynthScan examined 295,475 lines of code across 9250 source files, recording 43 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 0.3 (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.

0.3
Adjusted Signal
0.3
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
88.5K
Stars
JavaScript
Language
295.5K
Lines of Code
9.2K
Files
43
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 0.9/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.8/100 · LOW

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

Agent Over-Engineering Ratio 0.1/100 · LOW

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

PR Review Velocity Impact 1.6/100 · LOW

Which changes need focused human review? 43 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 4HIGH 0MEDIUM 8LOW 31

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 43 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hallucination Indicators4 hits · 40 pts
SeverityFileLineSnippetContext
CRITICAL…c/compiler/phases/2-analyze/visitors/DeclarationTag.js20 .find((id) => context.state.analysis.instance.scope.declarations.has(id.name));CODE
CRITICAL…src/compiler/phases/2-analyze/visitors/SnippetBlock.js33 if (context.state.analysis.instance.scope.declarations.has(name)) {CODE
CRITICAL…src/compiler/phases/2-analyze/visitors/SnippetBlock.js43 context.state.analysis.module.scope.declarations.set(name, binding);CODE
CRITICAL…velte/src/compiler/phases/2-analyze/css/css-analyze.js133 const parent_is_global = node.metadata.rule.metadata.parent_rule.prelude.children.some(CODE
AI Slop Vocabulary8 hits · 24 pts
SeverityFileLineSnippetContext
MEDIUMpackages/svelte/tests/hydration/test.ts99 // TODO convert this to structured data, for more robust comparison?COMMENT
MEDIUMpackages/svelte/tests/runtime-legacy/shared.ts347 // TODO convert this to structured data, for more robust comparison?COMMENT
MEDIUM…ckages/svelte/src/compiler/phases/3-transform/index.js40 // include source content; makes it easier/more robust looking up the source map codeCOMMENT
MEDIUM…ckages/svelte/src/compiler/phases/3-transform/index.js99 // include source content; makes it easier/more robust looking up the source map codeCOMMENT
MEDIUM…es/svelte/src/compiler/phases/3-transform/css/index.js57 // include source content; makes it easier/more robust looking up the source map codeCOMMENT
MEDIUM…c/compiler/phases/2-analyze/visitors/DeclarationTag.js63 // TODO 6.0 once non-async and non-runes mode is gone investigate making this more robustCOMMENT
MEDIUM…/compiler/phases/2-analyze/visitors/AwaitExpression.js74 // @ts-expect-error we could probably use a neater/more robust mechanismCOMMENT
MEDIUM…/compiler/phases/2-analyze/visitors/AwaitExpression.js98 // @ts-expect-error we could probably use a neater/more robust mechanismCOMMENT
Over-Commented Block17 hits · 17 pts
SeverityFileLineSnippetContext
LOWdocumentation/docs/07-misc/06-v4-migration-guide.md201COMMENT
LOWpackages/svelte/elements.d.ts1// Type definitions for Svelte HTML, based on JSX React 18 typingsCOMMENT
LOWpackages/svelte/elements.d.ts21// Saransh Kataria <https://github.com/saranshkataria>COMMENT
LOW…time-runes/samples/async-overlap-multiple-7/_config.js81 a 1 | b 2 | c 1 | d 3COMMENT
LOW…time-runes/samples/async-overlap-multiple-7/_config.js101 // );COMMENT
LOW…time-runes/samples/async-overlap-multiple-7/_config.js121 // a 1 | b 2 | c 1 | d 3COMMENT
LOW…time-runes/samples/async-overlap-multiple-5/_config.js81 // assert.htmlEqual(COMMENT
LOW…time-runes/samples/async-overlap-multiple-5/_config.js101 // <button>pop</button>COMMENT
LOW…elte/tests/css/samples/unicode-identifier/expected.css21 #\31 .svelte-xyz span:where(.svelte-xyz) { color: green; }COMMENT
LOW…s/runtime-legacy/samples/sigil-static-hash/main.svelte1#fooCOMMENT
LOWpackages/svelte/scripts/generate-browser-support.ts1/* eslint-disable no-console */COMMENT
LOWpackages/svelte/scripts/generate-browser-support.ts81 // `box: 'device-pixel-content-box'` in `bind_resize_observer`COMMENT
LOW…ages/svelte/src/internal/client/dom/elements/events.js221 (handler_element === document || handler_element === /** @type {any} */ (window))COMMENT
LOW…/svelte/src/internal/client/dom/elements/attributes.js341COMMENT
LOWpackages/svelte/src/reactivity/media-query.js1import { on } from '../events/index.js';COMMENT
LOWpackages/svelte/src/compiler/migrate/index.js601 nr_of_props++;COMMENT
LOW…compiler/phases/3-transform/client/visitors/IfBlock.js81 context.state.node,COMMENT
Fake / Example Data5 hits · 5 pts
SeverityFileLineSnippetContext
LOW…tor/samples/a11y-role-supports-aria-props/input.svelte178<input type="submit" aria-placeholder="placeholder" /> <!-- implicit role: button -->CODE
LOW…tor/samples/a11y-role-supports-aria-props/input.svelte184<menuitem type="radio" aria-placeholder="placeholder"></menuitem> <!-- implicit role: menuitemradio -->CODE
LOW…runtime-runes/samples/derived-dependencies/main.svelte4 author: 'John Doe',CODE
LOW…runtime-runes/samples/derived-dependencies/main.svelte23 author: 'John Doe',CODE
LOW…g/samples/select-option-store-text-content/main.svelte10 <option disabled value="">{$t('placeholder')}</option>CODE
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippetContext
LOW…phases/3-transform/server/visitors/shared/component.js112 // Bindings are a bit special: we don't want to add them to (async) deriveds but we need to check if they have blockeCOMMENT
LOW…r/phases/3-transform/client/visitors/RegularElement.js425 // after the element has been hydrated. We need to check if any childCOMMENT
LOW…phases/3-transform/client/visitors/shared/component.js204 // Bindings are a bit special: we don't want to add them to (async) deriveds but we need to check if they have blockeCOMMENT
Hyper-Verbose Identifiers4 hits · 4 pts
SeverityFileLineSnippetContext
LOW…ests/runtime-runes/samples/class-state-raw/main.svelte4 function someLibFunctionCreatingFroozenObject(value) {CODE
LOW…ests/runtime-runes/samples/class-state-raw/main.svelte12 function someLibFunctionReturningInner(wrapped) {CODE
LOW…/samples/proxy-coercive-assignment-warning/Test.svelte8 export function soThatTestReturnsAnObject() {CODE
LOW…-legacy/samples/dynamic-element-animation-2/_config.js47 function fakeGetBoundingClientRect() {CODE
Overly Generic Function Names2 hits · 3 pts
SeverityFileLineSnippetContext
LOWpackages/svelte/types/index.d.ts386 * async function getData(id) {COMMENT
LOWpackages/svelte/src/index-client.js57 * async function getData(id) {COMMENT