AI Slop Code Risk Monitor

gogf/gf

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

A powerful framework for faster, easier, and more efficient project development.

0.9 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for gogf/gf, a Go project with 13,291 GitHub stars. SynthScan examined 609,905 lines of code across 2529 source files, recording 475 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 0.9 (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.

0.9
Adjusted Signal
0.9
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
13.3K
Stars
Go
Language
609.9K
Lines of Code
2.5K
Files
475
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 3.5/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.2/100 · LOW

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

Agent Over-Engineering Ratio 0.9/100 · LOW

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

PR Review Velocity Impact 4.4/100 · LOW

Which changes need focused human review? 475 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 38LOW 437

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 475 distinct pattern matches across 9 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 Block391 hits · 391 pts
SeverityFileLineSnippetContext
LOWcmd/gf/internal/cmd/cmd_run.go401// These directories typically contain third-party code or non-source files.COMMENT
LOW…ndao/generated_user_sqlite3/dao/internal/table_user.go81// Transaction wraps the transaction logic using function f.COMMENT
LOW…al/cmd/testdata/genctrl/default/api/article/v2/edit.go21}COMMENT
LOWcmd/gf/internal/cmd/genpbentity/genpbentity.go221 "[]byte": {COMMENT
LOWcmd/gf/internal/cmd/agents/run.go1// Copyright GoFrame gf Author(https://goframe.org). All Rights Reserved.COMMENT
LOWcmd/gf/internal/cmd/agents/run.go121// registries (skills / prompts / md). It is built once at command entryCOMMENT
LOWcmd/gf/internal/cmd/agents/run.go141 if label := strings.TrimSpace(s.DisplayName); label != "" {COMMENT
LOWcmd/gf/internal/cmd/agents/run.go201 }COMMENT
LOWcmd/gf/internal/cmd/agents/agents.go1// Copyright GoFrame gf Author(https://goframe.org). All Rights Reserved.COMMENT
LOWcmd/gf/internal/cmd/agents/run_test.go1// Copyright GoFrame gf Author(https://goframe.org). All Rights Reserved.COMMENT
LOW…/internal/cmd/agents/common/common_interactive_list.go1// Copyright GoFrame gf Author(https://goframe.org). All Rights Reserved.COMMENT
LOWcmd/gf/internal/cmd/agents/common/common_status.go1// Copyright GoFrame gf Author(https://goframe.org). All Rights Reserved.COMMENT
LOWcmd/gf/internal/cmd/agents/common/common_status.go21 // StatusOK indicates the link already exists and points at the canonicalCOMMENT
LOWcmd/gf/internal/cmd/agents/common/common_status.go41 StatusSkippedForeignTarget Status = "skipped-foreign"COMMENT
LOW…f/internal/cmd/agents/common/common_interactive_huh.go1// Copyright GoFrame gf Author(https://goframe.org). All Rights Reserved.COMMENT
LOW…f/internal/cmd/agents/common/common_interactive_huh.go21//COMMENT
LOW…f/internal/cmd/agents/common/common_interactive_huh.go81// abortKeyMap returns a huh KeyMap whose Quit binding accepts bothCOMMENT
LOW…/internal/cmd/agents/common/common_interactive_test.go1// Copyright GoFrame gf Author(https://goframe.org). All Rights Reserved.COMMENT
LOWcmd/gf/internal/cmd/agents/common/common_interactive.go1// Copyright GoFrame gf Author(https://goframe.org). All Rights Reserved.COMMENT
LOWcmd/gf/internal/cmd/agents/common/common_spec.go1// Copyright GoFrame gf Author(https://goframe.org). All Rights Reserved.COMMENT
LOWcmd/gf/internal/cmd/agents/common/common_spec.go21 // canonical source path. No symlink is required for these agents.COMMENT
LOWcmd/gf/internal/cmd/agents/common/common_spec.go41 // .claude/skills -> .agents/skills).COMMENT
LOWcmd/gf/internal/cmd/agents/common/common_spec.go61 SpecCategory() CategoryCOMMENT
LOWcmd/gf/internal/cmd/agents/common/common_engine.go1// Copyright GoFrame gf Author(https://goframe.org). All Rights Reserved.COMMENT
LOWcmd/gf/internal/cmd/agents/common/common_engine.go181 }COMMENT
LOWcmd/gf/internal/cmd/agents/common/common_test.go1// Copyright GoFrame gf Author(https://goframe.org). All Rights Reserved.COMMENT
LOWcmd/gf/internal/cmd/agents/common/common.go1// Copyright GoFrame gf Author(https://goframe.org). All Rights Reserved.COMMENT
LOWcmd/gf/internal/cmd/agents/common/common.go21// error guidance.COMMENT
LOWcmd/gf/internal/cmd/agents/common/common_filesystem.go1// Copyright GoFrame gf Author(https://goframe.org). All Rights Reserved.COMMENT
LOWcmd/gf/internal/cmd/agents/common/common_render.go1// Copyright GoFrame gf Author(https://goframe.org). All Rights Reserved.COMMENT
LOWcmd/gf/internal/cmd/agents/common/common_render.go21// Header is the column header text; Value resolves the cell text for aCOMMENT
LOWcmd/gf/internal/cmd/agents/registry/agents.go1// Copyright GoFrame gf Author(https://goframe.org). All Rights Reserved.COMMENT
LOWcmd/gf/internal/cmd/agents/registry/registry.go1// Copyright GoFrame gf Author(https://goframe.org). All Rights Reserved.COMMENT
LOWcmd/gf/internal/packed/packed.go1// Copyright GoFrame gf Author(https://goframe.org). All Rights Reserved.COMMENT
LOWcmd/gf/internal/consts/consts_gen_ctrl_template.go1// Copyright GoFrame gf Author(https://goframe.org). All Rights Reserved.COMMENT
LOWcmd/gf/internal/utility/utils/utils_gofmt.go81 // Path is the import path, like `github.com/gogf/gf/contrib/rpc/grpcx/v2`.COMMENT
LOWdatabase/gdb/gdb_func.go201//COMMENT
LOWdatabase/gdb/gdb_model_with.go21// With creates and returns an ORM model based on metadata of given object.COMMENT
LOWdatabase/gdb/gdb_driver_wrapper_db.go41func (d *DriverWrapperDB) Tables(ctx context.Context, schema ...string) (tables []string, err error) {COMMENT
LOWdatabase/gdb/gdb_driver_wrapper_db.go101// This function is usually used for custom interface definition, you do not need call it manually.COMMENT
LOWdatabase/gdb/gdb_model_where.go1// Copyright GoFrame Author(https://goframe.org). All Rights Reserved.COMMENT
LOWdatabase/gdb/gdb_model.go81// Model creates and returns a new ORM model from given schema.COMMENT
LOWdatabase/gdb/gdb_model_join.go1// Copyright GoFrame Author(https://goframe.org). All Rights Reserved.COMMENT
LOWdatabase/gdb/gdb_model_join.go21// Model("user", "u").LeftJoin("user_detail", "ud", "ud.uid=u.uid")COMMENT
LOWdatabase/gdb/gdb_model_join.go41// and also with its alias name。COMMENT
LOWdatabase/gdb/gdb_core_txcore.go21// TXCore is the struct for transaction management.COMMENT
LOWdatabase/gdb/gdb_core_txcore.go341 return tx.Model(table).Ctx(tx.ctx).Data(data).InsertAndGetId()COMMENT
LOWdatabase/gdb/gdb_core_txcore.go361}COMMENT
LOWdatabase/gdb/gdb_core_txcore.go381// Update does "UPDATE ... " statement for the table.COMMENT
LOWdatabase/gdb/gdb_core_txcore.go401// The parameter `condition` can be type of string/map/gmap/slice/struct/*struct, etc.COMMENT
LOWdatabase/gdb/gdb_core_utility.go101COMMENT
LOWdatabase/gdb/gdb_core_utility.go121COMMENT
LOWdatabase/gdb/gdb_type_result_scanlist.go21// ScanList converts `r` to struct slice which contains other complex struct attributes.COMMENT
LOWdatabase/gdb/gdb_type_result_scanlist.go41// }COMMENT
LOWdatabase/gdb/gdb_type_result_scanlist.go61// }COMMENT
LOWdatabase/gdb/gdb_type_result_scanlist.go81// ScanList(&users)COMMENT
LOWdatabase/gdb/gdb_model_transaction.go1// Copyright GoFrame Author(https://goframe.org). All Rights Reserved.COMMENT
LOWdatabase/gdb/gdb.go41 // Model("user u")COMMENT
LOWdatabase/gdb/gdb.go61 Open(config *ConfigNode) (*sql.DB, error)COMMENT
LOWdatabase/gdb/gdb.go81 // The args are for any placeholder parameters in the query.COMMENT
331 more matches not shown…
Decorative Section Separators36 hits · 108 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/apollo/sql/apolloconfigdb.sql25# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloconfigdb.sql31# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloconfigdb.sql58# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloconfigdb.sql84# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloconfigdb.sql107# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloconfigdb.sql131# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloconfigdb.sql156# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloconfigdb.sql182# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloconfigdb.sql203# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloconfigdb.sql227# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloconfigdb.sql252# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloconfigdb.sql276# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloconfigdb.sql297# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloconfigdb.sql325# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloconfigdb.sql353# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloconfigdb.sql369# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloconfigdb.sql391# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloconfigdb.sql412# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloconfigdb.sql422# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloportaldb.sql25# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloportaldb.sql31# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloportaldb.sql58# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloportaldb.sql84# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloportaldb.sql110# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloportaldb.sql129# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloportaldb.sql152# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloportaldb.sql173# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloportaldb.sql195# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloportaldb.sql217# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloportaldb.sql238# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloportaldb.sql261# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloportaldb.sql284# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloportaldb.sql305# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloportaldb.sql322# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloportaldb.sql335# ------------------------------------------------------------COMMENT
MEDIUM.github/workflows/apollo/sql/apolloportaldb.sql354# ------------------------------------------------------------COMMENT
Fake / Example Data25 hits · 25 pts
SeverityFileLineSnippetContext
LOW…house/clickhouse_z_unit_feature_model_sharding_test.go116 _, err = model.Data(g.Map{"name": "John Doe"}).CODE
LOW…house/clickhouse_z_unit_feature_model_sharding_test.go124 t.Assert(result.Name, "John Doe")CODE
LOW…/mariadb/mariadb_z_unit_feature_model_sharding_test.go125 _, err = model.Data(g.Map{"name": "John Doe"}).CODE
LOW…/mariadb/mariadb_z_unit_feature_model_sharding_test.go133 t.Assert(result.Name, "John Doe")CODE
LOW…rs/oracle/oracle_z_unit_feature_model_sharding_test.go88 _, err = model.Data(g.Map{"name": "John Doe"}).CODE
LOW…rs/oracle/oracle_z_unit_feature_model_sharding_test.go95 t.Assert(result.Name, "John Doe")CODE
LOW…rs/sqlite/sqlite_z_unit_feature_model_sharding_test.go129 _, err = model.Data(g.Map{"name": "John Doe"}).CODE
LOW…rs/sqlite/sqlite_z_unit_feature_model_sharding_test.go136 t.Assert(result.Name, "John Doe")CODE
LOW…anbase/oceanbase_z_unit_feature_model_sharding_test.go125 _, err = model.Data(g.Map{"name": "John Doe"}).CODE
LOW…anbase/oceanbase_z_unit_feature_model_sharding_test.go133 t.Assert(result.Name, "John Doe")CODE
LOW…itecgo/sqlitecgo_z_unit_feature_model_sharding_test.go129 _, err = model.Data(g.Map{"name": "John Doe"}).CODE
LOW…itecgo/sqlitecgo_z_unit_feature_model_sharding_test.go136 t.Assert(result.Name, "John Doe")CODE
LOW…rivers/tidb/tidb_z_unit_feature_model_sharding_test.go125 _, err = model.Data(g.Map{"name": "John Doe"}).CODE
LOW…rivers/tidb/tidb_z_unit_feature_model_sharding_test.go133 t.Assert(result.Name, "John Doe")CODE
LOW…vers/mysql/mysql_z_unit_feature_model_sharding_test.go125 _, err = model.Data(g.Map{"name": "John Doe"}).CODE
LOW…vers/mysql/mysql_z_unit_feature_model_sharding_test.go133 t.Assert(result.Name, "John Doe")CODE
LOW…ib/drivers/dm/dm_z_unit_feature_model_sharding_test.go88 _, err = model.Data(g.Map{"name": "John Doe"}).CODE
LOW…ib/drivers/dm/dm_z_unit_feature_model_sharding_test.go95 t.Assert(result.Name, "John Doe")CODE
LOWcontrib/drivers/pgsql/pgsql_z_unit_issue_test.go424 INSERT INTO %s (id, user_id, phone, address) VALUES (1, 1, '1234567890', '123 Main St');CODE
LOWcontrib/drivers/pgsql/pgsql_z_unit_issue_test.go444 t.Assert(r[0]["address"], "123 Main St")CODE
LOWcontrib/drivers/pgsql/pgsql_z_unit_issue_test.go459 t.Assert(r[0]["address"], "123 Main St")CODE
LOWcontrib/drivers/pgsql/pgsql_z_unit_issue_test.go475 t.Assert(r[0]["address"], "123 Main St")CODE
LOW…vers/mssql/mssql_z_unit_feature_model_sharding_test.go126 _, err = model.Data(g.Map{"name": "John Doe"}).CODE
LOW…vers/mssql/mssql_z_unit_feature_model_sharding_test.go133 t.Assert(result.Name, "John Doe")CODE
LOWtext/gstr/gstr_z_unit_test.go341 t.Assert(gstr.HideStr("user@example.com", 100, "*"), "****@example.com")CODE
Redundant / Tautological Comments13 hits · 22 pts
SeverityFileLineSnippetContext
LOW.github/workflows/scripts/ci-main.sh52 # Check if it's a contrib directoryCOMMENT
LOW.github/workflows/scripts/ci-main.sh54 # Check if go version meets the requirementCOMMENT
LOW.github/workflows/scripts/ci-sub.sh72 # Check if go.mod version requirement is satisfied by current Go versionCOMMENT
LOW.github/workflows/scripts/before_script.sh8# Check if the GCI is installed successfullyCOMMENT
LOW⚡.github/workflows/scripts/update_version.sh3# Check if the number of parameters is 2COMMENT
LOW⚡.github/workflows/scripts/update_version.sh10# Check if the first parameter is a directory and existsCOMMENT
LOW⚡.github/workflows/scripts/update_version.sh16# Check if the second parameter starts with 'v'COMMENT
LOW.github/workflows/scripts/update_version.sh27# Check if file existsCOMMENT
LOW.github/workflows/scripts/docker-services.sh102# Check if Docker is availableCOMMENT
LOW.github/workflows/scripts/docker-services.sh133 # Check if container already existsCOMMENT
LOW.github/workflows/scripts/docker-services.sh433# Check if it's a compose serviceCOMMENT
LOW.github/workflows/scripts/replace_examples_gomod.sh9# Check if examples directory existsCOMMENT
LOW.github/workflows/scripts/replace_examples_gomod.sh15# Check if find command is availableCOMMENT
Verbosity Indicators4 hits · 6 pts
SeverityFileLineSnippetContext
LOWcontrib/drivers/gaussdb/gaussdb_do_insert.go439 // For InsertIgnore (withUpdate=false), we need to check if record exists firstCOMMENT
LOWcontrib/drivers/oracle/oracle_z_unit_init_test.go134 // Step 1: Create tableCOMMENT
LOWcontrib/drivers/oracle/oracle_z_unit_init_test.go150 // Step 2: Create sequenceCOMMENT
LOWcontrib/drivers/oracle/oracle_z_unit_init_test.go164 // Step 3: Create trigger - only set ID from sequence when it's NULLCOMMENT
Structural Annotation Overuse3 hits · 4 pts
SeverityFileLineSnippetContext
LOWcontrib/drivers/oracle/oracle_z_unit_init_test.go134 // Step 1: Create tableCOMMENT
LOWcontrib/drivers/oracle/oracle_z_unit_init_test.go150 // Step 2: Create sequenceCOMMENT
LOWcontrib/drivers/oracle/oracle_z_unit_init_test.go164 // Step 3: Create trigger - only set ID from sequence when it's NULLCOMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMcmd/gf/internal/cmd/agents/run.go633// agent, but the loop keeps the function robust if a future caller passesCOMMENT
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/codeql.yml56 # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize howCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWdatabase/gdb/gdb_statement.go107// Example usage:COMMENT