Repository Analysis

sveltejs/svelte

web development for the rest of us

0.3 Likely human-written View on GitHub
0.3
Adjusted Score
0.3
Raw Score
100%
Time Factor
2026-05-30
Last Push
86,661
Stars
JavaScript
Language
282,438
Lines of Code
8887
Files
37
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 2HIGH 0MEDIUM 8LOW 27

Pattern Findings

37 matches across 7 categories. Click a row to expand file-level details.

AI Slop Vocabulary8 hits · 24 pts
SeverityFileLineSnippet
MEDIUMpackages/svelte/tests/hydration/test.ts85 // TODO convert this to structured data, for more robust comparison?
MEDIUMpackages/svelte/tests/runtime-legacy/shared.ts300 // TODO convert this to structured data, for more robust comparison?
MEDIUM…ckages/svelte/src/compiler/phases/3-transform/index.js40 // include source content; makes it easier/more robust looking up the source map code
MEDIUM…ckages/svelte/src/compiler/phases/3-transform/index.js99 // include source content; makes it easier/more robust looking up the source map code
MEDIUM…es/svelte/src/compiler/phases/3-transform/css/index.js57 // include source content; makes it easier/more robust looking up the source map code
MEDIUM…c/compiler/phases/2-analyze/visitors/DeclarationTag.js49 // TODO 6.0 once non-async and non-runes mode is gone investigate making this more robust
MEDIUM…/compiler/phases/2-analyze/visitors/AwaitExpression.js68 // @ts-expect-error we could probably use a neater/more robust mechanism
MEDIUM…/compiler/phases/2-analyze/visitors/AwaitExpression.js92 // @ts-expect-error we could probably use a neater/more robust mechanism
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippet
CRITICAL…src/compiler/phases/2-analyze/visitors/SnippetBlock.js37 context.state.analysis.module.scope.declarations.set(name, binding);
CRITICAL…velte/src/compiler/phases/2-analyze/css/css-analyze.js133 const parent_is_global = node.metadata.rule.metadata.parent_rule.prelude.children.some(
Over-Commented Block16 hits · 16 pts
SeverityFileLineSnippet
LOWdocumentation/docs/07-misc/06-v4-migration-guide.md201
LOWpackages/svelte/elements.d.ts1// Type definitions for Svelte HTML, based on JSX React 18 typings
LOWpackages/svelte/elements.d.ts21// Saransh Kataria <https://github.com/saranshkataria>
LOW…time-runes/samples/async-overlap-multiple-7/_config.js81 a 1 | b 2 | c 1 | d 3
LOW…time-runes/samples/async-overlap-multiple-7/_config.js101 // );
LOW…time-runes/samples/async-overlap-multiple-7/_config.js121 // a 1 | b 2 | c 1 | d 3
LOW…time-runes/samples/async-overlap-multiple-5/_config.js81 // assert.htmlEqual(
LOW…time-runes/samples/async-overlap-multiple-5/_config.js101 // <button>pop</button>
LOW…elte/tests/css/samples/unicode-identifier/expected.css21 #\31 .svelte-xyz span:where(.svelte-xyz) { color: green; }
LOW…s/runtime-legacy/samples/sigil-static-hash/main.svelte1#foo
LOWpackages/svelte/scripts/generate-browser-support.ts1// Regenerates `documentation/docs/07-misc/05-browser-support.md`.
LOWpackages/svelte/scripts/generate-browser-support.ts61 // `CSSStyleDeclaration` until v126 (May 2024) — pre-126 the read
LOW…/svelte/src/internal/client/dom/elements/attributes.js341 // and this wouldn't be reached in case of undefined because of the equality check below
LOWpackages/svelte/src/reactivity/media-query.js1import { on } from '../events/index.js';
LOWpackages/svelte/src/compiler/migrate/index.js601 nr_of_props++;
LOW…compiler/phases/3-transform/client/visitors/IfBlock.js81 b.arrow([b.id('$$render')], first_if ? b.block([first_if]) : b.block([]))
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippet
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 blocke
LOW…r/phases/3-transform/client/visitors/RegularElement.js420 // after the element has been hydrated. We need to check if any child
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 blocke
Hyper-Verbose Identifiers4 hits · 4 pts
SeverityFileLineSnippet
LOW…ests/runtime-runes/samples/class-state-raw/main.svelte4 function someLibFunctionCreatingFroozenObject(value) {
LOW…ests/runtime-runes/samples/class-state-raw/main.svelte12 function someLibFunctionReturningInner(wrapped) {
LOW…/samples/proxy-coercive-assignment-warning/Test.svelte8 export function soThatTestReturnsAnObject() {
LOW…-legacy/samples/dynamic-element-animation-2/_config.js47 function fakeGetBoundingClientRect() {
Overly Generic Function Names2 hits · 3 pts
SeverityFileLineSnippet
LOWpackages/svelte/types/index.d.ts386 * async function getData(id) {
LOWpackages/svelte/src/index-client.js57 * async function getData(id) {
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippet
LOW…runtime-runes/samples/derived-dependencies/main.svelte4 author: 'John Doe',
LOW…runtime-runes/samples/derived-dependencies/main.svelte23 author: 'John Doe',