AI Slop Code Risk Monitor

SanderMertens/flecs

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

A fast entity component system (ECS) for C & C++

0.4 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for SanderMertens/flecs, a C project with 8,782 GitHub stars. SynthScan examined 876,750 lines of code across 1867 source files, recording 357 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 0.4 (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.

0.4
Adjusted Signal
0.4
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
8.8K
Stars
C
Language
876.8K
Lines of Code
1.9K
Files
357
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 1.8/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.2/100 · LOW

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

Agent Over-Engineering Ratio 0.0/100 · LOW

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

PR Review Velocity Impact 2.1/100 · LOW

Which changes need focused human review? 357 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 1HIGH 0MEDIUM 1LOW 355

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 357 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 Block315 hits · 299 pts
SeverityFileLineSnippetContext
LOWtest/core/include/core.h1#ifndef CORE_HCOMMENT
LOWtest/addons/include/addons.h1#ifndef ADDONS_HCOMMENT
LOWtest/script/include/script.h1#ifndef SCRIPT_HCOMMENT
LOW…dll_module/dll_module/include/dll_module/bake_config.h21#include <flecs.h>COMMENT
LOWtest/custom_builds/c/import_from_library/include/host.h1#ifndef HOST_HCOMMENT
LOW…ry/physics_plugin/include/physics_plugin/bake_config.h21#include <flecs.h>COMMENT
LOWtest/query/include/query.h1#ifndef QUERY_HCOMMENT
LOWinclude/flecs.h101#ifdef FLECS_SANITIZECOMMENT
LOWinclude/flecs.h221COMMENT
LOWinclude/flecs.h241#define FLECS_OS_API_IMPL /**< Default implementation for OS API. */COMMENT
LOWinclude/flecs.h341COMMENT
LOWinclude/flecs.h941#define ECS_TYPE_HOOK_MOVE ECS_CAST(ecs_flags32_t, 1 << 3)COMMENT
LOWinclude/flecs.h6161#pragma warning(pop)COMMENT
LOWinclude/flecs/os_api.h461 */COMMENT
LOWinclude/flecs/os_api.h481COMMENT
LOWinclude/flecs/os_api.h501#define ecs_os_memcpy(ptr1, ptr2, num) memcpy(ptr1, ptr2, static_cast<size_t>(num))COMMENT
LOWinclude/flecs/os_api.h521#define ecs_os_memset_t(ptr, value, T) ecs_os_memset(ptr, value, ECS_SIZEOF(T))COMMENT
LOWinclude/flecs/os_api.h541#define ecs_os_strcpy(str1, str2) strcpy(str1, str2)COMMENT
LOWinclude/flecs/os_api.h561#define ecs_os_task_join(thread) ecs_os_api.task_join_(thread)COMMENT
LOWinclude/flecs/os_api.h581COMMENT
LOWinclude/flecs/os_api.h601#define ecs_os_linc(v)COMMENT
LOWinclude/flecs/bake_config.h21/* No dependencies */COMMENT
LOWinclude/flecs/addons/script_shell.h1/**COMMENT
LOWinclude/flecs/addons/rest.h21/* Used for the HTTP server */COMMENT
LOWinclude/flecs/addons/script.h21COMMENT
LOWinclude/flecs/addons/flecs_cpp.h21COMMENT
LOWinclude/flecs/addons/log.h321/** Fatal. Used when an issue occurs, and the application cannot continue. */COMMENT
LOWinclude/flecs/addons/log.h381#elif defined(FLECS_LOG_2) /* Level 2 and below debug tracing enabled */COMMENT
LOWinclude/flecs/addons/log.h401#elif defined(FLECS_LOG_1) /* Level 1 debug tracing enabled */COMMENT
LOWinclude/flecs/addons/log.h421#define ecs_dbg_1(...)COMMENT
LOWinclude/flecs/addons/log.h441#define ecs_dbg_2(...)COMMENT
LOWinclude/flecs/addons/log.h501#ifdef FLECS_SANITIZECOMMENT
LOWinclude/flecs/addons/pipeline.h21 * Pipelines order and schedule systems for execution.COMMENT
LOWinclude/flecs/addons/metrics.h21COMMENT
LOWinclude/flecs/addons/cpp/world.hpp841# include "mixins/entity/mixin.inl"COMMENT
LOWinclude/flecs/addons/cpp/world.hpp861# include "mixins/pipeline/mixin.inl"COMMENT
LOWinclude/flecs/addons/cpp/flecs.hpp41template <typename Func, typename ... Components>COMMENT
LOWinclude/flecs/addons/cpp/flecs.hpp61#include "mixins/system/decl.hpp"COMMENT
LOWinclude/flecs/addons/cpp/flecs.hpp81#ifdef FLECS_STATSCOMMENT
LOWinclude/flecs/addons/cpp/flecs.hpp101#include "pair.hpp"COMMENT
LOWinclude/flecs/addons/cpp/flecs.hpp121#endifCOMMENT
LOWinclude/flecs/addons/cpp/flecs.hpp141#ifdef FLECS_PIPELINECOMMENT
LOWinclude/flecs/addons/cpp/flecs.hpp161#endifCOMMENT
LOWinclude/flecs/addons/cpp/log.hpp1/**COMMENT
LOWinclude/flecs/addons/cpp/utils/enum.hpp21// Test if we're using a compiler that supports the required features.COMMENT
LOWinclude/flecs/addons/cpp/utils/utils.hpp1/**COMMENT
LOWinclude/flecs/private/addons.h21COMMENT
LOWinclude/flecs/private/addons.h41#endifCOMMENT
LOWinclude/flecs/private/addons.h61#include "../addons/rest.h"COMMENT
LOWinclude/flecs/private/addons.h81#endifCOMMENT
LOWinclude/flecs/private/addons.h101#error "FLECS_NO_ALERTS failed: ALERTS is required by other addons"COMMENT
LOWinclude/flecs/private/addons.h121#ifdef FLECS_NO_SCRIPT_MATHCOMMENT
LOWinclude/flecs/private/addons.h141#ifdef FLECS_SCRIPT_SHELLCOMMENT
LOWinclude/flecs/private/addons.h161#ifdef FLECS_NO_SCRIPT_ASYNCCOMMENT
LOWinclude/flecs/private/addons.h181#ifdef FLECS_NO_METACOMMENT
LOWinclude/flecs/private/addons.h201#ifdef FLECS_CPPCOMMENT
LOWinclude/flecs/private/api_support.h421int flecs_journal_get_counter(void);COMMENT
LOWinclude/flecs/private/addon_defines.h1/**COMMENT
LOWinclude/flecs/private/addon_defines.h21#ifdef FLECS_NO_CONSTRAINT_TRAITSCOMMENT
LOWinclude/flecs/private/addon_defines.h41#endifCOMMENT
255 more matches not shown…
Fake / Example Data32 hits · 32 pts
SeverityFileLineSnippetContext
LOWexamples/cpp/hello_world/project.json5 "author": "Jane Doe",CODE
LOWexamples/cpp/queries/basics/project.json5 "author": "Jane Doe",CODE
LOWexamples/cpp/queries/hierarchy/project.json5 "author": "Jane Doe",CODE
LOWexamples/cpp/systems/target_fps/project.json5 "author": "Jane Doe",CODE
LOWexamples/cpp/systems/basics/project.json5 "author": "Jane Doe",CODE
LOWexamples/cpp/systems/pipeline/project.json5 "author": "Jane Doe",CODE
LOWexamples/cpp/systems/delta_time/project.json5 "author": "Jane Doe",CODE
LOWexamples/cpp/relationships/basics/project.json5 "author": "Jane Doe",CODE
LOWexamples/cpp/entities/basics/project.json5 "author": "Jane Doe",CODE
LOWexamples/cpp/entities/hierarchy/project.json5 "author": "Jane Doe",CODE
LOWexamples/cpp/entities/iterate_components/project.json5 "author": "Jane Doe",CODE
LOWexamples/cpp/entities/prefab/project.json5 "author": "Jane Doe",CODE
LOWexamples/cpp/entities/cpp_traits/project.json5 "author": "Jane Doe",CODE
LOWexamples/c/hello_world/project.json5 "author": "Jane Doe",CODE
LOWexamples/c/queries/basics/project.json5 "author": "Jane Doe",CODE
LOWexamples/c/queries/hierarchies/project.json5 "author": "Jane Doe",CODE
LOWexamples/c/systems/target_fps/project.json5 "author": "Jane Doe",CODE
LOWexamples/c/systems/basics/project.json5 "author": "Jane Doe",CODE
LOWexamples/c/systems/pipeline/project.json5 "author": "Jane Doe",CODE
LOWexamples/c/systems/delta_time/project.json5 "author": "Jane Doe",CODE
LOWexamples/c/relationships/basics/project.json5 "author": "Jane Doe",CODE
LOWexamples/c/entities/basics/project.json5 "author": "Jane Doe",CODE
LOWexamples/c/entities/hierarchy/project.json5 "author": "Jane Doe",CODE
LOWexamples/c/entities/iterate_components/project.json5 "author": "Jane Doe",CODE
LOWexamples/c/reflection/basics/project.json5 "author": "Jane Doe",CODE
LOWexamples/c/reflection/auto_define_enum/project.json5 "author": "Jane Doe",CODE
LOWexamples/c/reflection/runtime_component/project.json5 "author": "Jane Doe",CODE
LOWexamples/c/reflection/nested_struct/project.json5 "author": "Jane Doe",CODE
LOW…es/c/reflection/auto_define_nested_struct/project.json5 "author": "Jane Doe",CODE
LOWexamples/c/reflection/auto_define_struct/project.json5 "author": "Jane Doe",CODE
LOWexamples/c/reflection/basics_deserialize/project.json5 "author": "Jane Doe",CODE
LOWexamples/c/reflection/basics_json/project.json5 "author": "Jane Doe",CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALtest/script/src/Command.c3493 "flecs.script.shell.commands.core.ls(parent).count()",CODE
Deep Nesting5 hits · 5 pts
SeverityFileLineSnippetContext
LOWdocs/cfg/postprocess.py277CODE
LOWdocs/cfg/postprocess.py344CODE
LOWdocs/cfg/postprocess.py111CODE
LOWdocs/cfg/examples.py51CODE
LOWdocs/cfg/examples.py68CODE
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtest/query/src/Cascade.c1299 // no longer alive, which the cascade logic should be robust against.COMMENT
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…mples/cpp/game_mechanics/inventory_system/src/main.cpp136 // If item has amount we need to check if the container already has anCOMMENT
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOWdocs/cfg/examples.py191def write_playground_examples(root, examples, out_dir):CODE
Slop Phrases1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…mples/cpp/game_mechanics/inventory_system/src/main.cpp164 dst = get_container(dst); // Make sure to replace players with containerCODE