[mirror] Go Tools
This report presents the forensic synthetic code analysis of golang/tools, a Go project with 7,984 GitHub stars. SynthScan v2.0 examined 457,346 lines of code across 2448 source files, recording 1832 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 4.0 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).
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.
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.
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.
The scanner identified 1832 distinct pattern matches across 11 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | cmd/present/static/playground.js | 321 | function lineClear() { | COMMENT |
| LOW | cmd/fiximports/main.go | 1 | // Copyright 2015 The Go Authors. All rights reserved. | COMMENT |
| LOW | cmd/fiximports/main.go | 21 | // package by its canonical name and by an alias. The resulting | COMMENT |
| LOW | cmd/fiximports/main.go | 41 | // will stop working as soon as you update your copy of that package | COMMENT |
| LOW | cmd/fiximports/main_test.go | 21 | ) | COMMENT |
| LOW | cmd/fiximports/testdata/src/old.com/bad/bad.go | 1 | // This ill-formed Go source file is here to ensure the tool is robust | COMMENT |
| LOW | cmd/toolstash/main.go | 1 | // Copyright 2015 The Go Authors. All rights reserved. | COMMENT |
| LOW | cmd/toolstash/main.go | 21 | // copies the toolchain from its installed location to the toolstash directory. | COMMENT |
| LOW | cmd/toolstash/main.go | 41 | // | COMMENT |
| LOW | cmd/toolstash/main.go | 61 | // compiler output: | COMMENT |
| LOW | cmd/toolstash/main.go | 81 | // To verify that code cleanup in the compilers does not make any | COMMENT |
| LOW | cmd/toolstash/main.go | 101 | // | COMMENT |
| LOW | cmd/compilebench/main.go | 1 | // Copyright 2015 The Go Authors. All rights reserved. | COMMENT |
| LOW | cmd/compilebench/main.go | 21 | // | COMMENT |
| LOW | cmd/compilebench/main.go | 41 | // Write a memory profile of the compiler to file. | COMMENT |
| LOW | cmd/compilebench/main.go | 61 | // | COMMENT |
| LOW | cmd/goyacc/testdata/expr/main.go | 1 | // Copyright 2014 The Go Authors. All rights reserved. | COMMENT |
| LOW | cmd/stringer/stringer.go | 1 | // Copyright 2014 The Go Authors. All rights reserved. | COMMENT |
| LOW | cmd/stringer/stringer.go | 21 | // | COMMENT |
| LOW | cmd/stringer/stringer.go | 41 | // That method will translate the value of a Pill constant to the string representation | COMMENT |
| LOW | cmd/stringer/stringer.go | 61 | // Types can also be declared in tests, in which case type declarations in the | COMMENT |
| LOW | cmd/stringer/stringer.go | 141 | if len(args) == 1 && isDirectory(args[0]) { | COMMENT |
| LOW | cmd/stringer/stringer.go | 361 | runs := splitIntoRuns(values) | COMMENT |
| LOW | …/signature-fuzzer/internal/fuzz-generator/generator.go | 1 | // Copyright 2021 The Go Authors. All rights reserved. | COMMENT |
| LOW | …/signature-fuzzer/internal/fuzz-generator/generator.go | 21 | // | COMMENT |
| LOW | …/signature-fuzzer/internal/fuzz-generator/generator.go | 61 | // Tag is a string prefix prepended to functions within | COMMENT |
| LOW | …/signature-fuzzer/internal/fuzz-generator/generator.go | 181 | COMMENT | |
| LOW | …/signature-fuzzer/internal/fuzz-generator/generator.go | 201 | COMMENT | |
| LOW | …/signature-fuzzer/internal/fuzz-generator/generator.go | 1821 | // return x, y, z | COMMENT |
| LOW | cmd/signature-fuzzer/internal/fuzz-generator/parm.go | 21 | // prepend before the declaration (for example a variable | COMMENT |
| LOW | cmd/signature-fuzzer/internal/fuzz-generator/parm.go | 41 | // up until this point, and 'caller' is set to true if we're | COMMENT |
| LOW | cmd/signature-fuzzer/internal/fuzz-generator/parm.go | 81 | COMMENT | |
| LOW | cmd/bisect/main.go | 1 | // Copyright 2023 The Go Authors. All rights reserved. | COMMENT |
| LOW | cmd/bisect/main.go | 21 | // The target must cooperate with bisect by accepting a change pattern | COMMENT |
| LOW | cmd/bisect/main.go | 41 | // to standard output. | COMMENT |
| LOW | cmd/bisect/main.go | 61 | // -count=N | COMMENT |
| LOW | cmd/bisect/main.go | 81 | // -godebug=<name>=<value> | COMMENT |
| LOW | cmd/bisect/main.go | 101 | // The go command also checks the GOCOMPILEDEBUG environment variable for flags | COMMENT |
| LOW | cmd/bisect/main.go | 261 | // cause a failure when disabled. In this case, the search proceeds as normal except that | COMMENT |
| LOW | cmd/bisect/main.go | 301 | // &searchFatal is a special panic value to signal that Search failed. | COMMENT |
| LOW | cmd/gotype/gotype.go | 1 | // Copyright 2011 The Go Authors. All rights reserved. | COMMENT |
| LOW | cmd/godex/gccgo.go | 21 | // Disabled for now. | COMMENT |
| LOW | cmd/godex/doc.go | 1 | // Copyright 2014 The Go Authors. All rights reserved. | COMMENT |
| LOW | cmd/godex/doc.go | 21 | // | COMMENT |
| LOW | cmd/godex/doc.go | 41 | // dot (indicating an empty object name). For instance, the path for a | COMMENT |
| LOW | cmd/godex/doc.go | 61 | // source | COMMENT |
| LOW | cmd/godex/writetype.go | 101 | // than the actual method set since resolved method signatures | COMMENT |
| LOW | cmd/bundle/main.go | 1 | // Copyright 2015 The Go Authors. All rights reserved. | COMMENT |
| LOW | cmd/bundle/main.go | 21 | // | COMMENT |
| LOW | cmd/bundle/main.go | 41 | // every package-level const, func, type, and var identifier in src's code, | COMMENT |
| LOW | cmd/gonew/main.go | 1 | // Copyright 2023 The Go Authors. All rights reserved. | COMMENT |
| LOW | cmd/gonew/main.go | 21 | // | COMMENT |
| LOW | cmd/deadcode/deadcode.go | 241 | // Function is not part of the program. | COMMENT |
| LOW | cmd/splitdwarf/splitdwarf.go | 81 | // struct { | COMMENT |
| LOW | cmd/splitdwarf/splitdwarf.go | 101 | // | COMMENT |
| LOW | cmd/splitdwarf/internal/macho/file.go | 81 | // Load command 3 | COMMENT |
| LOW | cmd/goimports/goimports.go | 341 | // diff exits with a non-zero status when the files don't match. | COMMENT |
| LOW | cmd/present2md/main.go | 1 | // Copyright 2020 The Go Authors. All rights reserved. | COMMENT |
| LOW | cmd/file2fuzz/main.go | 1 | // Copyright 2021 The Go Authors. All rights reserved. | COMMENT |
| LOW | cmd/callgraph/main.go | 1 | // Copyright 2014 The Go Authors. All rights reserved. | COMMENT |
| 1641 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | cmd/fiximports/testdata/src/old.com/bad/bad.go | 1 | // This ill-formed Go source file is here to ensure the tool is robust | COMMENT |
| MEDIUM | cmd/toolstash/main.go | 114 | // A more robust way to force the tools to have the same version string | COMMENT |
| MEDIUM | cmd/stringer/multifile_test.go | 422 | // Trim data for more robust comparison. | COMMENT |
| MEDIUM | cmd/bisect/main.go | 271 | // bisect more robust, we use the y and n runs to create an estimate of the | COMMENT |
| MEDIUM | go/analysis/passes/buildtag/buildtag.go | 355 | // Definitely should not happen, but not the user's fault. | COMMENT |
| MEDIUM | go/analysis/passes/slog/slog.go | 113 | // Can't be either a string or Attr. Definitely an error. | COMMENT |
| MEDIUM | go/ssa/ssa.go | 1655 | // case, but is simple and robust. | COMMENT |
| MEDIUM | go/ssa/print.go | 100 | // Be robust against malformed CFG. | COMMENT |
| MEDIUM | go/ssa/print.go | 110 | edgeVal := "<nil>" // be robust | CODE |
| MEDIUM | go/ssa/print.go | 254 | // Be robust against a bad index. | COMMENT |
| MEDIUM | go/ssa/print.go | 263 | // Be robust against a bad index. | COMMENT |
| MEDIUM | go/ssa/print.go | 301 | // Be robust against malformed CFG. | COMMENT |
| MEDIUM | go/ssa/print.go | 310 | // Be robust against malformed CFG. | COMMENT |
| MEDIUM | go/ssa/func.go | 704 | // Be robust against bad transforms. | COMMENT |
| MEDIUM | go/ssa/interp/interp_test.go | 10 | // not robust to evolutionary change in the standard library. | COMMENT |
| MEDIUM | gopls/integration/govim/run_local.sh | 77 | # Build the test harness. Here we are careful to pass in a very limited build | COMMENT |
| MEDIUM⚡ | gopls/integration/govim/cloudbuild.harness.yaml | 5 | # Build the govim test harness that will be used to run govim integration tests | COMMENT |
| MEDIUM⚡ | gopls/integration/govim/cloudbuild.harness.yaml | 10 | # To allow for breaking changes to this test harness, tag with a major | COMMENT |
| MEDIUM⚡ | gopls/integration/govim/cloudbuild.harness.yaml | 17 | # Use the integration test directory as build context: the test harness | COMMENT |
| MEDIUM | gopls/internal/settings/settings.go | 872 | // TODO(rfindley): make pull diagnostics robust, and remove this option, | COMMENT |
| MEDIUM | gopls/internal/filewatcher/fsnotify_watcher.go | 242 | // a more robust solution is needed. | COMMENT |
| MEDIUM | gopls/internal/cache/snapshot.go | 1091 | // restored to fix golang/go#65801. We should endeavor to remove it again. | COMMENT |
| MEDIUM | …ernal/test/integration/diagnostics/diagnostics_test.go | 2183 | // as it is robust in case of minor mistakes in the position | COMMENT |
| MEDIUM | gopls/internal/test/integration/watch/watch_test.go | 369 | // We should have a robust way to test loads. It should be possible to assert | COMMENT |
| MEDIUM | gopls/internal/server/text_synchronization.go | 374 | // TODO(adonovan): refactor to use diff.Apply, which is robust w.r.t. | COMMENT |
| MEDIUM | internal/gcimporter/gcimporter_test.go | 197 | // the files we consider in an attempt to make this test more robust to | COMMENT |
| MEDIUM | internal/gcimporter/iexport_go118_test.go | 125 | // the files we consider in an attempt to make this test more robust to | COMMENT |
| MEDIUM | internal/typesinternal/zerovalue.go | 211 | // See also https://go.dev/issues/75604, which will provide a robust | COMMENT |
| MEDIUM | internal/stdlib/generate.go | 478 | // TODO(adonovan): find a more robust solution. | COMMENT |
| MEDIUM | internal/facts/facts_test.go | 481 | // needs to robust, e.g. no infinite loops. | COMMENT |
| MEDIUM | internal/refactor/inline/inline.go | 540 | // the effective importMap, new/old imports, arguments, etc. Essentially | COMMENT |
| MEDIUM | refactor/rename/rename.go | 365 | // TODO(adonovan): enable this. Requires making a lot of code more robust! | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | gopls/internal/test/marker/codeaction_test.go | 74 | data = bytes.ReplaceAll(data, []byte(mark.run.env.Sandbox.Workdir.RootURI()), []byte("$WORKDIR")) | CODE |
| CRITICAL | gopls/internal/test/marker/codeaction_test.go | 286 | rawResponse, err := mark.run.env.Editor.Server.ExecuteCommand(mark.run.env.Ctx, lspCmd) | CODE |
| CRITICAL | gopls/internal/test/marker/codeaction_test.go | 338 | if _, err := mark.run.env.Editor.Server.ExecuteCommand(mark.run.env.Ctx, cmd); err != nil { | CODE |
| CRITICAL | gopls/internal/test/marker/marker_test.go | 389 | return mark.run.env.Sandbox.Workdir.URI(mark.run.test.fset.File(mark.note.Pos).Name()) | CODE |
| CRITICAL | gopls/internal/test/marker/marker_test.go | 399 | return mark.run.env.Sandbox.Workdir.RelPath(mark.run.test.fset.File(mark.note.Pos).Name()) | CODE |
| CRITICAL | gopls/internal/test/marker/marker_test.go | 1913 | abs := mark.run.env.Sandbox.Workdir.RootURI().Path() | CODE |
| CRITICAL | gopls/internal/test/marker/marker_test.go | 2399 | return strings.ReplaceAll(v, "$WORKDIR", mark.run.env.Sandbox.Workdir.RootURI().Path()) | CODE |
| CRITICAL | gopls/internal/test/marker/marker_test.go | 2448 | got = strings.ReplaceAll(got, filepath.ToSlash(mark.run.env.Sandbox.Workdir.RootURI().Path()), "$WORKDIR") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | gopls/internal/test/integration/misc/addtest_test.go | 59 | // TODO: Add test cases. | COMMENT |
| LOW | …nal/test/marker/testdata/codeaction/addtest_pre124.txt | 41 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 45 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 83 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 130 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 158 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 186 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 212 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 239 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 264 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 309 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 333 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 357 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 383 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 409 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 435 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 498 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 524 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 550 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 576 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 602 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 627 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 669 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 720 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 776 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 812 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 844 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 882 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 956 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 985 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 1017 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 1046 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 1097 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 1126 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 1198 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 1235 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 1272 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 1309 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 1346 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 1373 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 1400 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 1427 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 1467 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 1501 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 1566 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 1604 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 1656 | + // TODO: Add test cases. | CODE |
| LOW | …s/internal/test/marker/testdata/codeaction/addtest.txt | 1690 | + // TODO: Add test cases. | CODE |
| LOW | gopls/internal/golang/addtest.go | 76 | // TODO: Add test cases. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | gopls/internal/vulncheck/osv/osv.go | 25 | // In this implementation, only the "SEMVER" type is supported. | COMMENT |
| HIGH | gopls/internal/vulncheck/osv/osv.go | 35 | // In this implementation, only the "Go" ecosystem is supported. | COMMENT |
| HIGH | gopls/internal/vulncheck/osv/osv.go | 90 | // In this implementation, only the "SEMVER" type is supported. | COMMENT |
| HIGH | internal/facts/facts_test.go | 391 | // I've added CheckExpr in https://go-review.googlesource.com/c/go/+/144677. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | cmd/present/static/dir.js | 32 | search.value = search.getAttribute('placeholder'); | CODE |
| LOW | go/analysis/internal/checker/testdata/conflict.txt | 20 | bar := 12 //@ fix1("\tbar", "baz"), fix2("ar ", "baz"), fix3("bar", "lorem ipsum") | CODE |
| LOW | go/analysis/internal/checker/testdata/conflict.txt | 28 | baz := 12 //@ fix1("\tbar", "baz"), fix2("ar ", "baz"), fix3("bar", "lorem ipsum") | CODE |
| LOW | go/ssa/const_test.go | 67 | {"interface{Named}", "lorem ipsum", `"lorem ipsum":interface{P.Named}`}, | CODE |
| LOW | go/packages/overlay_test.go | 476 | "foo.txt": "placeholder", | CODE |
| LOW | go/packages/overlay_test.go | 963 | "foo.txt": "placeholder", | CODE |
| LOW | go/packages/packages.go | 79 | // "placeholder" Packages with only the ID set. | COMMENT |
| LOW | gopls/internal/test/marker/testdata/hover/const.txt | 68 | longStr = `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur eget ipsum non nunc | CODE |
| LOW | gopls/internal/test/marker/testdata/hover/const.txt | 68 | longStr = `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur eget ipsum non nunc | CODE |
| LOW | gopls/internal/test/marker/testdata/hover/const.txt | 154 | const longStr untyped string = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur e... | CODE |
| LOW | gopls/internal/test/marker/testdata/hover/const.txt | 154 | const longStr untyped string = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur e... | CODE |
| LOW⚡ | …s/internal/test/marker/testdata/completion/comment.txt | 84 | // Lorem Ipsum Multili//@complete(re"()Multi", multiline) | COMMENT |
| LOW⚡ | …s/internal/test/marker/testdata/completion/comment.txt | 85 | // Lorem ipsum dolor sit ametom | COMMENT |
| LOW⚡ | …s/internal/test/marker/testdata/completion/comment.txt | 85 | // Lorem ipsum dolor sit ametom | COMMENT |
| LOW | gopls/internal/protocol/tsprotocol.go | 4238 | Placeholder string `json:"placeholder"` | CODE |
| LOW | internal/excfg/excfg.go | 140 | // Allocate "placeholder" ExBlocks for each cfg.Block. We often need to | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | go/analysis/unitchecker/unitchecker.go | 140 | // Redirect stdout to a file as requested. | COMMENT |
| HIGH | go/packages/packages.go | 784 | // and syntax information as requested by the LoadMode. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | gopls/internal/golang/change_signature.go | 38 | // Step 1: Write the declaration according to the given signature change. For | COMMENT |
| LOW⚡ | gopls/internal/golang/change_signature.go | 44 | // Step 2: Build a wrapper function that delegates to the new function. | COMMENT |
| LOW⚡ | gopls/internal/golang/change_signature.go | 51 | // Step 3: Swap in the wrapper for the original, and inline all calls. The | COMMENT |
| LOW | gopls/internal/golang/change_signature.go | 165 | // Step 1: create the new declaration, which is a copy of the original decl | COMMENT |
| LOW | gopls/internal/golang/change_signature.go | 224 | // Step 2: build a wrapper function calling the new declaration. | COMMENT |
| LOW | gopls/internal/golang/change_signature.go | 286 | // Step 3: Rewrite all referring calls, by swapping in the wrapper and | COMMENT |
| LOW | gopls/internal/golang/extract.go | 345 | // We need to check if we are in an else-if stmt and | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | gopls/internal/golang/change_signature.go | 38 | // Step 1: Write the declaration according to the given signature change. For | COMMENT |
| LOW⚡ | gopls/internal/golang/change_signature.go | 44 | // Step 2: Build a wrapper function that delegates to the new function. | COMMENT |
| LOW⚡ | gopls/internal/golang/change_signature.go | 51 | // Step 3: Swap in the wrapper for the original, and inline all calls. The | COMMENT |
| LOW | gopls/internal/golang/change_signature.go | 165 | // Step 1: create the new declaration, which is a copy of the original decl | COMMENT |
| LOW | gopls/internal/golang/change_signature.go | 224 | // Step 2: build a wrapper function calling the new declaration. | COMMENT |
| LOW | gopls/internal/golang/change_signature.go | 286 | // Step 3: Rewrite all referring calls, by swapping in the wrapper and | COMMENT |
| LOW | internal/diff/lcs/git.sh | 15 | # WARNING: This script will install the latest version of $file | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | cmd/bisect/main.go | 106 | // Finally, as mentioned earlier, the -compile flag allows shortening this command further: | COMMENT |
| LOW | go/ssa/stdlib_test.go | 169 | // NB: when benchmarking, don't forget to clear the debug + | COMMENT |
| LOW | gopls/internal/golang/codeaction.go | 275 | // Note: don't forget to update the allow-list in Server.CodeAction | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | go/packages/internal/nodecount/nodecount.go | 9 | // Example usage: | COMMENT |
| LOW | gopls/internal/protocol/command/util.go | 21 | // Example usage: | COMMENT |
| LOW | gopls/internal/protocol/command/util.go | 48 | // Example usage: | COMMENT |