AI Slop Code Risk Monitor

CorsixTH/CorsixTH

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

Open source clone of Theme Hospital

0.7 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for CorsixTH/CorsixTH, a Lua project with 4,627 GitHub stars. SynthScan examined 197,168 lines of code across 505 source files, recording 126 pattern matches distributed across 8 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.

0.7
Adjusted Signal
0.7
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
4.6K
Stars
Lua
Language
197.2K
Lines of Code
505
Files
126
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 2.8/100 · LOW

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

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

PR Review Velocity Impact 4.0/100 · LOW

Which changes need focused human review? 126 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 17LOW 109

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

Over-Commented Block81 hits · 81 pts
SeverityFileLineSnippetContext
LOWCMakeLists.txt1# Cmake File for CorsixTHCOMMENT
LOWSpriteEncoder/tokens.h81#else /* ! YYPARSE_PARAM */COMMENT
LOWSpriteEncoder/scanner.cpp1#line 2 "scanner.cpp"COMMENT
LOWSpriteEncoder/scanner.cpp61#endifCOMMENT
LOWSpriteEncoder/scanner.cpp81#define UINT16_MAX (65535U)COMMENT
LOWSpriteEncoder/scanner.cpp141#define YY_END_OF_BUFFER_CHAR 0COMMENT
LOWSpriteEncoder/parser.cpp81# define YY_NULL 0COMMENT
LOWSpriteEncoder/parser.cpp141int yyparse ();COMMENT
LOWSpriteEncoder/parser.cpp181#endifCOMMENT
LOWSpriteEncoder/parser.cpp201#endifCOMMENT
LOWSpriteEncoder/parser.cpp241COMMENT
LOWSpriteEncoder/parser.cpp261# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */COMMENT
LOWSpriteEncoder/parser.cpp281# elseCOMMENT
LOWSpriteEncoder/parser.cpp641#endifCOMMENT
LOWCorsixTH/resource.h1//{{NO_DEPENDENCIES}}COMMENT
LOWCorsixTH/Bitmap/readme.txt21#10 - fullscreen_border_topleft.bmpCOMMENT
LOWCorsixTH/CppTest/CMakeLists.txt1# MIT LicenseCOMMENT
LOWCorsixTH/SrcUnshared/main.cpp21*/COMMENT
LOWCorsixTH/Src/midi_player.h21*/COMMENT
LOWCorsixTH/Src/lua.hpp21*/COMMENT
LOWCorsixTH/Src/lua.hpp61COMMENT
LOWCorsixTH/Src/th_gfx_font.h21*/COMMENT
LOWCorsixTH/Src/th_lua_map.cpp21*/COMMENT
LOWCorsixTH/Src/th_map.cpp21*/COMMENT
LOWCorsixTH/Src/th_map.h201 link_list entities;COMMENT
LOWCorsixTH/Src/th_lua_gfx.cpp21*/COMMENT
LOWCorsixTH/Src/th_lua_gfx.cpp381COMMENT
LOWCorsixTH/Src/th_lua_gfx.cpp401//! <dd>A table with fields "offset_x", "offset_y" and "color". The colorCOMMENT
LOWCorsixTH/Src/th_gfx.cpp21*/COMMENT
LOWCorsixTH/Src/th_lua.cpp21*/COMMENT
LOWCorsixTH/Src/th_lua_midi.cpp21*/COMMENT
LOWCorsixTH/Src/random.c41 email: m-mat @ math.sci.hiroshima-u.ac.jp (remove space)COMMENT
LOWCorsixTH/Src/sdl_core.cpp21*/COMMENT
LOWCorsixTH/Src/th_gfx.h21*/COMMENT
LOWCorsixTH/Src/th_gfx.h361 unsigned int flags; ///< Flags of the frame. Bit 0=start of animation.COMMENT
LOWCorsixTH/Src/th_lua_sound.cpp21*/COMMENT
LOWCorsixTH/Src/th_pathfind.cpp21*/COMMENT
LOWCorsixTH/Src/th_gfx_font.cpp21*/COMMENT
LOWCorsixTH/Src/th_gfx_sdl.cpp21*/COMMENT
LOWCorsixTH/Src/th_sound.cpp21*/COMMENT
LOWCorsixTH/Src/th_sound.h21*/COMMENT
LOWCorsixTH/Src/th_sound.h181 //!COMMENT
LOWCorsixTH/Src/th_sound.h201COMMENT
LOWCorsixTH/Src/lua_sdl.h21*/COMMENT
LOWCorsixTH/Src/th_lua.h21*/COMMENT
LOWCorsixTH/Src/iso_fs.cpp21*/COMMENT
LOWCorsixTH/Src/th.h41//! \brief Theme Hospital localised string listCOMMENT
LOWCorsixTH/Src/persist_lua.cpp21*/COMMENT
LOWCorsixTH/Src/main.cpp21*/COMMENT
LOWCorsixTH/Src/th_movie.cpp21*/COMMENT
LOWCorsixTH/Src/sdl_audio.cpp21*/COMMENT
LOWCorsixTH/Src/th_movie.h21*/COMMENT
LOWCorsixTH/Src/th_movie.h41COMMENT
LOWCorsixTH/Src/th_movie.h161 void reset();COMMENT
LOWCorsixTH/Src/th_movie.h181 //!COMMENT
LOWCorsixTH/Src/th_movie.h201 //! \remark If the movie_picture_buffer is not allocated it cannot be readCOMMENT
LOWCorsixTH/Src/th_movie.h261 //! Destroy the packet queue.COMMENT
LOWCorsixTH/Src/th_movie.h321COMMENT
LOWCorsixTH/Src/th_movie.h361COMMENT
LOWCorsixTH/Src/th_movie.h381COMMENT
21 more matches not shown…
Excessive Try-Catch Wrapping16 hits · 32 pts
SeverityFileLineSnippetContext
MEDIUMCorsixTH/Bitmap/mkraw.lua38 print("Error: Extension must must be .bmp")CODE
MEDIUMCorsixTH/Lua/world.lua1019 print("Error while autosaving game: " .. err)CODE
MEDIUMCorsixTH/Lua/app.lua1732 print("Error loading " .. dir .. file .. ":\n" .. tostring(result))CODE
MEDIUMCorsixTH/Lua/graphics.lua124 print("Error: An invalid custom graphics mapping file was found")CODE
MEDIUMCorsixTH/Lua/graphics.lua860 print("Error when loading custom animations:\n" .. err)CODE
MEDIUMCorsixTH/Lua/strings.lua49 print("Error loading languages" .. pathsep .. file .. ":\n" .. tostring(err))CODE
MEDIUMCorsixTH/Lua/strings.lua120 print("Error evaluating " .. filename .. ":\n" .. tostring(err))CODE
MEDIUMCorsixTH/Lua/strings.lua342 print("Error evaluating " .. self.language_chunks[chunk] .. ":\n" .. tostring(err))CODE
MEDIUMCorsixTH/Lua/audio.lua297 print("Error: Audio dump failed because info.csv couldn't be created and/or opened in the dump directory:" .. out_diCODE
MEDIUMCorsixTH/Lua/dialogs/tree_ctrl.lua288 print("Error while fetching children for " .. self.path .. ": " .. err)CODE
MEDIUMCorsixTH/Lua/dialogs/resizables/lua_console.lua118 print("Error while loading UserFunction:")CODE
MEDIUMCorsixTH/Lua/dialogs/resizables/lua_console.lua126 print("Error while executing UserFunction:")CODE
MEDIUMscripts/sound-dat-repair.py74 print(f"Error: Input file '{input_dat_path}' not found.",CODE
MEDIUMscripts/sound-dat-repair.py81 print("Error: File is too small to be a valid sound archive.",CODE
MEDIUMscripts/sound-dat-repair.py92 print(f"Error: Header position {header_position} out of bounds.",CODE
MEDIUMscripts/sound-dat-repair.py119 print(f"Error: Table entry {i} out of bounds.", file=sys.stderr)CODE
Hyper-Verbose Identifiers15 hits · 15 pts
SeverityFileLineSnippetContext
LOWCorsixTH/Luatest/spec/entities/machine_spec.lua37 local function createMachineWithFakeInput()CODE
LOWCorsixTH/Luatest/spec/entities/object_spec.lua35 local function createObjectWithFakeInput()CODE
LOWCorsixTH/Lua/world.lua374local function isDiseaseUsableForNewPatient(self, disease, hospital)CODE
LOWCorsixTH/Lua/world.lua2030 local function setFootprintTilesPassable(passable)CODE
LOWCorsixTH/Lua/world.lua2113 local function setFootprintTilesPassable(passable)CODE
LOWCorsixTH/Lua/world.lua2192 local function setFootprintTilesPassable(passable) -- not used for SideObjectsCODE
LOWCorsixTH/Lua/app.lua642 local function revertToSupportedLanguage()CODE
LOWCorsixTH/Lua/window.lua1780local --[[persistable:window_drag_position_representation]] function getNicestPositionRepresentation(pos, scale, size, dCODE
LOWCorsixTH/Lua/epidemic.lua365local function getBaseReputationFromFine(fine_amount)CODE
LOWCorsixTH/Lua/persistance.lua74local function MakePermanentObjectsTable(inverted)CODE
LOWCorsixTH/Lua/humanoid_actions/die.lua115 local function tryToUseHellDeathSpawnScenario(spawn_scenario)CODE
LOWCorsixTH/Lua/dialogs/edit_room.lua1293local function doorWallOffsetCalculations(x, y, wall)CODE
LOWCorsixTH/Lua/dialogs/resizables/map_editor.lua841local function computeCursorSpriteAtArea(minx, miny, maxx, maxy, dx, dy)CODE
LOWCorsixTH/Lua/dialogs/fullscreen/graphs.lua100local function computeVerticalValuePosition(graph_line, value)CODE
LOWCorsixTH/Lua/entities/object.lua447local function coordinatesAreInFootprint(object_footprint, xpos, ypos)CODE
Slop Phrases5 hits · 5 pts
SeverityFileLineSnippetContext
LOWCorsixTH/Lua/languages/danish.lua2560-- Don't forget to change all references in the code and other language files.CODE
LOWCorsixTH/Lua/languages/norwegian.lua3309-- Don't forget to change all references in the code and other language files.CODE
LOWCorsixTH/Lua/languages/original_strings.lua217-- Don't forget to change all references in the code and other language files.CODE
LOWCorsixTH/Lua/languages/finnish.lua2801-- Don't forget to change all references in the code and other language files.CODE
LOWCorsixTH/Lua/languages/hungarian.lua1434-- Don't forget to change all references in the code and other language files.CODE
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOWscripts/check_lua_classes.py41 # Read the file while finding class definition lines.COMMENT
LOW.github/workflows/Linux.yml81 # Check if there is bad whitespace.COMMENT
LOW.github/workflows/Linux.yml85 # Check if there are lua classes with invalid/improper declarations.COMMENT
Deep Nesting4 hits · 4 pts
SeverityFileLineSnippetContext
LOWSpriteEncoder/decode.py103CODE
LOWscripts/check_lua_classes.py35CODE
LOWscripts/check_whitespace.py35CODE
LOWscripts/check_whitespace.py61CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMscripts/check_lua_classes.py62 # Create a matcher for the '--- @class Foo: Bar' line that should exist.COMMENT
Verbosity Indicators1 hit · 1 pts
SeverityFileLineSnippetContext
LOWCorsixTH/Lua/dialogs/place_objects.lua955 -- we need to check if the failure to get the distance is due to the presence of an object in the adjacent tileCODE