Go library for the TOML file format
This report summarizes scanner evidence for pelletier/go-toml, a Go project with 2,000 GitHub stars. SynthScan examined 37,152 lines of code across 97 source files, recording 52 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 1.6 (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? 51 finding(s).
Are imports declared and package/API names verified? 1 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 52 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 52 distinct pattern matches across 6 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 | marshaler.go | 121 | // SetOmitEmptySuperTables removes the header of tables that do not directly | COMMENT |
| LOW | marshaler.go | 141 | return enc | COMMENT |
| LOW | marshaler.go | 161 | // a position where only a value is valid (an array element, an inline table, | COMMENT |
| LOW | marshaler.go | 181 | // | COMMENT |
| LOW | marshaler.go | 201 | // solution is a custom type that implements encoding.TextMarshaler. | COMMENT |
| LOW | marshaler.go | 221 | // The encoding of each public struct field can be customized by the format | COMMENT |
| LOW | marshaler_test.go | 2301 | expected := `# Int = 42 | COMMENT |
| LOW | marshaler_test.go | 2521 | // | COMMENT |
| LOW | marshaler_test.go | 2541 | // # max points per metric when internal-aggregation=true | COMMENT |
| LOW | unmarshaler.go | 101 | // description of the missing fields. | COMMENT |
| LOW | unmarshaler.go | 121 | // | COMMENT |
| LOW | unmarshaler.go | 141 | // map[string]interface{}. | COMMENT |
| LOW | unmarshaler.go | 241 | COMMENT | |
| LOW | unmarshaler.go | 261 | COMMENT | |
| LOW | unmarshaler.go | 621 | } | COMMENT |
| LOW | marshaler_raw_test.go | 821 | // [plugin] | COMMENT |
| LOW | benchmark/benchmark.toml | 21 | [table.subtable] | COMMENT |
| LOW | cmd/tomljson/main.go | 1 | // Package tomljson is a program that converts TOML to JSON. | COMMENT |
| LOW | cmd/tomll/main.go | 1 | // Package tomll is a linter program for TOML. | COMMENT |
| LOW | cmd/jsontoml/main.go | 1 | // Package jsontoml is a program that converts JSON to TOML. | COMMENT |
| LOW | internal/tracker/seen.go | 61 | // | COMMENT |
| LOW | internal/parserbridge/parserbridge.go | 1 | // Package parserbridge exposes the unstable parser's non-AST scanners to the | COMMENT |
| LOW | .github/workflows/codeql-analysis.yml | 1 | # For most projects, this workflow file will not need changing; you simply need | COMMENT |
| LOW | .github/workflows/codeql-analysis.yml | 41 | - name: Initialize CodeQL | COMMENT |
| LOW | unstable/parser_test.go | 761 | COMMENT | |
| LOW | unstable/parser_test.go | 841 | // 1:1->1:31 (0->30) | Comment [# Top of the document comment.] | COMMENT |
| LOW | unstable/parser_test.go | 861 | // --- | COMMENT |
| LOW | unstable/parser_test.go | 881 | // 19:1->19:20 (386->405) | KeyValue [] | COMMENT |
| LOW | unstable/parser_test.go | 901 | // 28:3->28:4 (638->639) | Integer [2] | COMMENT |
| LOW | unstable/marshaler.go | 1 | package unstable | COMMENT |
| LOW | unstable/ast.go | 1 | package unstable | COMMENT |
| LOW | unstable/ast.go | 41 | // Node returns a pointer to the node pointed at by the iterator. | COMMENT |
| LOW | unstable/parser.go | 41 | // | COMMENT |
| LOW | unstable/parser.go | 61 | // unbounded mutual recursion, which would otherwise let a deeply nested | COMMENT |
| LOW | unstable/unmarshaler.go | 1 | package unstable | COMMENT |
| LOW | unstable/unmarshaler.go | 21 | // | COMMENT |
| LOW | unstable/edit/edit.go | 1 | // Package edit provides comment- and layout-preserving editing of TOML | COMMENT |
| LOW | unstable/edit/edit.go | 21 | // unambiguous. For Set, an index equal to the array's length appends a new | COMMENT |
| LOW | unstable/edit/edit.go | 41 | // Comments travel with the expression they annotate: the contiguous | COMMENT |
| LOW | unstable/edit/mutate.go | 21 | // Set sets the value at the given key path, creating the tables leading to | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | toml_testgen_test.go | 1629 | input := "[fruit]\napple.color = \"red\"\napple.taste.sweet = true\n\n[fruit.apple] # INVALID\n# [fruit.apple.taste] | CODE |
| MEDIUM | toml_testgen_test.go | 1634 | input := "[fruit]\napple.color = \"red\"\napple.taste.sweet = true\n\n# [fruit.apple] # INVALID\n[fruit.apple.taste] | CODE |
| MEDIUM | toml_testgen_test.go | 3173 | input := "[fruit]\napple.color = \"red\"\napple.taste.sweet = true\n\n# [fruit.apple] # INVALID\n# [fruit.apple.taste] | CODE |
| MEDIUM | toml_testgen_test.go | 3233 | input := "# This makes the key \"fruit\" into a table.\nfruit.apple.smooth = true\n\n# So then you can add to the table | CODE |
| LOW | unstable/parser.go | 42 | // Don't forget to check Error() after you're done parsing. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test-go-versions.sh | 146 | # Check if Docker is available | COMMENT |
| LOW | test-go-versions.sh | 152 | # Check if Docker daemon is running | COMMENT |
| LOW | test-go-versions.sh | 395 | # Check if this version and all subsequent versions pass | COMMENT |
| LOW | test-go-versions.sh | 424 | # Check if the two most recent versions failed | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test-go-versions.sh | 170 | # Create a temporary Dockerfile for this version | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | caps.sh | 5 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | benchmark/realworld_bench_test.go | 399 | authors = [{ name = "Jane Doe", email = "jane@example.com" }] | CODE |