⭐️ A friendly language for building type-safe, scalable systems!
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.
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? 491 finding(s).
Are imports declared and package/API names verified? 15 finding(s).
Are wrappers, guards, and repeated structures necessary? 25 finding(s).
Which changes need focused human review? 531 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 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | compiler-cli/src/lib.rs | 181 | COMMENT | |
| LOW | compiler-cli/src/lib.rs | 201 | }, | COMMENT |
| LOW | compiler-cli/src/lib.rs | 221 | /// [documentation] | COMMENT |
| LOW | compiler-cli/src/lib.rs | 241 | /// - Minor updates include new functionality, but no breaking changes. | COMMENT |
| LOW | compiler-cli/src/lib.rs | 261 | /// [dependencies] | COMMENT |
| LOW | compiler-cli/src/lib.rs | 281 | /// wibble = { path = "../wibble" } | COMMENT |
| LOW | compiler-cli/src/lib.rs | 401 | /// Add new dependencies | COMMENT |
| LOW | compiler-cli/src/lib.rs | 421 | /// | COMMENT |
| LOW | compiler-cli/src/lib.rs | 701 | /// (optional) The path to write the JavaScript file to. | COMMENT |
| LOW | compiler-cli/src/lib.rs | 761 | /// The compilation target for the generated project | COMMENT |
| LOW | compiler-cli/src/lib.rs | 781 | /// | COMMENT |
| LOW | compiler-cli/src/lib.rs | 881 | /// | COMMENT |
| LOW | compiler-cli/src/lib.rs | 901 | /// | COMMENT |
| LOW | compiler-cli/src/lib.rs | 921 | /// | COMMENT |
| LOW | compiler-cli/src/lib.rs | 941 | } | COMMENT |
| LOW | compiler-cli/src/lib.rs | 961 | #[arg(long, default_value = "maintainer")] | COMMENT |
| LOW | compiler-cli/src/lib.rs | 981 | } | COMMENT |
| LOW | compiler-cli/src/lib.rs | 1001 | /// | COMMENT |
| LOW | compiler-cli/src/text_layout.rs | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | compiler-cli/src/dependencies.rs | 801 | /// failing to detect that resolution is required. | COMMENT |
| LOW | compiler-cli/src/dependencies.rs | 1181 | /// like this, cloning directly into `build/packages/<name>`: | COMMENT |
| LOW | compiler-cli/src/dependencies.rs | 1201 | /// git fetch origin | COMMENT |
| LOW | compiler-cli/src/http.rs | 61 | } | COMMENT |
| LOW | compiler-cli/src/hex/auth.rs | 181 | /// Get a token that can be used to authenticate with the Hex API. | COMMENT |
| LOW | pretty-arena/src/lib.rs | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | pretty-arena/src/lib.rs | 21 | //! The basic premise is the `Document` type, which is a tree structure, | COMMENT |
| LOW | pretty-arena/src/lib.rs | 41 | /// method on each element, providing a concise way to write a document sequence. | COMMENT |
| LOW | pretty-arena/src/lib.rs | 181 | } | COMMENT |
| LOW | pretty-arena/src/lib.rs | 441 | /// `break_` documents in the group will render broken. | COMMENT |
| LOW | pretty-arena/src/lib.rs | 461 | }, | COMMENT |
| LOW | pretty-arena/src/lib.rs | 501 | /// A `flex_break`. | COMMENT |
| LOW | pretty-arena/src/lib.rs | 541 | /// single line and has been broken. | COMMENT |
| LOW | pretty-arena/src/lib.rs | 1021 | /// | COMMENT |
| LOW | pretty-arena/src/lib.rs | 1041 | Document(self.documents.alloc(PrintableDocument::Break { | COMMENT |
| LOW | pretty-arena/src/lib.rs | 1341 | PrintableDocument::Group(doc) => { | COMMENT |
| LOW | pretty-arena/src/lib.rs | 1381 | fn fits<'string, 'doc>( | COMMENT |
| LOW | pretty-arena/src/lib.rs | 1481 | // line anyway. | COMMENT |
| LOW | pretty-arena/src/lib.rs | 1501 | // was disabled by a document wrapping this one | COMMENT |
| LOW | compiler-core/src/warning.rs | 201 | /// case list { | COMMENT |
| LOW | compiler-core/src/warning.rs | 221 | /// | COMMENT |
| LOW | compiler-core/src/warning.rs | 241 | /// If a record pattern has a spread that is not preceded by a comma: | COMMENT |
| LOW | compiler-core/src/docs.rs | 721 | COMMENT | |
| LOW | compiler-core/src/derivation_tree.rs | 41 | /// ```txt | COMMENT |
| LOW | compiler-core/src/derivation_tree.rs | 281 | } | COMMENT |
| LOW | compiler-core/src/config.rs | 261 | ) -> Result<PackageConfig, Error> { | COMMENT |
| LOW | compiler-core/src/config.rs | 761 | } | COMMENT |
| LOW | compiler-core/src/version.rs | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | compiler-core/src/erlang.rs | 81 | /// It might be the same module we're generating code for, so the | COMMENT |
| LOW | compiler-core/src/erlang.rs | 121 | COMMENT | |
| LOW | compiler-core/src/erlang.rs | 141 | /// let a = 1 | COMMENT |
| LOW | compiler-core/src/erlang.rs | 161 | /// For example if this is `2` it means we've already generated: | COMMENT |
| LOW | compiler-core/src/erlang.rs | 181 | /// Wibble = ..., | COMMENT |
| LOW | compiler-core/src/erlang.rs | 361 | self.phantom_type(builder, phantom_type_variables); | COMMENT |
| LOW | compiler-core/src/erlang.rs | 401 | builder.end_tuple_type(tuple); | COMMENT |
| LOW | compiler-core/src/erlang.rs | 541 | COMMENT | |
| LOW | compiler-core/src/erlang.rs | 561 | /// get this newly generated name back. | COMMENT |
| LOW | compiler-core/src/erlang.rs | 601 | /// 1 / _denominator. | COMMENT |
| LOW | compiler-core/src/erlang.rs | 781 | // external function, regardless of them being discarded in Gleam: | COMMENT |
| LOW | compiler-core/src/erlang.rs | 841 | // A let assert is compiled to a case expression where we | COMMENT |
| LOW | compiler-core/src/erlang.rs | 1361 | } else { | COMMENT |
| 424 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | compiler-core/src/exhaustiveness.rs | 114 | /// ─┬─────── ─┬──── ─┬────────── ─┬── | COMMENT |
| MEDIUM⚡ | compiler-core/src/exhaustiveness.rs | 117 | /// ╰──────────┴── checks: check that a variable matches with a pattern | COMMENT |
| MEDIUM⚡ | compiler-core/src/exhaustiveness.rs | 118 | /// ─┬──────────────────────────────────── | COMMENT |
| MEDIUM | compiler-core/src/exhaustiveness.rs | 191 | /// ─┬──────────── | COMMENT |
| MEDIUM | compiler-core/src/exhaustiveness.rs | 212 | /// ─┬─────────────── | COMMENT |
| MEDIUM | compiler-core/src/exhaustiveness.rs | 681 | /// ─┬─────── ─┬──── | COMMENT |
| MEDIUM | compiler-core/src/exhaustiveness.rs | 682 | /// ╰─────────┴── Two `PatternCheck`s | COMMENT |
| MEDIUM | compiler-core/src/exhaustiveness.rs | 1007 | /// ─┬──────── | COMMENT |
| MEDIUM | compiler-core/src/exhaustiveness.rs | 1021 | /// ─┬─ ─┬─────────────── | COMMENT |
| MEDIUM | compiler-core/src/exhaustiveness.rs | 1690 | /// ─┬──────── ─┬─────── | COMMENT |
| MEDIUM | compiler-core/src/exhaustiveness.rs | 1713 | /// ─┬─ ─┬─────────────── | COMMENT |
| MEDIUM | compiler-core/src/exhaustiveness.rs | 1984 | /// ─┬───────── | COMMENT |
| MEDIUM | compiler-core/src/exhaustiveness.rs | 1993 | /// ─┬─────────────── | COMMENT |
| MEDIUM | compiler-core/src/exhaustiveness.rs | 2007 | /// ─┬─────────────────── | COMMENT |
| MEDIUM | compiler-core/src/exhaustiveness.rs | 2022 | /// ─┬─────── | COMMENT |
| MEDIUM | compiler-core/src/exhaustiveness.rs | 2180 | /// ─┬─────── | COMMENT |
| MEDIUM | compiler-core/src/exhaustiveness.rs | 2193 | /// ─┬──────────────── | COMMENT |
| MEDIUM | compiler-core/src/exhaustiveness.rs | 2212 | /// ─┬─────── | COMMENT |
| MEDIUM | compiler-core/src/exhaustiveness.rs | 2804 | // ─┬──────── | COMMENT |
| MEDIUM | compiler-core/src/exhaustiveness.rs | 2812 | // ─┬────── | COMMENT |
| MEDIUM | compiler-core/src/type_/pattern.rs | 1076 | // ┬─── ┬────── | COMMENT |
| MEDIUM | src-span/src/lib.rs | 49 | /// ─┬────────────── | COMMENT |
| MEDIUM | language-server/src/code_action.rs | 9852 | /// ┬──────── | COMMENT |
| MEDIUM | language-server/src/code_action.rs | 9869 | /// ┬─────── | COMMENT |
| MEDIUM | language-server/src/code_action.rs | 9887 | /// ┬───────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | compiler-cli/src/publish.rs | 499 | } else if !module.ast.type_info.references.echo_usages.is_empty() { | CODE |
| CRITICAL | compiler-core/src/type_/constant.rs | 546 | self.typer.environment.references.todo_usages.push(location); | CODE |
| CRITICAL | language-server/src/completer.rs | 640 | self.compiler.project_compiler.config.dependencies.keys(), | CODE |
| CRITICAL | language-server/src/completer.rs | 1300 | self.compiler.project_compiler.config.name.as_str() | CODE |
| CRITICAL | language-server/src/code_action.rs | 9424 | if self.module.ast.definitions.imports.is_empty() { | CODE |
| CRITICAL | language-server/src/code_action.rs | 11094 | if !self.module.ast.type_info.values.contains_key("function") { | CODE |
| CRITICAL | language-server/src/code_action.rs | 11101 | if !self.module.ast.type_info.values.contains_key(&name) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | compiler-core/templates/docs-js/index.js | 189 | searchInput.setAttribute("placeholder", isMac ? "Search ⌘ + K" : "Search Ctrl + K") | CODE |
| LOW | compiler-core/templates/docs-js/highlight.min.js | 316 | }),ae=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code", | CODE |
| LOW | compiler-core/src/type_/tests/exhaustiveness.rs | 1297 | let name = "John Doe" | CODE |
| LOW | compiler-core/src/erlang/tests/records.rs | 310 | let car = Car(make: "Amphicar", model: "Model 770", driver: Person(name: "John Doe", age: 27)) | CODE |
| LOW⚡ | format/src/lib.rs | 2925 | // [Constructor("wibble", "lorem ipsum dolor sit amet something something"), Other(1)] | COMMENT |
| LOW⚡ | format/src/lib.rs | 2925 | // [Constructor("wibble", "lorem ipsum dolor sit amet something something"), Other(1)] | COMMENT |
| LOW⚡ | format/src/lib.rs | 2934 | // "lorem ipsum dolor sit amet something something", | COMMENT |
| LOW⚡ | format/src/lib.rs | 2934 | // "lorem ipsum dolor sit amet something something", | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | compiler-core/src/erlang.rs | 3726 | // Constants are inlined on the Erlang target, so we need to check if | COMMENT |
| LOW | compiler-core/src/type_/pattern.rs | 1623 | // We need to check if there's an explicit size value for the segment. | COMMENT |
| LOW | compiler-core/src/javascript/decision.rs | 443 | // Otherwise, we need to check if the body uses any of the derived | COMMENT |
| LOW | language-server/src/completer.rs | 275 | // We need to check if the new text we're adding could actually be | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | compiler-core/src/parse.rs | 8 | // Essentially a thing that goes between operators. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/project_git_deps_path/test.sh | 15 | # Create a monorepo with two sibling packages in a temp directory | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/workflows/release-nightly.yaml | 13 | # Check if the actions already ran in the last 24 hours | COMMENT |