AI Slop Code Risk Monitor

cloudwego/hertz

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

Go HTTP framework with high-performance and strong-extensibility for building micro-services.

1.8 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for cloudwego/hertz, a Go project with 7,399 GitHub stars. SynthScan examined 89,114 lines of code across 477 source files, recording 157 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 1.8 (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.8
Adjusted Signal
1.8
Raw Pattern Score
100%
Time Factor
2026-10-20
Last Push
7.4K
Stars
Go
Language
89.1K
Lines of Code
477
Files
157
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.6/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 157 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.4/100 · LOW

Which changes need focused human review? 157 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 157

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 157 distinct pattern matches across 4 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 Block149 hits · 149 pts
SeverityFileLineSnippetContext
LOWcmd/hz/doc.go1// Copyright 2022 CloudWeGo AuthorsCOMMENT
LOWcmd/hz/generate.sh1#!/usr/bin/env bashCOMMENT
LOWinternal/tagexpr/tagparser.go1// Copyright 2019 Bytedance Inc. All Rights Reserved.COMMENT
LOWinternal/tagexpr/handler.go1// Copyright 2019 Bytedance Inc. All Rights Reserved.COMMENT
LOWinternal/tagexpr/tagexpr.go1// Copyright 2019 Bytedance Inc. All Rights Reserved.COMMENT
LOWinternal/tagexpr/example_test.go1// Copyright 2019 Bytedance Inc. All Rights Reserved.COMMENT
LOWinternal/tagexpr/example_test.go61 fmt.Println(tagExpr.Eval("d@msg"))COMMENT
LOWinternal/tagexpr/spec_operator.go1// Copyright 2019 Bytedance Inc. All Rights Reserved.COMMENT
LOWinternal/tagexpr/spec_func_test.go1// Copyright 2019 Bytedance Inc. All Rights Reserved.COMMENT
LOWinternal/tagexpr/spec_selector.go1// Copyright 2019 Bytedance Inc. All Rights Reserved.COMMENT
LOWinternal/tagexpr/tagexpr_test.go1// Copyright 2019 Bytedance Inc. All Rights Reserved.COMMENT
LOWinternal/tagexpr/selector.go1// Copyright 2019 Bytedance Inc. All Rights Reserved.COMMENT
LOWinternal/tagexpr/spec_range_test.go1// Copyright 2019 Bytedance Inc. All Rights Reserved.COMMENT
LOWinternal/tagexpr/spec_func.go1// Copyright 2019 Bytedance Inc. All Rights Reserved.COMMENT
LOWinternal/tagexpr/spec_range.go1// Copyright 2019 Bytedance Inc. All Rights Reserved.COMMENT
LOWinternal/tagexpr/tagparser_test.go1// Copyright 2019 Bytedance Inc. All Rights Reserved.COMMENT
LOWinternal/tagexpr/spec_operand.go1// Copyright 2019 Bytedance Inc. All Rights Reserved.COMMENT
LOWinternal/tagexpr/expr.go1// Copyright 2019 Bytedance Inc. All Rights Reserved.COMMENT
LOWinternal/tagexpr/expr_test.go1// Copyright 2019 Bytedance Inc. All Rights Reserved.COMMENT
LOWinternal/tagexpr/selector_test.go1// Copyright 2019 Bytedance Inc. All Rights Reserved.COMMENT
LOWinternal/tagexpr/spec_test.go1// Copyright 2019 Bytedance Inc. All Rights Reserved.COMMENT
LOWinternal/tagexpr/validator/example_test.go1// Copyright 2019 Bytedance Inc. All Rights Reserved.COMMENT
LOWinternal/tagexpr/validator/example_test.go101 fmt.Println(vd.Validate([]*F{}))COMMENT
LOWinternal/tagexpr/validator/validator.go1// Package validator is a powerful validator that supports struct tag expression.COMMENT
LOWinternal/tagexpr/validator/validator_test.go1// Copyright 2019 Bytedance Inc. All Rights Reserved.COMMENT
LOWinternal/tagexpr/validator/default.go1// Copyright 2019 Bytedance Inc. All Rights Reserved.COMMENT
LOWinternal/tagexpr/validator/default.go21//COMMENT
LOWinternal/tagexpr/validator/func.go1// Copyright 2019 Bytedance Inc. All Rights Reserved.COMMENT
LOWinternal/bytesconv/bytesconv_test.go201}COMMENT
LOWinternal/bytesconv/bytesconv_test.go221// }COMMENT
LOWinternal/bytesconv/bytesconv_test.go241// assert.DeepEqual(t, expectedS, res)COMMENT
LOWinternal/bytesconv/bytesconv_timing_test.go21)COMMENT
LOWscripts/release-hotfix.sh1#!/bin/bashCOMMENT
LOWscripts/release-hotfix.sh21# 1. Prompts for the minor version to create a hotfix for (e.g., v0.14.x)COMMENT
LOWscripts/release.sh1#!/bin/bashCOMMENT
LOWscripts/release.sh21# 1. Validates you're on the main branch and up-to-date with originCOMMENT
LOWscripts/.utils/funcs.sh1#!/bin/bashCOMMENT
LOWscripts/.utils/check_version.sh1#!/bin/bashCOMMENT
LOWscripts/.utils/check_version.sh21#COMMENT
LOWscripts/.utils/check_go_mod.sh1#!/bin/bashCOMMENT
LOWscripts/.utils/check_go_mod.sh21#COMMENT
LOWpkg/app/fs.go101// FS represents settings for request handler serving static filesCOMMENT
LOWpkg/app/fs.go121COMMENT
LOWpkg/app/fs.go141 // Transparent compression is disabled by default.COMMENT
LOWpkg/app/fs.go261COMMENT
LOWpkg/app/fs.go1141 if endPos >= contentLength {COMMENT
LOWpkg/app/fs.go1201// Directory contents is returned if path points to directory.COMMENT
LOWpkg/app/context.go401 return inbuiltHandlerNameOperator.GetHandlerName(handler)COMMENT
LOWpkg/app/context.go421// Hijack registers the given handler for connection hijacking.COMMENT
LOWpkg/app/context.go501func (ctx *RequestContext) Hijacked() bool {COMMENT
LOWpkg/app/context.go661//COMMENT
LOWpkg/app/context.go701}COMMENT
LOWpkg/app/context.go1081// Note that this will not stop the current handler.COMMENT
LOWpkg/app/context.go1221COMMENT
LOWpkg/app/context.go1321// PostArgs returns POST arguments.COMMENT
LOWpkg/app/context.go1381// DefaultPostForm returns the specified key from a POST urlencoded form or multipart formCOMMENT
LOWpkg/app/server/option.go61COMMENT
LOWpkg/app/server/option.go81 o.RedirectTrailingSlash = bCOMMENT
LOWpkg/app/server/option.go101COMMENT
LOWpkg/app/server/option.go161 o.Addr = hpCOMMENT
89 more matches not shown…
Example Usage Blocks5 hits · 8 pts
SeverityFileLineSnippetContext
LOWcmd/hz/generate.sh5# Usage:COMMENT
LOWscripts/release-hotfix.sh27# Usage:COMMENT
LOWscripts/release.sh28# Usage:COMMENT
LOWscripts/.utils/check_version.sh27# Usage:COMMENT
LOWscripts/.utils/check_go_mod.sh27# Usage:COMMENT
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippetContext
LOWpkg/common/bytebufferpool/bytebuffer.go110// The purpose of this function is bytes.Buffer compatibility.COMMENT
LOWpkg/common/bytebufferpool/bytebuffer.go123// The purpose of this function is bytes.Buffer compatibility.COMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscripts/.utils/funcs.sh31 # Check if there are any commits between the referencesCOMMENT