AI Slop Code Risk Monitor

OpenTTD/OpenTTD

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

OpenTTD is an open source simulation game based upon Transport Tycoon Deluxe

1.1 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for OpenTTD/OpenTTD, a C++ project with 8,445 GitHub stars. SynthScan examined 876,494 lines of code across 1633 source files, recording 1195 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 1.1 (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.1
Adjusted Signal
1.1
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
8.4K
Stars
C++
Language
876.5K
Lines of Code
1.6K
Files
1.2K
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 5.1/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 1191 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.1/100 · LOW

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

PR Review Velocity Impact 6.7/100 · LOW

Which changes need focused human review? 1195 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 0MEDIUM 9LOW 1186

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 1195 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.

Over-Commented Block1159 hits · 868 pts
SeverityFileLineSnippetContext
LOWos/emscripten/ports/liblzma.py41COMMENT
LOWos/emscripten/ports/liblzma.py61#define HAVE_DECODER_SPARC 1COMMENT
LOWos/emscripten/ports/liblzma.py81#define HAVE_LIMITS_H 1COMMENT
LOWos/emscripten/ports/liblzma.py101#define HAVE_SYS_TIME_H 1COMMENT
LOWos/emscripten/ports/liblzma.py121#define TUKLIB_FAST_UNALIGNED_ACCESS 1COMMENT
LOWos/macosx/notarize.sh1#!/bin/bashCOMMENT
LOWsrc/spritecache.cpp1/*COMMENT
LOWsrc/misc_cmd.cpp1/*COMMENT
LOWsrc/depot_gui.cpp1/*COMMENT
LOWsrc/depot_gui.cpp21#include "strings_func.h"COMMENT
LOWsrc/widget.cpp1/*COMMENT
LOWsrc/signs_gui.cpp1/*COMMENT
LOWsrc/signs_gui.cpp21#include "querystring_gui.h"COMMENT
LOWsrc/ship_cmd.cpp1/*COMMENT
LOWsrc/ship_cmd.cpp21#include "newgrf_sound.h"COMMENT
LOWsrc/league_gui.cpp1/*COMMENT
LOWsrc/rail_cmd.cpp1/*COMMENT
LOWsrc/rail_cmd.cpp21#include "water.h"COMMENT
LOWsrc/terraform_cmd.cpp1/*COMMENT
LOWsrc/error_gui.cpp1/*COMMENT
LOWsrc/newgrf_roadstop.cpp1/*COMMENT
LOWsrc/newgrf_engine.cpp1/*COMMENT
LOWsrc/safeguards.h21COMMENT
LOWsrc/safeguards.h41COMMENT
LOWsrc/safeguards.h61/* Use fgets instead. */COMMENT
LOWsrc/safeguards.h81#define stoull SAFEGUARD_DO_NOT_USE_THIS_METHODCOMMENT
LOWsrc/safeguards.h101#ifdef maxCOMMENT
LOWsrc/safeguards.h121#endif /* defined(NETWORK_CORE_OS_ABSTRACTION_H) && defined(_WIN32) */COMMENT
LOWsrc/tunnelbridge_cmd.cpp21#include "pathfinder/yapf/yapf_cache.h"COMMENT
LOWsrc/console_cmds.cpp1/*COMMENT
LOWsrc/console_cmds.cpp21#include "network/network_admin.h"COMMENT
LOWsrc/console_cmds.cpp41#include "console_func.h"COMMENT
LOWsrc/stdafx.h21# define _CRT_SECURE_NO_DEPRECATECOMMENT
LOWsrc/stdafx.h41#endifCOMMENT
LOWsrc/stdafx.h61#include <list>COMMENT
LOWsrc/stdafx.h81COMMENT
LOWsrc/stdafx.h101# define NOMINMAX // Disable min/max macros in windows.h.COMMENT
LOWsrc/stdafx.h121# endifCOMMENT
LOWsrc/stdafx.h141# define FT_EXPORT( x ) extern "C" x CDECLCOMMENT
LOWsrc/stdafx.h161 std::wstring OTTD2FS(std::string_view name);COMMENT
LOWsrc/stdafx.h261#define lengthof(array) (sizeof(ArraySizeHelper(array)))COMMENT
LOWsrc/stdafx.h281#if defined(NDEBUG) && defined(WITH_ASSERT)COMMENT
LOWsrc/airport_gui.cpp1/*COMMENT
LOWsrc/airport_gui.cpp21#include "company_base.h"COMMENT
LOWsrc/main_gui.cpp1/*COMMENT
LOWsrc/main_gui.cpp21#include "transparency.h"COMMENT
LOWsrc/object_gui.cpp1/*COMMENT
LOWsrc/object_gui.cpp21#include "sound_func.h"COMMENT
LOWsrc/cheat_gui.cpp1/*COMMENT
LOWsrc/cheat_gui.cpp21#include "rail_gui.h"COMMENT
LOWsrc/music_gui.cpp1/*COMMENT
LOWsrc/crashlog.cpp1/*COMMENT
LOWsrc/story.cpp1/*COMMENT
LOWsrc/autoreplace_cmd.cpp1/*COMMENT
LOWsrc/autoreplace_cmd.cpp21#include "core/random_func.hpp"COMMENT
LOWsrc/vehicle.cpp1/*COMMENT
LOWsrc/vehicle.cpp21#include "aircraft.h"COMMENT
LOWsrc/vehicle.cpp41#include "core/random_func.hpp"COMMENT
LOWsrc/station.cpp1/*COMMENT
LOWsrc/station.cpp21#include "station_base.h"COMMENT
1099 more matches not shown…
Structural Annotation Overuse8 hits · 14 pts
SeverityFileLineSnippetContext
LOWdocs/releasing_openttd.md5## Step 0: Branch or BackportCOMMENT
LOW⚡docs/releasing_openttd.md21## Step 1: Prepare changelog documentationCOMMENT
LOW⚡docs/releasing_openttd.md30## Step 2: Prepare website release announcementCOMMENT
LOW⚡docs/releasing_openttd.md39## Step 3: Make the actual OpenTTD releaseCOMMENT
LOWdocs/releasing_openttd.md53## Step 4: Tell the worldCOMMENT
LOWsrc/3rdparty/fmt/format-inl.h1260 // Step 1: integer promotion & Schubfach multiplier calculation.COMMENT
LOWsrc/3rdparty/fmt/format-inl.h1315 // Step 2: Try larger divisor; remove trailing zeros if necessary.COMMENT
LOWsrc/3rdparty/fmt/format-inl.h1347 // Step 3: Find the significand with the smaller divisor.COMMENT
AI Slop Vocabulary4 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMos/emscripten/shell.html138 // application robust, you may want to override this behavior before shipping!COMMENT
MEDIUMsrc/smallmap_gui.cpp1228 cur_index = - 1; // Definitely different from new_index.CODE
MEDIUMsrc/saveload/saveload.h263 RobustEnginePreview, ///< Saveload version: 179, SVN revision: 24810\n Make engine preview offers robust when company rCODE
MEDIUMsrc/3rdparty/fmt/format.h3207 // Compilers are not aware of how to leverage the maximum value ofCOMMENT
Excessive Try-Catch Wrapping4 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMsrc/os/unix/crashlog_unix.cpp87 fmt::print("Something went wrong when attempting to fill {} section of the crash log.\n", section_name);CODE
MEDIUMsrc/os/macosx/crashlog_osx.cpp94 fmt::print("Something went wrong when attempting to fill {} section of the crash log.\n", section_name);CODE
MEDIUMsrc/os/windows/crashlog_win.cpp126 fmt::print("Something went wrong when attempting to fill {} section of the crash log.\n", section_name);CODE
MEDIUMsrc/os/windows/crashlog_win.cpp140 fmt::print("Something went wrong when attempting to fill {} section of the crash log.\n", section_name);CODE
Slop Phrases5 hits · 8 pts
SeverityFileLineSnippetContext
LOWsrc/road_cmd.cpp443 /* flooding tile with road works, don't forget to remove the effect vehicle too */COMMENT
LOWsrc/town_cmd.cpp660 /* If we are multi-tile houses, make sure to replace the houseCOMMENT
LOWsrc/transparency.h20 * If you add or remove an option don't forget to change the transparency 'hot keys' in main_gui.cpp.COMMENT
LOWsrc/vehicle_cmd.cpp581 * @param veh_id vehicle to start/stop, don't forget to change CcStartStopVehicle if you modify this!COMMENT
LOWsrc/3rdparty/monocypher/monocypher.h255// Don't forget to add authentication.COMMENT
Redundant / Tautological Comments3 hits · 7 pts
SeverityFileLineSnippetContext
LOW⚡.github/workflows/release-source.yml64 # Check if we are a tag.COMMENT
LOW⚡.github/workflows/release-source.yml69 # Check if the checkout caused the branch to be named.COMMENT
LOW⚡.github/workflows/release-source.yml74 # Check if this was a pull request.COMMENT
Verbosity Indicators4 hits · 6 pts
SeverityFileLineSnippetContext
LOWsrc/3rdparty/fmt/format-inl.h1260 // Step 1: integer promotion & Schubfach multiplier calculation.COMMENT
LOWsrc/3rdparty/fmt/format-inl.h1315 // Step 2: Try larger divisor; remove trailing zeros if necessary.COMMENT
LOWsrc/3rdparty/fmt/format-inl.h1347 // Step 3: Find the significand with the smaller divisor.COMMENT
LOWsrc/3rdparty/catch2/catch.hpp12659 // No children have started. We need to check if they _can_COMMENT
Hyper-Verbose Identifiers4 hits · 4 pts
SeverityFileLineSnippetContext
LOW.github/file-descriptions.py19def read_files_list_from_file(file_path):CODE
LOWsrc/network/network_crypto.h87class NetworkAuthenticationPasswordRequestHandler : public NetworkAuthenticationPasswordRequest {CODE
LOWsrc/network/network_client.cpp711class ClientGamePasswordRequestHandler : public NetworkAuthenticationPasswordRequestHandler {CODE
LOWsrc/tests/test_network_crypto.cpp56class TestPasswordRequestHandler : public NetworkAuthenticationPasswordRequestHandler {CODE
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippetContext
LOW.github/unused-strings.py36CODE
LOW.github/file-descriptions.py31CODE
LOW.github/changelog.py9CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMsrc/script/api/doxygen_filter.sh3# This file is part of OpenTTD.COMMENT