Repository Analysis

golang/go

The Go programming language

2.7 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of golang/go, a Go project with 135,371 GitHub stars. SynthScan v2.0 examined 2,584,105 lines of code across 12192 source files, recording 7194 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 2.7 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

2.7
Adjusted Score
2.7
Raw Score
100%
Time Factor
2026-07-13
Last Push
135.4K
Stars
Go
Language
2.6M
Lines of Code
12.2K
Files
7.2K
Pattern Hits
2026-07-14
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 2HIGH 10MEDIUM 83LOW 7099

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 7194 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block7008 hits · 6442 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/insert_resched_checks/offCOMMENT
LOWtest/method4.go1// rundirCOMMENT
LOWtest/inline_sync.go1// errorcheck -0 -mCOMMENT
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/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 // arm64/v8.0:".*arm64HasATOMICS"COMMENT
LOWtest/codegen/atomics.go61}COMMENT
LOWtest/codegen/atomics.go81 // arm64/v8.1:"LDORALW"COMMENT
LOWtest/codegen/mapaccess.go21COMMENT
LOWtest/codegen/mapaccess.go41 // amd64:-".*mapaccess"COMMENT
LOWtest/codegen/mapaccess.go81 // 386:-".*mapaccess"COMMENT
LOWtest/codegen/mapaccess.go101 // arm:-".*mapaccess"COMMENT
LOWtest/codegen/mapaccess.go141 // amd64:-".*mapaccess"COMMENT
6948 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.go2285// Consumers should be robust to this.COMMENT
MEDIUMsrc/cmd/go/internal/work/exec.go2476 // 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.go2691 // TODO(mdempsky): Is there a more robust way to get theCOMMENT
MEDIUMsrc/cmd/compile/internal/noder/reader.go2984 // TODO(mdempsky): Is there a more robust way to get theCOMMENT
MEDIUMsrc/cmd/compile/internal/noder/reader.go3083 // TODO(mark): It's not ideal to rely on string naming here. Find a more robust solution.COMMENT
MEDIUMsrc/cmd/compile/internal/noder/reader.go4263// 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.go1884 // #yield is used by delve.COMMENT
MEDIUMsrc/cmd/compile/internal/ssa/debug.go1884 // #yield is used by delve.COMMENT
MEDIUMsrc/cmd/compile/internal/ssa/known_bits.go294// 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.go22// 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.go1089 // 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.go1356 // Return NXDOMAIN to utilize the search list.COMMENT
MEDIUMsrc/net/http/serve_test.go957 // 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.go173 // 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.go38// 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.go622 // Test to check for issue #40191. Essentially, the candidate searchAddrCOMMENT
MEDIUMsrc/runtime/mpagealloc_test.go622 // 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.go1677 // 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.go839// 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…
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.go1229 // add them as requested.COMMENT
HIGHsrc/cmd/go/internal/modload/load.go1823 // 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.go590// 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
Decorative Section Separators15 hits · 51 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.txt79#-------------------------------------------COMMENT
MEDIUM…go/testdata/script/cgo_suspect_flag_force_external.txt29#-----------------------COMMENT
MEDIUMsrc/cmd/compile/internal/ssa/looprotate.go68 // │ │ └─►It─┘ │ │ │ └─────┘ │COMMENT
MEDIUMsrc/cmd/compile/internal/ssa/looprotate.go71 // │ └─►Ot───┘ │ └───────┘COMMENT
MEDIUMsrc/crypto/cipher/gcm.go142 // ┌───────────────────────────┬ ─ ─COMMENT
MEDIUMsrc/crypto/cipher/gcm.go144 // └▽─────────────────────────▲┴ ─ ─COMMENT
MEDIUMsrc/crypto/cipher/gcm.go147 // ┌───▼─────────────────────────△──┐COMMENT
MEDIUMsrc/crypto/cipher/gcm.go149 // └────────────────────────────────┘COMMENT
MEDIUMsrc/runtime/mprof.go107 // ┠┅┅┅┅┅┅┅┅┅┅┅PCOMMENT
MEDIUMsrc/runtime/mprof.go111 // ┠┅┅┅┅┅┅┅┅┅┅┅PCOMMENT
MEDIUMsrc/encoding/json/jsontext/token.go65 // ╔══════════════════╦════════════╤════════════╤════════════╗COMMENT
MEDIUMsrc/encoding/json/jsontext/token.go67 // ╠══════════════════╬════════════╪════════════╪════════════╣COMMENT
MEDIUMsrc/encoding/json/jsontext/token.go80 // ╚══════════════════╩════════════╧════════════╧════════════╝COMMENT
Fake / Example Data35 hits · 40 pts
SeverityFileLineSnippetContext
LOWsrc/compress/flate/deflate_test.go466 dict = "hello world Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut laborCODE
LOWsrc/compress/flate/deflate_test.go466 dict = "hello world Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut laborCODE
LOWsrc/compress/flate/deflate_test.go467 text = "hello world again Lorem ipsum dolor sit amet"CODE
LOWsrc/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
LOWsrc/net/mail/message_test.go741 Name: "John Doe",CODE
LOWsrc/net/mail/message_test.go751 Name: "John Doe",CODE
LOWsrc/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/smtp/example_test.go21 if err := c.Mail("sender@example.org"); err != nil {CODE
LOWsrc/net/smtp/example_test.go60 auth := smtp.PlainAuth("", "user@example.com", "password", hostname)CODE
LOWsrc/net/smtp/example_test.go70 auth := smtp.PlainAuth("", "user@example.com", "password", "mail.example.com")CODE
LOWsrc/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
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.go55 // 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/httpcommon.go554 // 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.go463constant. Here is a simple example:CODE
Structural Annotation Overuse11 hits · 20 pts
SeverityFileLineSnippetContext
LOWsrc/cmd/compile/internal/ssa/shortcircuit.go12 // Step 1: Replace a phi arg with a constant if that argCOMMENT
LOWsrc/cmd/compile/internal/ssa/shortcircuit.go53 // Step 2: Redirect control flow around known branches.COMMENT
LOWsrc/reflect/value.go686// NOTE: This function must be marked as a "wrapper" in the generated code,COMMENT
LOWsrc/reflect/value.go943// NOTE: This function must be marked as a "wrapper" in the generated code,COMMENT
LOWsrc/runtime/secret/secret.go74 // Step 1: increment the nesting count.COMMENT
LOWsrc/runtime/secret/secret.go77 // Step 2: call helper. The helper just calls fCOMMENT
LOWsrc/runtime/secret/secret.go81 // Step 3: erase everything used by f (stack, registers).COMMENT
LOWsrc/runtime/secret/secret.go84 // Step 4: decrement the nesting count.COMMENT
LOWsrc/runtime/secret/secret.go87 // Step 5: re-raise any caught panic.COMMENT
LOWsrc/encoding/json/jsontext/encode.go148 // 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
Hallucination Indicators2 hits · 20 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
TODO Padding12 hits · 18 pts
SeverityFileLineSnippetContext
LOWsrc/cmd/compile/internal/ppc64/ssa.go2069 // TODO: implement for clobberdead experiment. Nop is ok for now.COMMENT
LOWsrc/cmd/compile/internal/riscv64/ssa.go995 // TODO: implement for clobberdead experiment. Nop is ok for now.COMMENT
LOWsrc/cmd/compile/internal/noder/reader.go4231 // TODO: implement wasm indirect tail callsCOMMENT
LOWsrc/cmd/compile/internal/loong64/ssa.go1248 // TODO: implement for clobberdead experiment. Nop is ok for now.COMMENT
LOWsrc/cmd/compile/internal/s390x/ssa.go955 // TODO: implement for clobberdead experiment. Nop is ok for now.COMMENT
LOWsrc/cmd/compile/internal/wasm/ssa.go306 // TODO: implement for clobberdead experiment. Nop is ok for now.COMMENT
LOWsrc/cmd/compile/internal/mips/ssa.go960 // TODO: implement for clobberdead experiment. Nop is ok for now.COMMENT
LOWsrc/cmd/compile/internal/mips64/ssa.go892 // TODO: implement for clobberdead experiment. Nop is ok for now.COMMENT
LOWsrc/cmd/compile/internal/x86/ssa.go1060 // TODO: implement for clobberdead experiment. Nop is ok for now.COMMENT
LOWsrc/cmd/compile/internal/arm/ssa.go1022 // 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.go510 // TODO: implement testingOnlyPeerSignatureAlgorithm on resumption.COMMENT
Verbosity Indicators8 hits · 16 pts
SeverityFileLineSnippetContext
LOWsrc/cmd/compile/internal/ssa/shortcircuit.go12 // Step 1: Replace a phi arg with a constant if that argCOMMENT
LOWsrc/cmd/compile/internal/ssa/shortcircuit.go53 // Step 2: Redirect control flow around known branches.COMMENT
LOWsrc/net/http/server.go1182// The purpose of this function is to provide more helpful error messages.COMMENT
LOWsrc/runtime/secret/secret.go74 // Step 1: increment the nesting count.COMMENT
LOWsrc/runtime/secret/secret.go77 // Step 2: call helper. The helper just calls fCOMMENT
LOWsrc/runtime/secret/secret.go81 // Step 3: erase everything used by f (stack, registers).COMMENT
LOWsrc/runtime/secret/secret.go84 // Step 4: decrement the nesting count.COMMENT
LOWsrc/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.go908// 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