AI Slop Code Risk Monitor

LemmyNet/lemmy

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

🐀 A decentralised discussion platform for communities.

0.9 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for LemmyNet/lemmy, a Rust project with 14,658 GitHub stars. SynthScan examined 101,290 lines of code across 765 source files, recording 86 pattern matches distributed across 5 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-31
Last Push
14.7K
Stars
Rust
Language
101.3K
Lines of Code
765
Files
86
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.3/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.1/100 · LOW

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

Agent Over-Engineering Ratio 0.3/100 · LOW

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

PR Review Velocity Impact 4.2/100 · LOW

Which changes need focused human review? 86 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 1LOW 85

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 86 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 Block74 hits · 74 pts
SeverityFileLineSnippetContext
LOWcrates/db_schema/src/lib.rs61#[derive(Debug, Serialize, Deserialize, Clone, Copy, Default, PartialEq, Eq, Hash)]COMMENT
LOWcrates/db_schema/src/lib.rs101COMMENT
LOWcrates/db_schema/src/source/local_site_rate_limit.rs1use chrono::{DateTime, Utc};COMMENT
LOWcrates/db_schema/src/source/local_site_rate_limit.rs41#[derive(Clone, derive_new::new)]COMMENT
LOWcrates/db_schema/src/source/oauth_provider.rs21 /// The issuer url of the OAUTH provider.COMMENT
LOWcrates/db_schema/src/source/oauth_provider.rs61#[skip_serializing_none]COMMENT
LOWcrates/db_schema/src/source/comment.rs121 pub locked: Option<bool>,COMMENT
LOWcrates/db_schema/src/source/person.rs121#[skip_serializing_none]COMMENT
LOWcrates/db_schema/src/source/post.rs221 derive(Identifiable, Queryable, Selectable, Associations, CursorKeysModule)COMMENT
LOWcrates/db_schema/src/source/instance.rs61#[cfg_attr(feature = "full", diesel(check_for_backend(diesel::pg::Pg)))]COMMENT
LOWcrates/db_schema/src/source/multi_community.rs121#[skip_serializing_none]COMMENT
LOWcrates/db_schema/src/source/local_site.rs21#[derive(PartialEq, Eq, Debug, Clone, Serialize, Deserialize, Default)]COMMENT
LOWcrates/db_schema/src/source/images.rs41}COMMENT
LOWcrates/db_schema/src/source/login_token.rs1use chrono::{DateTime, Utc};COMMENT
LOWcrates/db_schema/src/source/community.rs241#[cfg_attr(feature = "full", diesel(check_for_backend(diesel::pg::Pg)))]COMMENT
LOWcrates/db_schema/src/source/community.rs261 pub follow_state: Option<CommunityFollowerState>,COMMENT
LOWcrates/db_schema/src/source/community_tag.rs61}COMMENT
LOWcrates/db_schema/src/impls/community.rs201 type_: &Option<ListingType>,COMMENT
LOWcrates/db_views/post/src/impls.rs321 pub search_title_only: Option<bool>,COMMENT
LOWcrates/db_views/post/src/api.rs101#[cfg_attr(feature = "ts-rs", derive(ts_rs::TS))]COMMENT
LOWcrates/db_views/post/src/api.rs161/// The site metadata response.COMMENT
LOWcrates/db_views/post/src/api.rs241#[skip_serializing_none]COMMENT
LOWcrates/db_views/post/src/db_perf/series.rs21/// For example, if there's a `numbers` table with a `number` column, this inserts all numbers fromCOMMENT
LOWcrates/db_views/modlog/src/lib.rs21#[skip_serializing_none]COMMENT
LOWcrates/db_views/person/src/api.rs21#[cfg_attr(feature = "ts-rs", ts(optional_fields, export))]COMMENT
LOWcrates/db_views/person/src/api.rs61COMMENT
LOWcrates/db_views/comment/src/api.rs61COMMENT
LOWcrates/db_views/report_combined/src/api.rs41COMMENT
LOWcrates/db_views/site/src/lib.rs21pub mod impls;COMMENT
LOWcrates/db_views/site/src/lib.rs41#[derive(Debug, Serialize, Deserialize, Clone)]COMMENT
LOWcrates/db_views/site/src/api.rs281 pub oauth_registration: Option<bool>,COMMENT
LOWcrates/db_views/site/src/api.rs361 pub captcha_enabled: bool,COMMENT
LOWcrates/db_views/site/src/api.rs401#[cfg_attr(feature = "ts-rs", ts(optional_fields, export))]COMMENT
LOWcrates/db_views/site/src/api.rs421pub struct GenerateTotpSecretResponse {COMMENT
LOWcrates/db_views/site/src/api.rs441 pub username_or_email: SensitiveString,COMMENT
LOWcrates/db_views/site/src/api.rs501#[cfg_attr(feature = "ts-rs", ts(optional_fields, export))]COMMENT
LOWcrates/db_views/site/src/api.rs621COMMENT
LOWcrates/db_views/site/src/api.rs681 }COMMENT
LOWcrates/db_views/site/src/api.rs741#[cfg_attr(feature = "ts-rs", derive(ts_rs::TS))]COMMENT
LOWcrates/db_views/site/src/api.rs781 #[serde(default)]COMMENT
LOWcrates/db_views/community/src/lib.rs21#[cfg(feature = "full")]COMMENT
LOWcrates/db_views/community/src/api.rs81COMMENT
LOWcrates/db_views/community/src/api.rs161#[skip_serializing_none]COMMENT
LOWcrates/server/src/lib.rs61static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;COMMENT
LOWcrates/server/src/lib.rs81 /// If you are running multiple Lemmy server processes, you probably want to disable scheduledCOMMENT
LOWcrates/server/src/lib.rs101 ///COMMENT
LOWcrates/utils/src/settings/structs.rs21 #[doku(example = "Some(Default::default())")]COMMENT
LOWcrates/utils/src/settings/structs.rs81#[serde(default, deny_unknown_fields)]COMMENT
LOWcrates/utils/src/settings/structs.rs101#[serde(default, deny_unknown_fields)]COMMENT
LOWcrates/utils/src/settings/structs.rs121 /// Name of the site, can be changed later. Maximum 20 characters. Only used if `admin_username`COMMENT
LOWcrates/utils/src/settings/structs.rs141pub struct PrometheusConfig {COMMENT
LOWcrates/utils/src/settings/structs.rs161}COMMENT
LOWcrates/utils/src/utils/slurs.rs81 }COMMENT
LOWcrates/db_schema_file/src/enums.rs81)]COMMENT
LOWcrates/db_schema_file/src/enums.rs101#[cfg_attr(COMMENT
LOWcrates/db_schema_file/src/enums.rs121#[cfg_attr(feature = "full", derive(DbEnum))]COMMENT
LOWcrates/db_schema_file/src/enums.rs161 ExistingTypePath = "crate::schema::sql_types::VoteSettingsEnum"COMMENT
LOWcrates/db_schema_file/src/enums.rs181#[cfg_attr(COMMENT
LOWcrates/db_schema_file/src/newtypes.rs61 }COMMENT
LOWcrates/db_schema_file/src/newtypes.rs81/// The community report id.COMMENT
14 more matches not shown…
Slop Phrases4 hits · 6 pts
SeverityFileLineSnippetContext
LOWCargo.toml18# out temporarily, but make sure to leave this in the main branch.COMMENT
LOWdocker/docker-compose.yml42 # use "image" to pull down an already compiled lemmy-ui. make sure to comment out "build".COMMENT
LOWdocker/docker-compose.yml45 # use "build" to build your local lemmy ui image for development. make sure to comment out "image".COMMENT
LOWscripts/install.sh5# Don't forget to change this string to your actual database parametersCOMMENT
Hyper-Verbose Identifiers6 hits · 6 pts
SeverityFileLineSnippetContext
LOWapi_tests/src/shared.ts772export async function saveUserSettingsFederated(api: LemmyHttp) {CODE
LOWapi_tests/src/shared.ts933export function userBlockInstanceCommunities(CODE
LOWapi_tests/src/shared.ts957export function listCommunityPendingFollows(api: LemmyHttp) {CODE
LOWapi_tests/src/shared.ts966export function approveCommunityPendingFollow(CODE
LOWapi_tests/src/shared.ts1113export function assertCommunityFederation(CODE
LOWapi_tests/src/image.spec.ts45async function expectProxiedImageContentDisposition(CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMscripts/release.bash5# Creating the new tagCOMMENT
Fake / Example Data1 hit · 2 pts
SeverityFileLineSnippetContext
LOWcrates/utils/src/settings/structs.rs127 #[doku(example = "user@example.com")]COMMENT