AI Slop Code Risk Monitor

ihhub/fheroes2

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

fheroes2 is a recreation of Heroes of Might and Magic II game engine

1.8 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for ihhub/fheroes2, a C++ project with 3,701 GitHub stars. SynthScan examined 240,091 lines of code across 652 source files, recording 418 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 1.8 (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.8
Adjusted Signal
1.8
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
3.7K
Stars
C++
Language
240.1K
Lines of Code
652
Files
418
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 8.7/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

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

Agent Over-Engineering Ratio 0.0/100 · LOW

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

PR Review Velocity Impact 8.6/100 · LOW

Which changes need focused human review? 418 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 1MEDIUM 3LOW 414

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 418 distinct pattern matches across 9 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 Block400 hits · 400 pts
SeverityFileLineSnippetContext
LOWCMakeLists.txt1###########################################################################COMMENT
LOWdocs/assets/js/accessibility-manager.js101 return this.createAccessibleElement( {...options, elementType : 'button' } );COMMENT
LOWios/ShaderTypes.h1//COMMENT
LOWscript/agg/extract_agg.sh1#!/usr/bin/env bashCOMMENT
LOWscript/demo/download_demo_version.sh1#!/usr/bin/env bashCOMMENT
LOWscript/demo/download_demo_version_for_app_bundle.sh1#!/bin/zshCOMMENT
LOWscript/tools/check_copyright_headers.sh1#!/bin/bashCOMMENT
LOWscript/tools/check_code_format.sh1#!/bin/bashCOMMENT
LOWscript/tools/changelog_update_metainfo.py1#!/usr/bin/env python3COMMENT
LOWscript/tools/check_copyright_headers.py1#!/usr/bin/env python3COMMENT
LOWscript/tools/copyright_headers/full_header_script.txt1###########################################################################COMMENT
LOW…ipt/tools/copyright_headers/header_template_script.txt1###########################################################################COMMENT
LOWscript/macos/cleanup_app_bundle_files.sh1#!/usr/bin/env bashCOMMENT
LOWscript/homm2/extract_homm2_resources_from_cd_image.sh1#!/usr/bin/env bashCOMMENT
LOWscript/homm2/extract_homm2_resources_for_app_bundle.sh1#!/usr/bin/env bashCOMMENT
LOWscript/homm2/extract_homm2_resources_for_app_bundle.sh21###########################################################################COMMENT
LOWscript/homm2/extract_homm2_resources.sh1#!/usr/bin/env bashCOMMENT
LOWscript/ios/install_packages.sh1#!/usr/bin/env bashCOMMENT
LOWscript/linux/install_sdl2_dev.sh1#!/bin/bashCOMMENT
LOWscript/linux/install_sdl2.sh1#!/bin/bashCOMMENT
LOWscript/android/install_packages.sh1#!/usr/bin/env bashCOMMENT
LOWsrc/CMakeLists.txt1###########################################################################COMMENT
LOWsrc/tools/xmi2midi.cpp21 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *COMMENT
LOWsrc/tools/til2img.cpp21 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *COMMENT
LOWsrc/tools/pal2img.cpp21#include <cstdint>COMMENT
LOWsrc/tools/CMakeLists.txt1###########################################################################COMMENT
LOWsrc/tools/82m2wav.cpp21 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *COMMENT
LOWsrc/tools/h2dmgr.cpp21#include <algorithm>COMMENT
LOWsrc/tools/icn2img.cpp21 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *COMMENT
LOWsrc/tools/bin2txt.cpp21#include <algorithm>COMMENT
LOWsrc/tools/extractor.cpp21 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *COMMENT
LOWsrc/fheroes2/CMakeLists.txt1###########################################################################COMMENT
LOWsrc/fheroes2/agg/bin_info.cpp21#include "bin_info.h"COMMENT
LOWsrc/fheroes2/battle/battle_main.cpp21 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *COMMENT
LOWsrc/fheroes2/battle/battle_main.cpp41#include "campaign_savedata.h"COMMENT
LOWsrc/fheroes2/battle/battle_only.cpp21 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *COMMENT
LOWsrc/fheroes2/battle/battle_only.cpp41#include "game_assets.h"COMMENT
LOWsrc/fheroes2/battle/battle_pathfinding.cpp21#include "battle_pathfinding.h"COMMENT
LOWsrc/fheroes2/battle/battle_board.cpp21 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *COMMENT
LOWsrc/fheroes2/battle/battle_army.cpp21 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *COMMENT
LOWsrc/fheroes2/battle/battle_arena.cpp21 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *COMMENT
LOWsrc/fheroes2/battle/battle_arena.cpp41#include "artifact_info.h"COMMENT
LOWsrc/fheroes2/battle/battle_interface.h21 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *COMMENT
LOWsrc/fheroes2/battle/battle_tower.cpp21 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *COMMENT
LOWsrc/fheroes2/battle/battle_interface_settings.cpp21#include "battle_interface_settings.h"COMMENT
LOWsrc/fheroes2/battle/battle_troop.cpp21 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *COMMENT
LOWsrc/fheroes2/battle/battle_troop.cpp41#include "battle_tower.h"COMMENT
LOWsrc/fheroes2/battle/battle_troop.h21 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *COMMENT
LOWsrc/fheroes2/battle/battle_dialogs.cpp21 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *COMMENT
LOWsrc/fheroes2/battle/battle_dialogs.cpp41#include "color.h"COMMENT
LOWsrc/fheroes2/battle/battle_dialogs.cpp61#include "players.h"COMMENT
LOWsrc/fheroes2/battle/battle_army.h21 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *COMMENT
LOWsrc/fheroes2/battle/battle_catapult.cpp21 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *COMMENT
LOWsrc/fheroes2/battle/battle_only.h21 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *COMMENT
LOWsrc/fheroes2/battle/battle_interface.cpp21 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *COMMENT
LOWsrc/fheroes2/battle/battle_interface.cpp41#include "audio_manager.h"COMMENT
LOWsrc/fheroes2/battle/battle_interface.cpp61#include "logging.h"COMMENT
LOWsrc/fheroes2/battle/battle_action.cpp21 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *COMMENT
LOWsrc/fheroes2/battle/battle_action.cpp41#include "battle_bridge.h"COMMENT
LOWsrc/fheroes2/battle/battle_arena.h21 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *COMMENT
340 more matches not shown…
AI Slop Vocabulary3 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMsrc/fheroes2/maps/maps_tiles.h55 TERRAIN_LAYER = 3 // Roads, water flaws and cracks. Essentially everything what is a part of terrain. No passabiCODE
MEDIUMsrc/fheroes2/gui/ui_keyboard.h30 // As a solution we should utilize an in-game virtual keyboard which supports all code pages available by the engineCOMMENT
MEDIUMsrc/fheroes2/gui/interface_gamearea.cpp464 // 3 - roads, water flaws and cracks. Essentially everything what is a part of terrain.COMMENT
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHsrc/fheroes2/ai/ai_hero_action.cpp2252 // At the moment, this kind of movement using regular paths generated by AI pathfinder is only possible to theCOMMENT
Verbosity Indicators4 hits · 6 pts
SeverityFileLineSnippetContext
LOWsrc/fheroes2/maps/map_random_generator.cpp883 // Step 8: Place power-ups and treasure clusters while avoiding the paths.COMMENT
LOWsrc/fheroes2/maps/map_random_generator.cpp910 // Step 9: Detect and fill empty areas with decorative/flavour objects.COMMENT
LOWsrc/fheroes2/maps/map_random_generator.cpp921 // Step 10: Place missing monsters.COMMENT
LOWsrc/fheroes2/editor/editor_interface.cpp638 // We need to check if the object being removed is a River Delta, and if so, use that data to updateCOMMENT
Structural Annotation Overuse3 hits · 4 pts
SeverityFileLineSnippetContext
LOWsrc/fheroes2/maps/map_random_generator.cpp883 // Step 8: Place power-ups and treasure clusters while avoiding the paths.COMMENT
LOWsrc/fheroes2/maps/map_random_generator.cpp910 // Step 9: Detect and fill empty areas with decorative/flavour objects.COMMENT
LOWsrc/fheroes2/maps/map_random_generator.cpp921 // Step 10: Place missing monsters.COMMENT
TODO Padding3 hits · 4 pts
SeverityFileLineSnippetContext
LOWsrc/fheroes2/ai/ai_battle_spell.cpp856 // TODO: implement Teleport for Hypnotized units.COMMENT
LOWsrc/fheroes2/ai/ai_battle_spell.cpp863 // TODO: implement Teleport usage for defense.COMMENT
LOWsrc/fheroes2/ai/ai_battle_spell.cpp877 // TODO: implement Teleport usage for shooters.COMMENT
Slop Phrases2 hits · 3 pts
SeverityFileLineSnippetContext
LOWsrc/fheroes2/kingdom/view_world.cpp787 // Don't forget to reset the interface settings back if necessaryCOMMENT
LOWsrc/fheroes2/ai/ai_planner_hero.cpp1117 // If you make a new secondary skill don't forget to update this.COMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscript/macos/cleanup_app_bundle_files.sh54# Check if either target directory existsCOMMENT
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippetContext
LOWscript/tools/check_copyright_headers.py63CODE