AI Slop Code Risk Monitor

libgit2/libgit2

SlopCodeMonitor badge for libgit2/libgit2 Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

A cross-platform, linkable library implementation of Git that you can use in your application.

1.1 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

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.

1.1
Adjusted Signal
1.1
Raw Pattern Score
100%
Time Factor
2026-10-16
Last Push
10.6K
Stars
C
Language
436.8K
Lines of Code
1.6K
Files
481
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

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.

Cognitive Ownership Risk 4.9/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 461 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.2/100 · LOW

Are imports declared and package/API names verified? 17 finding(s).

Agent Over-Engineering Ratio 0.3/100 · LOW

Are wrappers, guards, and repeated structures necessary? 16 finding(s).

PR Review Velocity Impact 5.5/100 · LOW

Which changes need focused human review? 481 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 3MEDIUM 1LOW 477

Directory Score Breakdown

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.

Pattern Findings

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.

Over-Commented Block441 hits · 418 pts
SeverityFileLineSnippetContext
LOWinclude/git2.h1/*COMMENT
LOWinclude/git2.h21#include "git2/clone.h"COMMENT
LOWinclude/git2.h41#include "git2/net.h"COMMENT
LOWinclude/git2.h61#include "git2/revwalk.h"COMMENT
LOWinclude/git2/remote.h1/*COMMENT
LOWinclude/git2/common.h41# if defined(_WIN32) && !defined(GIT_STATIC)COMMENT
LOWinclude/git2/common.h61# define GIT_CALLBACK(name) (*name)COMMENT
LOWinclude/git2/deprecated.h1/*COMMENT
LOWinclude/git2/deprecated.h21#include "filter.h"COMMENT
LOWinclude/git2/stdint.h141#define UINT16_MAX _UI16_MAXCOMMENT
LOWinclude/git2/stdint.h161#define INT_FAST8_MAX INT8_MAXCOMMENT
LOWinclude/git2/stdint.h181# define UINTPTR_MAX UINT32_MAXCOMMENT
LOWinclude/git2/stdint.h201COMMENT
LOWtests/util/posix.c1#ifndef _WIN32COMMENT
LOWtests/util/crlf.h1#ifndef INCLUDE_filter_crlf_h__COMMENT
LOWtests/util/crlf.h21#define ALL_LF_TEXT_AS_LF ALL_LF_TEXT_RAWCOMMENT
LOWtests/util/precompiled.h1#include "common.h"COMMENT
LOWtests/util/process/start.c1#include "clar_libgit2.h"COMMENT
LOWtests/resources/generate_crlf.sh1#!/usr/bin/env bashCOMMENT
LOWtests/resources/push.sh41 #*-. 951bbbb90e2259a4c8950db78946784fb53fcbce (HEAD, master) merge b3, b4, and b5 to masterCOMMENT
LOWtests/libgit2/precompiled.h1#include "common.h"COMMENT
LOWtests/libgit2/submodule/escape.c1#include "clar_libgit2.h"COMMENT
LOWtests/libgit2/core/oidarray.c1#include "clar_libgit2.h"COMMENT
LOWtests/libgit2/merge/files.c1#include "clar_libgit2.h"COMMENT
LOWtests/libgit2/merge/analysis.c1/*COMMENT
LOWtests/libgit2/merge/trees/automerge.c1#include "clar_libgit2.h"COMMENT
LOWtests/libgit2/merge/trees/treediff.c1#include "clar_libgit2.h"COMMENT
LOWtests/libgit2/merge/trees/whitespace.c1#include "clar_libgit2.h"COMMENT
LOWtests/libgit2/merge/workdir/submodules.c1#include "clar_libgit2.h"COMMENT
LOWtests/libgit2/merge/workdir/setup.c1#include "clar_libgit2.h"COMMENT
LOWtests/libgit2/merge/workdir/simple.c1#include "clar_libgit2.h"COMMENT
LOWtests/libgit2/bundle/parse.c1#include "clar_libgit2.h"COMMENT
LOWtests/libgit2/checkout/conflict.c1#include "clar_libgit2.h"COMMENT
LOWtests/libgit2/threads/diff.c1#include "clar_libgit2.h"COMMENT
LOWtests/libgit2/index/conflicts.h1#define CONFLICTS_ONE_ANCESTOR_OID "1f85ca51b8e0aac893a621b61a9c2661d6aa6d81"COMMENT
LOWtests/libgit2/index/reuc.c1#include "clar_libgit2.h"COMMENT
LOWtests/libgit2/grafts/parse.c1#include "clar_libgit2.h"COMMENT
LOWtests/libgit2/filter/crlf.h1#ifndef INCLUDE_filter_crlf_h__COMMENT
LOWtests/libgit2/filter/crlf.h21#define ALL_LF_TEXT_AS_LF ALL_LF_TEXT_RAWCOMMENT
LOWtests/libgit2/filter/custom.c1#include "clar_libgit2.h"COMMENT
LOWtests/libgit2/online/customcert.c1#include "clar.h"COMMENT
LOWtests/libgit2/online/clone.c1#include "clar_libgit2.h"COMMENT
LOWtests/libgit2/online/ssh_timeout.c1#include "clar_libgit2.h"COMMENT
LOWtests/libgit2/repo/discover.c1#include "clar_libgit2.h"COMMENT
LOWtests/libgit2/remote/insteadof.c1#include "clar_libgit2.h"COMMENT
LOWexamples/common.h21#include <string.h>COMMENT
LOWexamples/common.h41# define PRIuZ "Iu"COMMENT
LOWbenchmarks/cli/_script/flamegraph/stackcollapse-wcp.pl1#!/usr/bin/perl -wsCOMMENT
LOW…s/cli/_script/flamegraph/stackcollapse-faulthandler.pl1#!/usr/bin/perl -wsCOMMENT
LOWbenchmarks/cli/_script/flamegraph/files.pl1#!/usr/bin/perl -wCOMMENT
LOW…marks/cli/_script/flamegraph/stackcollapse-elfutils.pl1#!/usr/bin/perl -wCOMMENT
LOW…marks/cli/_script/flamegraph/stackcollapse-elfutils.pl21# You may not use this file except in compliance with the License.COMMENT
LOWbenchmarks/cli/_script/flamegraph/range-perf.pl1#!/usr/bin/perl -wCOMMENT
LOWbenchmarks/cli/_script/flamegraph/range-perf.pl61# IP only examples:COMMENT
LOWbenchmarks/cli/_script/flamegraph/range-perf.pl81# 7f92bdd98965 Ljava/io/OutputStream;::write (/tmp/perf-11936.map)COMMENT
LOW…marks/cli/_script/flamegraph/stackcollapse-bpftrace.pl1#!/usr/bin/perl -wCOMMENT
LOW…marks/cli/_script/flamegraph/stackcollapse-bpftrace.pl21# ]: 3COMMENT
LOW…marks/cli/_script/flamegraph/stackcollapse-vtune-mc.pl1#!/usr/bin/perl -wCOMMENT
LOW…marks/cli/_script/flamegraph/stackcollapse-vtune-mc.pl21# -report-out allocations.csv -format csv \COMMENT
LOW…chmarks/cli/_script/flamegraph/stackcollapse-jstack.pl1#!/usr/bin/perl -wCOMMENT
381 more matches not shown…
Fake / Example Data15 hits · 15 pts
SeverityFileLineSnippetContext
LOWtests/libgit2/revert/workdir.c190 cl_git_pass(git_signature_new(&signature, "Reverter", "reverter@example.org", time(NULL), 0));CODE
LOWtests/libgit2/revert/workdir.c240 cl_git_pass(git_signature_new(&signature, "Reverter", "reverter@example.org", time(NULL), 0));CODE
LOWtests/libgit2/revert/workdir.c289 cl_git_pass(git_signature_new(&signature, "Reverter", "reverter@example.org", time(NULL), 0));CODE
LOWtests/libgit2/cherrypick/workdir.c58 cl_git_pass(git_signature_new(&signature, "Picker", "picker@example.org", time(NULL), 0));CODE
LOWtests/libgit2/cherrypick/workdir.c113 cl_git_pass(git_signature_new(&signature, "Picker", "picker@example.org", time(NULL), 0));CODE
LOWtests/libgit2/message/trailer.c28 {"Signed-off-by", "foo@bar.com"},CODE
LOWtests/libgit2/message/trailer.c182 "Lorem ipsum\n"CODE
LOWtests/libgit2/diff/drivers.c145 const char *base = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non nisi ligula. Ut viverra enim sed lCODE
LOWtests/libgit2/diff/drivers.c145 const char *base = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non nisi ligula. Ut viverra enim sed lCODE
LOWtests/libgit2/object/blob/fromstream.c61static void assert_named_chunked_blob(const char *expected_sha, const char *fake_name)CODE
LOWtests/libgit2/object/blob/fromstream.c69 cl_git_pass(git_blob_create_from_stream(&stream, repo, fake_name));CODE
LOWtests/libgit2/refs/branches/delete.c141 cl_git_pass(git_signature_now(&sig, "Me", "user@example.com"));CODE
LOWtests/libgit2/refs/branches/delete.c184 cl_git_pass(git_signature_now(&sig, "Me", "user@example.com"));CODE
LOWtests/libgit2/mailmap/basic.c22 { "Foo bar", "foo@bar.com", NULL, "foo@baz.com" },CODE
LOWtests/libgit2/mailmap/basic.c23 { "Foo bar", "foo@bar.com", NULL, "foo@bal.com" },CODE
Empty Error Handlers3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHdeps/clar/generate.py241except (IOError, ValueError):CODE
HIGHdeps/clar/generate.py298except OSError:CODE
HIGHdeps/clar/generate.py300except IOError:CODE
Hyper-Verbose Identifiers12 hits · 12 pts
SeverityFileLineSnippetContext
LOWscript/api-docs/api-generator.js685function resolveFunctionPointerTypedef(location, typedef) {CODE
LOWscript/api-docs/api-generator.js997function lastCommentIsGroupDelimiter(decls) {CODE
LOWscript/api-docs/docs-generator.js207function produceSignatureForFunction(version, api, type) {CODE
LOWscript/api-docs/docs-generator.js259function produceFunctionParameters(version, api, type) {CODE
LOWscript/api-docs/docs-generator.js334function produceSignatureForObject(version, api, type) {CODE
LOWscript/api-docs/docs-generator.js356function produceSignatureForStruct(version, api, type) {CODE
LOWscript/api-docs/docs-generator.js574async function produceDocumentationForApi(version, api, type) {CODE
LOWscript/api-docs/docs-generator.js905async function produceDocumentationForApis(version, apiData) {CODE
LOWscript/api-docs/docs-generator.js1055async function produceDocumentationIndex(version, apiData) {CODE
LOWscript/api-docs/docs-generator.js1068async function documentationIsUpToDateForVersion(version, apiData) {CODE
LOWscript/api-docs/docs-generator.js1079async function produceDocumentationMetadata(version, apiData) {CODE
LOWscript/api-docs/docs-generator.js1107async function produceDocumentationForVersion(version, apiData) {CODE
Slop Phrases3 hits · 4 pts
SeverityFileLineSnippetContext
LOWinclude/git2/repository.h716 * Use this function to get the contents of this file. Don't forget toCOMMENT
LOWsrc/libgit2/indexer.c1417 /* And don't forget to rename the packfile to its new place. */COMMENT
LOWsrc/libgit2/mwindow.c389 * enough space. Don't forget to add it to your listCOMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMdeps/clar/generate.py5# This file is part of clar, distributed under the ISC license.COMMENT
Unused Imports2 hits · 2 pts
SeverityFileLineSnippetContext
LOWscript/release.py7CODE
LOWdeps/clar/generate.py9CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWbenchmarks/cli/_script/flamegraph/stackcollapse-pmc.pl32# Usage:COMMENT
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/libgit2/ignore.c76 /* Otherwise, we need to check if the shorterCOMMENT
AI Structural Patterns1 hit · 1 pts
SeverityFileLineSnippetContext
LOWscript/release.py130CODE
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippetContext
LOWdeps/clar/generate.py109CODE