💥 A Lodash-style Go library based on Go 1.18+ Generics (map, filter, contains, find...)
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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 69 finding(s).
Are imports declared and package/API names verified? 15 finding(s).
Are wrappers, guards, and repeated structures necessary? 4 finding(s).
Which changes need focused human review? 84 finding(s).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tuples.go | 1321 | COMMENT | |
| LOW | tuples.go | 1361 | COMMENT | |
| LOW | retry_example_test.go | 321 | throttle("bar") | COMMENT |
| LOW | README.md | 1861 | // map[string]int{"bar": 2} | COMMENT |
| LOW | README.md | 4881 | // 10ms | COMMENT |
| LOW | map_test.go | 1061 | // func(k string, v any) (string, any) { | COMMENT |
| LOW | lo_example_test.go | 3741 | } | COMMENT |
| LOW | lo_example_test.go | 3761 | // {a 2 true} | COMMENT |
| LOW | lo_example_test.go | 3781 | } | COMMENT |
| LOW | lo_example_test.go | 3801 | func ExampleCrossJoin5() { | COMMENT |
| LOW | lo_example_test.go | 3821 | // {b 4 true {bar} 4.2} | COMMENT |
| LOW | lo_example_test.go | 3841 | // {b 2 true {bar} 4.2 plop} | COMMENT |
| LOW | lo_example_test.go | 3861 | // {a 4 true {bar} 4.2 plop false} | COMMENT |
| LOW | lo_example_test.go | 3881 | // {a 2 true {bar} 4.2 plop false 42} | COMMENT |
| LOW | lo_example_test.go | 3901 | } | COMMENT |
| LOW | lo_example_test.go | 3941 | return fmt.Sprintf("%v-%v-%v", a, b, c) | COMMENT |
| LOW | lo_example_test.go | 3961 | // b-4-true | COMMENT |
| LOW | lo_example_test.go | 3981 | // b-1-true-{bar} | COMMENT |
| LOW | lo_example_test.go | 4001 | // a-2-true-{bar}-4.2 | COMMENT |
| LOW | lo_example_test.go | 4021 | for _, r := range result { | COMMENT |
| LOW | lo_example_test.go | 4041 | } | COMMENT |
| LOW | lo_example_test.go | 4061 | // b-2-true-{bar}-4.2-plop-false | COMMENT |
| LOW | lo_example_test.go | 4081 | // a-3-true-{bar}-4.2-plop-false-42 | COMMENT |
| LOW | lo_example_test.go | 4101 | } | COMMENT |
| LOW | find_test.go | 2481 | // The sparse (map-based) and dense (index-slice-based) branches are two | COMMENT |
| LOW | it/find.go | 161 | COMMENT | |
| LOW | it/find.go | 301 | // Returns zero value when the collection is empty. | COMMENT |
| LOW | it/find.go | 481 | // If `nth` is out of bounds, it returns the zero value (empty value) for that type. | COMMENT |
| LOW | it/tuples_example_test.go | 61 | fmt.Printf("%v\n", r) | COMMENT |
| LOW | it/tuples_example_test.go | 81 | // {a 1 false} | COMMENT |
| LOW | it/tuples_example_test.go | 101 | fmt.Printf("%v\n", r) | COMMENT |
| LOW | it/tuples_example_test.go | 121 | COMMENT | |
| LOW | it/tuples_example_test.go | 141 | // {b 3 false {bar} 4.2} | COMMENT |
| LOW | it/tuples_example_test.go | 161 | // {b 1 false {bar} 4.2 plop} | COMMENT |
| LOW | it/tuples_example_test.go | 181 | // {a 3 false {bar} 4.2 plop false} | COMMENT |
| LOW | it/tuples_example_test.go | 201 | // {a 1 false {bar} 4.2 plop false 42} | COMMENT |
| LOW | it/tuples_example_test.go | 221 | fmt.Printf("%v\n", r) | COMMENT |
| LOW | it/tuples_example_test.go | 261 | result := CrossJoinBy3(values("a", "b"), values(1, 2, 3, 4), values(true, false), func(a string, b int, c bool) string | COMMENT |
| LOW | it/tuples_example_test.go | 281 | // b-3-false | COMMENT |
| LOW | it/tuples_example_test.go | 301 | // a-4-false-{bar} | COMMENT |
| LOW | it/tuples_example_test.go | 321 | // a-1-false-{bar}-4.2 | COMMENT |
| LOW | it/tuples_example_test.go | 341 | }) | COMMENT |
| LOW | it/tuples_example_test.go | 361 | // b-4-false-{bar}-4.2-plop | COMMENT |
| LOW | it/tuples_example_test.go | 381 | // b-1-false-{bar}-4.2-plop-false | COMMENT |
| LOW | it/tuples_example_test.go | 401 | // a-2-false-{bar}-4.2-plop-false-42 | COMMENT |
| LOW | it/tuples_example_test.go | 421 | fmt.Printf("%v\n", r) | COMMENT |
| LOW | it/string_example_test.go | 21 | // [12 34 56] | COMMENT |
| LOW | it/seq.go | 81 | // Will allocate a map large enough to hold all distinct transformed elements. | COMMENT |
| LOW | it/seq.go | 561 | // SeqToMap returns a map containing key-value pairs provided by transform function applied to elements of the given seq | COMMENT |
| LOW | it/seq.go | 581 | // FilterSeqToMap returns a map containing key-value pairs provided by transform function applied to elements of the giv | COMMENT |
| LOW | it/seq.go | 801 | } | COMMENT |
| LOW | internal/constraints/constraints.go | 1 | // Copyright 2021 The Go Authors. All rights reserved. | COMMENT |
| LOW | internal/xtime/noCopy.go | 1 | package xtime | COMMENT |
| LOW | docs/data/it-chunkstring.md | 41 | // seq1 yields "" | COMMENT |
| LOW | .github/workflows/security.yml | 21 | # strategy: | COMMENT |
| LOW | .github/workflows/doc.yml | 41 | COMMENT | |
| LOW | .github/workflows/doc.yml | 61 | # commit_message: 'docs: sync function signatures from source' | COMMENT |
| LOW | exp/simd/kernel.go | 41 | } | COMMENT |
| LOW | exp/simd/doc.go | 1 | // Package simd accelerates a subset of the samber/lo slice helpers (Sum, Mean, Min, | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | README.md | 2492 | str := lo.Ellipsis(" Lorem Ipsum ", 5) | CODE |
| LOW⚡ | README.md | 2495 | str := lo.Ellipsis("Lorem Ipsum", 100) | CODE |
| LOW⚡ | README.md | 2496 | // Lorem Ipsum | COMMENT |
| LOW⚡ | README.md | 2498 | str := lo.Ellipsis("Lorem Ipsum", 3) | CODE |
| LOW | docs/data/it-containsby.md | 65 | emails := it.Slice([]string{"user@example.com", "invalid-email", "test@domain.org"}) | CODE |
| LOW | docs/data/core-map.md | 54 | // fullNames: []string{"John Doe", "Jane Smith"} | COMMENT |
| LOW⚡ | docs/data/core-ellipsis.md | 23 | lo.Ellipsis(" Lorem Ipsum ", 5) | CODE |
| LOW⚡ | docs/data/core-ellipsis.md | 26 | str = lo.Ellipsis("Lorem Ipsum", 100) | CODE |
| LOW⚡ | docs/data/core-ellipsis.md | 27 | // "Lorem Ipsum" | COMMENT |
| LOW⚡ | docs/data/core-ellipsis.md | 29 | str = lo.Ellipsis("Lorem Ipsum", 3) | CODE |
| LOW | docs/data/it-someby.md | 86 | emails := it.Slice([]string{"user@example.com", "test@gmail.com", "admin@site.net"}) | CODE |
| LOW | docs/data/it-noneby.md | 86 | emails := it.Slice([]string{"user@example.com", "test@domain.org", "admin@site.net"}) | CODE |
| LOW | docs/data/it-noneby.md | 92 | emails = it.Slice([]string{"user@example.com", "invalid-email", "test@domain.org"}) | CODE |
| LOW | docs/data/it-everyby.md | 86 | emails := it.Slice([]string{"user@example.com", "test@domain.org", "admin@site.net"}) | CODE |
| LOW | docs/data/it-everyby.md | 92 | emails = it.Slice([]string{"user@example.com", "invalid-email", "test@domain.org"}) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/CLAUDE.md | 221 | #### Step 1: Write the Example Code | COMMENT |
| LOW | docs/CLAUDE.md | 232 | #### Step 2: Import Conventions | COMMENT |
| LOW | docs/CLAUDE.md | 254 | #### Step 3: Run and Share via Go Playground | COMMENT |
| LOW | docs/CLAUDE.md | 268 | #### Step 4: Add the URL to Source Code | COMMENT |
| LOW | docs/CLAUDE.md | 278 | #### Step 5: Add the URL to Documentation | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/plugins/helpers-pages/index.ts | 38 | function readAllHelperMarkdownFiles(dataDir: string): HelperDefinition[] { | CODE |
| LOW | …helpers-pages/components/highlightPrototypeGenerics.ts | 1 | function getGenericTypeNamesFromText(text: string): string[] { | CODE |
| LOW | …helpers-pages/components/highlightPrototypeGenerics.ts | 25 | export function highlightPrototypeGenerics(container: HTMLElement | null): boolean { | CODE |
| LOW | …helpers-pages/components/highlightPrototypeGenerics.ts | 60 | export function ensurePrototypeGenericsHighlighted(container: HTMLElement | null) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/package-lock.json | 18621 | "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz", | CODE |