AI Slop Code Risk Monitor

go-swagger/go-swagger

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

Swagger 2.0 implementation for go

0.3 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for go-swagger/go-swagger, a Go project with 10,008 GitHub stars. SynthScan examined 420,145 lines of code across 928 source files, recording 105 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 0.3 (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.3
Adjusted Signal
0.3
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
10.0K
Stars
Go
Language
420.1K
Lines of Code
928
Files
105
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 1.2/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.4/100 · LOW

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

Agent Over-Engineering Ratio 0.0/100 · LOW

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

PR Review Velocity Impact 1.6/100 · LOW

Which changes need focused human review? 105 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 2HIGH 0MEDIUM 6LOW 97

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 105 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 Block76 hits · 76 pts
SeverityFileLineSnippetContext
LOW.goreleaser.yaml1# go-swagger release pipelineCOMMENT
LOW.cliff.toml121[git]COMMENT
LOW.golangci.yml1version: "2"COMMENT
LOWdoc.go1// SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainersCOMMENT
LOWdoc.go21//COMMENT
LOWdoc.go41// swagger generate client [-f ./swagger.json] -A [application-name [--principal [principal-name]]COMMENT
LOWdoc.go61// will be regenerated on following generation runs so any changes to those files will be lost.COMMENT
LOWcmd/swagger/commands/mixin.go41COMMENT
LOWtestdata/bugs/1487/fixture-allOf.yaml101 format: durationCOMMENT
LOWtestdata/bugs/3225/panic.go1// SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainersCOMMENT
LOWtestdata/bugs/3225/panic.go21//COMMENT
LOWtestdata/bugs/2540/foo/examples.go1// Package docs SwagTestCOMMENT
LOWtestdata/bugs/2540/foo/examples.go21// 200: getBookCOMMENT
LOWtestdata/bugs/3125/full/docs/docs.go1//go:build testintegrationCOMMENT
LOWtestdata/bugs/3125/full/docs/docs.go21// SecurityDefinitions:COMMENT
LOWtestdata/goparsing/spec/api.go1// Package booking API.COMMENT
LOWtestdata/goparsing/spec/api.go61 Slice []int `json:"slice"`COMMENT
LOW…ata/codegen/external-types/example-external-types.yaml681 description: |COMMENT
LOW…ata/codegen/external-types/example-external-types.yaml701 # embedded: trueCOMMENT
LOWtestdata/enhancements/793/petstore.go1// Package petstore APICOMMENT
LOWtestdata/enhancements/793/petstore.go21// - application/jsonCOMMENT
LOWtestdata/enhancements/793/petstore.go41//COMMENT
LOWtestdata/enhancements/793/petstore.go61//COMMENT
LOWtestdata/enhancements/793/petstore.go81 // - application/xmlCOMMENT
LOWtestdata/enhancements/793/petstore.go101 // description: pet responseCOMMENT
LOWtestdata/enhancements/793/petstore.go121 // - name: petCOMMENT
LOWtestdata/enhancements/793/petstore.go141 // Returns a user based on a single ID,COMMENT
LOWtestdata/enhancements/793/petstore.go161 // "$ref": "#/definitions/pet"COMMENT
LOWtestdata/enhancements/prune-unused/api.go21}COMMENT
LOWtestdata/enhancements/2444/fixture-2244.yaml181 # allOf:COMMENT
LOWhack/server_runtime_nonreg_test.go1// SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainersCOMMENT
LOWhack/codegen-testdata.yaml1#COMMENT
LOWhack/doc-site/hugo/hugo.yaml101 # If the favicon is /static/favicon.png then the path would be favicon.pngCOMMENT
LOWhack/doc-site/hugo/hugo.yaml121 # Requires 'BookRepo' param.COMMENT
LOWhack/doc-site/hugo/hugo.yaml141COMMENT
LOWdocs/faq/faq_spec.md41// - application/jsonCOMMENT
LOWdocs/faq/faq_spec.md181//COMMENT
LOWdocs/faq/faq_spec.md201package modelsCOMMENT
LOWdocs/reference/annotations/model.md41```goCOMMENT
LOWdocs/reference/annotations/model.md61COMMENT
LOWdocs/reference/annotations/params.md41**Items.*n*.Minimum items** | the minimum number of items a slice needs to have at the level *n*COMMENT
LOWdocs/reference/annotations/params.md61 // items.items.items.pattern: \w+COMMENT
LOWdocs/reference/annotations/operation.md41func ServeAPI(host, basePath string, schemes []string) (err error) {COMMENT
LOWdocs/reference/annotations/operation.md61 // type: stringCOMMENT
LOWgenerator/model_test.go121// Minimum: > 10COMMENT
LOWgenerator/model_test.go181// Required: trueCOMMENT
LOWgenerator/options.go1// SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainersCOMMENT
LOWgenerator/operation.go241func (b *codeGenOpBuilder) MakeOperation() (GenOperation, error) {COMMENT
LOWgenerator/spec.go81 }COMMENT
LOWgenerator/spec.go161 preprocessingOption = "expand"COMMENT
LOWgenerator/shared_test.go41// func map, templates repository and the default render plan) on g, without theCOMMENT
LOWgenerator/model.go1461 // rendered with the ref as embedded ref.COMMENT
LOWgenerator/model.go1521 sg.GenSchema.IsSuperAlias = trueCOMMENT
LOWgenerator/model.go1901 // - aliased primitive of a formatter type which is not a stringerCOMMENT
LOWgenerator/shared.go321 }COMMENT
LOWgenerator/shared.go381}COMMENT
LOWgenerator/generate_harness_test.go21// fixture, given the resolved spec and the prepared target directory.COMMENT
LOWgenerator/prepare.go21// Prepare finalizes a set of generation options so they are ready for use.COMMENT
LOWgenerator/sanitize.go21// into the generated code.COMMENT
LOWgenerator/moreschemavalidation_fixtures_test.go1// Copyright 2015 go-swagger maintainersCOMMENT
16 more matches not shown…
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALgenerator/model_mapstack.go167 if (cur.Next.Context.Schema.Ref.String() != "" || c.IsAliased) && !c.IsInterface && !c.IsStream {CODE
CRITICALgenerator/schemavalidation_test.go747 assert.EqualT(t, "#/definitions/NamedMapComplexAnon", fsm.Type.AdditionalProperties.Schema.Ref.GetURL().String())CODE
Fake / Example Data13 hits · 13 pts
SeverityFileLineSnippetContext
LOWtestdata/bugs/1943/fixture-1943.yaml111 example: "John Doe"CODE
LOWtestdata/bugs/1943/fixture-1943.yaml138 name: "John Doe"CODE
LOWtestdata/bugs/1943/fixture-1943.yaml167 name: "John Doe"CODE
LOWtestdata/bugs/2306/fixture-2306.json18734 "example": "user@example.com",CODE
LOWtestdata/bugs/1781/fixture-1781.yaml111 example: "John Doe"CODE
LOWtestdata/bugs/1781/fixture-1781.yaml138 name: "John Doe"CODE
LOWtestdata/bugs/1781/fixture-1781.yaml167 name: "John Doe"CODE
LOWtestdata/bugs/2969/2969.json12413 "example" : "John Doe",CODE
LOWtestdata/bugs/2969/2969.json12418 "example" : "John Doe",CODE
LOWtestdata/bugs/2969/2969.json12452 "example" : "John Doe",CODE
LOWtestdata/bugs/2969/2969.json12457 "example" : "John Doe",CODE
LOWdocs/faq/faq_spec.md331 "name": "John Doe",CODE
LOWdocs/reference/annotations/meta.md45 contact: {name: 'John Doe', url: 'http://john.doe.com', email: john.doe@example.com}CODE
AI Slop Vocabulary5 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUM.golangci.yml7 # * do not correspond to our own views of go best practices (e.g. recvcheck, nonamedreturns)COMMENT
LOWtestdata/canary/docker-v1.41/swagger.yaml81 If you have already got an identity token from the [`/auth` endpoint](#operation/SystemAuth), you can just pass thisCODE
LOWtestdata/canary/docker-v1.41/swagger-fixed.yaml81 If you have already got an identity token from the [`/auth` endpoint](#operation/SystemAuth), you can just pass thisCODE
LOWtestdata/bugs/1487/fixture-polymorphism.yaml47 # Issue: Validate() is empty instead of just return nilCOMMENT
MEDIUMtestdata/codegen/sanitize/comments.yaml4# unification) — referenced by the skipped harness subtest.COMMENT
Slop Phrases5 hits · 10 pts
SeverityFileLineSnippetContext
LOWcmd/swagger/commands/diff_test.go38 // Don't forget to remove it once you're done.COMMENT
MEDIUMtestdata/canary/petstore/swagger.json1{"swagger":"2.0","info":{"description":"This is a sample server Petstore server. You can find out more about Swagger atCODE
MEDIUMtestdata/bugs/1824/swagger.json4 "description": "This is a sample server Petstore server.\n\n[Learn about Swagger](http://swagger.wordnik.com) orCODE
MEDIUMtestdata/bugs/822/swagger.yml4 description: "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](httCODE
MEDIUMtestdata/codegen/swagger-codegen-tests.json4 "description": "This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swCODE
Structural Annotation Overuse4 hits · 6 pts
SeverityFileLineSnippetContext
LOWdocs/generate/client.md15#### Step 1: Create a Swagger specCOMMENT
LOWdocs/generate/client.md49#### Step 2: Initialize a Go moduleCOMMENT
LOWdocs/generate/client.md55#### Step 3: Generate the clientCOMMENT
LOWdocs/generate/client.md79#### Step 4: Use the clientCOMMENT