Open-source engine for Heroes of Might and Magic III
This report summarizes scanner evidence for vcmi/vcmi, a C++ project with 6,000 GitHub stars. SynthScan examined 849,437 lines of code across 3076 source files, recording 447 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 0.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.
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? 359 finding(s).
Are imports declared and package/API names verified? 6 finding(s).
Are wrappers, guards, and repeated structures necessary? 86 finding(s).
Which changes need focused human review? 447 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 447 distinct pattern matches across 10 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 | # Minimum required version greatly affect CMake behavior | COMMENT |
| LOW | Global.h | 21 | // Based on: http://sourceforge.net/p/predef/wiki/OperatingSystems/ | COMMENT |
| LOW | Global.h | 41 | # define VCMI_UNIX | COMMENT |
| LOW | Global.h | 61 | # define VCMI_IOS | COMMENT |
| LOW | Global.h | 81 | #ifdef VCMI_WINDOWS | COMMENT |
| LOW | Global.h | 101 | COMMENT | |
| LOW | Global.h | 121 | #include <iostream> | COMMENT |
| LOW | Global.h | 141 | #include <vector> | COMMENT |
| LOW | Global.h | 161 | // C++ 20 -> std::source_location::function_name | COMMENT |
| LOW | Global.h | 201 | # define DLL_EXPORT | COMMENT |
| LOW | Global.h | 221 | # define DLL_LINKAGE DLL_IMPORT | COMMENT |
| LOW | libFacade/CMakeLists.txt | 1 | ####################################### | COMMENT |
| LOW | clientapp/EntryPoint.cpp | 21 | #include "../client/GameEngine.h" | COMMENT |
| LOW | clientapp/EntryPoint.cpp | 41 | #include "../lib/texts/CGeneralTextHandler.h" | COMMENT |
| LOW | clientapp/EntryPoint.cpp | 61 | #include <SDL3/SDL_main.h> | COMMENT |
| LOW | clientapp/EntryPoint.cpp | 141 | int wmain(int argc, wchar_t* argv[]) | COMMENT |
| LOW | clientapp/ios/startSDL.mm | 21 | #define SDL_MAIN_NOIMPL | COMMENT |
| LOW | launcher/mainwindow_moc.cpp | 21 | #include "../lib/texts/Languages.h" | COMMENT |
| LOW | launcher/helper.cpp | 21 | #include <QFileDialog> | COMMENT |
| LOW | launcher/main.cpp | 21 | # if __has_include("QIOSIntegrationPlugin.h") | COMMENT |
| LOW | launcher/main.cpp | 41 | COMMENT | |
| LOW | launcher/modManager/cmodlistview_moc.cpp | 21 | #include "modstateitemmodel_moc.h" | COMMENT |
| LOW | launcher/settingsView/csettingsview_moc.cpp | 21 | COMMENT | |
| LOW | test/battle/CUnitStateMagicTest.cpp | 221 | //TODO:getCastDescription | COMMENT |
| LOW | test/mock/TinyH3MBuilder.cpp | 861 | // All 8 players default to "neither human nor computer". | COMMENT |
| LOW | test/server/battles/BattleTestFixture.cpp | 21 | #include "../../../lib/CCreatureHandler.h" | COMMENT |
| LOW | test/server/battles/DamageCalculatorTest.cpp | 21 | #include "../../../lib/modding/ModScope.h" | COMMENT |
| LOW | test/server/activities/ActivityProcessorTest.cpp | 1 | #include "StdInc.h" | COMMENT |
| LOW | test/server/activities/ActivityProcessorTest.cpp | 21 | #include "lib/mapObjects/CGDwelling.h" | COMMENT |
| LOW | test/game/BattleSpellCastTest.cpp | 21 | #include <cmath> | COMMENT |
| LOW | test/game/BattleSpellCastTest.cpp | 41 | #include "../../lib/filesystem/ResourcePath.h" | COMMENT |
| LOW | test/game/BattleSpellCastTest.cpp | 861 | EXPECT_EQ(damages[1], static_cast<int64_t>(std::floor(0.5 * base))); | COMMENT |
| LOW | test/map/TinyH3MBuilderTest.cpp | 21 | #include "../../lib/entities/hero/CHeroHandler.h" | COMMENT |
| LOW | test/spells/effects/EffectFixture.h | 21 | #include "../../mock/mock_Creature.h" | COMMENT |
| LOW | config/terrainViewPatterns.json | 1 | // Defines terrain view/types patterns. | COMMENT |
| LOW | config/gameConfig.json | 621 | // every 1 attack point damage influence in battle when attack points > defense points during creature attack | COMMENT |
| LOW | config/obstacles.json | 1 | // Defines battle obstacles. We have two vectors of them: | COMMENT |
| LOW | config/ai/nk2ai/nk2ai-settings.json | 1 | { | COMMENT |
| LOW | config/ai/nk2ai/nk2ai-settings.json | 21 | // - a higher storage capacity becomes necessary later in the game | COMMENT |
| LOW | luascript/LuaContext.cpp | 21 | #include "../lib/filesystem/Filesystem.h" | COMMENT |
| LOW | luascript/api/MethodRegistrar.h | 81 | COMMENT | |
| LOW | luascript/api/Registry.cpp | 21 | COMMENT | |
| LOW | luascript/api/Registry.cpp | 41 | #include "library/Creature.h" | COMMENT |
| LOW | luascript/api/library/Services.cpp | 21 | #include <vcmi/Skill.h> | COMMENT |
| LOW | luascript/api/callback/IBattleInfoCallback.cpp | 21 | #include "../battle/BattleHexArray.h" | COMMENT |
| LOW | luascript/api/callback/IGameInfoCallback.cpp | 21 | #include "../adventure/HeroInstance.h" | COMMENT |
| LOW | luascript/api/callback/ServerCallback.cpp | 21 | #include "../library/BonusDescriptor.h" | COMMENT |
| LOW | luascript/api/callback/AdventureServer.cpp | 21 | #include <vcmi/Artifact.h> | COMMENT |
| LOW | include/vcmi/scripting/ApiTags.h | 41 | /// WARNING: avoid mutable (non-const) methods - prefer returning copy | COMMENT |
| LOW | mapeditor/mapcontroller.cpp | 21 | #include "../lib/mapObjects/ObjectTemplate.h" | COMMENT |
| LOW | mapeditor/helper.cpp | 21 | COMMENT | |
| LOW | mapeditor/mainwindow.cpp | 21 | #include <QListWidget> | COMMENT |
| LOW | mapeditor/mainwindow.cpp | 41 | #include "../lib/modding/ModIncompatibility.h" | COMMENT |
| LOW | mapeditor/mainwindow.cpp | 61 | #include "campaigneditor/campaigneditor.h" | COMMENT |
| LOW | mapeditor/graphics.cpp | 21 | #include <vcmi/spells/Service.h> | COMMENT |
| LOW | mapeditor/windownewmap.cpp | 21 | #include "../lib/CRandomGenerator.h" | COMMENT |
| LOW | mapeditor/mapsettings/timedevent.cpp | 1 | /* | COMMENT |
| LOW | mapeditor/mapsettings/eventsettings.cpp | 1 | /* | COMMENT |
| LOW | mapeditor/inspector/rewardswidget.cpp | 1 | /* | COMMENT |
| LOW | mapeditor/inspector/rewardswidget.cpp | 21 | #include "../../lib/mapping/CMap.h" | COMMENT |
| 269 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | client/windows/wiki/WikiModContent.cpp | 44 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiModContent.cpp | 46 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiModContent.cpp | 70 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiModContent.cpp | 72 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiModContent.cpp | 119 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiModContent.cpp | 121 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiModContent.cpp | 137 | // ── Title ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiModContent.cpp | 144 | // ── Generic section builder ──────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiModContent.cpp | 199 | // ── Towns ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiModContent.cpp | 230 | // ── Heroes ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiModContent.cpp | 265 | // ── Creatures ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiModContent.cpp | 300 | // ── Artifacts ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiModContent.cpp | 333 | // ── Spells ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiModContent.cpp | 366 | // ── Skills ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiModContent.cpp | 398 | // ── Terrains (id > 0) ───────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | client/windows/wiki/WikiTownContent.cpp | 48 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | client/windows/wiki/WikiTownContent.cpp | 50 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | client/windows/wiki/WikiTownContent.cpp | 57 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | client/windows/wiki/WikiTownContent.cpp | 59 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiTownContent.cpp | 150 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiTownContent.cpp | 152 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiTownContent.cpp | 165 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiTownContent.cpp | 167 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiTownContent.cpp | 574 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiTownContent.cpp | 576 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | client/windows/wiki/WikiHeroContent.cpp | 42 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | client/windows/wiki/WikiHeroContent.cpp | 44 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | client/windows/wiki/WikiHeroContent.cpp | 51 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | client/windows/wiki/WikiHeroContent.cpp | 53 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiHeroContent.cpp | 75 | // ── 1. Title + class/gender subtitle ─────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiHeroContent.cpp | 112 | // ── 2. Large portrait + biography side-by-side ──────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiHeroContent.cpp | 161 | // ── 3. Primary skills table ───────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiHeroContent.cpp | 195 | // ── 4. Specialty ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiHeroContent.cpp | 242 | // ── 5. Starting army table ─────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiHeroContent.cpp | 323 | // ── 5.5. War machines ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiHeroContent.cpp | 394 | // ── 6. Secondary skills ────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiHeroContent.cpp | 460 | // ── 7. Starting spells (always shown) ────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiCommon.h | 21 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiCommon.h | 23 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiCommon.cpp | 29 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiCommon.cpp | 31 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiCommon.cpp | 88 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiCommon.cpp | 90 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiCommon.cpp | 142 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiCommon.cpp | 144 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiCommon.cpp | 194 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiCommon.cpp | 196 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiCommon.cpp | 213 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiCommon.cpp | 215 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | client/windows/wiki/WikiArtifactContent.cpp | 35 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | client/windows/wiki/WikiArtifactContent.cpp | 37 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | client/windows/wiki/WikiArtifactContent.cpp | 44 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | client/windows/wiki/WikiArtifactContent.cpp | 46 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiArtifactContent.cpp | 92 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiArtifactContent.cpp | 94 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiArtifactContent.cpp | 115 | // ── 1. Title ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiArtifactContent.cpp | 122 | // ── 2. Class · Price · Slots info row ──────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiArtifactContent.cpp | 207 | // ── 3. Description ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiArtifactContent.cpp | 223 | // ── Helper: render one artifact row in a clickable table ─────────── | COMMENT |
| MEDIUM | client/windows/wiki/WikiArtifactContent.cpp | 252 | // ── 4. Constituents (if combined artifact) ─────────────────────────── | COMMENT |
| 11 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/players/Installation_Windows.md | 8 | ## Step 1: Download and install VCMI | COMMENT |
| LOW | docs/players/Installation_Windows.md | 19 | ## Step 2: Obtain Heroes III data files | COMMENT |
| LOW | docs/players/Installation_Windows.md | 37 | ## Step 3: Import Heroes III data into VCMI | COMMENT |
| LOW | docs/players/Installation_Windows.md | 66 | ## Step 4: Finish setup in Launcher | COMMENT |
| LOW | docs/players/Installation_Linux.md | 5 | ## Step 1: Binaries installation | COMMENT |
| LOW | docs/players/Installation_Linux.md | 122 | ## Step 2: Installing Heroes III data files | COMMENT |
| LOW | docs/players/Installation_Linux.md | 177 | ## Step 3: Launching game | COMMENT |
| LOW | docs/players/Installation_Android.md | 8 | ## Step 1: Download and install VCMI | COMMENT |
| LOW | docs/players/Installation_Android.md | 32 | ## Step 2: Obtain Heroes III data files | COMMENT |
| LOW | docs/players/Installation_Android.md | 50 | ## Step 3: Import Heroes III data into VCMI | COMMENT |
| LOW | docs/players/Installation_Android.md | 78 | ## Step 4: Finish setup in Launcher | COMMENT |
| LOW | docs/players/Installation_macOS.md | 3 | ## Step 1: Download and install VCMI | COMMENT |
| LOW | docs/players/Installation_macOS.md | 20 | ## Step 2: Installing Heroes III data files | COMMENT |
| LOW | docs/players/Installation_iOS.md | 5 | ## Step 1: Download and install VCMI | COMMENT |
| LOW | docs/players/Installation_iOS.md | 44 | ## Step 2: Installing Heroes III data files | COMMENT |
| LOW | docs/players/Installation_iOS.md | 59 | ## Step 3: Configuration settings | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CI/emit_partial.py | 16 | except Exception: | CODE |
| LOW | CI/final_summary.py | 54 | except Exception: | CODE |
| LOW | CI/final_summary.py | 85 | except Exception as e: | CODE |
| LOW | CI/final_summary.py | 95 | except Exception as e: | CODE |
| LOW⚡ | CI/final_summary.py | 408 | except Exception as e: | CODE |
| LOW⚡ | CI/final_summary.py | 418 | except Exception as e: | CODE |
| LOW⚡ | CI/final_summary.py | 423 | except Exception as e: | CODE |
| LOW⚡ | CI/final_summary.py | 428 | except Exception as e: | CODE |
| LOW | CI/validate_json.py | 23 | except Exception as exc: | CODE |
| LOW | updates/vcmi_updates/server.py | 60 | except Exception: | CODE |
| LOW | updates/vcmi_updates/server.py | 84 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | launcher/startGame/StartGameTab.cpp | 54 | ui->buttonGameResume->setVisible(false); // TODO: implement | CODE |
| LOW | mapeditor/graphics.cpp | 253 | //TODO: implement. H3 method works only for images with palettes. | COMMENT |
| LOW | mapeditor/inspector/inspector.cpp | 465 | addProperty(QObject::tr("Artifact reward"), o->gainedArtifact); //TODO: implement in setProperty | CODE |
| LOW | mapeditor/inspector/inspector.cpp | 468 | //addProperty(QObject::tr("Resources reward"), o->resources); //TODO: implement in setProperty | COMMENT |
| LOW | lib/modding/ModScope.h | 43 | //TODO: implement accessing map dependencies for both H3 and VCMI maps | COMMENT |
| LOW | lib/rmg/modificators/ObjectManager.cpp | 550 | //TODO: implement guards | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CI/normalize_relative_includes.py | 5 | CODE | |
| LOW | CI/emit_partial.py | 9 | CODE | |
| LOW | CI/final_summary.py | 3 | CODE | |
| LOW | CI/final_summary.py | 13 | CODE | |
| LOW | CI/validate_json.py | 3 | CODE | |
| LOW | CI/validate_json.py | 6 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CI/final_summary.py | 200 | def collect_validation_and_tests() -> None: | CODE |
| LOW | CI/final_summary.py | 299 | def _render_validation_section(val_rows: List[Dict[str, Any]]) -> None: | CODE |
| LOW | CI/final_summary.py | 339 | def _render_build_matrix_section(val_rows: List[Dict[str, Any]]) -> None: | CODE |
| LOW | scripts/damage/damageCalculator.lua | 90 | local function getBonusValueOfTypeAndRange(unit, present, type, shooting) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | lib/bonuses/BonusList.h | 48 | // There should be no non-const access to provide solid,robust bonus caching | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | updates/vcmi_updates/store.py | 98 | CODE | |
| LOW | updates/vcmi_updates/changelog.py | 8 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lib/json/JsonWriter.cpp | 68 | //we need to check if special character was been already escaped | COMMENT |