🌩 Self-hosted file management and sharing system, supports multiple storage providers
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.
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? 168 finding(s).
Are imports declared and package/API names verified? 8 finding(s).
Are wrappers, guards, and repeated structures necessary? 2 finding(s).
Which changes need focused human review? 178 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 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | routers/router.go | 861 | //share.GET("readme/:id", | COMMENT |
| LOW | routers/router.go | 1321 | dav.DELETE(":id", | COMMENT |
| LOW | routers/controllers/user.go | 281 | // ) | COMMENT |
| LOW | routers/controllers/user.go | 301 | // subService = &user.ThemeChose{} | COMMENT |
| LOW | routers/controllers/webdav.go | 61 | c.Abort() | COMMENT |
| LOW | routers/controllers/webdav.go | 81 | //func DeleteWebDAVMounts(c *gin.Context) { | COMMENT |
| LOW | routers/controllers/callback.go | 101 | // queries.Add("code", strconv.Itoa(res.Code)) | COMMENT |
| LOW | routers/controllers/callback.go | 121 | // queries.Add("err", res.Error) | COMMENT |
| LOW | routers/controllers/admin.go | 301 | // service := ParametersFromContext[*admin.HashIDService](c, admin.HashIDParamCtx{}) | COMMENT |
| LOW | routers/controllers/admin.go | 321 | // } | COMMENT |
| LOW | routers/controllers/admin.go | 341 | // | COMMENT |
| LOW | ent/entity_create.go | 401 | // OnConflict( | COMMENT |
| LOW | ent/entity_create.go | 961 | COMMENT | |
| LOW | ent/group_create.go | 341 | // | COMMENT |
| LOW | ent/group_create.go | 861 | // of the `INSERT` statement. For example: | COMMENT |
| LOW | ent/metadata_query.go | 301 | // Count int `json:"count,omitempty"` | COMMENT |
| LOW | ent/setting_create.go | 201 | } | COMMENT |
| LOW | ent/setting_create.go | 561 | // OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause | COMMENT |
| LOW | ent/entity_query.go | 361 | opt(query) | COMMENT |
| LOW | ent/entity_query.go | 381 | func (eq *EntityQuery) GroupBy(field string, fields ...string) *EntityGroupBy { | COMMENT |
| LOW | ent/task_query.go | 301 | // Count int `json:"count,omitempty"` | COMMENT |
| LOW | ent/file_query.go | 541 | fq.withDirectLinks = query | COMMENT |
| LOW | ent/file_query.go | 561 | grbuild := &FileGroupBy{build: fq} | COMMENT |
| LOW | ent/node_create.go | 341 | for _, k := range nodes { | COMMENT |
| LOW | ent/node_create.go | 901 | // // Update the row with the new values | COMMENT |
| LOW | ent/passkey_query.go | 301 | // Count int `json:"count,omitempty"` | COMMENT |
| LOW | ent/oauthgrant_create.go | 281 | } | COMMENT |
| LOW | ent/oauthgrant_create.go | 681 | func (ogcb *OAuthGrantCreateBulk) ExecX(ctx context.Context) { | COMMENT |
| LOW | ent/share_query.go | 321 | // the "file" edge. The optional arguments are used to configure the query builder of the edge. | COMMENT |
| LOW | ent/share_query.go | 341 | // client.Share.Query(). | COMMENT |
| LOW | ent/passkey.go | 21 | // ID of the ent. | COMMENT |
| LOW | ent/davaccount_query.go | 301 | // Count int `json:"count,omitempty"` | COMMENT |
| LOW | ent/fsevent_create.go | 261 | // OnConflict( | COMMENT |
| LOW | ent/fsevent_create.go | 641 | // sql.ResolveWithNewValues(), | COMMENT |
| LOW | ent/task_create.go | 321 | } | COMMENT |
| LOW | ent/task_create.go | 761 | COMMENT | |
| LOW | ent/oauthgrant_query.go | 321 | func (ogq *OAuthGrantQuery) WithClient(opts ...func(*OAuthClientQuery)) *OAuthGrantQuery { | COMMENT |
| LOW | ent/oauthgrant_query.go | 341 | // GroupBy(oauthgrant.FieldCreatedAt). | COMMENT |
| LOW | ent/directlink_create.go | 261 | // ). | COMMENT |
| LOW | ent/directlink_create.go | 661 | COMMENT | |
| LOW | ent/group_query.go | 321 | // the "storage_policies" edge. The optional arguments are used to configure the query builder of the edge. | COMMENT |
| LOW | ent/group_query.go | 341 | // client.Group.Query(). | COMMENT |
| LOW | ent/oauthclient_create.go | 361 | return _node, _spec | COMMENT |
| LOW | ent/oauthclient_create.go | 881 | // // Override some of the fields with custom | COMMENT |
| LOW | ent/share_create.go | 361 | _node.file_shares = &nodes[0] | COMMENT |
| LOW | ent/share_create.go | 901 | // OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause | COMMENT |
| LOW | ent/storagepolicy_create.go | 501 | // OnConflict( | COMMENT |
| LOW | ent/storagepolicy_create.go | 1241 | // client.StoragePolicy.CreateBulk(builders...). | COMMENT |
| LOW | ent/node_query.go | 301 | // CreatedAt time.Time `json:"created_at,omitempty"` | COMMENT |
| LOW | ent/user_query.go | 581 | } | COMMENT |
| LOW | ent/user_query.go | 601 | grbuild.label = user.Label | COMMENT |
| LOW | ent/user_create.go | 641 | // // Update the row with the new values | COMMENT |
| LOW | ent/user_create.go | 1221 | // OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause | COMMENT |
| LOW | ent/fsevent_query.go | 301 | // Count int `json:"count,omitempty"` | COMMENT |
| LOW | ent/setting_query.go | 261 | // Example: | COMMENT |
| LOW | ent/setting_query.go | 281 | // Select allows the selection one or more fields/columns for the given query, | COMMENT |
| LOW | ent/file_create.go | 561 | // of the `INSERT` statement. For example: | COMMENT |
| LOW | ent/file_create.go | 1141 | // ). | COMMENT |
| LOW | ent/oauthclient_query.go | 301 | // CreatedAt time.Time `json:"created_at,omitempty"` | COMMENT |
| LOW | ent/directlink_query.go | 301 | // Count int `json:"count,omitempty"` | COMMENT |
| 107 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | pkg/filemanager/manager/entity.go | 78 | if file.OwnerID() != m.user.ID && !m.user.Edges.Group.Permissions.Enabled(int(types.GroupPermissionIsAdmin)) { | CODE |
| CRITICAL | pkg/filemanager/manager/entity.go | 100 | reuseExisting := !m.user.Edges.Group.Permissions.Enabled(int(types.GroupPermissionUniqueRedirectDirectLink)) | CODE |
| CRITICAL | pkg/filemanager/fs/dbfs/dbfs.go | 432 | if target.OwnerID() == f.user.ID || f.user.Edges.Group.Permissions.Enabled(int(types.GroupPermissionIsAdmin)) { | CODE |
| CRITICAL | pkg/filemanager/fs/dbfs/share_navigator.go | 159 | if n.user.ID != n.owner.ID && !n.user.Edges.Group.Permissions.Enabled(int(types.GroupPermissionShareDownload)) { | CODE |
| CRITICAL | pkg/filemanager/fs/dbfs/my_navigator.go | 95 | if targetUser.Status != user.StatusActive && !n.user.Edges.Group.Permissions.Enabled(int(types.GroupPermissionIsAdmin) | CODE |
| CRITICAL | pkg/filemanager/fs/dbfs/props.go | 26 | if target.OwnerID() != f.user.ID && !f.user.Edges.Group.Permissions.Enabled(int(types.GroupPermissionIsAdmin)) { | CODE |
| CRITICAL | pkg/filemanager/fs/dbfs/manage.go | 723 | if fileModel.OwnerID != f.user.ID && !f.user.Edges.Group.Permissions.Enabled(int(types.GroupPermissionIsAdmin)) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pkg/filemanager/driver/cos/scf.go | 34 | except Exception as e: | CODE |
| MEDIUM | pkg/filemanager/driver/cos/scf.go | 36 | print('Error getting object {} callback url. '.format(key)) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pkg/filemanager/eventhub/subscriber.go | 181 | // TODO: implement event merging logic here | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | service/admin/user_test.go | 81 | User: &ent.User{Email: "admin@example.com"}, | CODE |