AI Slop Code Risk Monitor

golang/go

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

The Go programming language

2.9 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for golang/go, a Go project with 139,473 GitHub stars. SynthScan examined 2,636,726 lines of code across 12669 source files, recording 8141 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 2.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.

2.9
Adjusted Signal
2.9
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
139.5K
Stars
Go
Language
2.6M
Lines of Code
12.7K
Files
8.1K
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 13.1/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.1/100 · LOW

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

Agent Over-Engineering Ratio 0.4/100 · LOW

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

PR Review Velocity Impact 14.9/100 · LOW

Which changes need focused human review? 8141 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 3HIGH 18MEDIUM 124LOW 7996

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 8141 distinct pattern matches across 18 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 Block7905 hits · 7064 pts
SeverityFileLineSnippetContext
LOWtest/fibo.go1// skipCOMMENT
LOWtest/import6.go1// errorcheckCOMMENT
LOWtest/rangegen.go1// runoutputCOMMENT
LOWtest/nilptr_aix.go1// runCOMMENT
LOWtest/import2.go1// compiledirCOMMENT
LOWtest/mergemul.go1// runoutputCOMMENT
LOWtest/mergemul.go41}COMMENT
LOWtest/live_uintptrkeepalive.go1// errorcheck -0 -m -live -stdCOMMENT
LOWtest/nilptr.go1// runCOMMENT
LOWtest/divmod.go1// runCOMMENT
LOWtest/live1.go1// compileCOMMENT
LOWtest/closure3.go1// errorcheckandrundir -0 -m -d=inlfuncswithclosures=1COMMENT
LOWtest/runtime.go1// errorcheckCOMMENT
LOWtest/linkname3.go21// ERROR "//go:linkname must refer to declared function or variable"COMMENT
LOWtest/cmplxdivide.c1// Copyright 2010 The Go Authors. All rights reserved.COMMENT
LOWtest/escape_alias.go1// errorcheck -0 -d=escapealias=1COMMENT
LOWtest/eof.go1// compileCOMMENT
LOWtest/nosplit.go21 "strconv"COMMENT
LOWtest/nosplit.go41# Within a stanza, ; can be used instead of \n to separate lines.COMMENT
LOWtest/eof1.go1// compileCOMMENT
LOWtest/solitaire.go1// buildCOMMENT
LOWtest/live.go1// errorcheckwithauto -0 -l -live -wb=0 -d=ssa/mem2reg/off -d=ssa/insert_resched_checks/offCOMMENT
LOWtest/method4.go1// rundirCOMMENT
LOWtest/inline_sync.go1// errorcheck -0 -mCOMMENT
LOWtest/simd_critical.go1// errorcheck -0 -d=ssa/critical/debug=1COMMENT
LOWtest/known_bits.go421 }COMMENT
LOWtest/known_bits.go441 y &= 0b10000COMMENT
LOWtest/map.go321 panic(fmt.Sprintf("tuple existence assign: mit[%d]\n", i))COMMENT
LOWtest/recover4.go1// runCOMMENT
LOWtest/recover.go441 panic(112)COMMENT
LOWtest/import4.go1// errorcheckdirCOMMENT
LOWtest/deferstacktemp.go1// runCOMMENT
LOWtest/closure5.go1// compiledirCOMMENT
LOWtest/interface/private.go1// errorcheckdirCOMMENT
LOWtest/chan/select5.go421// it wants to choose between n possibilities.COMMENT
LOWtest/chan/powser2.go1// runCOMMENT
LOWtest/chan/powser1.go1// runCOMMENT
LOWtest/chan/powser1.go61 d2[0] = mkdch()COMMENT
LOWtest/chan/powser1.go561// Exponential of a power series with constant term 0COMMENT
LOWtest/typeparam/absdiff.go41// For now, a lone type parameter is not permitted as RHS in a type declaration (issue #45639).COMMENT
LOWtest/typeparam/absdiff.go61// return complexAbs[T](complex(d, 0))COMMENT
LOWtest/typeparam/absdiff.go81 // if got, want := orderedAbsDifference(-1.0, 2.0), 3.0; got != want {COMMENT
LOWtest/typeparam/issue47892.go1// rundirCOMMENT
LOWtest/typeparam/boundmethod.go81 // stringify on a normal type, whose bound method is associated with the base type.COMMENT
LOWtest/typeparam/issue47708.go21// type Bob[T any] TCOMMENT
LOWtest/typeparam/gencrawler.go1// rundirCOMMENT
LOWtest/typeparam/dedup.go1// rundirCOMMENT
LOWtest/typeparam/nested.go1// runCOMMENT
LOWtest/typeparam/nested.go21// From this data it tests two things:COMMENT
LOWtest/typeparam/issue48094.dir/a.go21// a TCOMMENT
LOWtest/typeparam/absdiffimp.dir/a.go41// // ordered numeric types.COMMENT
LOWtest/typeparam/absdiffimp.dir/a.go61//COMMENT
LOWtest/typeparam/absdiffimp.dir/main.go1// Copyright 2021 The Go Authors. All rights reserved.COMMENT
LOWtest/typeparam/absdiffimp.dir/main.go21 // }COMMENT
LOWtest/codegen/comparisons.go221 c2 := a^b < 0COMMENT
LOWtest/codegen/atomics.go21 // arm64/v8.0:"LDADDALW"COMMENT
LOWtest/codegen/atomics.go41 // riscv64:"AMOANDD" -"JAL"COMMENT
LOWtest/codegen/atomics.go61 // arm64/v8.0:"LDORALD"COMMENT
LOWtest/codegen/atomics.go81 // amd64:"LOCK" -"CMPXCHGL"COMMENT
LOWtest/codegen/mapaccess.go21COMMENT
7845 more matches not shown…
AI Slop Vocabulary61 hits · 176 pts
SeverityFileLineSnippetContext
MEDIUMtest/codegen/comparisons.go309// CMN and CMP for subtraction expressions to make the pattern robust.COMMENT
LOWsrc/make.bash61# (Or just pass them to the make.bash command line.)COMMENT
MEDIUMsrc/cmd/go/alldocs.go2298// Consumers should be robust to this.COMMENT
MEDIUMsrc/cmd/go/internal/work/exec.go3027 // Definitely want -fPIC but on Windows gcc complainsCOMMENT
MEDIUMsrc/cmd/trace/pprof.go243// Because slices aren't comparable and we want to leverage maps for deduplication,COMMENT
MEDIUMsrc/cmd/internal/obj/dwarf.go98 // https://github.com/go-delve/delve/issues/1694), however the bugCOMMENT
LOWsrc/cmd/internal/test2json/testdata/benchshort.json5{"Action":"output","Output":"# but to avoid questions of timing, we just use a file with no \\n at all.\n"}CODE
MEDIUMsrc/cmd/internal/src/pos.go391// Depending on the debugger (gdb or delve) it may or may not be displayed.COMMENT
MEDIUMsrc/cmd/internal/src/xpos.go73// gdb chooses not to display the bogus line; delve shows it with a complaint, but theCOMMENT
MEDIUMsrc/cmd/compile/internal/noder/reader.go2734 // TODO(mdempsky): Is there a more robust way to get theCOMMENT
MEDIUMsrc/cmd/compile/internal/noder/reader.go3027 // TODO(mdempsky): Is there a more robust way to get theCOMMENT
MEDIUMsrc/cmd/compile/internal/noder/reader.go3126 // TODO(mark): It's not ideal to rely on string naming here. Find a more robust solution.COMMENT
MEDIUMsrc/cmd/compile/internal/noder/reader.go4372// https://github.com/go-delve/delve/blob/cb91509630529e6055be845688fd21eb89ae8714/pkg/proc/eval.go#L28COMMENT
MEDIUMsrc/cmd/compile/internal/types2/context_test.go21 // make them robust to internal type assertions, but could equally well useCOMMENT
MEDIUMsrc/cmd/compile/internal/types2/context.go31// Nevertheless, in the future it could be helpful to allow users to leverageCOMMENT
MEDIUMsrc/cmd/compile/internal/ssa/debug.go98 // #yield is used by delve.COMMENT
MEDIUMsrc/cmd/compile/internal/ssa/debug.go98 // #yield is used by delve.COMMENT
MEDIUMsrc/cmd/compile/internal/ssa/known_bits.go374// We also leverage known bits of the shift amount to remove "branches" in the switch that are proved to be impossible.COMMENT
MEDIUMsrc/cmd/compile/internal/ssa/dom.go8// This seems to make loop-finding more robust.COMMENT
MEDIUMsrc/cmd/compile/internal/ssa/debug_test.go50// TestNexting go-builds a file, then uses a debugger (default delve, optionally gdb)COMMENT
MEDIUMsrc/cmd/compile/internal/ssa/testdata/scopes.go33 for x := 0; x <= 1; x++ { // From delve scopetest.goCODE
MEDIUMsrc/cmd/compile/internal/ssa/testdata/scopes.go51 { // From delve testnextprog.goCODE
MEDIUMsrc/cmd/cgo/out.go1102 // string.h for memset, and is also robust to C++COMMENT
MEDIUMsrc/cmd/cgo/gcc.go469 // but usually it does. Certainly if we don't see the completed:1 error, we didCOMMENT
MEDIUMsrc/cmd/covdata/tool_test.go29// TestMain used here so that we can leverage the test executableCOMMENT
MEDIUMsrc/cmd/cover/cover_test.go48// TestMain used here so that we can leverage the test executableCOMMENT
MEDIUMsrc/net/dnsclient_unix_test.go1478 // Return NXDOMAIN to utilize the search list.COMMENT
MEDIUMsrc/net/http/serve_test.go1001 // TODO(panjf2000): sleep is not so robust, maybe find a better way to test this?COMMENT
MEDIUMsrc/go/token/position.go548 // The iterator is robust to modification by yield.COMMENT
MEDIUMsrc/go/types/context_test.go24 // make them robust to internal type assertions, but could equally well useCOMMENT
MEDIUMsrc/go/types/context.go34// Nevertheless, in the future it could be helpful to allow users to leverageCOMMENT
MEDIUMsrc/go/printer/testdata/parser.go579 // it here for more robust parsing and better error messagesCOMMENT
MEDIUMsrc/go/printer/testdata/parser.go637 // accept them all for more robust parsing and complainCOMMENT
MEDIUMsrc/go/internal/gcimporter/gcimporter_test.go174 // the files we consider in an attempt to make this test more robust toCOMMENT
MEDIUMsrc/go/parser/parser.go748 // it here for more robust parsing and better error messagesCOMMENT
MEDIUMsrc/runtime/proc.go37// We need to balance between keeping enough running worker threads to utilizeCOMMENT
MEDIUMsrc/runtime/metrics.go1027// Broken out for more robust testing. metricsLock must be held andCOMMENT
MEDIUMsrc/runtime/proc_test.go490 // fairly large factor here to make this robust: if theCOMMENT
MEDIUMsrc/runtime/mpagealloc_test.go623 // Test to check for issue #40191. Essentially, the candidate searchAddrCOMMENT
MEDIUMsrc/runtime/mpagealloc_test.go623 // Test to check for issue #40191. Essentially, the candidate searchAddrCOMMENT
MEDIUMsrc/runtime/mgcpacer_test.go404 // Provide a lot of room for the limit. Essentially, this should behave just likeCOMMENT
MEDIUMsrc/runtime/export_test.go1719 // a bit more robust.COMMENT
MEDIUMsrc/runtime/mpagealloc.go165 // This is slightly more nuanced than just a shift for the exclusiveCOMMENT
MEDIUMsrc/runtime/symtabinl_test.go48 // this robust.COMMENT
MEDIUMsrc/runtime/complex.go20 // Algorithm for robust complex division as described inCOMMENT
MEDIUMsrc/runtime/mprof.go965 // Absolutely no data, suggesting that a garbage collectionCOMMENT
MEDIUMsrc/runtime/mgcscavenge.go28// Essentially, we wish to have the application's RSS track the heap goal, butCOMMENT
MEDIUMsrc/runtime/pprof/label.go96// Currently only the CPU and goroutine profiles utilize any labelsCOMMENT
MEDIUMsrc/internal/trace/gc.go131 // It will show up very early in the trace, but we need to be robust toCOMMENT
MEDIUMsrc/internal/trace/event.go838// may be tracked in the future, and callers must be robust to thisCOMMENT
MEDIUMsrc/internal/trace/resources.go35// New GoStates may be added in the future. Users of this type must be robustCOMMENT
MEDIUMsrc/internal/trace/resources.go77// New ProcStates may be added in the future. Users of this type must be robustCOMMENT
MEDIUMsrc/internal/trace/resources.go113// New ResourceKinds may be added in the future. Users of this type must be robustCOMMENT
MEDIUMsrc/internal/trace/value.go32// New ValueKinds may be added in the future. Users of this type must be robustCOMMENT
MEDIUMsrc/internal/runtime/gc/scan/mkasm.go128 // shuffle those bytes together. Certainly for f >= 16 this makes senseCOMMENT
MEDIUMsrc/simd/archsimd/_gen/unify/closure.go119 // Essentially the same as Def.COMMENT
LOW…d/archsimd/_gen/simdgen/ops/BitwiseLogic/go_amd64.yaml28# for unmasked operations, right now we don't realize that we can just use theCOMMENT
MEDIUMsrc/time/time.go32// time.Now().Before(deadline), are similarly robust against wall clockCOMMENT
MEDIUMsrc/testing/testing.go117// statistically robust A/B comparisons.COMMENT
MEDIUMsrc/testing/testing.go147// New benchmarks should prefer using [B.Loop], which is more robustCOMMENT
1 more matches not shown…
Decorative Section Separators56 hits · 156 pts
SeverityFileLineSnippetContext
MEDIUMsrc/cmd/go/testdata/script/cover_build_pkg_select.txt6#-------------------------------------------COMMENT
MEDIUMsrc/cmd/go/testdata/script/cover_build_pkg_select.txt37#-------------------------------------------COMMENT
MEDIUMsrc/cmd/go/testdata/script/cover_build_pkg_select.txt62#-------------------------------------------COMMENT
MEDIUMsrc/cmd/go/testdata/script/cover_build_pkg_select.txt104#-------------------------------------------COMMENT
MEDIUM…go/testdata/script/cgo_suspect_flag_force_external.txt29#-----------------------COMMENT
MEDIUMsrc/cmd/compile/internal/ssacompile/looprotate.go71 // │ │ └─►It─┘ │ │ │ └─────┘ │COMMENT
MEDIUMsrc/cmd/compile/internal/ssacompile/looprotate.go74 // │ └─►Ot───┘ │ └───────┘COMMENT
MEDIUM⚡src/crypto/cipher/gcm.go142 // ┌───────────────────────────┬ ─ ─COMMENT
MEDIUM⚡src/crypto/cipher/gcm.go144 // └▽─────────────────────────▲┴ ─ ─COMMENT
MEDIUM⚡src/crypto/cipher/gcm.go147 // ┌───▼─────────────────────────△──┐COMMENT
MEDIUM⚡src/crypto/cipher/gcm.go149 // └────────────────────────────────┘COMMENT
MEDIUMsrc/runtime/mprof.go107 // ┠┅┅┅┅┅┅┅┅┅┅┅PCOMMENT
MEDIUMsrc/runtime/mprof.go111 // ┠┅┅┅┅┅┅┅┅┅┅┅PCOMMENT
MEDIUMsrc/simd/simd_emulated.go3805// ───────COMMENT
MEDIUMsrc/simd/simd_emulated.go3810// ───────COMMENT
MEDIUMsrc/simd/simd_stubs.go1177// ───────COMMENT
MEDIUMsrc/simd/simd_stubs.go1182// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1438// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1443// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1468// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1473// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1498// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1503// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1528// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1533// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1558// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1563// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1588// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1593// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1618// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1623// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1648// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1653// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1678// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1683// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1708// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1713// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1738// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1743// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1768// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1773// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1798// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1803// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1828// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1833// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1858// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1863// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1888// ───────COMMENT
MEDIUMsrc/simd/internal/simdref/simdref.go1893// ───────COMMENT
MEDIUMsrc/simd/internal/bridge/simd_emulated.go3807// ───────COMMENT
MEDIUMsrc/simd/internal/bridge/simd_emulated.go3812// ───────COMMENT
MEDIUMsrc/simd/internal/spec/bitmath.go107// ───────COMMENT
MEDIUMsrc/simd/internal/spec/bitmath.go112// ───────COMMENT
MEDIUMsrc/encoding/json/jsontext/token.go65 // ╔══════════════════╦════════════╤════════════╤════════════╗COMMENT
MEDIUMsrc/encoding/json/jsontext/token.go67 // ╠══════════════════╬════════════╪════════════╪════════════╣COMMENT
MEDIUMsrc/encoding/json/jsontext/token.go80 // ╚══════════════════╩════════════╧════════════╧════════════╝COMMENT
Synthetic Comment Markers9 hits · 68 pts
SeverityFileLineSnippetContext
HIGHsrc/cmd/asm/internal/asm/parse.go1721// at reports whether the next tokens are as requested.COMMENT
HIGHsrc/cmd/go/internal/modload/load.go1266 // add them as requested.COMMENT
HIGHsrc/cmd/go/internal/modload/load.go1860 // add them as requested.COMMENT
HIGHsrc/cmd/internal/obj/util.go745// AlignmentPadding bytes to add to align code as requested.COMMENT
HIGHsrc/cmd/internal/obj/util.go760// AlignmentPaddingLength is the number of bytes to add to align code as requested.COMMENT
HIGHsrc/cmd/internal/obj/ppc64/asm9.go570// padding bytes to add to align code as requested.COMMENT
HIGHsrc/cmd/compile/internal/ssa/debug_test.go711 // Normalize value as requested.COMMENT
HIGHsrc/crypto/internal/sysrand/rand_netbsd.go13 // as many as requested up to 256, derived from the system entropy pool;COMMENT
HIGHsrc/fmt/print.go405// not, as requested, by temporarily setting the sharp flag.COMMENT
Fake / Example Data36 hits · 41 pts
SeverityFileLineSnippetContext
LOW⚡src/compress/flate/deflate_test.go466 dict = "hello world Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut laborCODE
LOW⚡src/compress/flate/deflate_test.go466 dict = "hello world Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut laborCODE
LOW⚡src/compress/flate/deflate_test.go467 text = "hello world again Lorem ipsum dolor sit amet"CODE
LOW⚡src/compress/flate/deflate_test.go467 text = "hello world again Lorem ipsum dolor sit amet"CODE
LOWsrc/compress/flate/inflate_test.go17 "lorem ipsum izzle fo rizzle",CODE
LOWsrc/compress/flate/inflate_test.go73 "lorem ipsum izzle fo rizzle",CODE
LOWsrc/compress/gzip/fuzz_test.go18 inp := []byte("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dCODE
LOWsrc/compress/gzip/fuzz_test.go18 inp := []byte("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dCODE
LOWsrc/compress/lzw/writer_test.go118 data = []byte(`lorem ipsum dolor sit amet`)CODE
LOWsrc/compress/lzw/writer_test.go118 data = []byte(`lorem ipsum dolor sit amet`)CODE
LOWsrc/compress/zlib/writer_test.go210 var input = []byte("Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut laborCODE
LOWsrc/compress/zlib/writer_test.go210 var input = []byte("Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut laborCODE
LOWsrc/net/mail/message_test.go381 7: {"John Doe", "no angle-addr"},CODE
LOWsrc/net/mail/message_test.go437 Name: "John Doe",CODE
LOWsrc/net/mail/message_test.go453 Name: "John Doe",CODE
LOWsrc/net/mail/message_test.go480 Address: "jdoe@example.org",CODE
LOW⚡src/net/mail/message_test.go741 Name: "John Doe",CODE
LOW⚡src/net/mail/message_test.go751 Name: "John Doe",CODE
LOW⚡src/net/mail/message_test.go761 Name: "John Doe",CODE
LOWsrc/net/mail/message_test.go826 Name: "John Doe",CODE
LOWsrc/net/mail/message_test.go840 Name: "John Doe",CODE
LOWsrc/net/mail/message_test.go884 Name: "John Doe",CODE
LOWsrc/net/mail/message_test.go904 Address: "jdoe@example.org",CODE
LOWsrc/net/mail/message_test.go1004 Name: "John Doe",CODE
LOWsrc/net/mail/message_test.go1018 Name: "John Doe",CODE
LOWsrc/net/mail/message_test.go1263 {Name: `é\`, Address: "user@example.com"},CODE
LOWsrc/net/smtp/example_test.go21 if err := c.Mail("sender@example.org"); err != nil {CODE
LOW⚡src/net/smtp/example_test.go60 auth := smtp.PlainAuth("", "user@example.com", "password", hostname)CODE
LOW⚡src/net/smtp/example_test.go70 auth := smtp.PlainAuth("", "user@example.com", "password", "mail.example.com")CODE
LOW⚡src/net/smtp/example_test.go79 err := smtp.SendMail("mail.example.com:25", auth, "sender@example.org", to, msg)CODE
LOWsrc/archive/tar/fuzz_test.go16 inp := []byte("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dCODE
LOWsrc/archive/tar/fuzz_test.go16 inp := []byte("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dCODE
LOWsrc/encoding/xml/atom_test.go14 Author: Person{Name: "John Doe"},CODE
LOWsrc/encoding/xml/marshal_test.go534 contentsAttr = "lorem ipsum"CODE
LOWsrc/encoding/xml/marshal_test.go1059 ExpectXML: `<dummy name="Sarah" age="12">lorem ipsum</dummy>`,CODE
LOWsrc/html/template/attr.go98 "placeholder": contentTypePlain,CODE
Empty Error Handlers8 hits · 40 pts
SeverityFileLineSnippetContext
HIGHsrc/runtime/runtime-gdb.py361except gdb.error:CODE
HIGHsrc/runtime/runtime-gdb.py368except gdb.error:CODE
HIGHsrc/runtime/runtime-gdb.py375except gdb.error:CODE
HIGHsrc/runtime/runtime-gdb.py379except gdb.error:CODE
HIGHsrc/runtime/runtime-gdb.py383except gdb.error:CODE
HIGHsrc/runtime/runtime-gdb.py322except Exception:CODE
HIGHsrc/runtime/runtime-gdb.py454except Exception:CODE
HIGHsrc/runtime/runtime-gdb.py518except gdb.error:CODE
Hallucination Indicators3 hits · 30 pts
SeverityFileLineSnippetContext
CRITICAL…c/cmd/compile/internal/test/testdata/addressed_test.go129 if which != v3.p.p.p.p.p.p.p.val() {CODE
CRITICAL…c/cmd/compile/internal/test/testdata/addressed_test.go130 output += fmt.Sprintln("Expected which=", which, "got v3.p.p.p.p.p.p.p.val()=", v3.p.p.p.p.p.p.p.val())CODE
CRITICALsrc/cmd/compile/internal/amd64/ssa.go1422 avx := v.Block.Func.Entry.CPUfeatures.HasFeature(ssa.CPUavx)CODE
Slop Phrases12 hits · 25 pts
SeverityFileLineSnippetContext
MEDIUMsrc/cmd/internal/obj/dwarf.go30// It's worth noting that this function doesn't generate the full debug_linesCOMMENT
LOWsrc/cmd/compile/internal/ir/func.go56 // if you add or remove a field, don't forget to update sizeof_test.goCOMMENT
LOWsrc/cmd/compile/internal/base/debug.go15// Don't forget to note that concurrency is "ok" when it is,COMMENT
LOWsrc/bufio/example_test.go20 w.Flush() // Don't forget to flush!CODE
LOWsrc/net/http/example_test.go30 // Don't forget to close the connection:COMMENT
LOWsrc/net/http/internal/httpcommon/request.go404 // but this ensures we don't forget to include a CountError reason.COMMENT
MEDIUMsrc/net/rpc/server.go58Here is a simple example. A server wishes to export an object of type Arith:CODE
MEDIUMsrc/runtime/arena.go744 // assist the GC proportionally (and it's worth noting that the arenaCOMMENT
MEDIUMsrc/runtime/metrics/doc.go39As mentioned earlier, metric keys are strings. Their format is simple and well-defined,CODE
MEDIUMsrc/internal/syscall/windows/registry/key.go9// Here is a simple example, opening a registry key and reading a string value from it.COMMENT
MEDIUMsrc/os/file.go16// Here is a simple example, opening a file and reading some of it.COMMENT
MEDIUMsrc/text/template/doc.go464constant. Here is a simple example:CODE
Structural Annotation Overuse11 hits · 20 pts
SeverityFileLineSnippetContext
LOWsrc/cmd/compile/internal/ssacompile/shortcircuit.go18 // Step 1: Replace a phi arg with a constant if that argCOMMENT
LOWsrc/cmd/compile/internal/ssacompile/shortcircuit.go59 // Step 2: Redirect control flow around known branches.COMMENT
LOWsrc/reflect/value.go683// NOTE: This function must be marked as a "wrapper" in the generated code,COMMENT
LOWsrc/reflect/value.go940// NOTE: This function must be marked as a "wrapper" in the generated code,COMMENT
LOW⚡src/runtime/secret/secret.go74 // Step 1: increment the nesting count.COMMENT
LOW⚡src/runtime/secret/secret.go77 // Step 2: call helper. The helper just calls fCOMMENT
LOW⚡src/runtime/secret/secret.go81 // Step 3: erase everything used by f (stack, registers).COMMENT
LOW⚡src/runtime/secret/secret.go84 // Step 4: decrement the nesting count.COMMENT
LOW⚡src/runtime/secret/secret.go87 // Step 5: re-raise any caught panic.COMMENT
LOWsrc/encoding/json/jsontext/encode.go154 // NOTE: This function is carefully written to be inlinable.COMMENT
LOWsrc/testing/cover.go34// NOTE: This function is internal to the testing infrastructure and may change.COMMENT
TODO Padding11 hits · 16 pts
SeverityFileLineSnippetContext
LOWsrc/cmd/compile/internal/ppc64/ssa.go2096 // TODO: implement for clobberdead experiment. Nop is ok for now.COMMENT
LOWsrc/cmd/compile/internal/riscv64/ssa.go1059 // TODO: implement for clobberdead experiment. Nop is ok for now.COMMENT
LOWsrc/cmd/compile/internal/noder/reader.go4340 // TODO: implement wasm indirect tail callsCOMMENT
LOWsrc/cmd/compile/internal/s390x/ssa.go957 // TODO: implement for clobberdead experiment. Nop is ok for now.COMMENT
LOWsrc/cmd/compile/internal/wasm/ssa.go309 // TODO: implement for clobberdead experiment. Nop is ok for now.COMMENT
LOWsrc/cmd/compile/internal/mips/ssa.go944 // TODO: implement for clobberdead experiment. Nop is ok for now.COMMENT
LOWsrc/cmd/compile/internal/mips64/ssa.go876 // TODO: implement for clobberdead experiment. Nop is ok for now.COMMENT
LOWsrc/cmd/compile/internal/x86/ssa.go1082 // TODO: implement for clobberdead experiment. Nop is ok for now.COMMENT
LOWsrc/cmd/compile/internal/arm/ssa.go1024 // TODO: implement for clobberdead experiment. Nop is ok for now.COMMENT
LOWsrc/cmd/cover/testdata/ranges/ranges.go15 // TODO: implement this laterCOMMENT
LOWsrc/crypto/tls/bogo_shim_test.go523 // TODO: implement testingOnlyPeerSignatureAlgorithm on resumption.COMMENT
Verbosity Indicators8 hits · 16 pts
SeverityFileLineSnippetContext
LOWsrc/cmd/compile/internal/ssacompile/shortcircuit.go18 // Step 1: Replace a phi arg with a constant if that argCOMMENT
LOWsrc/cmd/compile/internal/ssacompile/shortcircuit.go59 // Step 2: Redirect control flow around known branches.COMMENT
LOWsrc/net/http/server.go1269// The purpose of this function is to provide more helpful error messages.COMMENT
LOW⚡src/runtime/secret/secret.go74 // Step 1: increment the nesting count.COMMENT
LOW⚡src/runtime/secret/secret.go77 // Step 2: call helper. The helper just calls fCOMMENT
LOW⚡src/runtime/secret/secret.go81 // Step 3: erase everything used by f (stack, registers).COMMENT
LOW⚡src/runtime/secret/secret.go84 // Step 4: decrement the nesting count.COMMENT
LOW⚡src/runtime/secret/secret.go87 // Step 5: re-raise any caught panic.COMMENT
Example Usage Blocks6 hits · 9 pts
SeverityFileLineSnippetContext
LOWlib/hg/goreposum.py24# Usage:COMMENT
LOWsrc/database/sql/sql.go105// Example usage:COMMENT
LOWsrc/database/sql/sql.go478// Example usage:COMMENT
LOWsrc/database/sql/sql.go2877// Example usage:COMMENT
LOWsrc/encoding/json/v2/options.go87// Example usage:COMMENT
LOWsrc/encoding/json/jsontext/encode.go917// Example usage:COMMENT
Excessive Try-Catch Wrapping7 hits · 9 pts
SeverityFileLineSnippetContext
LOWsrc/runtime/runtime-gdb.py36 except Exception:CODE
LOWsrc/runtime/runtime-gdb.py322 except Exception:CODE
LOWsrc/runtime/runtime-gdb.py445 except Exception:CODE
LOWsrc/runtime/runtime-gdb.py454 except Exception:CODE
LOWsrc/runtime/runtime-gdb.py673 except Exception as e:CODE
MEDIUMsrc/runtime/runtime-gdb.py33def read_runtime_const(varname, default):CODE
MEDIUMsrc/runtime/runtime-gdb.py316def matcher(val):CODE
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH…md/go/testdata/script/mod_get_workspace_incomplete.txt62# In this example, there is a workspace with theCOMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMsrc/simd/archsimd/_gen/simdgen/types.yaml1# This file defines the possible types of each operand and result.COMMENT
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWsrc/syscall/mksyscall_libc.pl166 # Check if err return availableCOMMENT
LOWsrc/syscall/mksyscall.pl155 # Check if err return availableCOMMENT
Unused Imports2 hits · 2 pts
SeverityFileLineSnippetContext
LOWlib/hg/goreposum.py28CODE
LOWsrc/runtime/runtime-gdb.py18CODE
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOWsrc/runtime/runtime-gdb.py166CODE
LOWsrc/runtime/runtime-gdb.py478CODE