AI Slop Code Risk Monitor

cloudreve/cloudreve

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

🌩 Self-hosted file management and sharing system, supports multiple storage providers

1.5 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for cloudreve/cloudreve, a Go project with 28,909 GitHub stars. SynthScan examined 162,447 lines of code across 486 source files, recording 178 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 1.5 (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.5
Adjusted Signal
1.5
Raw Pattern Score
100%
Time Factor
2026-10-20
Last Push
28.9K
Stars
Go
Language
162.4K
Lines of Code
486
Files
178
Pattern Hits
2026-10-31
Scan Date
0.01
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.0/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 2.2/100 · LOW

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

Agent Over-Engineering Ratio 0.1/100 · LOW

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

PR Review Velocity Impact 7.2/100 · LOW

Which changes need focused human review? 178 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 7HIGH 0MEDIUM 1LOW 170

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 178 distinct pattern matches across 5 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 Block167 hits · 167 pts
SeverityFileLineSnippetContext
LOWrouters/router.go861 //share.GET("readme/:id",COMMENT
LOWrouters/router.go1321 dav.DELETE(":id",COMMENT
LOWrouters/controllers/user.go281 // )COMMENT
LOWrouters/controllers/user.go301 // subService = &user.ThemeChose{}COMMENT
LOWrouters/controllers/webdav.go61 c.Abort()COMMENT
LOWrouters/controllers/webdav.go81//func DeleteWebDAVMounts(c *gin.Context) {COMMENT
LOWrouters/controllers/callback.go101 // queries.Add("code", strconv.Itoa(res.Code))COMMENT
LOWrouters/controllers/callback.go121 // queries.Add("err", res.Error)COMMENT
LOWrouters/controllers/admin.go301// service := ParametersFromContext[*admin.HashIDService](c, admin.HashIDParamCtx{})COMMENT
LOWrouters/controllers/admin.go321// }COMMENT
LOWrouters/controllers/admin.go341//COMMENT
LOWent/entity_create.go401// OnConflict(COMMENT
LOWent/entity_create.go961COMMENT
LOWent/group_create.go341//COMMENT
LOWent/group_create.go861// of the `INSERT` statement. For example:COMMENT
LOWent/metadata_query.go301// Count int `json:"count,omitempty"`COMMENT
LOWent/setting_create.go201 }COMMENT
LOWent/setting_create.go561// OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clauseCOMMENT
LOWent/entity_query.go361 opt(query)COMMENT
LOWent/entity_query.go381func (eq *EntityQuery) GroupBy(field string, fields ...string) *EntityGroupBy {COMMENT
LOWent/task_query.go301// Count int `json:"count,omitempty"`COMMENT
LOWent/file_query.go541 fq.withDirectLinks = queryCOMMENT
LOWent/file_query.go561 grbuild := &FileGroupBy{build: fq}COMMENT
LOWent/node_create.go341 for _, k := range nodes {COMMENT
LOWent/node_create.go901// // Update the row with the new valuesCOMMENT
LOWent/passkey_query.go301// Count int `json:"count,omitempty"`COMMENT
LOWent/oauthgrant_create.go281}COMMENT
LOWent/oauthgrant_create.go681func (ogcb *OAuthGrantCreateBulk) ExecX(ctx context.Context) {COMMENT
LOWent/share_query.go321// the "file" edge. The optional arguments are used to configure the query builder of the edge.COMMENT
LOWent/share_query.go341// client.Share.Query().COMMENT
LOWent/passkey.go21 // ID of the ent.COMMENT
LOWent/davaccount_query.go301// Count int `json:"count,omitempty"`COMMENT
LOWent/fsevent_create.go261// OnConflict(COMMENT
LOWent/fsevent_create.go641// sql.ResolveWithNewValues(),COMMENT
LOWent/task_create.go321}COMMENT
LOWent/task_create.go761COMMENT
LOWent/oauthgrant_query.go321func (ogq *OAuthGrantQuery) WithClient(opts ...func(*OAuthClientQuery)) *OAuthGrantQuery {COMMENT
LOWent/oauthgrant_query.go341// GroupBy(oauthgrant.FieldCreatedAt).COMMENT
LOWent/directlink_create.go261// ).COMMENT
LOWent/directlink_create.go661COMMENT
LOWent/group_query.go321// the "storage_policies" edge. The optional arguments are used to configure the query builder of the edge.COMMENT
LOWent/group_query.go341// client.Group.Query().COMMENT
LOWent/oauthclient_create.go361 return _node, _specCOMMENT
LOWent/oauthclient_create.go881// // Override some of the fields with customCOMMENT
LOWent/share_create.go361 _node.file_shares = &nodes[0]COMMENT
LOWent/share_create.go901// OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clauseCOMMENT
LOWent/storagepolicy_create.go501// OnConflict(COMMENT
LOWent/storagepolicy_create.go1241// client.StoragePolicy.CreateBulk(builders...).COMMENT
LOWent/node_query.go301// CreatedAt time.Time `json:"created_at,omitempty"`COMMENT
LOWent/user_query.go581}COMMENT
LOWent/user_query.go601 grbuild.label = user.LabelCOMMENT
LOWent/user_create.go641// // Update the row with the new valuesCOMMENT
LOWent/user_create.go1221// OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clauseCOMMENT
LOWent/fsevent_query.go301// Count int `json:"count,omitempty"`COMMENT
LOWent/setting_query.go261// Example:COMMENT
LOWent/setting_query.go281// Select allows the selection one or more fields/columns for the given query,COMMENT
LOWent/file_create.go561// of the `INSERT` statement. For example:COMMENT
LOWent/file_create.go1141// ).COMMENT
LOWent/oauthclient_query.go301// CreatedAt time.Time `json:"created_at,omitempty"`COMMENT
LOWent/directlink_query.go301// Count int `json:"count,omitempty"`COMMENT
107 more matches not shown…
Hallucination Indicators7 hits · 70 pts
SeverityFileLineSnippetContext
CRITICALpkg/filemanager/manager/entity.go78 if file.OwnerID() != m.user.ID && !m.user.Edges.Group.Permissions.Enabled(int(types.GroupPermissionIsAdmin)) {CODE
CRITICALpkg/filemanager/manager/entity.go100 reuseExisting := !m.user.Edges.Group.Permissions.Enabled(int(types.GroupPermissionUniqueRedirectDirectLink))CODE
CRITICALpkg/filemanager/fs/dbfs/dbfs.go432 if target.OwnerID() == f.user.ID || f.user.Edges.Group.Permissions.Enabled(int(types.GroupPermissionIsAdmin)) {CODE
CRITICALpkg/filemanager/fs/dbfs/share_navigator.go159 if n.user.ID != n.owner.ID && !n.user.Edges.Group.Permissions.Enabled(int(types.GroupPermissionShareDownload)) {CODE
CRITICALpkg/filemanager/fs/dbfs/my_navigator.go95 if targetUser.Status != user.StatusActive && !n.user.Edges.Group.Permissions.Enabled(int(types.GroupPermissionIsAdmin)CODE
CRITICALpkg/filemanager/fs/dbfs/props.go26 if target.OwnerID() != f.user.ID && !f.user.Edges.Group.Permissions.Enabled(int(types.GroupPermissionIsAdmin)) {CODE
CRITICALpkg/filemanager/fs/dbfs/manage.go723 if fileModel.OwnerID != f.user.ID && !f.user.Edges.Group.Permissions.Enabled(int(types.GroupPermissionIsAdmin)) {CODE
Excessive Try-Catch Wrapping2 hits · 3 pts
SeverityFileLineSnippetContext
LOWpkg/filemanager/driver/cos/scf.go34 except Exception as e:CODE
MEDIUMpkg/filemanager/driver/cos/scf.go36 print('Error getting object {} callback url. '.format(key))CODE
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWpkg/filemanager/eventhub/subscriber.go181 // TODO: implement event merging logic hereCOMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWservice/admin/user_test.go81 User: &ent.User{Email: "admin@example.com"},CODE