AI Slop Code Risk Monitor

samber/lo

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

💥 A Lodash-style Go library based on Go 1.18+ Generics (map, filter, contains, find...)

0.9 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for samber/lo, a Go project with 21,450 GitHub stars. SynthScan examined 102,299 lines of code across 648 source files, recording 84 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-28
Last Push
21.4K
Stars
Go
Language
102.3K
Lines of Code
648
Files
84
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 3.5/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 1.0/100 · LOW

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

Agent Over-Engineering Ratio 0.2/100 · LOW

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

PR Review Velocity Impact 4.1/100 · LOW

Which changes need focused human review? 84 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 83

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 84 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 Block59 hits · 59 pts
SeverityFileLineSnippetContext
LOWtuples.go1321COMMENT
LOWtuples.go1361COMMENT
LOWretry_example_test.go321 throttle("bar")COMMENT
LOWREADME.md1861// map[string]int{"bar": 2}COMMENT
LOWREADME.md4881// 10msCOMMENT
LOWmap_test.go1061 // func(k string, v any) (string, any) {COMMENT
LOWlo_example_test.go3741 }COMMENT
LOWlo_example_test.go3761 // {a 2 true}COMMENT
LOWlo_example_test.go3781 }COMMENT
LOWlo_example_test.go3801func ExampleCrossJoin5() {COMMENT
LOWlo_example_test.go3821 // {b 4 true {bar} 4.2}COMMENT
LOWlo_example_test.go3841 // {b 2 true {bar} 4.2 plop}COMMENT
LOWlo_example_test.go3861 // {a 4 true {bar} 4.2 plop false}COMMENT
LOWlo_example_test.go3881 // {a 2 true {bar} 4.2 plop false 42}COMMENT
LOWlo_example_test.go3901 }COMMENT
LOWlo_example_test.go3941 return fmt.Sprintf("%v-%v-%v", a, b, c)COMMENT
LOWlo_example_test.go3961 // b-4-trueCOMMENT
LOWlo_example_test.go3981 // b-1-true-{bar}COMMENT
LOWlo_example_test.go4001 // a-2-true-{bar}-4.2COMMENT
LOWlo_example_test.go4021 for _, r := range result {COMMENT
LOWlo_example_test.go4041}COMMENT
LOWlo_example_test.go4061 // b-2-true-{bar}-4.2-plop-falseCOMMENT
LOWlo_example_test.go4081 // a-3-true-{bar}-4.2-plop-false-42COMMENT
LOWlo_example_test.go4101 }COMMENT
LOWfind_test.go2481// The sparse (map-based) and dense (index-slice-based) branches are twoCOMMENT
LOWit/find.go161COMMENT
LOWit/find.go301// Returns zero value when the collection is empty.COMMENT
LOWit/find.go481// If `nth` is out of bounds, it returns the zero value (empty value) for that type.COMMENT
LOWit/tuples_example_test.go61 fmt.Printf("%v\n", r)COMMENT
LOWit/tuples_example_test.go81 // {a 1 false}COMMENT
LOWit/tuples_example_test.go101 fmt.Printf("%v\n", r)COMMENT
LOWit/tuples_example_test.go121COMMENT
LOWit/tuples_example_test.go141 // {b 3 false {bar} 4.2}COMMENT
LOWit/tuples_example_test.go161 // {b 1 false {bar} 4.2 plop}COMMENT
LOWit/tuples_example_test.go181 // {a 3 false {bar} 4.2 plop false}COMMENT
LOWit/tuples_example_test.go201 // {a 1 false {bar} 4.2 plop false 42}COMMENT
LOWit/tuples_example_test.go221 fmt.Printf("%v\n", r)COMMENT
LOWit/tuples_example_test.go261 result := CrossJoinBy3(values("a", "b"), values(1, 2, 3, 4), values(true, false), func(a string, b int, c bool) string COMMENT
LOWit/tuples_example_test.go281 // b-3-falseCOMMENT
LOWit/tuples_example_test.go301 // a-4-false-{bar}COMMENT
LOWit/tuples_example_test.go321 // a-1-false-{bar}-4.2COMMENT
LOWit/tuples_example_test.go341 })COMMENT
LOWit/tuples_example_test.go361 // b-4-false-{bar}-4.2-plopCOMMENT
LOWit/tuples_example_test.go381 // b-1-false-{bar}-4.2-plop-falseCOMMENT
LOWit/tuples_example_test.go401 // a-2-false-{bar}-4.2-plop-false-42COMMENT
LOWit/tuples_example_test.go421 fmt.Printf("%v\n", r)COMMENT
LOWit/string_example_test.go21 // [12 34 56]COMMENT
LOWit/seq.go81// Will allocate a map large enough to hold all distinct transformed elements.COMMENT
LOWit/seq.go561// SeqToMap returns a map containing key-value pairs provided by transform function applied to elements of the given seqCOMMENT
LOWit/seq.go581// FilterSeqToMap returns a map containing key-value pairs provided by transform function applied to elements of the givCOMMENT
LOWit/seq.go801}COMMENT
LOWinternal/constraints/constraints.go1// Copyright 2021 The Go Authors. All rights reserved.COMMENT
LOWinternal/xtime/noCopy.go1package xtimeCOMMENT
LOWdocs/data/it-chunkstring.md41// seq1 yields ""COMMENT
LOW.github/workflows/security.yml21 # strategy:COMMENT
LOW.github/workflows/doc.yml41COMMENT
LOW.github/workflows/doc.yml61 # commit_message: 'docs: sync function signatures from source'COMMENT
LOWexp/simd/kernel.go41}COMMENT
LOWexp/simd/doc.go1// Package simd accelerates a subset of the samber/lo slice helpers (Sum, Mean, Min,COMMENT
Fake / Example Data15 hits · 21 pts
SeverityFileLineSnippetContext
LOW⚡README.md2492str := lo.Ellipsis(" Lorem Ipsum ", 5)CODE
LOW⚡README.md2495str := lo.Ellipsis("Lorem Ipsum", 100)CODE
LOW⚡README.md2496// Lorem IpsumCOMMENT
LOW⚡README.md2498str := lo.Ellipsis("Lorem Ipsum", 3)CODE
LOWdocs/data/it-containsby.md65emails := it.Slice([]string{"user@example.com", "invalid-email", "test@domain.org"})CODE
LOWdocs/data/core-map.md54// fullNames: []string{"John Doe", "Jane Smith"}COMMENT
LOW⚡docs/data/core-ellipsis.md23lo.Ellipsis(" Lorem Ipsum ", 5)CODE
LOW⚡docs/data/core-ellipsis.md26str = lo.Ellipsis("Lorem Ipsum", 100)CODE
LOW⚡docs/data/core-ellipsis.md27// "Lorem Ipsum"COMMENT
LOW⚡docs/data/core-ellipsis.md29str = lo.Ellipsis("Lorem Ipsum", 3)CODE
LOWdocs/data/it-someby.md86emails := it.Slice([]string{"user@example.com", "test@gmail.com", "admin@site.net"})CODE
LOWdocs/data/it-noneby.md86emails := it.Slice([]string{"user@example.com", "test@domain.org", "admin@site.net"})CODE
LOWdocs/data/it-noneby.md92emails = it.Slice([]string{"user@example.com", "invalid-email", "test@domain.org"})CODE
LOWdocs/data/it-everyby.md86emails := it.Slice([]string{"user@example.com", "test@domain.org", "admin@site.net"})CODE
LOWdocs/data/it-everyby.md92emails = it.Slice([]string{"user@example.com", "invalid-email", "test@domain.org"})CODE
Structural Annotation Overuse5 hits · 8 pts
SeverityFileLineSnippetContext
LOWdocs/CLAUDE.md221#### Step 1: Write the Example CodeCOMMENT
LOWdocs/CLAUDE.md232#### Step 2: Import ConventionsCOMMENT
LOWdocs/CLAUDE.md254#### Step 3: Run and Share via Go PlaygroundCOMMENT
LOWdocs/CLAUDE.md268#### Step 4: Add the URL to Source CodeCOMMENT
LOWdocs/CLAUDE.md278#### Step 5: Add the URL to DocumentationCOMMENT
Hyper-Verbose Identifiers4 hits · 4 pts
SeverityFileLineSnippetContext
LOWdocs/plugins/helpers-pages/index.ts38function readAllHelperMarkdownFiles(dataDir: string): HelperDefinition[] {CODE
LOW…helpers-pages/components/highlightPrototypeGenerics.ts1function getGenericTypeNamesFromText(text: string): string[] {CODE
LOW…helpers-pages/components/highlightPrototypeGenerics.ts25export function highlightPrototypeGenerics(container: HTMLElement | null): boolean {CODE
LOW…helpers-pages/components/highlightPrototypeGenerics.ts60export function ensurePrototypeGenericsHighlighted(container: HTMLElement | null) {CODE
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMdocs/package-lock.json18621 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz",CODE