fheroes2 is a recreation of Heroes of Might and Magic II game engine
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.
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? 418 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 418 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 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CMakeLists.txt | 1 | ########################################################################### | COMMENT |
| LOW | docs/assets/js/accessibility-manager.js | 101 | return this.createAccessibleElement( {...options, elementType : 'button' } ); | COMMENT |
| LOW | ios/ShaderTypes.h | 1 | // | COMMENT |
| LOW | script/agg/extract_agg.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | script/demo/download_demo_version.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | script/demo/download_demo_version_for_app_bundle.sh | 1 | #!/bin/zsh | COMMENT |
| LOW | script/tools/check_copyright_headers.sh | 1 | #!/bin/bash | COMMENT |
| LOW | script/tools/check_code_format.sh | 1 | #!/bin/bash | COMMENT |
| LOW | script/tools/changelog_update_metainfo.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | script/tools/check_copyright_headers.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | script/tools/copyright_headers/full_header_script.txt | 1 | ########################################################################### | COMMENT |
| LOW | …ipt/tools/copyright_headers/header_template_script.txt | 1 | ########################################################################### | COMMENT |
| LOW | script/macos/cleanup_app_bundle_files.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | script/homm2/extract_homm2_resources_from_cd_image.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | script/homm2/extract_homm2_resources_for_app_bundle.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | script/homm2/extract_homm2_resources_for_app_bundle.sh | 21 | ########################################################################### | COMMENT |
| LOW | script/homm2/extract_homm2_resources.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | script/ios/install_packages.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | script/linux/install_sdl2_dev.sh | 1 | #!/bin/bash | COMMENT |
| LOW | script/linux/install_sdl2.sh | 1 | #!/bin/bash | COMMENT |
| LOW | script/android/install_packages.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | src/CMakeLists.txt | 1 | ########################################################################### | COMMENT |
| LOW | src/tools/xmi2midi.cpp | 21 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | COMMENT |
| LOW | src/tools/til2img.cpp | 21 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | COMMENT |
| LOW | src/tools/pal2img.cpp | 21 | #include <cstdint> | COMMENT |
| LOW | src/tools/CMakeLists.txt | 1 | ########################################################################### | COMMENT |
| LOW | src/tools/82m2wav.cpp | 21 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | COMMENT |
| LOW | src/tools/h2dmgr.cpp | 21 | #include <algorithm> | COMMENT |
| LOW | src/tools/icn2img.cpp | 21 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | COMMENT |
| LOW | src/tools/bin2txt.cpp | 21 | #include <algorithm> | COMMENT |
| LOW | src/tools/extractor.cpp | 21 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | COMMENT |
| LOW | src/fheroes2/CMakeLists.txt | 1 | ########################################################################### | COMMENT |
| LOW | src/fheroes2/agg/bin_info.cpp | 21 | #include "bin_info.h" | COMMENT |
| LOW | src/fheroes2/battle/battle_main.cpp | 21 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | COMMENT |
| LOW | src/fheroes2/battle/battle_main.cpp | 41 | #include "campaign_savedata.h" | COMMENT |
| LOW | src/fheroes2/battle/battle_only.cpp | 21 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | COMMENT |
| LOW | src/fheroes2/battle/battle_only.cpp | 41 | #include "game_assets.h" | COMMENT |
| LOW | src/fheroes2/battle/battle_pathfinding.cpp | 21 | #include "battle_pathfinding.h" | COMMENT |
| LOW | src/fheroes2/battle/battle_board.cpp | 21 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | COMMENT |
| LOW | src/fheroes2/battle/battle_army.cpp | 21 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | COMMENT |
| LOW | src/fheroes2/battle/battle_arena.cpp | 21 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | COMMENT |
| LOW | src/fheroes2/battle/battle_arena.cpp | 41 | #include "artifact_info.h" | COMMENT |
| LOW | src/fheroes2/battle/battle_interface.h | 21 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | COMMENT |
| LOW | src/fheroes2/battle/battle_tower.cpp | 21 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | COMMENT |
| LOW | src/fheroes2/battle/battle_interface_settings.cpp | 21 | #include "battle_interface_settings.h" | COMMENT |
| LOW | src/fheroes2/battle/battle_troop.cpp | 21 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | COMMENT |
| LOW | src/fheroes2/battle/battle_troop.cpp | 41 | #include "battle_tower.h" | COMMENT |
| LOW | src/fheroes2/battle/battle_troop.h | 21 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | COMMENT |
| LOW | src/fheroes2/battle/battle_dialogs.cpp | 21 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | COMMENT |
| LOW | src/fheroes2/battle/battle_dialogs.cpp | 41 | #include "color.h" | COMMENT |
| LOW | src/fheroes2/battle/battle_dialogs.cpp | 61 | #include "players.h" | COMMENT |
| LOW | src/fheroes2/battle/battle_army.h | 21 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | COMMENT |
| LOW | src/fheroes2/battle/battle_catapult.cpp | 21 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | COMMENT |
| LOW | src/fheroes2/battle/battle_only.h | 21 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | COMMENT |
| LOW | src/fheroes2/battle/battle_interface.cpp | 21 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | COMMENT |
| LOW | src/fheroes2/battle/battle_interface.cpp | 41 | #include "audio_manager.h" | COMMENT |
| LOW | src/fheroes2/battle/battle_interface.cpp | 61 | #include "logging.h" | COMMENT |
| LOW | src/fheroes2/battle/battle_action.cpp | 21 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | COMMENT |
| LOW | src/fheroes2/battle/battle_action.cpp | 41 | #include "battle_bridge.h" | COMMENT |
| LOW | src/fheroes2/battle/battle_arena.h | 21 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | COMMENT |
| 340 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/fheroes2/maps/maps_tiles.h | 55 | TERRAIN_LAYER = 3 // Roads, water flaws and cracks. Essentially everything what is a part of terrain. No passabi | CODE |
| MEDIUM | src/fheroes2/gui/ui_keyboard.h | 30 | // As a solution we should utilize an in-game virtual keyboard which supports all code pages available by the engine | COMMENT |
| MEDIUM | src/fheroes2/gui/interface_gamearea.cpp | 464 | // 3 - roads, water flaws and cracks. Essentially everything what is a part of terrain. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/fheroes2/ai/ai_hero_action.cpp | 2252 | // At the moment, this kind of movement using regular paths generated by AI pathfinder is only possible to the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/fheroes2/maps/map_random_generator.cpp | 883 | // Step 8: Place power-ups and treasure clusters while avoiding the paths. | COMMENT |
| LOW | src/fheroes2/maps/map_random_generator.cpp | 910 | // Step 9: Detect and fill empty areas with decorative/flavour objects. | COMMENT |
| LOW | src/fheroes2/maps/map_random_generator.cpp | 921 | // Step 10: Place missing monsters. | COMMENT |
| LOW | src/fheroes2/editor/editor_interface.cpp | 638 | // We need to check if the object being removed is a River Delta, and if so, use that data to update | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/fheroes2/maps/map_random_generator.cpp | 883 | // Step 8: Place power-ups and treasure clusters while avoiding the paths. | COMMENT |
| LOW | src/fheroes2/maps/map_random_generator.cpp | 910 | // Step 9: Detect and fill empty areas with decorative/flavour objects. | COMMENT |
| LOW | src/fheroes2/maps/map_random_generator.cpp | 921 | // Step 10: Place missing monsters. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/fheroes2/ai/ai_battle_spell.cpp | 856 | // TODO: implement Teleport for Hypnotized units. | COMMENT |
| LOW | src/fheroes2/ai/ai_battle_spell.cpp | 863 | // TODO: implement Teleport usage for defense. | COMMENT |
| LOW | src/fheroes2/ai/ai_battle_spell.cpp | 877 | // TODO: implement Teleport usage for shooters. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/fheroes2/kingdom/view_world.cpp | 787 | // Don't forget to reset the interface settings back if necessary | COMMENT |
| LOW | src/fheroes2/ai/ai_planner_hero.cpp | 1117 | // If you make a new secondary skill don't forget to update this. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | script/macos/cleanup_app_bundle_files.sh | 54 | # Check if either target directory exists | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | script/tools/check_copyright_headers.py | 63 | CODE |