[mirror] Go Tools
This report summarizes scanner evidence for golang/tools, a Go project with 8,012 GitHub stars. SynthScan examined 475,456 lines of code across 2517 source files, recording 1900 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 4.0 (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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 1874 finding(s).
Are imports declared and package/API names verified? 26 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 1900 finding(s).
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.
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.
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.
The scanner identified 1900 distinct pattern matches across 11 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.
| 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 in the numbers. If there's only one, it's easy. For more than | 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 | 221 | // (Build a call graph only for -whylive.) | COMMENT |
| LOW | cmd/deadcode/deadcode.go | 241 | 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 | 121 | // See https://github.com/dominikh/go-mode.el/issues/146 | COMMENT |
| LOW | cmd/goimports/goimports.go | 341 | if len(data) > 0 { | COMMENT |
| LOW | cmd/present2md/main.go | 1 | // Copyright 2020 The Go Authors. All rights reserved. | COMMENT |
| 1704 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 | 255 | // Be robust against a bad index. | COMMENT |
| MEDIUM | go/ssa/print.go | 264 | // Be robust against a bad index. | COMMENT |
| MEDIUM | go/ssa/print.go | 302 | // Be robust against malformed CFG. | COMMENT |
| MEDIUM | go/ssa/print.go | 311 | // Be robust against malformed CFG. | COMMENT |
| MEDIUM | go/ssa/func.go | 710 | // 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/cmd/normalize_test.go | 14 | // internal helper functions are not robust nor do they reflect actual | COMMENT |
| MEDIUM | gopls/internal/settings/settings.go | 877 | // 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 | 1092 | // restored to fix golang/go#65801. We should endeavor to remove it again. | COMMENT |
| MEDIUM | …ernal/test/integration/diagnostics/diagnostics_test.go | 2359 | // as it is robust in case of minor mistakes in the position | COMMENT |
| MEDIUM | gopls/internal/test/integration/watch/watch_test.go | 371 | // We should have a robust way to test loads. It should be possible to assert | COMMENT |
| MEDIUM | gopls/internal/server/text_synchronization.go | 486 | // TODO(adonovan): refactor to use diff.Apply, which is robust w.r.t. | COMMENT |
| MEDIUM | internal/gcimporter/gcimporter_test.go | 198 | // 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 | 502 | // needs to robust, e.g. no infinite loops. | COMMENT |
| MEDIUM | internal/refactor/inline/inline.go | 523 | // 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 | 81 | data = bytes.ReplaceAll(data, []byte(mark.run.env.Sandbox.Workdir.RootURI()), []byte("$WORKDIR")) | CODE |
| CRITICAL | gopls/internal/test/marker/codeaction_test.go | 293 | rawResponse, err := mark.run.env.Editor.Server.ExecuteCommand(mark.run.env.Ctx, lspCmd) | CODE |
| CRITICAL | gopls/internal/test/marker/codeaction_test.go | 337 | s = strings.ReplaceAll(s, "file://$WORKDIR", string(mark.run.env.Sandbox.Workdir.RootURI())) | CODE |
| CRITICAL | gopls/internal/test/marker/codeaction_test.go | 338 | s = strings.ReplaceAll(s, "$WORKDIR", filepath.ToSlash(mark.run.env.Sandbox.Workdir.RootURI().Path())) | CODE |
| CRITICAL | gopls/internal/test/marker/codeaction_test.go | 370 | if _, err := mark.run.env.Editor.Server.ExecuteCommand(mark.run.env.Ctx, cmd); err != nil { | CODE |
| CRITICAL | gopls/internal/test/marker/marker_test.go | 391 | 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 | 401 | 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 | 1923 | abs := mark.run.env.Sandbox.Workdir.RootURI().Path() | CODE |
| CRITICAL | gopls/internal/test/marker/marker_test.go | 2418 | return strings.ReplaceAll(v, "$WORKDIR", mark.run.env.Sandbox.Workdir.RootURI().Path()) | CODE |
| CRITICAL | gopls/internal/test/marker/marker_test.go | 2467 | 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 | 534 | "foo.txt": "placeholder", | CODE |
| LOW | go/packages/overlay_test.go | 1021 | "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 | 236 | // 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 |
| LOW | internal/refactor/inline/inline.go | 2428 | // Step 1: build ValueSpecs, omitting the explicit type when | 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 |
| LOW | internal/refactor/inline/inline.go | 2428 | // Step 1: build ValueSpecs, omitting the explicit type when | 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 |