A fast entity component system (ECS) for C & C++
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.
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? 324 finding(s).
Are imports declared and package/API names verified? 33 finding(s).
Are wrappers, guards, and repeated structures necessary? 1 finding(s).
Which changes need focused human review? 357 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 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/core/include/core.h | 1 | #ifndef CORE_H | COMMENT |
| LOW | test/addons/include/addons.h | 1 | #ifndef ADDONS_H | COMMENT |
| LOW | test/script/include/script.h | 1 | #ifndef SCRIPT_H | COMMENT |
| LOW | …dll_module/dll_module/include/dll_module/bake_config.h | 21 | #include <flecs.h> | COMMENT |
| LOW | test/custom_builds/c/import_from_library/include/host.h | 1 | #ifndef HOST_H | COMMENT |
| LOW | …ry/physics_plugin/include/physics_plugin/bake_config.h | 21 | #include <flecs.h> | COMMENT |
| LOW | test/query/include/query.h | 1 | #ifndef QUERY_H | COMMENT |
| LOW | include/flecs.h | 101 | #ifdef FLECS_SANITIZE | COMMENT |
| LOW | include/flecs.h | 221 | COMMENT | |
| LOW | include/flecs.h | 241 | #define FLECS_OS_API_IMPL /**< Default implementation for OS API. */ | COMMENT |
| LOW | include/flecs.h | 341 | COMMENT | |
| LOW | include/flecs.h | 941 | #define ECS_TYPE_HOOK_MOVE ECS_CAST(ecs_flags32_t, 1 << 3) | COMMENT |
| LOW | include/flecs.h | 6161 | #pragma warning(pop) | COMMENT |
| LOW | include/flecs/os_api.h | 461 | */ | COMMENT |
| LOW | include/flecs/os_api.h | 481 | COMMENT | |
| LOW | include/flecs/os_api.h | 501 | #define ecs_os_memcpy(ptr1, ptr2, num) memcpy(ptr1, ptr2, static_cast<size_t>(num)) | COMMENT |
| LOW | include/flecs/os_api.h | 521 | #define ecs_os_memset_t(ptr, value, T) ecs_os_memset(ptr, value, ECS_SIZEOF(T)) | COMMENT |
| LOW | include/flecs/os_api.h | 541 | #define ecs_os_strcpy(str1, str2) strcpy(str1, str2) | COMMENT |
| LOW | include/flecs/os_api.h | 561 | #define ecs_os_task_join(thread) ecs_os_api.task_join_(thread) | COMMENT |
| LOW | include/flecs/os_api.h | 581 | COMMENT | |
| LOW | include/flecs/os_api.h | 601 | #define ecs_os_linc(v) | COMMENT |
| LOW | include/flecs/bake_config.h | 21 | /* No dependencies */ | COMMENT |
| LOW | include/flecs/addons/script_shell.h | 1 | /** | COMMENT |
| LOW | include/flecs/addons/rest.h | 21 | /* Used for the HTTP server */ | COMMENT |
| LOW | include/flecs/addons/script.h | 21 | COMMENT | |
| LOW | include/flecs/addons/flecs_cpp.h | 21 | COMMENT | |
| LOW | include/flecs/addons/log.h | 321 | /** Fatal. Used when an issue occurs, and the application cannot continue. */ | COMMENT |
| LOW | include/flecs/addons/log.h | 381 | #elif defined(FLECS_LOG_2) /* Level 2 and below debug tracing enabled */ | COMMENT |
| LOW | include/flecs/addons/log.h | 401 | #elif defined(FLECS_LOG_1) /* Level 1 debug tracing enabled */ | COMMENT |
| LOW | include/flecs/addons/log.h | 421 | #define ecs_dbg_1(...) | COMMENT |
| LOW | include/flecs/addons/log.h | 441 | #define ecs_dbg_2(...) | COMMENT |
| LOW | include/flecs/addons/log.h | 501 | #ifdef FLECS_SANITIZE | COMMENT |
| LOW | include/flecs/addons/pipeline.h | 21 | * Pipelines order and schedule systems for execution. | COMMENT |
| LOW | include/flecs/addons/metrics.h | 21 | COMMENT | |
| LOW | include/flecs/addons/cpp/world.hpp | 841 | # include "mixins/entity/mixin.inl" | COMMENT |
| LOW | include/flecs/addons/cpp/world.hpp | 861 | # include "mixins/pipeline/mixin.inl" | COMMENT |
| LOW | include/flecs/addons/cpp/flecs.hpp | 41 | template <typename Func, typename ... Components> | COMMENT |
| LOW | include/flecs/addons/cpp/flecs.hpp | 61 | #include "mixins/system/decl.hpp" | COMMENT |
| LOW | include/flecs/addons/cpp/flecs.hpp | 81 | #ifdef FLECS_STATS | COMMENT |
| LOW | include/flecs/addons/cpp/flecs.hpp | 101 | #include "pair.hpp" | COMMENT |
| LOW | include/flecs/addons/cpp/flecs.hpp | 121 | #endif | COMMENT |
| LOW | include/flecs/addons/cpp/flecs.hpp | 141 | #ifdef FLECS_PIPELINE | COMMENT |
| LOW | include/flecs/addons/cpp/flecs.hpp | 161 | #endif | COMMENT |
| LOW | include/flecs/addons/cpp/log.hpp | 1 | /** | COMMENT |
| LOW | include/flecs/addons/cpp/utils/enum.hpp | 21 | // Test if we're using a compiler that supports the required features. | COMMENT |
| LOW | include/flecs/addons/cpp/utils/utils.hpp | 1 | /** | COMMENT |
| LOW | include/flecs/private/addons.h | 21 | COMMENT | |
| LOW | include/flecs/private/addons.h | 41 | #endif | COMMENT |
| LOW | include/flecs/private/addons.h | 61 | #include "../addons/rest.h" | COMMENT |
| LOW | include/flecs/private/addons.h | 81 | #endif | COMMENT |
| LOW | include/flecs/private/addons.h | 101 | #error "FLECS_NO_ALERTS failed: ALERTS is required by other addons" | COMMENT |
| LOW | include/flecs/private/addons.h | 121 | #ifdef FLECS_NO_SCRIPT_MATH | COMMENT |
| LOW | include/flecs/private/addons.h | 141 | #ifdef FLECS_SCRIPT_SHELL | COMMENT |
| LOW | include/flecs/private/addons.h | 161 | #ifdef FLECS_NO_SCRIPT_ASYNC | COMMENT |
| LOW | include/flecs/private/addons.h | 181 | #ifdef FLECS_NO_META | COMMENT |
| LOW | include/flecs/private/addons.h | 201 | #ifdef FLECS_CPP | COMMENT |
| LOW | include/flecs/private/api_support.h | 421 | int flecs_journal_get_counter(void); | COMMENT |
| LOW | include/flecs/private/addon_defines.h | 1 | /** | COMMENT |
| LOW | include/flecs/private/addon_defines.h | 21 | #ifdef FLECS_NO_CONSTRAINT_TRAITS | COMMENT |
| LOW | include/flecs/private/addon_defines.h | 41 | #endif | COMMENT |
| 255 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/cpp/hello_world/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/cpp/queries/basics/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/cpp/queries/hierarchy/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/cpp/systems/target_fps/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/cpp/systems/basics/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/cpp/systems/pipeline/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/cpp/systems/delta_time/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/cpp/relationships/basics/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/cpp/entities/basics/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/cpp/entities/hierarchy/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/cpp/entities/iterate_components/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/cpp/entities/prefab/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/cpp/entities/cpp_traits/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/c/hello_world/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/c/queries/basics/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/c/queries/hierarchies/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/c/systems/target_fps/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/c/systems/basics/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/c/systems/pipeline/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/c/systems/delta_time/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/c/relationships/basics/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/c/entities/basics/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/c/entities/hierarchy/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/c/entities/iterate_components/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/c/reflection/basics/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/c/reflection/auto_define_enum/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/c/reflection/runtime_component/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/c/reflection/nested_struct/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | …es/c/reflection/auto_define_nested_struct/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/c/reflection/auto_define_struct/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/c/reflection/basics_deserialize/project.json | 5 | "author": "Jane Doe", | CODE |
| LOW | examples/c/reflection/basics_json/project.json | 5 | "author": "Jane Doe", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | test/script/src/Command.c | 3493 | "flecs.script.shell.commands.core.ls(parent).count()", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/cfg/postprocess.py | 277 | CODE | |
| LOW | docs/cfg/postprocess.py | 344 | CODE | |
| LOW | docs/cfg/postprocess.py | 111 | CODE | |
| LOW | docs/cfg/examples.py | 51 | CODE | |
| LOW | docs/cfg/examples.py | 68 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/query/src/Cascade.c | 1299 | // no longer alive, which the cascade logic should be robust against. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …mples/cpp/game_mechanics/inventory_system/src/main.cpp | 136 | // If item has amount we need to check if the container already has an | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/cfg/examples.py | 191 | def write_playground_examples(root, examples, out_dir): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …mples/cpp/game_mechanics/inventory_system/src/main.cpp | 164 | dst = get_container(dst); // Make sure to replace players with container | CODE |