AI Slop Code Risk Monitor

yewstack/yew

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

Rust / Wasm framework for creating reliable and efficient web applications

2.3 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for yewstack/yew, a Rust project with 32,842 GitHub stars. SynthScan examined 96,801 lines of code across 809 source files, recording 199 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 2.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.

2.3
Adjusted Signal
2.3
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
32.8K
Stars
Rust
Language
96.8K
Lines of Code
809
Files
199
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 10.1/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 1.0/100 · LOW

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

Agent Over-Engineering Ratio 0.1/100 · LOW

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

PR Review Velocity Impact 10.5/100 · LOW

Which changes need focused human review? 199 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 1HIGH 0MEDIUM 3LOW 195

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 199 distinct pattern matches across 10 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 Block175 hits · 175 pts
SeverityFileLineSnippetContext
LOWMakefile.toml1######################COMMENT
LOWtools/ssr-e2e-harness/src/lib.rs121///COMMENT
LOWexamples/function_router/src/lib.rs1// # Implementation Note:COMMENT
LOWexamples/axum_ssr_router/src/bin/ssr_router_server.rs161 let tower_service = app.clone();COMMENT
LOWexamples/.cargo/dummy-min-size-config.toml1# This file is intentionally left empty.COMMENT
LOWexamples/function_todomvc/src/hooks/use_bool_toggle.rs21 fn deref(&self) -> &Self::Target {COMMENT
LOWexamples/function_todomvc/src/hooks/use_bool_toggle.rs41/// move |_| {COMMENT
LOWpackages/yew-router-macro/src/lib.rs1mod routable_derive;COMMENT
LOWpackages/yew-router-macro/src/lib.rs21/// Secure,COMMENT
LOWpackages/yew-macro/tests/derive_props/pass.rs1#![recursion_limit = "128"]COMMENT
LOWpackages/yew-macro/tests/classes_macro/classes-pass.rs1#![no_implicit_prelude]COMMENT
LOW…ro/tests/function_component_attr/without-props-pass.rs1#![no_implicit_prelude]COMMENT
LOW…macro/tests/function_component_attr/with-props-pass.rs1// Shadow primitivesCOMMENT
LOW…s/yew-macro/tests/html_macro/generic-component-pass.rs1#![no_implicit_prelude]COMMENT
LOWpackages/yew-macro/tests/html_macro/iterable-pass.rs1#![no_implicit_prelude]COMMENT
LOWpackages/yew-macro/tests/html_macro/svg-pass.rs1#![no_implicit_prelude]COMMENT
LOWpackages/yew-macro/tests/html_macro/dyn-prop-fail.rs1#![no_implicit_prelude]COMMENT
LOWpackages/yew-macro/tests/html_macro/block-pass.rs1#![no_implicit_prelude]COMMENT
LOW…-macro/tests/html_macro/component-any-children-pass.rs1// Shadow primitivesCOMMENT
LOWpackages/yew-macro/tests/html_macro/dyn-element-pass.rs1#![no_implicit_prelude]COMMENT
LOWpackages/yew-macro/tests/html_macro/for-pass.rs1#![no_implicit_prelude]COMMENT
LOWpackages/yew-macro/tests/html_macro/dyn-prop-pass.rs1#![no_implicit_prelude]COMMENT
LOWpackages/yew-macro/tests/html_macro/html-match-pass.rs1#![no_implicit_prelude]COMMENT
LOWpackages/yew-macro/tests/html_macro/html-node-pass.rs1#![no_implicit_prelude]COMMENT
LOWpackages/yew-macro/tests/html_macro/list-pass.rs1#![no_implicit_prelude]COMMENT
LOWpackages/yew-macro/tests/html_macro/while-pass.rs1#![no_implicit_prelude]COMMENT
LOWpackages/yew-macro/tests/html_macro/node-pass.rs1#![no_implicit_prelude]COMMENT
LOWpackages/yew-macro/tests/html_macro/component-pass.rs1// Shadow primitivesCOMMENT
LOW…ckages/yew-macro/tests/html_macro/html-element-pass.rs1#![no_implicit_prelude]COMMENT
LOW…ges/yew-macro/tests/html_macro/as-return-value-pass.rs1#![no_implicit_prelude]COMMENT
LOWpackages/yew-macro/src/lib.rs1//! This crate provides Yew's procedural macro `html!` which allows using JSX-like syntaxCOMMENT
LOWpackages/yew-macro/src/lib.rs21//! # unimplemented!()COMMENT
LOWpackages/yew-macro/src/html_tree/mod.rs581/// to it, which lets us fall through cleanly whenever the next token run isCOMMENT
LOWpackages/yew-macro/src/html_tree/html_element.rs601 );COMMENT
LOWpackages/yew/tests/use_state.rs161 // deref_history fix: refcount was 2 → drops to 1 (still in Vec)COMMENT
LOWpackages/yew/tests/use_state.rs221 captured,COMMENT
LOWpackages/yew/src/lib.rs1#![allow(clippy::needless_doctest_main)]COMMENT
LOWpackages/yew/src/lib.rs21//!COMMENT
LOWpackages/yew/src/lib.rs41//! }COMMENT
LOWpackages/yew/src/lib.rs61//! html! {COMMENT
LOWpackages/yew/src/lib.rs81)]COMMENT
LOWpackages/yew/src/lib.rs101/// "three-beans",COMMENT
LOWpackages/yew/src/lib.rs121/// [`html_nested!`]: ./macro.html_nested.htmlCOMMENT
LOWpackages/yew/src/lib.rs141/// struct ListProps {COMMENT
LOWpackages/yew/src/lib.rs161/// # fn view(&self, ctx: &Context<Self>) -> Html { unimplemented!() }COMMENT
LOWpackages/yew/src/lib.rs181/// <ListItem/>COMMENT
LOWpackages/yew/src/lib.rs201/// can only contain elements of type `ListItem` using [`ChildrenRenderer<ListItem>`],COMMENT
LOWpackages/yew/src/lib.rs221/// # ExampleCOMMENT
LOWpackages/yew/src/lib.rs241/// }COMMENT
LOWpackages/yew/src/scheduler.rs361))]COMMENT
LOWpackages/yew/src/platform.rs1//! Yew's compatibility between JavaScript Runtime and Native Runtimes.COMMENT
LOWpackages/yew/src/platform.rs21//! randomly select a worker thread from the internal pool. All tasks spawned with `spawn_local`COMMENT
LOWpackages/yew/src/platform.rs41//! The Yew runtime is implemented with different runtimes depending on the target platform and canCOMMENT
LOWpackages/yew/src/server_renderer.rs41COMMENT
LOWpackages/yew/src/dom_bundle/blist.rs281 // lefts: | SSSSSSSS | ------ | EEEEEEEE |COMMENT
LOWpackages/yew/src/dom_bundle/blist.rs321 // or toCOMMENT
LOWpackages/yew/src/dom_bundle/subtree_root.rs81 NEXT_ROOT_ID.fetch_add(1, Ordering::SeqCst)COMMENT
LOWpackages/yew/src/dom_bundle/subtree_root.rs461 // # More details: When nesting occursCOMMENT
LOWpackages/yew/src/dom_bundle/position.rs201 // clone the terminal next-sibling out of the chain before invoking `f`. Invoking `f` withCOMMENT
LOWpackages/yew/src/dom_bundle/traits.rs21COMMENT
115 more matches not shown…
Verbosity Indicators5 hits · 10 pts
SeverityFileLineSnippetContext
LOW⚡packages/yew/tests/use_state.rs148 // Step 1: dispatch. The RefCell now contains a *new* Rc whose onlyCOMMENT
LOW⚡packages/yew/tests/use_state.rs152 // Step 2: deref. In the original fix the Ref guard is droppedCOMMENT
LOW⚡packages/yew/tests/use_state.rs158 // Step 3: dispatch again. The RefCell's old Rc is replaced.COMMENT
LOW⚡packages/yew/tests/use_state.rs165 // Step 4: churn the allocator. Create and drop many heap objectsCOMMENT
LOWpackages/yew/tests/use_state.rs182 // Step 5: read through the potentially-dangling reference.COMMENT
Structural Annotation Overuse5 hits · 10 pts
SeverityFileLineSnippetContext
LOW⚡packages/yew/tests/use_state.rs148 // Step 1: dispatch. The RefCell now contains a *new* Rc whose onlyCOMMENT
LOW⚡packages/yew/tests/use_state.rs152 // Step 2: deref. In the original fix the Ref guard is droppedCOMMENT
LOW⚡packages/yew/tests/use_state.rs158 // Step 3: dispatch again. The RefCell's old Rc is replaced.COMMENT
LOW⚡packages/yew/tests/use_state.rs165 // Step 4: churn the allocator. Create and drop many heap objectsCOMMENT
LOWpackages/yew/tests/use_state.rs182 // Step 5: read through the potentially-dangling reference.COMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALpackages/yew-macro/src/html_tree/mod.rs501 if comp.props.props.special.key.is_none() {CODE
Unused Imports5 hits · 5 pts
SeverityFileLineSnippetContext
LOWci/make_example_size_cmt.py1CODE
LOWci/make_benchmark_ssr_cmt.py1CODE
LOWci/make_benchmark_ssr_cmt.py1CODE
LOWci/collect_sizes.py1CODE
LOWci/collect_sizes.py1CODE
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippetContext
LOWwebsite/static/tutorial/data.json5 "speaker": "John Doe",CODE
LOW…ckages/yew-macro/tests/html_macro/html-element-pass.rs58 <input type="text" id="first-name" value="placeholder" />CODE
LOWpackages/yew/src/dom_bundle/position.rs100 /// A new "placeholder" [DomSlot] that should not be used to insert nodesCOMMENT
LOWpackages/yew/src/virtual_dom/vlist.rs235 vlist.add_child(VNode::VText(VText::new("lorem ipsum")));CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMexamples/.cargo/dummy-min-size-config.toml1# This file is intentionally left empty.COMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMpackages/yew/src/lib.rs14//! - Supports JavaScript interoperability, allowing developers to leverage NPM packages andCOMMENT
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMpackages/yew-router/src/hooks.rs28/// If your `Routable` has a `#[not_found]` route, you can use `.unwrap_or_default()` instead ofCOMMENT
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOWwebsite/check-translations.js22async function checkSuperfluousTranslations() {CODE