AI Slop Code Risk Monitor

floooh/sokol

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

minimal cross-platform standalone C headers

3.7 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for floooh/sokol, a C project with 10,400 GitHub stars. SynthScan examined 111,481 lines of code across 135 source files, recording 295 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 3.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.

3.7
Adjusted Signal
3.7
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
10.4K
Stars
C
Language
111.5K
Lines of Code
135
Files
295
Pattern Hits
2026-10-31
Scan Date
0.11
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 10.4/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 4.9/100 · LOW

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

Agent Over-Engineering Ratio 2.6/100 · LOW

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

PR Review Velocity Impact 16.7/100 · LOW

Which changes need focused human review? 295 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 15MEDIUM 19LOW 261

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 295 distinct pattern matches across 8 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 Block221 hits · 208 pts
SeverityFileLineSnippetContext
LOWsokol_args.h361#ifdef __cplusplusCOMMENT
LOWsokol_args.h381#if defined(__EMSCRIPTEN__)COMMENT
LOWsokol_args.h401 #elseCOMMENT
LOWsokol_audio.h541 3. This notice may not be removed or altered from any sourceCOMMENT
LOWsokol_audio.h721COMMENT
LOWsokol_audio.h741 #ifndef NDEBUGCOMMENT
LOWsokol_audio.h761COMMENT
LOWsokol_audio.h781#elif defined(__ANDROID__)COMMENT
LOWsokol_audio.h801#if defined(SOKOL_DUMMY_BACKEND)COMMENT
LOWsokol_audio.h821 #endifCOMMENT
LOWsokol_audio.h841 #endifCOMMENT
LOWsokol_audio.h861 #if __has_feature(objc_arc) && !__has_feature(objc_arc_fields)COMMENT
LOWsokol_audio.h881 #include <alloca.h>COMMENT
LOWsokol_log.h101 3. This notice may not be removed or altered from any sourceCOMMENT
LOWsokol_log.h141// ██ ███ ███ ██████ ██ ███████ ███ ███ ███████ ███ ██ ████████ █████ ████████ ██ ██████ ███ ██COMMENT
LOWsokol_log.h161 #define SOKOL_ASSERT(c) assert(c)COMMENT
LOWsokol_log.h181#elif defined(_WIN32)COMMENT
LOWsokol_log.h201#ifndef NOMINMAXCOMMENT
LOWsokol_app.h1341 3. This notice may not be removed or altered from any sourceCOMMENT
LOWsokol_app.h2301COMMENT
LOWsokol_app.h2321COMMENT
LOWsokol_app.h2341#define _SAPP_MAX_TITLE_LENGTH (128)COMMENT
LOWsokol_app.h2361 #elseCOMMENT
LOWsokol_app.h2381 #error("sokol_app.h: unknown 3D API selected for Win32, must be SOKOL_D3D11, SOKOL_GLCORE, SOKOL_WGPU, SOKOL_VULKAN COMMENT
LOWsokol_app.h2401 #endifCOMMENT
LOWsokol_app.h2421COMMENT
LOWsokol_app.h2441COMMENT
LOWsokol_app.h2461 #ifndef GL_SILENCE_DEPRECATIONCOMMENT
LOWsokol_app.h2481 #import <QuartzCore/CADisplayLink.h>COMMENT
LOWsokol_app.h2501 #pragma warning(disable:4055) /* 'type cast': from data pointer */COMMENT
LOWsokol_app.h2521COMMENT
LOWsokol_app.h2541COMMENT
LOWsokol_app.h2561 #include <unistd.h>COMMENT
LOWsokol_app.h2581 #include <X11/Xmd.h> /* CARD32 */COMMENT
LOWsokol_app.h2601#endifCOMMENT
LOWsokol_app.h3001#define WGL_TYPE_RGBA_ARB 0x202bCOMMENT
LOWsokol_app.h3101 EGLContext context;COMMENT
LOWsokol_app.h3121#define GLX_DOUBLEBUFFER 5COMMENT
LOWsokol_app.h3341 #elif defined(_SAPP_EMSCRIPTEN)COMMENT
LOWsokol_app.h3361 #if defined(_SAPP_ANY_GL)COMMENT
LOWsokol_app.h3381static const char* _sapp_log_messages[] = {COMMENT
LOWsokol_app.h4381//COMMENT
LOWsokol_app.h5241 _sapp.vk.device,COMMENT
LOWsokol_app.h5301COMMENT
LOWsokol_app.h7221@endCOMMENT
LOWsokol_app.h8101 // NOTE: charCode doesn't appear to be supported on Android ChromeCOMMENT
LOWsokol_app.h8981 #if defined(SOKOL_DEBUG)COMMENT
LOWsokol_app.h14441 _sapp_discard_state();COMMENT
LOWsokol_time.h101COMMENT
LOWsokol_time.h141#endifCOMMENT
LOWsokol_fetch.h921 3. This notice may not be removed or altered from any sourceCOMMENT
LOWsokol_fetch.h1121inline sfetch_handle_t sfetch_send(const sfetch_request_t& request) { return sfetch_send(&request); }COMMENT
LOWsokol_fetch.h1141#include <string.h> /* memset, memcpy */COMMENT
LOWsokol_fetch.h1161#ifndef SOKOL_ASSERTCOMMENT
LOWsokol_fetch.h1181 #define _SFETCH_PLATFORM_WINDOWS (0)COMMENT
LOWsokol_fetch.h1201 #define _SFETCH_PLATFORM_WINDOWS (0)COMMENT
LOWsokol_fetch.h1361 sfetch_desc_t desc;COMMENT
LOWsokol_fetch.h1381//COMMENT
LOWsokol_glue.h81 distribution.COMMENT
LOWsokol_glue.h121#endifCOMMENT
161 more matches not shown…
Cross-Language Confusion15 hits · 108 pts
SeverityFileLineSnippetContext
HIGH⚡bindgen/gen_odin.py375 l(f' when USE_GL && ODIN_ARCH == .arm64 && DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dyCODE
HIGH⚡bindgen/gen_odin.py376 l(f' else when USE_GL && ODIN_ARCH == .arm64 && !DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dyCODE
HIGH⚡bindgen/gen_odin.py377 l(f' else when USE_GL && ODIN_ARCH == .amd64 && DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dyCODE
HIGH⚡bindgen/gen_odin.py378 l(f' else when USE_GL && ODIN_ARCH == .amd64 && !DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dyCODE
HIGH⚡bindgen/gen_odin.py379 l(f' else when !USE_GL && ODIN_ARCH == .arm64 && DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dyCODE
HIGH⚡bindgen/gen_odin.py380 l(f' else when !USE_GL && ODIN_ARCH == .arm64 && !DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dyCODE
HIGH⚡bindgen/gen_odin.py381 l(f' else when !USE_GL && ODIN_ARCH == .amd64 && DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dyCODE
HIGH⚡bindgen/gen_odin.py382 l(f' else when !USE_GL && ODIN_ARCH == .amd64 && !DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dyCODE
HIGHbindgen/gen_odin.py410 l( '} else when ODIN_ARCH == .wasm32 || ODIN_ARCH == .wasm64p32 {')CODE
HIGH⚡bindgen/gen_zig.py330 l(f" {field_name}: [*c]const u8 = null,")CODE
HIGH⚡bindgen/gen_zig.py332 l(f" {field_name}: ?*const anyopaque = null,")CODE
HIGH⚡bindgen/gen_zig.py334 l(f" {field_name}: ?*anyopaque = null,")CODE
HIGH⚡bindgen/gen_zig.py336 l(f" {field_name}: ?[*]const {as_zig_prim_type(util.extract_ptr_type(field_type))} = null,")CODE
HIGH⚡bindgen/gen_zig.py338 l(f" {field_name}: ?*const fn ({funcptr_args_c(field_type, prefix)}) callconv(.c) {funcptr_result_c(fieldCODE
HIGHbindgen/gen_zig.py358 l(f" {field_name}: [{array_sizes[0]}]?*const anyopaque = @splat(null),")CODE
Decorative Section Separators18 hits · 54 pts
SeverityFileLineSnippetContext
MEDIUMutil/gen_sokol_color.py1#-------------------------------------------------------------------------------COMMENT
MEDIUMutil/gen_sokol_color.py3#-------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_odin.py2#-------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_odin.py6#-------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_d.py2#-------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_d.py10#-------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_c3.py2#-------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_c3.py6#-------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_zig.py2#-------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_zig.py9#-------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_jai.py2#-------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_jai.py6#-------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_rust.py2# -------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_rust.py8# -------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_ir.py2#-------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_ir.py4#-------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_nim.py2#-------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_nim.py8#-------------------------------------------------------------------------------COMMENT
Deep Nesting31 hits · 31 pts
SeverityFileLineSnippetContext
LOWbindgen/gen_odin.py232CODE
LOWbindgen/gen_odin.py325CODE
LOWbindgen/gen_odin.py489CODE
LOWbindgen/gen_odin.py512CODE
LOWbindgen/gen_d.py289CODE
LOWbindgen/gen_d.py418CODE
LOWbindgen/gen_c3.py256CODE
LOWbindgen/gen_c3.py383CODE
LOWbindgen/gen_c3.py404CODE
LOWbindgen/gen_zig.py190CODE
LOWbindgen/gen_zig.py216CODE
LOWbindgen/gen_zig.py267CODE
LOWbindgen/gen_zig.py315CODE
LOWbindgen/gen_zig.py406CODE
LOWbindgen/gen_zig.py445CODE
LOWbindgen/gen_zig.py508CODE
LOWbindgen/gen_jai.py217CODE
LOWbindgen/gen_jai.py294CODE
LOWbindgen/gen_jai.py448CODE
LOWbindgen/gen_jai.py469CODE
LOWbindgen/gen_rust.py248CODE
LOWbindgen/gen_rust.py278CODE
LOWbindgen/gen_rust.py329CODE
LOWbindgen/gen_rust.py402CODE
LOWbindgen/gen_rust.py710CODE
LOWbindgen/gen_rust.py793CODE
LOWbindgen/gen_ir.py59CODE
LOWbindgen/gen_ir.py130CODE
LOWbindgen/gen_nim.py299CODE
LOWbindgen/gen_nim.py452CODE
LOWbindgen/gen_nim.py594CODE
Hyper-Verbose Identifiers5 hits · 5 pts
SeverityFileLineSnippetContext
LOWbindgen/gen_odin.py161def make_odin_module_directory(mod_name):CODE
LOWbindgen/gen_c3.py181def as_module_name_for_enum_type(enum_name, prefix):CODE
LOWbindgen/gen_c3.py191def as_parent_module_name_for_enum_type(enum_name, prefix):CODE
LOWbindgen/gen_c3.py377def gen_function_pointer_aliases():CODE
LOWbindgen/gen_jai.py155def make_jai_module_directory(mod_name):CODE
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMsokol_fetch.h754 Here's a simple example of sending 4 requests without upfront bufferCODE
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWutil/sokol_gl.h2922 sg_pipeline dummy_id = { SG_INVALID_ID };CODE
LOWutil/sokol_gl.h2923 return dummy_id;CODE
Unused Imports2 hits · 2 pts
SeverityFileLineSnippetContext
LOWbindgen/gen_zig.py10CODE
LOWbindgen/gen_rust.py9CODE