AI Slop Code Risk Monitor

kucherenko/jscpd

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

Copy/paste detector for source code. 220+ languages, Rust engine, SARIF/HTML/badge reporters, GitHub Action, MCP server for AI agents.

3.3 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for kucherenko/jscpd, a Rust project with 6,471 GitHub stars. SynthScan examined 115,702 lines of code across 276 source files, recording 238 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 3.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.

3.3
Adjusted Signal
3.3
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
6.5K
Stars
Rust
Language
115.7K
Lines of Code
276
Files
238
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 7.6/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

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

Agent Over-Engineering Ratio 8.2/100 · LOW

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

PR Review Velocity Impact 15.3/100 · LOW

Which changes need focused human review? 238 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 0HIGH 0MEDIUM 73LOW 165

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 238 distinct pattern matches across 9 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.

Decorative Section Separators66 hits · 198 pts
SeverityFileLineSnippetContext
MEDIUMrust/crates/cpd-tokenizer/tests/behavior.rs91// ── hostile input ────────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/cpd-tokenizer/tests/behavior.rs407// ── modes ────────────────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/cpd-tokenizer/tests/behavior.rs464// ── ignore patterns and markers ─────────────────────────────────────────COMMENT
MEDIUMrust/crates/cpd-tokenizer/tests/behavior.rs709// ── multi-format files ─────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/cpd-tokenizer/tests/behavior.rs754// ── TypeScript stripped for cross-format detection ─────────────────────COMMENT
MEDIUMrust/crates/cpd-tokenizer/tests/behavior.rs834// ── formats ─────────────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/cpd-tokenizer/tests/behavior.rs854// ── known bugs ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/cpd-tokenizer/src/javascript.rs20// ── fallback tokenizer ────────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/cpd-tokenizer/src/javascript.rs83// ── helpers ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/cpd-tokenizer/src/javascript.rs162// ── public API ───────────────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/cpd-tokenizer/src/javascript.rs268// ── ignore markers in JSX ─────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/cpd-tokenizer/src/javascript.rs424// ── tests ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/frameworks.yaml51 # ── bundlers and dev servers ──────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/frameworks.yaml72 # ── full-stack and meta frameworks ────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/frameworks.yaml415 # ── application frameworks ────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/frameworks.yaml552 # ── mobile ────────────────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/frameworks.yaml583 # ── serverless and edge ───────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/frameworks.yaml646 # ── documentation and static sites ────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/frameworks.yaml683 # ── component workshops ───────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/frameworks.yaml704 # ── test runners ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/frameworks.yaml769 # ── databases and migrations ──────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/frameworks.yaml806 # ── other toolchains ──────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/frameworks.yaml832 # ── Python ────────────────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/tests/findings.rs118// ── JavaScript and TypeScript resolution ────────────────────────────────COMMENT
MEDIUMrust/crates/basta/tests/findings.rs517// ── JSX factories ──────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/tests/findings.rs564// ── components ─────────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/tests/findings.rs631// ── Python ─────────────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/tests/findings.rs705// ── hostile files ──────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/tests/findings.rs791// ── more resolution shapes ─────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/src/framework.rs693// ── loading ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/src/graph.rs561 // ── queries the report layer asks ───────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/src/entry.rs330// ── helpers for manifest readers ────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/src/entry.rs370// ── scripts that name source files ──────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/src/rustc.rs191// ── cargo's JSON ────────────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/src/lang/javascript.rs284// ── resolution ──────────────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/src/lang/javascript.rs467// ── workspace packages ──────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/src/lang/javascript.rs626// ── bundler config aliases ──────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/src/lang/javascript.rs919// ── tsconfig path aliases ───────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/src/lang/javascript.rs1153// ── manifests ───────────────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/src/lang/javascript.rs1331// ── parsing ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/src/lang/javascript.rs3388 // ── resolution ──────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/src/lang/javascript.rs3879 // ── tsconfig path aliases ───────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/src/lang/javascript.rs4084 // ── files named by a string rather than imported ────────────────────COMMENT
MEDIUMrust/crates/basta/src/lang/javascript.rs4144 // ── manifests ───────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/src/lang/sfc.rs215// ── masking ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/src/lang/sfc.rs243// ── block scanning ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/src/lang/sfc.rs416// ── markup scanning ─────────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/src/lang/python.rs141// ── resolution ──────────────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/src/lang/python.rs254// ── manifests ───────────────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/src/lang/python.rs322// ── parsing ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/src/lang/python.rs1287 // ── forward references ──────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/src/lang/python.rs1704 // ── resolution ──────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/basta/src/lang/python.rs1828 // ── manifests ───────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/cpd-reporter/src/deadcode/mod.rs126// ── helpers shared by the reporters ────────────────────────────────────────COMMENT
MEDIUMrust/crates/cpd/tests/integration.rs3616// ── Binary name follows the invoked executable ──────────────────────────────COMMENT
MEDIUMrust/crates/cpd/tests/integration.rs3667// ── exit codes (#1047) ───────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/cpd/tests/integration.rs3667// ── exit codes (#1047) ───────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/cpd/tests/integration.rs3788// ── --history: duplication trend over git history (#1002) ─────────────────COMMENT
MEDIUMrust/crates/cpd/tests/integration.rs3788// ── --history: duplication trend over git history (#1002) ─────────────────COMMENT
MEDIUM.github/workflows/release.yml23 # ─── Detect changed paths & pending releases ──────────────────────────COMMENT
6 more matches not shown…
Over-Commented Block158 hits · 158 pts
SeverityFileLineSnippetContext
LOWrust/crates/cpd-tokenizer/src/generic.rs61 // and `::` (batch), `*>` (COBOL), `NB.` (J), `BTW`COMMENT
LOWrust/crates/cpd-tokenizer/src/tokenizer.rs41COMMENT
LOWrust/crates/cpd-tokenizer/src/tokenizer.rs61 /// function or type names match (issue #998). Keywords are kept: theCOMMENT
LOWrust/crates/cpd-tokenizer/src/tokenizer.rs181/// Push a token into the detection output if it passes all filters.COMMENT
LOWrust/crates/cpd-tokenizer/src/tokenizer.rs301/// them consistently (see [`DetectionToken::name`]).COMMENT
LOWrust/crates/cpd-tokenizer/src/tokenizer.rs401];COMMENT
LOWrust/crates/cpd-tokenizer/src/tokenizer.rs801 Mode::Strict => true,COMMENT
LOWrust/crates/cpd-tokenizer/src/ts_strip.rs1// cpd-tokenizer: collect byte spans of erasable TypeScript-only syntax.COMMENT
LOWrust/crates/basta/frameworks.yaml1# Frameworks basta recognises, and what each one starts without an import.COMMENT
LOWrust/crates/basta/frameworks.yaml21# packageJsonKeys package.json has this top-level sectionCOMMENT
LOWrust/crates/basta/frameworks.yaml41# anybody's word everywhere else.COMMENT
LOWrust/crates/basta/src/framework.rs1//! Frameworks: the programs that start a project's files without importing them.COMMENT
LOWrust/crates/basta/src/framework.rs41];COMMENT
LOWrust/crates/basta/src/framework.rs61 /// Directories the framework loads whole.COMMENT
LOWrust/crates/basta/src/section.rs1//! The dead-code section of a jscpd config file.COMMENT
LOWrust/crates/basta/src/section.rs41/// Dead-code settings a project keeps in its jscpd config.COMMENT
LOWrust/crates/basta/src/section.rs61 pub include_tests: Option<bool>,COMMENT
LOWrust/crates/basta/src/classify.rs1//! Turning a resolved graph into the findings a reader acts on.COMMENT
LOWrust/crates/basta/src/classify.rs121/// Which rule, if any, a declaration falls under.COMMENT
LOWrust/crates/basta/src/classify.rs141 // in `phases.py` itself ever mentions it again.COMMENT
LOWrust/crates/basta/src/graph.rs1//! The whole-project view: which module every specifier names, whichCOMMENT
LOWrust/crates/basta/src/graph.rs41 /// Target module of each import, parallel to [`Graph::imports`].COMMENT
LOWrust/crates/basta/src/resolve.rs1//! The index every resolver answers against, and the path arithmetic theyCOMMENT
LOWrust/crates/basta/src/resolve.rs21/// One import path alias a project declares for itself.COMMENT
LOWrust/crates/basta/src/resolve.rs61 ///COMMENT
LOWrust/crates/basta/src/config.rs21 /// The frameworks this run can recognise, and whether it should try.COMMENT
LOWrust/crates/basta/src/config.rs41 pub min_lines: u32,COMMENT
LOWrust/crates/basta/src/confidence.rs1//! How sure basta is that a finding is really dead.COMMENT
LOWrust/crates/basta/src/confidence.rs41 /// The finding itself is inside a test, fixture or example file.COMMENT
LOWrust/crates/basta/src/finding.rs1//! What a run reports.COMMENT
LOWrust/crates/basta/src/entry.rs1//! Where the program starts.COMMENT
LOWrust/crates/basta/src/entry.rs21//! that names a source file runs it, copies it or ships it. Those filesCOMMENT
LOWrust/crates/basta/src/entry.rs401const SCRIPT_SIZE_LIMIT: u64 = 1024 * 1024;COMMENT
LOWrust/crates/basta/src/test_scan.rs1//! Building a resolved [`Graph`] from source strings, for tests.COMMENT
LOWrust/crates/basta/src/model.rs1//! The data model shared by every language analyzer and by the graph.COMMENT
LOWrust/crates/basta/src/model.rs21COMMENT
LOWrust/crates/basta/src/model.rs41 /// A TypeScript `export type` / `import type` binding: erased at runtime.COMMENT
LOWrust/crates/basta/src/model.rs61 /// An abstract declaration — the implementation lives in subclasses.COMMENT
LOWrust/crates/basta/src/model.rs141 pub is_entry: bool,COMMENT
LOWrust/crates/basta/src/model.rs161 /// The file exists to re-export a package's surface (`index.ts`,COMMENT
LOWrust/crates/basta/src/model.rs221 /// The local binding the import creates, when it creates one. `None` forCOMMENT
LOWrust/crates/basta/src/model.rs241 StarReExport,COMMENT
LOWrust/crates/basta/src/rustc.rs1//! Rust dead code, read from the compiler.COMMENT
LOWrust/crates/basta/src/cli.rs41COMMENT
LOWrust/crates/basta/src/cli.rs61 /// Treat this framework as present at the scan roots (repeatable)COMMENT
LOWrust/crates/basta/src/lang/mod.rs1//! Language plug-ins.COMMENT
LOWrust/crates/basta/src/lang/mod.rs61 /// error: one broken file must not fail the run, but the graph has toCOMMENT
LOWrust/crates/basta/src/lang/mod.rs121COMMENT
LOWrust/crates/basta/src/lang/javascript.rs1//! JavaScript, TypeScript, JSX and TSX, through the oxc parser — and theCOMMENT
LOWrust/crates/basta/src/lang/javascript.rs1101COMMENT
LOWrust/crates/basta/src/lang/javascript.rs1901 /// walk. See [`CommonJs`].COMMENT
LOWrust/crates/basta/src/lang/sfc.rs1//! Single-file components: Vue, Svelte and Astro.COMMENT
LOWrust/crates/basta/src/lang/sfc.rs41 pub script: String,COMMENT
LOWrust/crates/basta/src/lang/python.rs1//! Python, through the ruff parser.COMMENT
LOWrust/crates/cpd-semantic/src/test_code.rs1//! Which functions are tests, so that `--compare` measures tests and codeCOMMENT
LOWrust/crates/cpd-semantic/src/units.rs1//! Functions to embed for semantic clones (`--semantic`).COMMENT
LOWrust/crates/cpd-semantic/src/lib.rs1//! Semantic clones for jscpd (`--semantic`, experimental): functions thatCOMMENT
LOWrust/crates/cpd-semantic/src/compare.rs1//! Two codebases compared function by function (`--compare`): a project andCOMMENT
LOWrust/crates/cpd-semantic/src/compare.rs21//! function of the other side under the same name, once case,COMMENT
LOWrust/crates/cpd-semantic/src/compare.rs441 }COMMENT
98 more matches not shown…
Modern AI Meta-Vocabulary4 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md88- **Type-4 semantic clones (experimental)** — `--semantic` embeds the functions of JavaScript, TypeScript, Vue, Svelte, CODE
MEDIUMrust/crates/cpd-semantic/Cargo.toml49# The local provider: the embedding model runs in-process.COMMENT
MEDIUMrust/crates/cpd-semantic/Cargo.toml56# embedding model's matrix products on macOS.COMMENT
MEDIUMskills/compare-codebases/SKILL.md12jscpd finds the functions of JavaScript, TypeScript, JSX, TSX, Vue, Svelte, Astro, Python, Rust, Go, Java, Kotlin, C#, CCODE
AI Slop Vocabulary2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMrust/crates/cpd-reporter/assets/prism/prism.min.js195!function(a){var n="(?:\r?\n|\r)[ \t]*\\|.+\\|(?:(?!\\|).)*";a.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1CODE
MEDIUMrust/crates/cpd-reporter/assets/prism/prism.min.js407!function(e){var t=/\$\w+|%[a-z]+%/;e.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbeCODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMrust/crates/basta/frameworks.yaml8# This file is compiled into the binary. A project adds to it or overrides itCOMMENT
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippetContext
LOWrust/crates/cpd-semantic/src/compare.rs284 // Step 1: the rule of --semantic, across the sides, between functionsCOMMENT
LOWrust/crates/cpd-semantic/src/compare.rs325 // Step 2: namesakes among the functions left unpaired.COMMENT
Structural Annotation Overuse2 hits · 3 pts
SeverityFileLineSnippetContext
LOWrust/crates/cpd-semantic/src/compare.rs284 // Step 1: the rule of --semantic, across the sides, between functionsCOMMENT
LOWrust/crates/cpd-semantic/src/compare.rs325 // Step 2: namesakes among the functions left unpaired.COMMENT
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWrust/scripts/publish-npm.sh4# Usage:COMMENT
LOWrust/scripts/publish-crates.sh4# Usage:COMMENT
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWrust/scripts/build-pypi-wheels.py21CODE