A highly extensible Git implementation in pure Go.
This report summarizes scanner evidence for go-git/go-git, a Go project with 7,839 GitHub stars. SynthScan examined 179,186 lines of code across 749 source files, recording 456 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 2.7 (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? 439 finding(s).
Are imports declared and package/API names verified? 14 finding(s).
Are wrappers, guards, and repeated structures necessary? 3 finding(s).
Which changes need focused human review? 456 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 456 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | options.go | 41 | // References with unusable names are skipped. To diagnose skipped references, | COMMENT |
| LOW | options.go | 61 | // remote-tracking branches, notes etc.) and sets up a refspec configuration | COMMENT |
| LOW | options.go | 81 | // by default is AllTags. | COMMENT |
| LOW | options.go | 181 | RemoteURL string | COMMENT |
| LOW | options.go | 221 | TagFollowing = plumbing.TagFollowing | COMMENT |
| LOW | options.go | 241 | // each remote branch history. | COMMENT |
| LOW | options.go | 281 | COMMENT | |
| LOW | options.go | 301 | Progress sideband.Progress | COMMENT |
| LOW | options.go | 381 | ) | COMMENT |
| LOW | options.go | 421 | COMMENT | |
| LOW | options.go | 441 | // SoftReset does not touch the index file or the working tree at all (but | COMMENT |
| LOW | options.go | 521 | To plumbing.Hash | COMMENT |
| LOW | options.go | 581 | COMMENT | |
| LOW | worktree_fs.go | 21 | // | COMMENT |
| LOW | worktree_fs.go | 41 | // boundary. Two layers apply: | COMMENT |
| LOW | worktree_fs.go | 281 | // filesystem. validPath guards the path string. This guards the on-disk | COMMENT |
| LOW | worktree_fs.go | 301 | } | COMMENT |
| LOW | worktree_fs_test.go | 361 | // TestWorktreeFilesystemRejectsSymlinkTraversal pins the leading-path | COMMENT |
| LOW | worktree_fs_test.go | 1061 | } | COMMENT |
| LOW | worktree_fs_test.go | 1161 | } | COMMENT |
| LOW | worktree_fs_test.go | 1281 | // final-position ".git" and HFS+/NTFS .git-disguise variants on | COMMENT |
| LOW | remote.go | 381 | // transport operations. | COMMENT |
| LOW | remote.go | 661 | // | COMMENT |
| LOW | remote.go | 681 | COMMENT | |
| LOW | remote.go | 761 | } | COMMENT |
| LOW | remote.go | 1341 | COMMENT | |
| LOW | worktree.go | 441 | if entry.Mode != filemode.Dir { | COMMENT |
| LOW | worktree.go | 681 | // | COMMENT |
| LOW | worktree.go | 721 | if err := rmFileAndDirsIfEmpty(fs, name); err != nil { | COMMENT |
| LOW | worktree.go | 1001 | return w.addIndexFromFile(fs, name, e.Hash, idx) | COMMENT |
| LOW | worktree.go | 1521 | } | COMMENT |
| LOW | blame.go | 21 | type BlameResult struct { | COMMENT |
| LOW | doc.go | 1 | // Package git is a highly extensible git implementation in pure Go. | COMMENT |
| LOW | repository_test.go | 541 | // | COMMENT |
| LOW | submodule.go | 181 | } | COMMENT |
| LOW | repository_extensions.go | 21 | // is using a format version that is not supported. | COMMENT |
| LOW | worktree_status.go | 161 | } | COMMENT |
| LOW | worktree_reset_bench_test.go | 1 | package git | COMMENT |
| LOW | status.go | 81 | Copied StatusCode = 'C' | COMMENT |
| LOW | repository.go | 1021 | return string(b), nil | COMMENT |
| LOW | repository.go | 1041 | // ref, err := r.Tag("v0.1.0") | COMMENT |
| LOW | repository.go | 1681 | // | COMMENT |
| LOW | worktree_status_bench_test.go | 301 | // its own .gitignore, the shape of a monorepo in which each package carries | COMMENT |
| LOW | config/config.go | 61 | ) | COMMENT |
| LOW | config/config.go | 81 | // FileMode defines whether the executable bit of working tree files is to be honored. | COMMENT |
| LOW | config/config.go | 161 | // e.g. when initializing a new repository or when cloning | COMMENT |
| LOW | config/config.go | 181 | ObjectFormat format.ObjectFormat | COMMENT |
| LOW | config/config.go | 201 | COMMENT | |
| LOW | config/config.go | 221 | // Name is the personal name of the author and the committer of a commit. | COMMENT |
| LOW | config/config.go | 1041 | COMMENT | |
| LOW | config/branch.go | 21 | // Remote name of remote to track | COMMENT |
| LOW | config/modules.go | 121 | } | COMMENT |
| LOW | tests/fuzz/ossfuzz_test.go | 1 | // Package fuzz_test asserts the rules the OSS-Fuzz build imposes on this | COMMENT |
| LOW | tests/gitcompare/status_bench_test.go | 1 | // Package gitcompare_test measures go-git against the reference git binary on | COMMENT |
| LOW | internal/pathutil/path_util.go | 41 | // dot, so "." finds ".." and "" finds a bare "." — each with the disguises | COMMENT |
| LOW | internal/pathutil/tree.go | 21 | // variants — at every position, not just the root. | COMMENT |
| LOW | internal/pathutil/ntfs.go | 1 | package pathutil | COMMENT |
| LOW | internal/transport/v2.go | 41 | // CommandFunc runs a single Protocol v2 command: it encodes req into the | COMMENT |
| LOW | internal/transport/v2.go | 141 | type FetchRound func(args *packp.FetchArgs) (out *packp.FetchOutput, packReader io.Reader, err error) | COMMENT |
| LOW | internal/test/gitenv/apple_git.go | 21 | // check before starting Git. Under concurrent test load this exceeded the git | COMMENT |
| 352 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | worktree_commit_test.go | 970 | // Step 1: Write LICENSE | COMMENT |
| LOW | worktree_commit_test.go | 986 | // Step 2: Write foo. | COMMENT |
| LOW | worktree_commit_test.go | 1000 | // Step 3: Check | COMMENT |
| LOW | worktree.go | 704 | // Step 1: delete files removed from the tracked tree. | COMMENT |
| LOW | worktree.go | 726 | // Step 2: write files that are in the new index but missing or stale | COMMENT |
| LOW | worktree.go | 776 | // Step 3: remove tracked files that are SkipWorktree=true from disk. | COMMENT |
| LOW | repository_test.go | 576 | // Step 1: clone the default branch at depth=1. | COMMENT |
| LOW | repository_test.go | 590 | // Step 2: fetch the specific commit by hash using "+<hash>:<hash>". | COMMENT |
| LOW⚡ | repository_test.go | 602 | // Step 3: the commit object MUST now be present in the object store. | COMMENT |
| LOW⚡ | repository_test.go | 608 | // Step 4: regression 2 — no spurious refs/heads/<sha> must be created. | COMMENT |
| LOW⚡ | repository_test.go | 615 | // Step 5: the commit must also be resolvable as a revision. | COMMENT |
| LOW | repository_test.go | 626 | // Step 6: downstream effect — Worktree.Checkout must also succeed. | COMMENT |
| LOW | plumbing/format/packfile/encoder.go | 177 | // We need to check if we already write that object due a cyclic delta chain | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | worktree_commit_test.go | 970 | // Step 1: Write LICENSE | COMMENT |
| LOW | worktree_commit_test.go | 986 | // Step 2: Write foo. | COMMENT |
| LOW | worktree_commit_test.go | 1000 | // Step 3: Check | COMMENT |
| LOW | worktree.go | 704 | // Step 1: delete files removed from the tracked tree. | COMMENT |
| LOW | worktree.go | 726 | // Step 2: write files that are in the new index but missing or stale | COMMENT |
| LOW | worktree.go | 776 | // Step 3: remove tracked files that are SkipWorktree=true from disk. | COMMENT |
| LOW | repository_test.go | 576 | // Step 1: clone the default branch at depth=1. | COMMENT |
| LOW | repository_test.go | 590 | // Step 2: fetch the specific commit by hash using "+<hash>:<hash>". | COMMENT |
| LOW⚡ | repository_test.go | 602 | // Step 3: the commit object MUST now be present in the object store. | COMMENT |
| LOW⚡ | repository_test.go | 608 | // Step 4: regression 2 — no spurious refs/heads/<sha> must be created. | COMMENT |
| LOW⚡ | repository_test.go | 615 | // Step 5: the commit must also be resolvable as a revision. | COMMENT |
| LOW | repository_test.go | 626 | // Step 6: downstream effect — Worktree.Checkout must also succeed. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | signer_test.go | 42 | Name: "John Doe", | CODE |
| LOW | worktree_status_test.go | 131 | sig := &object.Signature{Name: "test", Email: "test@test.com"} | CODE |
| LOW | worktree_test.go | 4461 | os.WriteFile(filepath.Join(dir, "README"), []byte("placeholder"), 0o644) | CODE |
| LOW | config/config_test.go | 82 | s.Equal("John Doe", cfg.User.Name) | CODE |
| LOW | storage/filesystem/object_test.go | 942 | err = os.WriteFile(badTarget, []byte("placeholder"), 0o644) | CODE |
| LOW | plumbing/object/object_test.go | 133 | Email: "foo@bar.com", | CODE |
| LOW | plumbing/object/object_test.go | 138 | Email: "foo@bar.com", | CODE |
| LOW | plumbing/object/object_test.go | 153 | Email: "foo@bar.com", | CODE |
| LOW | plumbing/object/object_test.go | 158 | Email: "foo@bar.com", | CODE |
| LOW | _examples/commit/main.go | 54 | Name: "John Doe", | CODE |
| LOW | _examples/clone-commit-push/main.go | 59 | Name: "John Doe", | CODE |
| LOW | _examples/sha256/main.go | 52 | Name: "John Doe", | CODE |
| LOW | _examples/restore/main.go | 33 | Name: "John Doe", | CODE |
| LOW | x/plumbing/worktree/worktree_test.go | 783 | Author: &object.Signature{Name: "Test", Email: "test@test.com", When: time.Now()}, | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | repository_test.go | 762 | // ── Build the source repo using PlainInit + Worktree.Commit ────────── | COMMENT |
| MEDIUM | repository_test.go | 797 | // ── Clone from the detached-HEAD source ─────────────────────────────── | COMMENT |
| MEDIUM | repository_test.go | 809 | // ── Verify the cloned repo behaves like `git clone` ────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | internal/server/git/git_test.go | 189 | // robust against goroutine scheduling skew on shared CI runners. | COMMENT |
| MEDIUM | plumbing/format/config/decoder_test.go | 212 | // absolute duration, which is far more robust on a loaded machine than a | COMMENT |