HCL is the HashiCorp configuration language.
This report summarizes scanner evidence for hashicorp/hcl, a Go project with 5,828 GitHub stars. SynthScan examined 74,542 lines of code across 297 source files, recording 129 pattern matches distributed across 2 syntactic categories. The legacy adjusted pattern signal is 1.7 (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? 129 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 129 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 129 distinct pattern matches across 2 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 | structure_at_pos.go | 1 | // Copyright IBM Corp. 2014, 2025 | COMMENT |
| LOW | diagnostic_text.go | 21 | width uint | COMMENT |
| LOW | pos.go | 1 | // Copyright IBM Corp. 2014, 2025 | COMMENT |
| LOW | pos.go | 21 | // | COMMENT |
| LOW | pos.go | 41 | // file. | COMMENT |
| LOW | diagnostic_typeparams.go | 1 | // Copyright IBM Corp. 2014, 2025 | COMMENT |
| LOW | expr_call.go | 1 | // Copyright IBM Corp. 2014, 2025 | COMMENT |
| LOW | traversal.go | 1 | // Copyright IBM Corp. 2014, 2026 | COMMENT |
| LOW | traversal.go | 21 | // A traversal can be absolute (its first value is a symbol name) or relative | COMMENT |
| LOW | traversal.go | 301 | return Index(val, tn.Key, &tn.SrcRange) | COMMENT |
| LOW | traversal_for_expr.go | 1 | // Copyright IBM Corp. 2014, 2026 | COMMENT |
| LOW | traversal_for_expr.go | 41 | Summary: "Invalid expression", | COMMENT |
| LOW | traversal_for_expr.go | 121 | return traversal, diags | COMMENT |
| LOW | traversal_for_expr.go | 141 | // switch hcl.ExprAsKeyword(expr) { | COMMENT |
| LOW | expr_unwrap.go | 1 | // Copyright IBM Corp. 2014, 2025 | COMMENT |
| LOW | expr_unwrap.go | 41 | expr = innerExpr | COMMENT |
| LOW | structure.go | 41 | // The content of a body cannot be meaningfully interpreted without a schema, | COMMENT |
| LOW | structure.go | 61 | // | COMMENT |
| LOW | structure.go | 101 | // | COMMENT |
| LOW | expr_list.go | 1 | // Copyright IBM Corp. 2014, 2025 | COMMENT |
| LOW | doc.go | 1 | // Copyright IBM Corp. 2014, 2025 | COMMENT |
| LOW | doc.go | 21 | // } | COMMENT |
| LOW | diagnostic.go | 21 | // DiagWarning indicates that the problem reported by a diagnostic warrants | COMMENT |
| LOW | diagnostic.go | 41 | // Subject is a tight range referring to exactly the construct that | COMMENT |
| LOW | diagnostic.go | 61 | // | COMMENT |
| LOW | diagnostic.go | 81 | // | COMMENT |
| LOW | diagnostic.go | 121 | // This is provided as a convenience for returning from a function that | COMMENT |
| LOW | diagnostic.go | 161 | return errs | COMMENT |
| LOW | diagnostic.go | 181 | // is wrapped. | COMMENT |
| LOW | expr_map.go | 1 | // Copyright IBM Corp. 2014, 2025 | COMMENT |
| LOW | didyoumean.go | 1 | // Copyright IBM Corp. 2014, 2025 | COMMENT |
| LOW | guide/conf.py | 41 | # The suffix(es) of source filenames. | COMMENT |
| LOW | guide/conf.py | 61 | COMMENT | |
| LOW | guide/conf.py | 81 | # so a file named "default.css" will overwrite the builtin "default.css". | COMMENT |
| LOW | guide/conf.py | 101 | # -- Options for LaTeX output ------------------------------------------------ | COMMENT |
| LOW | hclparse/parser.go | 1 | // Copyright IBM Corp. 2014, 2026 | COMMENT |
| LOW | hclparse/parser.go | 21 | "github.com/hashicorp/hcl/v2" | COMMENT |
| LOW | hclwrite/generate.go | 21 | // | COMMENT |
| LOW | hclwrite/generate.go | 101 | // value positions in the resulting object expression, without any validation | COMMENT |
| LOW | hclwrite/generate.go | 141 | format(toks) // fiddle with the SpacesBefore field to get canonical spacing | COMMENT |
| LOW | hclwrite/ast_body.go | 221 | COMMENT | |
| LOW | hclwrite/ast_body.go | 241 | // | COMMENT |
| LOW | hclwrite/examples_test.go | 61 | // | COMMENT |
| LOW | hclwrite/tokens.go | 21 | COMMENT | |
| LOW | hclwrite/format.go | 1 | // Copyright IBM Corp. 2014, 2025 | COMMENT |
| LOW | hclwrite/format.go | 21 | // may collect a flat sequence of all of the tokens underlying an AST | COMMENT |
| LOW | hclwrite/format.go | 461 | // starting at (and including) the equals symbol | COMMENT |
| LOW | hclwrite/ast_object_cons_expr.go | 41 | // ItemFor finds an item that matches the given key and returns the item. | COMMENT |
| LOW | hclwrite/ast_object_cons_expr.go | 81 | // expression assigned to that key. | COMMENT |
| LOW | hclwrite/ast_object_cons_expr.go | 201 | expr := NewExpressionRaw(tokens) | COMMENT |
| LOW | hclwrite/ast_expression.go | 41 | COMMENT | |
| LOW | hclwrite/ast_expression.go | 61 | expr.children.AppendUnstructuredTokens(copyTokens) | COMMENT |
| LOW | hclwrite/ast_expression.go | 161 | ret[i] = node.content.(*Traversal) | COMMENT |
| LOW | hclwrite/doc.go | 1 | // Copyright IBM Corp. 2014, 2025 | COMMENT |
| LOW | hclwrite/parser.go | 21 | // parser does is thrown away here, but this strategy is chosen because the | COMMENT |
| LOW | hclwrite/parser.go | 781 | // before := toks[:start] | COMMENT |
| LOW | hclwrite/parser.go | 841 | if toks[i].Type != hclsyntax.TokenComment { | COMMENT |
| LOW | ext/typeexpr/public.go | 21 | ty, _, diags := getType(expr, false, false) | COMMENT |
| LOW | ext/typeexpr/public.go | 41 | func TypeConstraintWithDefaults(expr hcl.Expression) (cty.Type, *Defaults, hcl.Diagnostics) { | COMMENT |
| LOW | ext/typeexpr/defaults.go | 21 | COMMENT | |
| 68 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | hclsyntax/expression.go | 952 | // NOTE: This function is only designed to deal with situations | COMMENT |