AI Slop Code Risk Monitor

hashicorp/hcl

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

HCL is the HashiCorp configuration language.

1.7 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

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.

1.7
Adjusted Signal
1.7
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
5.8K
Stars
Go
Language
74.5K
Lines of Code
297
Files
129
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 8.3/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

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

Agent Over-Engineering Ratio 0.0/100 · LOW

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

PR Review Velocity Impact 8.3/100 · LOW

Which changes need focused human review? 129 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 0LOW 129

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 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.

Over-Commented Block128 hits · 128 pts
SeverityFileLineSnippetContext
LOWstructure_at_pos.go1// Copyright IBM Corp. 2014, 2025COMMENT
LOWdiagnostic_text.go21 width uintCOMMENT
LOWpos.go1// Copyright IBM Corp. 2014, 2025COMMENT
LOWpos.go21 //COMMENT
LOWpos.go41// file.COMMENT
LOWdiagnostic_typeparams.go1// Copyright IBM Corp. 2014, 2025COMMENT
LOWexpr_call.go1// Copyright IBM Corp. 2014, 2025COMMENT
LOWtraversal.go1// Copyright IBM Corp. 2014, 2026COMMENT
LOWtraversal.go21// A traversal can be absolute (its first value is a symbol name) or relativeCOMMENT
LOWtraversal.go301 return Index(val, tn.Key, &tn.SrcRange)COMMENT
LOWtraversal_for_expr.go1// Copyright IBM Corp. 2014, 2026COMMENT
LOWtraversal_for_expr.go41 Summary: "Invalid expression",COMMENT
LOWtraversal_for_expr.go121 return traversal, diagsCOMMENT
LOWtraversal_for_expr.go141// switch hcl.ExprAsKeyword(expr) {COMMENT
LOWexpr_unwrap.go1// Copyright IBM Corp. 2014, 2025COMMENT
LOWexpr_unwrap.go41 expr = innerExprCOMMENT
LOWstructure.go41// The content of a body cannot be meaningfully interpreted without a schema,COMMENT
LOWstructure.go61 //COMMENT
LOWstructure.go101 //COMMENT
LOWexpr_list.go1// Copyright IBM Corp. 2014, 2025COMMENT
LOWdoc.go1// Copyright IBM Corp. 2014, 2025COMMENT
LOWdoc.go21// }COMMENT
LOWdiagnostic.go21 // DiagWarning indicates that the problem reported by a diagnostic warrantsCOMMENT
LOWdiagnostic.go41 // Subject is a tight range referring to exactly the construct thatCOMMENT
LOWdiagnostic.go61 //COMMENT
LOWdiagnostic.go81 //COMMENT
LOWdiagnostic.go121// This is provided as a convenience for returning from a function thatCOMMENT
LOWdiagnostic.go161 return errsCOMMENT
LOWdiagnostic.go181 // is wrapped.COMMENT
LOWexpr_map.go1// Copyright IBM Corp. 2014, 2025COMMENT
LOWdidyoumean.go1// Copyright IBM Corp. 2014, 2025COMMENT
LOWguide/conf.py41# The suffix(es) of source filenames.COMMENT
LOWguide/conf.py61COMMENT
LOWguide/conf.py81# so a file named "default.css" will overwrite the builtin "default.css".COMMENT
LOWguide/conf.py101# -- Options for LaTeX output ------------------------------------------------COMMENT
LOWhclparse/parser.go1// Copyright IBM Corp. 2014, 2026COMMENT
LOWhclparse/parser.go21 "github.com/hashicorp/hcl/v2"COMMENT
LOWhclwrite/generate.go21//COMMENT
LOWhclwrite/generate.go101// value positions in the resulting object expression, without any validationCOMMENT
LOWhclwrite/generate.go141 format(toks) // fiddle with the SpacesBefore field to get canonical spacingCOMMENT
LOWhclwrite/ast_body.go221COMMENT
LOWhclwrite/ast_body.go241//COMMENT
LOWhclwrite/examples_test.go61 //COMMENT
LOWhclwrite/tokens.go21COMMENT
LOWhclwrite/format.go1// Copyright IBM Corp. 2014, 2025COMMENT
LOWhclwrite/format.go21 // may collect a flat sequence of all of the tokens underlying an ASTCOMMENT
LOWhclwrite/format.go461// starting at (and including) the equals symbolCOMMENT
LOWhclwrite/ast_object_cons_expr.go41// ItemFor finds an item that matches the given key and returns the item.COMMENT
LOWhclwrite/ast_object_cons_expr.go81// expression assigned to that key.COMMENT
LOWhclwrite/ast_object_cons_expr.go201 expr := NewExpressionRaw(tokens)COMMENT
LOWhclwrite/ast_expression.go41COMMENT
LOWhclwrite/ast_expression.go61 expr.children.AppendUnstructuredTokens(copyTokens)COMMENT
LOWhclwrite/ast_expression.go161 ret[i] = node.content.(*Traversal)COMMENT
LOWhclwrite/doc.go1// Copyright IBM Corp. 2014, 2025COMMENT
LOWhclwrite/parser.go21// parser does is thrown away here, but this strategy is chosen because theCOMMENT
LOWhclwrite/parser.go781// before := toks[:start]COMMENT
LOWhclwrite/parser.go841 if toks[i].Type != hclsyntax.TokenComment {COMMENT
LOWext/typeexpr/public.go21 ty, _, diags := getType(expr, false, false)COMMENT
LOWext/typeexpr/public.go41func TypeConstraintWithDefaults(expr hcl.Expression) (cty.Type, *Defaults, hcl.Diagnostics) {COMMENT
LOWext/typeexpr/defaults.go21COMMENT
68 more matches not shown…
Structural Annotation Overuse1 hit · 2 pts
SeverityFileLineSnippetContext
LOWhclsyntax/expression.go952// NOTE: This function is only designed to deal with situationsCOMMENT