AI Slop Code Risk Monitor

rust-lang/libc

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

Raw bindings to platform APIs for Rust

0.9 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for rust-lang/libc, a Rust project with 2,641 GitHub stars. SynthScan examined 182,371 lines of code across 644 source files, recording 167 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 0.9 (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.9
Adjusted Signal
0.9
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
2.6K
Stars
Rust
Language
182.4K
Lines of Code
644
Files
167
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 4.4/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

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

Agent Over-Engineering Ratio 0.1/100 · LOW

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

PR Review Velocity Impact 4.8/100 · LOW

Which changes need focused human review? 167 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 1MEDIUM 3LOW 163

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 167 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.

Over-Commented Block159 hits · 152 pts
SeverityFileLineSnippetContext
LOWbuild.rs41 VxworksLt25_09,COMMENT
LOWlibc-test/tests/style_lib/mod.rs1//! Provides the [StyleChecker] visitor to verify the coding style ofCOMMENT
LOWlibc-test/src/icmp6_filter.c1#include <stdbool.h>COMMENT
LOWci/style.py81 # match (trying to match parentheses would catch the first closing `)` whichCOMMENT
LOWci/docker/x86_64-linux-android/cuttlefish-entrypoint.sh1#!/usr/bin/env bashCOMMENT
LOWctest/build.rs1use std::env;COMMENT
LOWctest/build.rs21// Similarly FLAGS and RUNNER are also not an issue, if CARGO_TARGET_{}_RUSTFLAGS are presentCOMMENT
LOWctest/tests/input/macro.out.edition-2024.rs1/* This file was autogenerated by ctest; do not modify directly */COMMENT
LOWctest/tests/input/macro.out.c1/* This file was autogenerated by ctest; do not modify directly */COMMENT
LOWctest/tests/input/macro.out.c201 #pragma GCC diagnostic popCOMMENT
LOWctest/tests/input/simple.out.with-skips.rs1/* This file was autogenerated by ctest; do not modify directly */COMMENT
LOWctest/tests/input/simple.out.with-skips.c1/* This file was autogenerated by ctest; do not modify directly */COMMENT
LOWctest/tests/input/simple.out.with-skips.c101COMMENT
LOWctest/tests/input/hierarchy.out.rs1/* This file was autogenerated by ctest; do not modify directly */COMMENT
LOWctest/tests/input/hierarchy.out.c1/* This file was autogenerated by ctest; do not modify directly */COMMENT
LOWctest/tests/input/hierarchy.out.c101}COMMENT
LOWctest/tests/input/simple.out.with-renames.rs1/* This file was autogenerated by ctest; do not modify directly */COMMENT
LOWctest/tests/input/simple.out.with-renames.c1/* This file was autogenerated by ctest; do not modify directly */COMMENT
LOWctest/tests/input/macro.out.rs1/* This file was autogenerated by ctest; do not modify directly */COMMENT
LOWctest/tests/input/macro.out.edition-2024.c1/* This file was autogenerated by ctest; do not modify directly */COMMENT
LOWctest/tests/input/macro.out.edition-2024.c201 #pragma GCC diagnostic popCOMMENT
LOWctest/src/cdecl.rs81pub(crate) struct InvalidReturn;COMMENT
LOWctest/src/lib.rs1#![warn(missing_docs)]COMMENT
LOWctest/src/lib.rs21//! // Set up C flags and definesCOMMENT
LOWctest/src/lib.rs41//! ```tomlCOMMENT
LOWctest/src/lib.rs101COMMENT
LOWctest/src/generator.rs61 /// A vector of tuples, the left side being the header itself, and the rightCOMMENT
LOWctest/src/generator.rs101 pub(crate) skip_roundtrip: Option<SkipTest>,COMMENT
LOWctest/src/generator.rs141COMMENT
LOWctest/src/generator.rs161COMMENT
LOWctest/src/generator.rs181 defines: impl IntoIterator<Item = impl AsRef<str>>,COMMENT
LOWctest/src/generator.rs201 /// cfg.language(Language::CXX);COMMENT
LOWctest/src/generator.rs221 pub fn target(&mut self, target: &str) -> &mut Self {COMMENT
LOWctest/src/generator.rs241 ///COMMENT
LOWctest/src/generator.rs261 /// ```no_runCOMMENT
LOWctest/src/generator.rs281 /// use ctest::TestGenerator;COMMENT
LOWctest/src/generator.rs301 /// let mut cfg = TestGenerator::new();COMMENT
LOWctest/src/generator.rs321 selfCOMMENT
LOWctest/src/generator.rs341 /// # ExamplesCOMMENT
LOWctest/src/generator.rs401COMMENT
LOWctest/src/generator.rs421 } else {COMMENT
LOWctest/src/generator.rs461 /// ```no_runCOMMENT
LOWctest/src/generator.rs521COMMENT
LOWctest/src/generator.rs541 } else {COMMENT
LOWctest/src/generator.rs641 ///COMMENT
LOWctest/src/generator.rs661 }COMMENT
LOWctest/src/generator.rs681 falseCOMMENT
LOWctest/src/generator.rs701 self.flags.push(flag.to_string());COMMENT
LOWctest/src/generator.rs741 ///COMMENT
LOWctest/src/generator.rs781 }));COMMENT
LOWctest/src/generator.rs821 ///COMMENT
LOWctest/src/generator.rs841 }COMMENT
LOWctest/src/generator.rs861 }COMMENT
LOWctest/src/generator.rs961 ///COMMENT
LOWctest/src/generator.rs981 }COMMENT
LOWctest/src/generator.rs1001 if let MapInput::StructType(ty) = item {COMMENT
LOWctest/src/generator.rs1041 ///COMMENT
LOWctest/src/generator.rs1061 ///COMMENT
LOWctest/src/generator.rs1081COMMENT
LOWctest/src/generator.rs1101 pub fn skip_fn_ptrcheck(&mut self, f: impl Fn(&str) -> bool + 'static) -> &mut Self {COMMENT
99 more matches not shown…
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMci/install-musl.sh141 # Create a version of APKBUILD that dumps the variables we're interestedCOMMENT
MEDIUMci/docker/x86_64-linux-android/cuttlefish-entrypoint.sh17# Create the bridges, taps and dnsmasq instances backing the device'sCOMMENT
Empty Error Handlers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHetc/libc-util.py846except sp.CalledProcessError:CODE
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMctest/src/tests.rs115 // FIXME(ctest): Reimplement support for ABI in a more robust way.COMMENT
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOWetc/libc-util.py375CODE
LOWetc/libc-util.py474CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWci/install-musl.sh173 # Check if file is knownCOMMENT
Hyper-Verbose Identifiers1 hit · 0 pts
SeverityFileLineSnippetContext
LOWetc/libc-util.py776 def fetch_needs_backport_list(self) -> list["PullRequest"]:STRING