AI Slop Code Risk Monitor

rust-lang/cargo

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

The Rust package manager

2.1 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for rust-lang/cargo, a Rust project with 15,650 GitHub stars. SynthScan examined 416,727 lines of code across 1894 source files, recording 736 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 2.1 (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.1
Adjusted Signal
2.1
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
15.7K
Stars
Rust
Language
416.7K
Lines of Code
1.9K
Files
736
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.0/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.1/100 · LOW

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

Agent Over-Engineering Ratio 0.0/100 · LOW

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

PR Review Velocity Impact 10.5/100 · LOW

Which changes need focused human review? 736 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 91LOW 644

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

Over-Commented Block629 hits · 621 pts
SeverityFileLineSnippetContext
LOWdeny.toml1# This template contains all of the possible sections and their default valuesCOMMENT
LOWdeny.toml21# `target_family = "unix"` configuration, that only having windows targets inCOMMENT
LOWdeny.toml41#exclude = []COMMENT
LOWdeny.toml61COMMENT
LOWdeny.toml101 "ISC",COMMENT
LOWdeny.toml121# The package spec the clarification applies toCOMMENT
LOWdeny.toml141# One or more private registries that you might publish crates to, if a crateCOMMENT
LOWdeny.toml161highlight = "all"COMMENT
LOWdeny.toml181 #{ crate = "ansi_term@0.11.0", wrappers = ["this-crate-directly-depends-on-ansi_term"] },COMMENT
LOWdeny.toml201# "webpki-roots",COMMENT
LOWdeny.toml221# This section is considered when running `cargo deny check sources`.COMMENT
LOWbuild.rs121 // they are loaded on first use instead of at every process start.COMMENT
LOWpublish.py1#!/usr/bin/env python3COMMENT
LOWcredential/cargo-credential/src/error.rs1use serde::{Deserialize, Serialize};COMMENT
LOWcredential/cargo-credential/src/error.rs21COMMENT
LOWcredential/cargo-credential/src/lib.rs1//! Helper library for writing Cargo credential providers.COMMENT
LOWcredential/cargo-credential/src/lib.rs21//! and an unsupported index URL is passed to the provider, it should respond withCOMMENT
LOWcredential/cargo-credential/src/lib.rs81pub struct CredentialRequest<'a> {COMMENT
LOWcredential/cargo-credential/src/lib.rs141/// A record of what kind of operation is happening that we should generate a token for.COMMENT
LOWcredential/cargo-credential/src/lib.rs201 /// Do not cache this result.COMMENT
LOWcredential/cargo-credential/src/secret.rs1use std::fmt;COMMENT
LOWcredential/cargo-credential/src/secret.rs21#[serde(transparent)]COMMENT
LOWcrates/home/src/env.rs81}COMMENT
LOWcrates/home/src/lib.rs1//! Canonical definitions of `home_dir`, `cargo_home`, and `rustup_home`.COMMENT
LOWcrates/home/src/lib.rs21//! > crate may make major changes to its APIs or be deprecated without warning.COMMENT
LOWcrates/home/src/lib.rs41/// Some(path) if !path.as_os_str().is_empty() => println!("{}", path.display()),COMMENT
LOWcrates/home/src/lib.rs61/// by the `home_dir` function.COMMENT
LOWcrates/home/src/lib.rs81/// For more details, see [`cargo_home`].COMMENT
LOWcrates/home/src/lib.rs101///COMMENT
LOWcrates/cargo-test-support/src/cross_compile.rs1//! Support for cross-compile tests with the `--target` flag.COMMENT
LOWcrates/cargo-test-support/src/cross_compile.rs61///COMMENT
LOWcrates/cargo-test-support/src/registry.rs1//! Interact with the [`TestRegistry`]COMMENT
LOWcrates/cargo-test-support/src/registry.rs21//! .file("src/lib.rs", r#"COMMENT
LOWcrates/cargo-test-support/src/registry.rs61COMMENT
LOWcrates/cargo-test-support/src/registry.rs481 registryCOMMENT
LOWcrates/cargo-test-support/src/registry.rs1181COMMENT
LOWcrates/cargo-test-support/src/lib.rs1//! # Cargo test support.COMMENT
LOWcrates/cargo-test-support/src/lib.rs21//! use cargo_test_support::prelude::*;COMMENT
LOWcrates/cargo-test-support/src/lib.rs221 fn dirname(&self) -> &Path {COMMENT
LOWcrates/cargo-test-support/src/lib.rs481 /// Creates a `ProcessBuilder` to run a program in the projectCOMMENT
LOWcrates/cargo-test-support/src/lib.rs501 /// Windows has a problem where a process cannot be reliablyCOMMENT
LOWcrates/cargo-test-support/src/lib.rs621}COMMENT
LOWcrates/cargo-test-support/src/lib.rs661 pub fn with_process_builder(mut self, p: ProcessBuilder) -> Execs {COMMENT
LOWcrates/cargo-test-support/src/lib.rs681 /// However, `""` may be preferred for intentionally empty output so people don't accidentallyCOMMENT
LOWcrates/cargo-test-support/src/lib.rs701 /// use cargo_test_support::str;COMMENT
LOWcrates/cargo-test-support/src/lib.rs721 /// "#].is_json().against_jsonlines());COMMENT
LOWcrates/cargo-test-support/src/lib.rs741 /// bless a change.COMMENT
LOWcrates/cargo-test-support/src/lib.rs761 /// use cargo_test_support::execs;COMMENT
LOWcrates/cargo-test-support/src/lib.rs801 /// Removes exit code check for the process.COMMENT
LOWcrates/cargo-test-support/src/lib.rs821 pub fn with_stdout_contains<S: ToString>(&mut self, expected: S) -> &mut Self {COMMENT
LOWcrates/cargo-test-support/src/lib.rs841 }COMMENT
LOWcrates/cargo-test-support/src/lib.rs861 self.expect_stdout_not_contains.push(expected.to_string());COMMENT
LOWcrates/cargo-test-support/src/lib.rs881 pub fn with_stderr_does_not_contain<S: ToString>(&mut self, expected: S) -> &mut Self {COMMENT
LOWcrates/cargo-test-support/src/lib.rs901 ///COMMENT
LOWcrates/cargo-test-support/src/lib.rs1441 .env("CARGO_HOME", paths::cargo_home())COMMENT
LOWcrates/cargo-test-support/src/paths.rs401/// `kind` should be one of:COMMENT
LOWcrates/cargo-test-support/src/paths.rs521 }COMMENT
LOWcrates/cargo-test-support/src/git.rs1//! # Git Testing SupportCOMMENT
LOWcrates/cargo-test-support/src/git.rs21//! let p = project()COMMENT
LOWcrates/cargo-test-support/src/compare.rs1//! Routines for comparing and diffing output.COMMENT
569 more matches not shown…
Self-Referential Comments86 hits · 228 pts
SeverityFileLineSnippetContext
MEDIUMcrates/cargo-test-support/src/git.rs3//! ## Creating a git dependencyCOMMENT
MEDIUMcrates/cargo-util/src/paths.rs813# This file is a cache directory tag created by cargo.COMMENT
MEDIUMtests/testsuite/generate_lockfile.rs168 assert!(lock0.starts_with("# This file is automatically @generated by Cargo.\n# It is not intended for manual editinCODE
MEDIUMtests/testsuite/generate_lockfile.rs177 assert!(lock2.starts_with("# This file is automatically @generated by Cargo.\r\n# It is not intended for manual editCODE
MEDIUMtests/testsuite/generate_lockfile.rs355# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/patch.rs3062# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/update.rs857 assert!(lockfile.starts_with("# This file is automatically @generated by Cargo.\n# It is not intended for manual ediCODE
MEDIUMtests/testsuite/update.rs1524# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/update.rs1563# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/update.rs1602# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/update.rs1685# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/update.rs1749# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/update.rs1804# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/update.rs1887# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/update.rs1929# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/package.rs3664 let cargo_lock_contents = r#"# This file is automatically @generated by Cargo.CODE
MEDIUMtests/testsuite/package.rs3767 let cargo_lock_contents = r#"# This file is automatically @generated by Cargo.CODE
MEDIUMtests/testsuite/package.rs3883 let cargo_lock_contents = r#"# This file is automatically @generated by Cargo.CODE
MEDIUMtests/testsuite/package.rs5855# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/package.rs6444 r#"# This file is automatically @generated by Cargo.CODE
MEDIUMtests/testsuite/precise_pre_release.rs80# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/precise_pre_release.rs122# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/precise_pre_release.rs183# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/precise_pre_release.rs225# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/precise_pre_release.rs261# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/precise_pre_release.rs297# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/precise_pre_release.rs368# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/precise_pre_release.rs427# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/precise_pre_release.rs505# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/precise_pre_release.rs586# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/precise_pre_release.rs648# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/precise_pre_release.rs698# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/precise_pre_release.rs780# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/precise_pre_release.rs824# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/precise_pre_release.rs906# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/precise_pre_release.rs957# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/precise_pre_release.rs1041# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/precise_pre_release.rs1092# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/precise_pre_release.rs1168# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/precise_pre_release.rs1232# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/precise_pre_release.rs1309# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/precise_pre_release.rs1385# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/precise_pre_release.rs1455# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/precise_pre_release.rs1523# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/precise_pre_release.rs1612# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/precise_pre_release.rs1742# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/git.rs3836 r#"# This file is automatically @generated by Cargo.CODE
MEDIUMtests/testsuite/git.rs3903 r#"# This file is automatically @generated by Cargo.CODE
MEDIUMtests/testsuite/min_publish_age.rs66# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/min_publish_age.rs129# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/min_publish_age.rs192# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/min_publish_age.rs398# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/min_publish_age.rs435# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/min_publish_age.rs508# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/min_publish_age.rs568# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/min_publish_age.rs792# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/min_publish_age.rs829# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/min_publish_age.rs893# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/min_publish_age.rs926# This file is automatically @generated by Cargo.COMMENT
MEDIUMtests/testsuite/min_publish_age.rs985# This file is automatically @generated by Cargo.COMMENT
26 more matches not shown…
AI Slop Vocabulary5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMsrc/util/graph.rs130 // Note that this implementation isn't the most robust per se, we'llCOMMENT
MEDIUMsrc/sources/path.rs833 // it with git-support to leverage ignored files and to avoid pulling in entireCOMMENT
MEDIUMsrc/sources/git/utils.rs803 // Essentially, if `attempts == 2` then in theory the only error wasCOMMENT
MEDIUMsrc/compiler/fingerprint/dep_info.rs583 // Buffer size is the recommended amount to fully leverage SIMD instructions on AVX-512 as perCOMMENT
MEDIUMsrc/compiler/job_queue/mod.rs1221 // faithful representation of what's happening. This is somewhat nuancedCOMMENT
Fake / Example Data10 hits · 10 pts
SeverityFileLineSnippetContext
LOWcrates/cargo-test-support/src/git.rs163 t!(cfg.set_str("user.email", "foo@bar.com"));CODE
LOWtests/testsuite/package.rs3737 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididuntCODE
LOWtests/testsuite/package.rs3737 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididuntCODE
LOWtests/testsuite/package.rs3853 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididuntCODE
LOWtests/testsuite/package.rs3853 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididuntCODE
LOWtests/testsuite/git.rs3064 cfg.set_str("user.email", "foo@bar.com").unwrap();CODE
LOWtests/testsuite/logout.rs85 token = "dummy-token"CODE
LOWtests/testsuite/logout.rs89 check_token(Some("dummy-token"), Some("dummy-registry"));CODE
LOWtests/testsuite/git_gc.rs47 cfg.set_str("user.email", "foo@bar.com").unwrap();CODE
LOWtests/testsuite/git_gc.rs50 cfg.set_str("user.email", "foo@bar.com").unwrap();CODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHsrc/ops/cargo_update.rs139 // so their dependencies can be updated as requestedCOMMENT
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippetContext
LOWcrates/cargo-util/src/paths.rs548 // For Windows, we need to check if the file is a symlink to a directoryCOMMENT
LOWsrc/context/mod.rs1565 /// The purpose of this function is to aid in the transition to usingCOMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOW.github/workflows/main.yml54 # Check if all jobs that we depend on (in the needs array) were successful.COMMENT
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/ops/cargo_fix/mod.rs990 // TODO: implement a way to specify this.COMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/compiler/build_context/mod.rs42/// # How to useCOMMENT