AI Slop Code Risk Monitor

gleam-lang/gleam

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

⭐️ A friendly language for building type-safe, scalable systems!

2.3 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for gleam-lang/gleam, a Rust project with 22,012 GitHub stars. SynthScan examined 254,942 lines of code across 561 source files, recording 531 pattern matches distributed across 8 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-31
Last Push
22.0K
Stars
Rust
Language
254.9K
Lines of Code
561
Files
531
Pattern Hits
2026-10-31
Scan Date
0.01
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 7.8/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 1.6/100 · LOW

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

Agent Over-Engineering Ratio 1.6/100 · LOW

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

PR Review Velocity Impact 11.9/100 · LOW

Which changes need focused human review? 531 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 7HIGH 0MEDIUM 27LOW 497

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 531 distinct pattern matches across 8 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 Block484 hits · 400 pts
SeverityFileLineSnippetContext
LOWcompiler-cli/src/lib.rs181COMMENT
LOWcompiler-cli/src/lib.rs201 },COMMENT
LOWcompiler-cli/src/lib.rs221 /// [documentation]COMMENT
LOWcompiler-cli/src/lib.rs241 /// - Minor updates include new functionality, but no breaking changes.COMMENT
LOWcompiler-cli/src/lib.rs261 /// [dependencies]COMMENT
LOWcompiler-cli/src/lib.rs281 /// wibble = { path = "../wibble" }COMMENT
LOWcompiler-cli/src/lib.rs401 /// Add new dependenciesCOMMENT
LOWcompiler-cli/src/lib.rs421 ///COMMENT
LOWcompiler-cli/src/lib.rs701 /// (optional) The path to write the JavaScript file to.COMMENT
LOWcompiler-cli/src/lib.rs761 /// The compilation target for the generated projectCOMMENT
LOWcompiler-cli/src/lib.rs781 ///COMMENT
LOWcompiler-cli/src/lib.rs881 ///COMMENT
LOWcompiler-cli/src/lib.rs901 ///COMMENT
LOWcompiler-cli/src/lib.rs921 ///COMMENT
LOWcompiler-cli/src/lib.rs941}COMMENT
LOWcompiler-cli/src/lib.rs961 #[arg(long, default_value = "maintainer")]COMMENT
LOWcompiler-cli/src/lib.rs981}COMMENT
LOWcompiler-cli/src/lib.rs1001 ///COMMENT
LOWcompiler-cli/src/text_layout.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWcompiler-cli/src/dependencies.rs801/// failing to detect that resolution is required.COMMENT
LOWcompiler-cli/src/dependencies.rs1181/// like this, cloning directly into `build/packages/<name>`:COMMENT
LOWcompiler-cli/src/dependencies.rs1201/// git fetch originCOMMENT
LOWcompiler-cli/src/http.rs61 }COMMENT
LOWcompiler-cli/src/hex/auth.rs181 /// Get a token that can be used to authenticate with the Hex API.COMMENT
LOWpretty-arena/src/lib.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWpretty-arena/src/lib.rs21//! The basic premise is the `Document` type, which is a tree structure,COMMENT
LOWpretty-arena/src/lib.rs41/// method on each element, providing a concise way to write a document sequence.COMMENT
LOWpretty-arena/src/lib.rs181 }COMMENT
LOWpretty-arena/src/lib.rs441 /// `break_` documents in the group will render broken.COMMENT
LOWpretty-arena/src/lib.rs461 },COMMENT
LOWpretty-arena/src/lib.rs501 /// A `flex_break`.COMMENT
LOWpretty-arena/src/lib.rs541 /// single line and has been broken.COMMENT
LOWpretty-arena/src/lib.rs1021 ///COMMENT
LOWpretty-arena/src/lib.rs1041 Document(self.documents.alloc(PrintableDocument::Break {COMMENT
LOWpretty-arena/src/lib.rs1341 PrintableDocument::Group(doc) => {COMMENT
LOWpretty-arena/src/lib.rs1381fn fits<'string, 'doc>(COMMENT
LOWpretty-arena/src/lib.rs1481 // line anyway.COMMENT
LOWpretty-arena/src/lib.rs1501 // was disabled by a document wrapping this oneCOMMENT
LOWcompiler-core/src/warning.rs201 /// case list {COMMENT
LOWcompiler-core/src/warning.rs221 ///COMMENT
LOWcompiler-core/src/warning.rs241 /// If a record pattern has a spread that is not preceded by a comma:COMMENT
LOWcompiler-core/src/docs.rs721COMMENT
LOWcompiler-core/src/derivation_tree.rs41 /// ```txtCOMMENT
LOWcompiler-core/src/derivation_tree.rs281}COMMENT
LOWcompiler-core/src/config.rs261 ) -> Result<PackageConfig, Error> {COMMENT
LOWcompiler-core/src/config.rs761}COMMENT
LOWcompiler-core/src/version.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWcompiler-core/src/erlang.rs81 /// It might be the same module we're generating code for, so theCOMMENT
LOWcompiler-core/src/erlang.rs121COMMENT
LOWcompiler-core/src/erlang.rs141 /// let a = 1COMMENT
LOWcompiler-core/src/erlang.rs161 /// For example if this is `2` it means we've already generated:COMMENT
LOWcompiler-core/src/erlang.rs181 /// Wibble = ...,COMMENT
LOWcompiler-core/src/erlang.rs361 self.phantom_type(builder, phantom_type_variables);COMMENT
LOWcompiler-core/src/erlang.rs401 builder.end_tuple_type(tuple);COMMENT
LOWcompiler-core/src/erlang.rs541COMMENT
LOWcompiler-core/src/erlang.rs561 /// get this newly generated name back.COMMENT
LOWcompiler-core/src/erlang.rs601 /// 1 / _denominator.COMMENT
LOWcompiler-core/src/erlang.rs781 // external function, regardless of them being discarded in Gleam:COMMENT
LOWcompiler-core/src/erlang.rs841 // A let assert is compiled to a case expression where weCOMMENT
LOWcompiler-core/src/erlang.rs1361 } else {COMMENT
424 more matches not shown…
Decorative Section Separators25 hits · 80 pts
SeverityFileLineSnippetContext
MEDIUM⚡compiler-core/src/exhaustiveness.rs114/// ─┬─────── ─┬──── ─┬────────── ─┬──COMMENT
MEDIUM⚡compiler-core/src/exhaustiveness.rs117/// ╰──────────┴── checks: check that a variable matches with a patternCOMMENT
MEDIUM⚡compiler-core/src/exhaustiveness.rs118/// ─┬────────────────────────────────────COMMENT
MEDIUMcompiler-core/src/exhaustiveness.rs191 /// ─┬────────────COMMENT
MEDIUMcompiler-core/src/exhaustiveness.rs212 /// ─┬───────────────COMMENT
MEDIUMcompiler-core/src/exhaustiveness.rs681/// ─┬─────── ─┬────COMMENT
MEDIUMcompiler-core/src/exhaustiveness.rs682/// ╰─────────┴── Two `PatternCheck`sCOMMENT
MEDIUMcompiler-core/src/exhaustiveness.rs1007/// ─┬────────COMMENT
MEDIUMcompiler-core/src/exhaustiveness.rs1021/// ─┬─ ─┬───────────────COMMENT
MEDIUMcompiler-core/src/exhaustiveness.rs1690/// ─┬──────── ─┬───────COMMENT
MEDIUMcompiler-core/src/exhaustiveness.rs1713/// ─┬─ ─┬───────────────COMMENT
MEDIUMcompiler-core/src/exhaustiveness.rs1984 /// ─┬─────────COMMENT
MEDIUMcompiler-core/src/exhaustiveness.rs1993 /// ─┬───────────────COMMENT
MEDIUMcompiler-core/src/exhaustiveness.rs2007 /// ─┬───────────────────COMMENT
MEDIUMcompiler-core/src/exhaustiveness.rs2022 /// ─┬───────COMMENT
MEDIUMcompiler-core/src/exhaustiveness.rs2180 /// ─┬───────COMMENT
MEDIUMcompiler-core/src/exhaustiveness.rs2193 /// ─┬────────────────COMMENT
MEDIUMcompiler-core/src/exhaustiveness.rs2212 /// ─┬───────COMMENT
MEDIUMcompiler-core/src/exhaustiveness.rs2804 // ─┬────────COMMENT
MEDIUMcompiler-core/src/exhaustiveness.rs2812 // ─┬──────COMMENT
MEDIUMcompiler-core/src/type_/pattern.rs1076 // ┬─── ┬──────COMMENT
MEDIUMsrc-span/src/lib.rs49 /// ─┬──────────────COMMENT
MEDIUMlanguage-server/src/code_action.rs9852 /// ┬────────COMMENT
MEDIUMlanguage-server/src/code_action.rs9869 /// ┬───────COMMENT
MEDIUMlanguage-server/src/code_action.rs9887 /// ┬─────────────────────COMMENT
Hallucination Indicators7 hits · 70 pts
SeverityFileLineSnippetContext
CRITICALcompiler-cli/src/publish.rs499 } else if !module.ast.type_info.references.echo_usages.is_empty() {CODE
CRITICALcompiler-core/src/type_/constant.rs546 self.typer.environment.references.todo_usages.push(location);CODE
CRITICALlanguage-server/src/completer.rs640 self.compiler.project_compiler.config.dependencies.keys(),CODE
CRITICALlanguage-server/src/completer.rs1300 self.compiler.project_compiler.config.name.as_str()CODE
CRITICALlanguage-server/src/code_action.rs9424 if self.module.ast.definitions.imports.is_empty() {CODE
CRITICALlanguage-server/src/code_action.rs11094 if !self.module.ast.type_info.values.contains_key("function") {CODE
CRITICALlanguage-server/src/code_action.rs11101 if !self.module.ast.type_info.values.contains_key(&name) {CODE
Fake / Example Data8 hits · 13 pts
SeverityFileLineSnippetContext
LOWcompiler-core/templates/docs-js/index.js189 searchInput.setAttribute("placeholder", isMac ? "Search ⌘ + K" : "Search Ctrl + K")CODE
LOWcompiler-core/templates/docs-js/highlight.min.js316}),ae=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code",CODE
LOWcompiler-core/src/type_/tests/exhaustiveness.rs1297let name = "John Doe"CODE
LOWcompiler-core/src/erlang/tests/records.rs310 let car = Car(make: "Amphicar", model: "Model 770", driver: Person(name: "John Doe", age: 27))CODE
LOW⚡format/src/lib.rs2925 // [Constructor("wibble", "lorem ipsum dolor sit amet something something"), Other(1)]COMMENT
LOW⚡format/src/lib.rs2925 // [Constructor("wibble", "lorem ipsum dolor sit amet something something"), Other(1)]COMMENT
LOW⚡format/src/lib.rs2934 // "lorem ipsum dolor sit amet something something",COMMENT
LOW⚡format/src/lib.rs2934 // "lorem ipsum dolor sit amet something something",COMMENT
Verbosity Indicators4 hits · 6 pts
SeverityFileLineSnippetContext
LOWcompiler-core/src/erlang.rs3726 // Constants are inlined on the Erlang target, so we need to check ifCOMMENT
LOWcompiler-core/src/type_/pattern.rs1623 // We need to check if there's an explicit size value for the segment.COMMENT
LOWcompiler-core/src/javascript/decision.rs443 // Otherwise, we need to check if the body uses any of the derivedCOMMENT
LOWlanguage-server/src/completer.rs275 // We need to check if the new text we're adding could actually beCOMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMcompiler-core/src/parse.rs8// Essentially a thing that goes between operators.COMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtest/project_git_deps_path/test.sh15# Create a monorepo with two sibling packages in a temp directoryCOMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOW.github/workflows/release-nightly.yaml13 # Check if the actions already ran in the last 24 hoursCOMMENT