AI Slop Code Risk Monitor

nezhahq/nezha

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

:trollface: Self-hosted, lightweight server and website monitoring and O&M tool

1.2 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for nezhahq/nezha, a Go project with 10,388 GitHub stars. SynthScan examined 118,572 lines of code across 900 source files, recording 130 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 1.2 (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.2
Adjusted Signal
1.2
Raw Pattern Score
100%
Time Factor
2026-10-29
Last Push
10.4K
Stars
Go
Language
118.6K
Lines of Code
900
Files
130
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 5.2/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.1/100 · LOW

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

Agent Over-Engineering Ratio 0.6/100 · LOW

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

PR Review Velocity Impact 5.7/100 · LOW

Which changes need focused human review? 130 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 5LOW 125

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

Over-Commented Block119 hits · 119 pts
SeverityFileLineSnippetContext
LOWcmd/dashboard/main.go101// @version 1.0COMMENT
LOWcmd/dashboard/controller/mcp_origin.go41 }COMMENT
LOWcmd/dashboard/controller/waf.go61 },COMMENT
LOWcmd/dashboard/controller/csrf.go81 c.SetCookie(csrfCookieName, token, 0, "/", "", secure, false)COMMENT
LOWcmd/dashboard/controller/csrf.go101// - Bearer-token PAT requests (`Authorization: Bearer nzp_*`): stateless,COMMENT
LOWcmd/dashboard/controller/notification_group.go121// Edit notification groupCOMMENT
LOWcmd/dashboard/controller/notification_group.go201}COMMENT
LOWcmd/dashboard/controller/server.go41 return ssl, nilCOMMENT
LOWcmd/dashboard/controller/server.go161 // entry is dropped: the order shortens the window in which aCOMMENT
LOWcmd/dashboard/controller/server.go281}COMMENT
LOWcmd/dashboard/controller/server.go361// Batch move servers to other userCOMMENT
LOWcmd/dashboard/controller/server.go421 // server 是否存在。COMMENT
LOWcmd/dashboard/controller/server.go501 "uptime": tsdb.MetricServerUptime,COMMENT
LOWcmd/dashboard/controller/service.go141// Get service historyCOMMENT
LOWcmd/dashboard/controller/service.go601 return nil, nilCOMMENT
LOWcmd/dashboard/controller/user.go41 }, nilCOMMENT
LOWcmd/dashboard/controller/user.go121 }COMMENT
LOWcmd/dashboard/controller/user.go161COMMENT
LOWcmd/dashboard/controller/user.go241 Pagination: model.Pagination{COMMENT
LOWcmd/dashboard/controller/scope_doc.go1// Package controller — scope reference table for REST + MCP.COMMENT
LOWcmd/dashboard/controller/scope_doc.go21//COMMENT
LOWcmd/dashboard/controller/scope_doc.go41// GET /api/v1/server nezha:inventory:readCOMMENT
LOWcmd/dashboard/controller/scope_doc.go61// GET /api/v1/server/{id}/metrics nezha:server:readCOMMENT
LOWcmd/dashboard/controller/scope_doc.go81// POST /api/v1/cron/{id}/manual nezha:cron:execCOMMENT
LOWcmd/dashboard/controller/scope_doc.go101// POST /api/v1/notification-group nezha:notification-group:writeCOMMENT
LOWcmd/dashboard/controller/scope_doc.go121// POST /api/v1/refresh-tokenCOMMENT
LOW…d/dashboard/controller/mcp_transfer_zero_chunk_test.go21}COMMENT
LOWcmd/dashboard/controller/cron_update_owner_uid_test.go61 c.Set(apiTokenCtxKey, tok)COMMENT
LOWcmd/dashboard/controller/api_token_revoke_registry.go21//COMMENT
LOWcmd/dashboard/controller/setting.go61 Oauth2Providers: config.Oauth2Providers,COMMENT
LOWcmd/dashboard/controller/frontend.go41// List frontendsCOMMENT
LOWcmd/dashboard/controller/nat.go161// Batch delete NAT configurationsCOMMENT
LOWcmd/dashboard/controller/notification.go41 n.RequestBody = ""COMMENT
LOWcmd/dashboard/controller/notification.go161 }COMMENT
LOWcmd/dashboard/controller/cron.go201 }COMMENT
LOWcmd/dashboard/controller/cron.go241 }COMMENT
LOWcmd/dashboard/controller/oauth2.go21)COMMENT
LOWcmd/dashboard/controller/transfer_retry_authz_test.go21// retryServerTransfer previously gated on prev.HasPermission(c), which honoursCOMMENT
LOWcmd/dashboard/controller/server_group.go81// New server groupCOMMENT
LOWcmd/dashboard/controller/server_group.go141// Edit server groupCOMMENT
LOWcmd/dashboard/controller/server_group.go221 return nil, nilCOMMENT
LOWcmd/dashboard/controller/permissions.go61// that carries a non-empty server_ids whitelist. Cover-all semantics inCOMMENT
LOWcmd/dashboard/controller/permissions.go201 return model.DenyListSafeForLimitedPAT(tok, ownerUID, denyIDs)COMMENT
LOWcmd/dashboard/controller/permissions.go221 // 会跑到 PAT 白名单之外。COMMENT
LOWcmd/dashboard/controller/permissions.go301COMMENT
LOWcmd/dashboard/controller/permissions.go361}COMMENT
LOWcmd/dashboard/controller/permissions.go381// existing cron's UserID — not the caller — because CronTrigger fans outCOMMENT
LOWcmd/dashboard/controller/terminal_fm_quota_test.go1package controllerCOMMENT
LOWcmd/dashboard/controller/mcp.go1// Package controller — MCP (Model Context Protocol) server.COMMENT
LOWcmd/dashboard/controller/transfer_list_filter_test.go21COMMENT
LOWcmd/dashboard/controller/transfer.go21// @Description InitiatorID. The same predicate is enforced both at the SQLCOMMENT
LOWcmd/dashboard/controller/transfer.go41 }COMMENT
LOWcmd/dashboard/controller/transfer.go101// @Description terminal (Failed/Timeout/Cancelled) transfer. The previous rowCOMMENT
LOWcmd/dashboard/controller/transfer.go161// @Summary Websocket server transfer streamCOMMENT
LOWcmd/dashboard/controller/cron_service_cover_pat_test.go1package controllerCOMMENT
LOWcmd/dashboard/controller/ddns.go41COMMENT
LOWcmd/dashboard/controller/ddns.go101COMMENT
LOWcmd/dashboard/controller/ddns.go181 return nil, nilCOMMENT
LOWcmd/dashboard/controller/dashboard_credential.go21// authenticate dashboard requests on its own.COMMENT
LOWcmd/dashboard/controller/dashboard_credential.go41//COMMENT
59 more matches not shown…
Decorative Section Separators4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMscript/install_en.sh3#========================================================COMMENT
MEDIUMscript/install_en.sh5#========================================================COMMENT
MEDIUMscript/install.sh3#========================================================COMMENT
MEDIUMscript/install.sh5#========================================================COMMENT
Hyper-Verbose Identifiers3 hits · 3 pts
SeverityFileLineSnippetContext
LOW.github/sync.py37def get_github_latest_release():CODE
LOW.github/sync.py159def get_existing_gitee_release(client, release_api_uri, tag, token):CODE
LOW.github/sync_atomgit.py12def get_github_latest_release():CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/release.yml94 # Create the Go file to link the libraryCOMMENT
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWcmd/dashboard/controller/jwt_session_test.go413 refreshResponse(c, 200, "fake-token", newExpire)CODE
LOWservice/singleton/nat_domain_policy_test.go44 for _, domain := range []string{"*.example.com", "https://example.com", "member.example.com/path", "user@example.com", CODE
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippetContext
LOW.github/sync.py37CODE