An entity framework for Go
This report summarizes scanner evidence for ent/ent, a Go project with 17,219 GitHub stars. SynthScan examined 720,492 lines of code across 2506 source files, recording 813 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 1.1 (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? 804 finding(s).
Are imports declared and package/API names verified? 9 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 813 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 813 distinct pattern matches across 3 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 | ent.go | 21 | // | COMMENT |
| LOW | ent.go | 41 | Type() | COMMENT |
| LOW | ent.go | 61 | // the schema. | COMMENT |
| LOW | ent.go | 81 | // field.Int("int"), | COMMENT |
| LOW | ent.go | 101 | COMMENT | |
| LOW | ent.go | 121 | // Table: "Name", | COMMENT |
| LOW | ent.go | 141 | // other methods in the schema without calling them directly. | COMMENT |
| LOW | ent.go | 161 | // return []ent.Mixin{ | COMMENT |
| LOW | ent.go | 181 | Policy() Policy | COMMENT |
| LOW | ent.go | 201 | } | COMMENT |
| LOW | ent.go | 281 | // The second boolean value indicates that this field was | COMMENT |
| LOW | ent.go | 301 | // ClearedFields returns all nullable fields that were cleared | COMMENT |
| LOW | ent.go | 321 | AddedIDs(name string) []Value | COMMENT |
| LOW | ent.go | 341 | // given edge name. It returns an error if the edge is not | COMMENT |
| LOW | ent.go | 361 | Mutate(context.Context, Mutation) (Value, error) | COMMENT |
| LOW | ent.go | 401 | // function as Querier. If f is a function with the appropriate signature, | COMMENT |
| LOW | ent.go | 421 | // Note that unlike Traverse functions, which are called at each traversal stage, Intercept functions | COMMENT |
| LOW | ent.go | 441 | // query is executed. For example: | COMMENT |
| LOW | blob.go | 41 | Key string | COMMENT |
| LOW | .devcontainer/devcontainer.json | 21 | } | COMMENT |
| LOW | schema/schema.go | 1 | // Copyright 2019-present Facebook Inc. All rights reserved. | COMMENT |
| LOW | schema/edge/edge.go | 81 | return &inverseBuilder{desc: &Descriptor{Name: name, Type: b.desc.Type, Inverse: true, Ref: b.desc}} | COMMENT |
| LOW | schema/edge/edge.go | 181 | return b | COMMENT |
| LOW | schema/edge/annotation.go | 1 | // Copyright 2019-present Facebook Inc. All rights reserved. | COMMENT |
| LOW | schema/field/annotation.go | 1 | // Copyright 2019-present Facebook Inc. All rights reserved. | COMMENT |
| LOW | schema/field/annotation.go | 21 | StructTag map[string]string | COMMENT |
| LOW | schema/field/field.go | 181 | // }) | COMMENT |
| LOW | schema/field/field.go | 361 | // SchemaType(map[string]string{ | COMMENT |
| LOW | schema/field/field.go | 381 | COMMENT | |
| LOW | schema/field/field.go | 461 | // Default sets the function that is applied to set default value | COMMENT |
| LOW | schema/field/field.go | 741 | } | COMMENT |
| LOW | schema/field/field.go | 1061 | // Values("low", "mid", "high") | COMMENT |
| LOW | schema/field/field.go | 1321 | func (b *otherBuilder) Sensitive() *otherBuilder { | COMMENT |
| LOW | schema/field/field.go | 1401 | // }) | COMMENT |
| LOW | schema/field/field.go | 1521 | } | COMMENT |
| LOW | schema/field/field.go | 1561 | // storage (if a key exists) and fall back to the bytes column. | COMMENT |
| LOW | schema/field/field.go | 1581 | // GoType overrides the default Go type ([]byte) with a custom one. | COMMENT |
| LOW | schema/field/numeric.go | 241 | } | COMMENT |
| LOW | schema/field/numeric.go | 261 | // GoType(pkg.Int(0)) | COMMENT |
| LOW | schema/field/numeric.go | 441 | } | COMMENT |
| LOW | schema/field/numeric.go | 641 | // GoType overrides the default Go type with a custom one. | COMMENT |
| LOW | schema/field/numeric.go | 841 | // and no validators have been set, the type validator will | COMMENT |
| LOW | schema/field/numeric.go | 1021 | b.desc.StorageKey = key | COMMENT |
| LOW | schema/field/numeric.go | 1041 | // | COMMENT |
| LOW | schema/field/numeric.go | 1221 | } | COMMENT |
| LOW | schema/field/numeric.go | 1241 | // GoType(pkg.Int64(0)) | COMMENT |
| LOW | schema/field/numeric.go | 1421 | } | COMMENT |
| LOW | schema/field/numeric.go | 1601 | // | COMMENT |
| LOW | schema/field/numeric.go | 1801 | // and no validators have been set, the type validator will | COMMENT |
| LOW | schema/field/numeric.go | 1981 | // }) | COMMENT |
| LOW | schema/field/numeric.go | 2181 | // SchemaType overrides the default database type with a custom | COMMENT |
| LOW | schema/field/numeric.go | 2201 | // | COMMENT |
| LOW | schema/field/numeric.go | 2381 | // dialect.Postgres: "numeric(5, 2)", | COMMENT |
| LOW | schema/index/index.go | 21 | } | COMMENT |
| LOW | schema/index/index.go | 41 | } | COMMENT |
| LOW | schema/index/index.go | 61 | // func (T) Indexes() []ent.Index { | COMMENT |
| LOW | schema/index/index.go | 101 | } | COMMENT |
| LOW | examples/entcpkg/ent/entc.go | 41 | ), | COMMENT |
| LOW | examples/entcpkg/ent/user_query.go | 261 | } | COMMENT |
| LOW | examples/entcpkg/ent/user_query.go | 281 | grbuild.label = user.Label | COMMENT |
| 744 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | schema/field/field.go | 1195 | if b.desc.Err == nil && b.desc.Info.RType.rtype.Kind() != reflect.String && !b.desc.Info.Stringer() { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | entc/integration/customid/customid_test.go | 276 | a := client.Account.Create().SetEmail("test@example.org").SaveX(ctx) | CODE |
| LOW | doc/md/tutorial-grpc-optional-fields.md | 90 | Alias: wrapperspb.String("John Doe"), | CODE |
| LOW | dialect/sql/builder_test.go | 1890 | Values("1", "user@example.com", 1633279231). | CODE |
| LOW | dialect/sql/builder_test.go | 1905 | require.Equal(t, []any{"1", "user@example.com", 1633279231, "Ariel", 1, 0}, args) | CODE |
| LOW⚡ | dialect/sql/builder_test.go | 1962 | Values("1", "user@example.com"). | CODE |
| LOW⚡ | dialect/sql/builder_test.go | 1968 | require.Equal(t, []any{"1", "user@example.com"}, args) | CODE |
| LOW⚡ | dialect/sql/builder_test.go | 1973 | Values("1", "user@example.com"). | CODE |
| LOW⚡ | dialect/sql/builder_test.go | 1979 | require.Equal(t, []any{"1", "user@example.com"}, args) | CODE |