A cross-platform, linkable library implementation of Git that you can use in your application.
This report summarizes scanner evidence for libgit2/libgit2, a C project with 10,640 GitHub stars. SynthScan examined 436,832 lines of code across 1585 source files, recording 481 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 1.1 (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? 461 finding(s).
Are imports declared and package/API names verified? 17 finding(s).
Are wrappers, guards, and repeated structures necessary? 16 finding(s).
Which changes need focused human review? 481 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 481 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 | include/git2.h | 1 | /* | COMMENT |
| LOW | include/git2.h | 21 | #include "git2/clone.h" | COMMENT |
| LOW | include/git2.h | 41 | #include "git2/net.h" | COMMENT |
| LOW | include/git2.h | 61 | #include "git2/revwalk.h" | COMMENT |
| LOW | include/git2/remote.h | 1 | /* | COMMENT |
| LOW | include/git2/common.h | 41 | # if defined(_WIN32) && !defined(GIT_STATIC) | COMMENT |
| LOW | include/git2/common.h | 61 | # define GIT_CALLBACK(name) (*name) | COMMENT |
| LOW | include/git2/deprecated.h | 1 | /* | COMMENT |
| LOW | include/git2/deprecated.h | 21 | #include "filter.h" | COMMENT |
| LOW | include/git2/stdint.h | 141 | #define UINT16_MAX _UI16_MAX | COMMENT |
| LOW | include/git2/stdint.h | 161 | #define INT_FAST8_MAX INT8_MAX | COMMENT |
| LOW | include/git2/stdint.h | 181 | # define UINTPTR_MAX UINT32_MAX | COMMENT |
| LOW | include/git2/stdint.h | 201 | COMMENT | |
| LOW | tests/util/posix.c | 1 | #ifndef _WIN32 | COMMENT |
| LOW | tests/util/crlf.h | 1 | #ifndef INCLUDE_filter_crlf_h__ | COMMENT |
| LOW | tests/util/crlf.h | 21 | #define ALL_LF_TEXT_AS_LF ALL_LF_TEXT_RAW | COMMENT |
| LOW | tests/util/precompiled.h | 1 | #include "common.h" | COMMENT |
| LOW | tests/util/process/start.c | 1 | #include "clar_libgit2.h" | COMMENT |
| LOW | tests/resources/generate_crlf.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tests/resources/push.sh | 41 | #*-. 951bbbb90e2259a4c8950db78946784fb53fcbce (HEAD, master) merge b3, b4, and b5 to master | COMMENT |
| LOW | tests/libgit2/precompiled.h | 1 | #include "common.h" | COMMENT |
| LOW | tests/libgit2/submodule/escape.c | 1 | #include "clar_libgit2.h" | COMMENT |
| LOW | tests/libgit2/core/oidarray.c | 1 | #include "clar_libgit2.h" | COMMENT |
| LOW | tests/libgit2/merge/files.c | 1 | #include "clar_libgit2.h" | COMMENT |
| LOW | tests/libgit2/merge/analysis.c | 1 | /* | COMMENT |
| LOW | tests/libgit2/merge/trees/automerge.c | 1 | #include "clar_libgit2.h" | COMMENT |
| LOW | tests/libgit2/merge/trees/treediff.c | 1 | #include "clar_libgit2.h" | COMMENT |
| LOW | tests/libgit2/merge/trees/whitespace.c | 1 | #include "clar_libgit2.h" | COMMENT |
| LOW | tests/libgit2/merge/workdir/submodules.c | 1 | #include "clar_libgit2.h" | COMMENT |
| LOW | tests/libgit2/merge/workdir/setup.c | 1 | #include "clar_libgit2.h" | COMMENT |
| LOW | tests/libgit2/merge/workdir/simple.c | 1 | #include "clar_libgit2.h" | COMMENT |
| LOW | tests/libgit2/bundle/parse.c | 1 | #include "clar_libgit2.h" | COMMENT |
| LOW | tests/libgit2/checkout/conflict.c | 1 | #include "clar_libgit2.h" | COMMENT |
| LOW | tests/libgit2/threads/diff.c | 1 | #include "clar_libgit2.h" | COMMENT |
| LOW | tests/libgit2/index/conflicts.h | 1 | #define CONFLICTS_ONE_ANCESTOR_OID "1f85ca51b8e0aac893a621b61a9c2661d6aa6d81" | COMMENT |
| LOW | tests/libgit2/index/reuc.c | 1 | #include "clar_libgit2.h" | COMMENT |
| LOW | tests/libgit2/grafts/parse.c | 1 | #include "clar_libgit2.h" | COMMENT |
| LOW | tests/libgit2/filter/crlf.h | 1 | #ifndef INCLUDE_filter_crlf_h__ | COMMENT |
| LOW | tests/libgit2/filter/crlf.h | 21 | #define ALL_LF_TEXT_AS_LF ALL_LF_TEXT_RAW | COMMENT |
| LOW | tests/libgit2/filter/custom.c | 1 | #include "clar_libgit2.h" | COMMENT |
| LOW | tests/libgit2/online/customcert.c | 1 | #include "clar.h" | COMMENT |
| LOW | tests/libgit2/online/clone.c | 1 | #include "clar_libgit2.h" | COMMENT |
| LOW | tests/libgit2/online/ssh_timeout.c | 1 | #include "clar_libgit2.h" | COMMENT |
| LOW | tests/libgit2/repo/discover.c | 1 | #include "clar_libgit2.h" | COMMENT |
| LOW | tests/libgit2/remote/insteadof.c | 1 | #include "clar_libgit2.h" | COMMENT |
| LOW | examples/common.h | 21 | #include <string.h> | COMMENT |
| LOW | examples/common.h | 41 | # define PRIuZ "Iu" | COMMENT |
| LOW | benchmarks/cli/_script/flamegraph/stackcollapse-wcp.pl | 1 | #!/usr/bin/perl -ws | COMMENT |
| LOW | …s/cli/_script/flamegraph/stackcollapse-faulthandler.pl | 1 | #!/usr/bin/perl -ws | COMMENT |
| LOW | benchmarks/cli/_script/flamegraph/files.pl | 1 | #!/usr/bin/perl -w | COMMENT |
| LOW | …marks/cli/_script/flamegraph/stackcollapse-elfutils.pl | 1 | #!/usr/bin/perl -w | COMMENT |
| LOW | …marks/cli/_script/flamegraph/stackcollapse-elfutils.pl | 21 | # You may not use this file except in compliance with the License. | COMMENT |
| LOW | benchmarks/cli/_script/flamegraph/range-perf.pl | 1 | #!/usr/bin/perl -w | COMMENT |
| LOW | benchmarks/cli/_script/flamegraph/range-perf.pl | 61 | # IP only examples: | COMMENT |
| LOW | benchmarks/cli/_script/flamegraph/range-perf.pl | 81 | # 7f92bdd98965 Ljava/io/OutputStream;::write (/tmp/perf-11936.map) | COMMENT |
| LOW | …marks/cli/_script/flamegraph/stackcollapse-bpftrace.pl | 1 | #!/usr/bin/perl -w | COMMENT |
| LOW | …marks/cli/_script/flamegraph/stackcollapse-bpftrace.pl | 21 | # ]: 3 | COMMENT |
| LOW | …marks/cli/_script/flamegraph/stackcollapse-vtune-mc.pl | 1 | #!/usr/bin/perl -w | COMMENT |
| LOW | …marks/cli/_script/flamegraph/stackcollapse-vtune-mc.pl | 21 | # -report-out allocations.csv -format csv \ | COMMENT |
| LOW | …chmarks/cli/_script/flamegraph/stackcollapse-jstack.pl | 1 | #!/usr/bin/perl -w | COMMENT |
| 381 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/libgit2/revert/workdir.c | 190 | cl_git_pass(git_signature_new(&signature, "Reverter", "reverter@example.org", time(NULL), 0)); | CODE |
| LOW | tests/libgit2/revert/workdir.c | 240 | cl_git_pass(git_signature_new(&signature, "Reverter", "reverter@example.org", time(NULL), 0)); | CODE |
| LOW | tests/libgit2/revert/workdir.c | 289 | cl_git_pass(git_signature_new(&signature, "Reverter", "reverter@example.org", time(NULL), 0)); | CODE |
| LOW | tests/libgit2/cherrypick/workdir.c | 58 | cl_git_pass(git_signature_new(&signature, "Picker", "picker@example.org", time(NULL), 0)); | CODE |
| LOW | tests/libgit2/cherrypick/workdir.c | 113 | cl_git_pass(git_signature_new(&signature, "Picker", "picker@example.org", time(NULL), 0)); | CODE |
| LOW | tests/libgit2/message/trailer.c | 28 | {"Signed-off-by", "foo@bar.com"}, | CODE |
| LOW | tests/libgit2/message/trailer.c | 182 | "Lorem ipsum\n" | CODE |
| LOW | tests/libgit2/diff/drivers.c | 145 | const char *base = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non nisi ligula. Ut viverra enim sed l | CODE |
| LOW | tests/libgit2/diff/drivers.c | 145 | const char *base = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non nisi ligula. Ut viverra enim sed l | CODE |
| LOW | tests/libgit2/object/blob/fromstream.c | 61 | static void assert_named_chunked_blob(const char *expected_sha, const char *fake_name) | CODE |
| LOW | tests/libgit2/object/blob/fromstream.c | 69 | cl_git_pass(git_blob_create_from_stream(&stream, repo, fake_name)); | CODE |
| LOW | tests/libgit2/refs/branches/delete.c | 141 | cl_git_pass(git_signature_now(&sig, "Me", "user@example.com")); | CODE |
| LOW | tests/libgit2/refs/branches/delete.c | 184 | cl_git_pass(git_signature_now(&sig, "Me", "user@example.com")); | CODE |
| LOW | tests/libgit2/mailmap/basic.c | 22 | { "Foo bar", "foo@bar.com", NULL, "foo@baz.com" }, | CODE |
| LOW | tests/libgit2/mailmap/basic.c | 23 | { "Foo bar", "foo@bar.com", NULL, "foo@bal.com" }, | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | deps/clar/generate.py | 241 | except (IOError, ValueError): | CODE |
| HIGH | deps/clar/generate.py | 298 | except OSError: | CODE |
| HIGH | deps/clar/generate.py | 300 | except IOError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | script/api-docs/api-generator.js | 685 | function resolveFunctionPointerTypedef(location, typedef) { | CODE |
| LOW | script/api-docs/api-generator.js | 997 | function lastCommentIsGroupDelimiter(decls) { | CODE |
| LOW | script/api-docs/docs-generator.js | 207 | function produceSignatureForFunction(version, api, type) { | CODE |
| LOW | script/api-docs/docs-generator.js | 259 | function produceFunctionParameters(version, api, type) { | CODE |
| LOW | script/api-docs/docs-generator.js | 334 | function produceSignatureForObject(version, api, type) { | CODE |
| LOW | script/api-docs/docs-generator.js | 356 | function produceSignatureForStruct(version, api, type) { | CODE |
| LOW | script/api-docs/docs-generator.js | 574 | async function produceDocumentationForApi(version, api, type) { | CODE |
| LOW | script/api-docs/docs-generator.js | 905 | async function produceDocumentationForApis(version, apiData) { | CODE |
| LOW | script/api-docs/docs-generator.js | 1055 | async function produceDocumentationIndex(version, apiData) { | CODE |
| LOW | script/api-docs/docs-generator.js | 1068 | async function documentationIsUpToDateForVersion(version, apiData) { | CODE |
| LOW | script/api-docs/docs-generator.js | 1079 | async function produceDocumentationMetadata(version, apiData) { | CODE |
| LOW | script/api-docs/docs-generator.js | 1107 | async function produceDocumentationForVersion(version, apiData) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | include/git2/repository.h | 716 | * Use this function to get the contents of this file. Don't forget to | COMMENT |
| LOW | src/libgit2/indexer.c | 1417 | /* And don't forget to rename the packfile to its new place. */ | COMMENT |
| LOW | src/libgit2/mwindow.c | 389 | * enough space. Don't forget to add it to your list | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | deps/clar/generate.py | 5 | # This file is part of clar, distributed under the ISC license. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | script/release.py | 7 | CODE | |
| LOW | deps/clar/generate.py | 9 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | benchmarks/cli/_script/flamegraph/stackcollapse-pmc.pl | 32 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/libgit2/ignore.c | 76 | /* Otherwise, we need to check if the shorter | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | script/release.py | 130 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | deps/clar/generate.py | 109 | CODE |