AI Slop Code Risk Monitor

leptos-rs/leptos

SlopCodeMonitor badge for leptos-rs/leptos Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Build fast web applications with Rust.

3.7 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for leptos-rs/leptos, a Rust project with 21,452 GitHub stars. SynthScan examined 167,367 lines of code across 1292 source files, recording 646 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 3.7 (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.7
Adjusted Signal
3.7
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
21.5K
Stars
Rust
Language
167.4K
Lines of Code
1.3K
Files
646
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 17.0/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.1/100 · LOW

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

Agent Over-Engineering Ratio 0.0/100 · LOW

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

PR Review Velocity Impact 17.8/100 · LOW

Which changes need focused human review? 646 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 4LOW 642

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 646 distinct pattern matches across 5 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.

Over-Commented Block634 hits · 606 pts
SeverityFileLineSnippetContext
LOWreactive_stores_macro/src/lib.rs21COMMENT
LOWreactive_stores_macro/src/lib.rs41/// T4,COMMENT
LOWreactive_stores_macro/src/lib.rs61/// 'a,COMMENT
LOWreactive_stores_macro/src/lib.rs81/// T1,COMMENT
LOW.config/nextest.toml1experimental = ["setup-scripts"]COMMENT
LOWrouter_macro/tests/ui.rs1//! Compile-fail coverage for the router macros' rejection rules.COMMENT
LOWrouter_macro/src/lib.rs21const RFC3986_PCHAR_OTHER: [char; 12] =COMMENT
LOWrouter_macro/src/lib.rs261/// surfaced to the nearest [`ErrorBoundary`](leptos::prelude::ErrorBoundary) instead ofCOMMENT
LOWrouter_macro/src/lib.rs281/// vec![/* todo: load blog posts */]COMMENT
LOWleptos_hot_reload/src/parsing.rs1use rstml::node::{CustomNode, NodeElement, NodeName};COMMENT
LOWleptos_dom/.cargo/config.toml1# [build]COMMENT
LOWleptos_dom/examples/test-bench/src/main.rs121}COMMENT
LOWleptos_dom/examples/test-bench/src/main.rs141// }COMMENT
LOWleptos_dom/src/helpers.rs181/// The `web-sys` scheduling APIs only return an integer id, but the `Closure`COMMENT
LOWleptos_dom/src/helpers.rs201 } else {COMMENT
LOWleptos_dom/src/helpers.rs261 /// See [`cancelIdleCallback()`](https://developer.mozilla.org/en-US/docs/Web/API/Window/cancelIdleCallback)COMMENT
LOWleptos_dom/src/helpers.rs301/// completed its work and when there is no other code waiting to be run beforeCOMMENT
LOWleptos_dom/src/helpers.rs321 /// The associated callback is freed when the reactive scope that createdCOMMENT
LOWleptos_dom/src/helpers.rs381/// use leptos::{leptos_dom::helpers::debounce, logging::log, prelude::*, *};COMMENT
LOWleptos_dom/src/helpers.rs561 }COMMENT
LOWleptos_dom/src/helpers.rs581/// // so .code() can be calledCOMMENT
LOWprojects/ory-kratos/Cargo.toml101# Optional. Can be over-ridden with the command line parameter --bin-featuresCOMMENT
LOWprojects/sitemap_axum/Cargo.toml101# The features to use when compiling the bin targetCOMMENT
LOWprojects/sitemap_axum/Cargo.toml121# The profile to use for the lib target when compiling for releaseCOMMENT
LOWprojects/hexagonal-architecture/Cargo.toml81COMMENT
LOWprojects/hexagonal-architecture/end2end/tsconfig.json1{COMMENT
LOWprojects/hexagonal-architecture/end2end/tsconfig.json21 // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory funcCOMMENT
LOWprojects/hexagonal-architecture/end2end/tsconfig.json41 // "customConditions": [], /* Conditions to set in addition to the resolver-specific defauCOMMENT
LOWprojects/hexagonal-architecture/end2end/tsconfig.json61 // "importHelpers": true, /* Allow importing helper functions from tslib once per projectCOMMENT
LOWprojects/hexagonal-architecture/end2end/tsconfig.json81 // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlateCOMMENT
LOW…ts/hexagonal-architecture/end2end/playwright.config.ts61 {COMMENT
LOW…ts/hexagonal-architecture/end2end/playwright.config.ts81COMMENT
LOW…ts/hexagonal-architecture/end2end/playwright.config.ts101 // webServer: {COMMENT
LOWprojects/session_auth_axum/Cargo.toml81# The port to use for automatic reload monitoringCOMMENT
LOWprojects/session_auth_axum/Cargo.toml101# The features to use when compiling the lib targetCOMMENT
LOWprojects/nginx-mpmc/app-1/Cargo.toml101# If the --no-default-features flag should be used when compiling the bin targetCOMMENT
LOWprojects/nginx-mpmc/shared-server-2/src/main.rs21#[cfg(not(feature = "ssr"))]COMMENT
LOWprojects/nginx-mpmc/app-2/Cargo.toml61COMMENT
LOWprojects/nginx-mpmc/app-2/Cargo.toml101bin-features = ["ssr"]COMMENT
LOWprojects/sso_auth_axum/Cargo.toml81site-addr = "127.0.0.1:3000"COMMENT
LOWprojects/sso_auth_axum/Cargo.toml101COMMENT
LOWprojects/openapi-openai-api-swagger-ui/Cargo.toml101# Optional. Defaults to false.COMMENT
LOW…api-openai-api-swagger-ui/end2end/playwright.config.ts61 {COMMENT
LOW…api-openai-api-swagger-ui/end2end/playwright.config.ts81COMMENT
LOWmeta/src/html.rs21/// This component takes no props, but can take any number of spread attributesCOMMENT
LOWmeta/src/meta_tags.rs1use crate::register;COMMENT
LOWmeta/src/meta_tags.rs21/// <main>COMMENT
LOWmeta/src/body.rs21/// This component takes no props, but can take any number of spread attributesCOMMENT
LOWmeta/src/lib.rs1#![deny(missing_docs)]COMMENT
LOWmeta/src/lib.rs21//! let (name, set_name) = create_signal("Alice".to_string());COMMENT
LOWmeta/src/style.rs1use crate::{OrDefaultNonce, register};COMMENT
LOWmeta/src/style.rs21/// </Style>COMMENT
LOWmeta/src/link.rs1use crate::register;COMMENT
LOWmeta/src/link.rs21/// href="myFont.woff2"COMMENT
LOWmeta/src/link.rs41 /// The [`fetchpriority`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-fetchpriority) attribuCOMMENT
LOWmeta/src/link.rs61 media: Option<Oco<'static, str>>,COMMENT
LOWmeta/src/title.rs181 #[inline(always)]COMMENT
LOWmeta/src/title.rs201/// view! {COMMENT
LOWmeta/src/title.rs221/// <main>COMMENT
LOWmeta/src/stylesheet.rs1use crate::register;COMMENT
574 more matches not shown…
Modern AI Meta-Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMtachys/tests/svg_inert.rs5//! parses the fragment inside an SVG-namespaced scaffold so the markup inheritsCOMMENT
MEDIUMtachys/tests/svg_inert.rs41 // The mounted element is the authored <text>, not a <g>/<svg> scaffold.COMMENT
MEDIUMtachys/tests/svg_inert.rs66/// children, ensuring the scaffold is still stripped and the namespace applied.COMMENT
Redundant / Tautological Comments4 hits · 6 pts
SeverityFileLineSnippetContext
LOWreactive_stores/src/lib.rs450 /// ## Return valueCOMMENT
LOWscripts/bump.sh23 # Check if any file in the package directory changed since the member's release commit or latest tag releaseCOMMENT
LOWscripts/update_nightly.sh16# Check if a date is provided as an argumentCOMMENT
LOW.github/workflows/run-cargo-make-task.yml266 # Check if the counter_isomorphic can be built with leptos_debuginfo cfg flag in release modeCOMMENT
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtachys/src/html/attribute/key.rs369 placeholder "placeholder",CODE
LOWexamples/parent_child/src/lib.rs38 "Lorem ipsum sit dolor amet."CODE
LOWexamples/router/src/lib.rs207 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et doloCODE
LOWexamples/router/src/lib.rs207 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et doloCODE
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMintegrations/axum/tests/axum_integration.rs994 // to not require using cargo-nextest setup scripts to prepare this. Essentially if this is doneCOMMENT