AI Slop Code RIsk Monitor

RetroPie/RetroPie-Setup

Shell script to set up a Raspberry Pi/Odroid/PC with RetroArch emulator and various cores

24.1 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for RetroPie/RetroPie-Setup, a Shell project with 10,428 GitHub stars. SynthScan examined 39,136 lines of code across 320 source files, recording 347 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 24.1 (Elevated 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.

24.1
Adjusted Signal
24.1
Raw Pattern Score
100%
Time Factor
2026-10-06
Last Push
10.4K
Stars
Shell
Language
39.1K
Lines of Code
320
Files
347
Pattern Hits
2026-10-12
Scan Date
0.01
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 69.5/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 0.1/100 · LOW

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

Agent Over-Engineering Ratio 1.6/100 · LOW

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

PR Review Velocity Impact 70.0/100 · HIGH

Which changes need focused human review? 347 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 2MEDIUM 292LOW 53

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

Self-Referential Comments292 hits · 876 pts
SeverityFileLineSnippetContext
MEDIUMretropie_setup.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMretropie_packages.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/helpers.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/helpers.sh774## This function is deprecated and instead setBackend should be used.COMMENT
MEDIUMscriptmodules/system.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/inifuncs.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/inifuncs.sh100## This function is useful for creating example configuration entries for usersCOMMENT
MEDIUMscriptmodules/archivefuncs.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/packages.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/admin/setup.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/admin/builder.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/admin/stats.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/admin/image.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/admin/joy2key.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/admin/tools.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/admin/crosscomp.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/admin/wikidocs.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/admin/apidocs.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/admin/joy2key/joy2key.py3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/admin/joy2key/osk.py232 # Create the main view, overlaying the popup widget with the main viewCOMMENT
MEDIUMscriptmodules/emulators/oricutron.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/mame.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/mame.sh122 # Create a BIOS directory, where people will be able to store their BIOS files, separate from ROMsCOMMENT
MEDIUMscriptmodules/emulators/mame.sh125 # Create the configuration directory for the MAME ini filesCOMMENT
MEDIUMscriptmodules/emulators/mame4all.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/scummvm-sdl1.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/fs-uae.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/dosbox-staging.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/redream.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/advmame-0.94.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/basilisk.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/yabasanshiro.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/xroar.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/gpsp.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/stratagus.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/pcsx-rearmed.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/atari800.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/dosbox.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/drastic.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/minivmac.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/fbzx.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/ppsspp-1.5.4.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/rpix86.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/dosbox-sdl2.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/daphne.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/hypseus.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/uae4all.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/hatari.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/gngeopi.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/vice.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/supermodel3.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/dgen.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/fuse.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/ppsspp.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/openmsx.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/advmame-1.4.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/xm7.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/sdltrs.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/capricerpi.sh3# This file is part of The RetroPie ProjectCOMMENT
MEDIUMscriptmodules/emulators/snes9x.sh3# This file is part of The RetroPie ProjectCOMMENT
232 more matches not shown…
Over-Commented Block37 hits · 37 pts
SeverityFileLineSnippetContext
LOWretropie_setup.sh1#!/usr/bin/env bashCOMMENT
LOWretropie_packages.sh1#!/usr/bin/env bashCOMMENT
LOWscriptmodules/helpers.sh1#!/bin/bashCOMMENT
LOWscriptmodules/helpers.sh721}COMMENT
LOWscriptmodules/helpers.sh781## @param delim ini file delimiter eg. ' = 'COMMENT
LOWscriptmodules/helpers.sh801## `get` or `set`. The function should return the value for get via `echo`COMMENT
LOWscriptmodules/helpers.sh821##COMMENT
LOWscriptmodules/helpers.sh1001## @fn ensureSystemretroconfig()COMMENT
LOWscriptmodules/helpers.sh1081 md_conf_root="$configdir"COMMENT
LOWscriptmodules/helpers.sh1321mode "$res"COMMENT
LOWscriptmodules/helpers.sh1461## @param id id of the module / commandCOMMENT
LOWscriptmodules/helpers.sh1521## @param cmd commandline to launchCOMMENT
LOWscriptmodules/helpers.sh1701## __NET_ERRMSG with an error message for use in packages / setup to display to the user if not.COMMENT
LOWscriptmodules/inifuncs.sh1#!/bin/bashCOMMENT
LOWscriptmodules/inifuncs.sh101## to manually enable later or if a configuration is to be disabled but leftCOMMENT
LOWscriptmodules/archivefuncs.sh1#!/bin/bashCOMMENT
LOWscriptmodules/admin/joy2key/joy2key.py1#!/usr/bin/python3COMMENT
LOWscriptmodules/emulators/hypseus/hypinput.ini1# Sample hypinput.iniCOMMENT
LOWscriptmodules/emulators/hypseus/hypinput.ini21# Defining 111 identifies second joystick(1) button 10COMMENT
LOWscriptmodules/emulators/hypseus/hypinput_gamepad.ini1# Sample hypinput.ini using SDL_GameControllerCOMMENT
LOWscriptmodules/emulators/hypseus/hypinput_gamepad.ini21# BUTTON_BCOMMENT
LOWscriptmodules/emulators/daphne/dapinput.ini1# Daphne cutom keyboard and joystick mappingCOMMENT
LOWscriptmodules/supplementary/bluetooth.sh1#!/usr/bin/env bashCOMMENT
LOWscriptmodules/supplementary/runcommand.sh1#!/usr/bin/env bashCOMMENT
LOW…s/supplementary/emulationstation/inputconfiguration.sh1#!/usr/bin/env bashCOMMENT
LOW…s/supplementary/emulationstation/inputconfiguration.sh21## `DEVICE_NAME` = name of the deviceCOMMENT
LOW…s/supplementary/emulationstation/inputconfiguration.sh41## NoneCOMMENT
LOW…supplementary/emulationstation/configscripts/daphne.sh21COMMENT
LOW…supplementary/emulationstation/configscripts/daphne.sh61_EOF_COMMENT
LOW…supplementary/emulationstation/configscripts/daphne.sh81COMMENT
LOW…upplementary/emulationstation/configscripts/openmsx.sh1#!/usr/bin/env bashCOMMENT
LOW…s/supplementary/emulationstation/configscripts/sdl2.sh1#!/usr/bin/env bashCOMMENT
LOW…s/supplementary/emulationstation/configscripts/sdl2.sh21# The script will produce a mapping string for a configured joystick in EmulationStation, then store the result in:COMMENT
LOWscriptmodules/supplementary/runcommand/runcommand.sh1#!/usr/bin/env bashCOMMENT
LOWscriptmodules/supplementary/runcommand/runcommand.sh21##COMMENT
LOWscriptmodules/supplementary/runcommand/runcommand.sh41## * VIDEO_MODE = "PAL/NTSC-RATIO": set mode to SD output with RATIO of 4:3 / 16:10 or 16:9COMMENT
LOWscriptmodules/supplementary/runcommand/runcommand.sh61## line switch to set the resolution.COMMENT
Empty Error Handlers2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHscriptmodules/admin/joy2key/joy2key.py128except (IOError, ValueError):CODE
HIGHscriptmodules/admin/joy2key/joy2key.py168except (OSError, ValueError):CODE
Redundant / Tautological Comments4 hits · 6 pts
SeverityFileLineSnippetContext
LOWscriptmodules/emulators/dosbox-staging.sh56 # Check if we have at least meson>=0.57, otherwise install it locally for the buildCOMMENT
LOWscriptmodules/supplementary/skyscraper.sh214 # Check if this a first time installCOMMENT
LOWscriptmodules/supplementary/audiosettings.sh24 # Check if the internal audio is enabledCOMMENT
LOWscriptmodules/supplementary/audiosettings.sh250 # Check if PulseAudio is running, otherwise 'pactl' will not workCOMMENT
AI Slop Vocabulary3 hits · 4 pts
SeverityFileLineSnippetContext
LOWscriptmodules/inifuncs.sh60 # if the stripped delimiter is empty - such as in the case of a space, just use the delimiter insteadCOMMENT
LOWscriptmodules/inifuncs.sh144 # if the stripped delimiter is empty - such as in the case of a space, just use the delimiter insteadCOMMENT
LOWscriptmodules/emulators/ppsspp.sh50 # remove the lines that trigger the ffmpeg build script functions - we will just use the variables from itCOMMENT
Excessive Try-Catch Wrapping3 hits · 3 pts
SeverityFileLineSnippetContext
LOWscriptmodules/admin/joy2key/joy2key_sdl.py274 except Exception as e:CODE
LOWscriptmodules/admin/joy2key/joy2key_sdl.py481 except Exception as e:CODE
LOWscriptmodules/admin/joy2key/joy2key_sdl.py511 except Exception as e:CODE
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippetContext
LOWscriptmodules/admin/joy2key/joy2key_sdl.py189CODE
LOWscriptmodules/admin/joy2key/joy2key_sdl.py223CODE
LOWscriptmodules/admin/joy2key/joy2key_sdl.py312CODE
Slop Phrases2 hits · 2 pts
SeverityFileLineSnippetContext
LOWscriptmodules/supplementary/moonlight.sh14rp_module_help="ROM Extensions: .ml\n\nCopy your moonlight launch configurations to $romdir/steam\n\nDon't forget to firCODE
LOWscriptmodules/supplementary/skyscraper.sh764 printMsgs "dialog" "ROMs information gathered.\n\nDon't forget to use 'Generate Game list(s)CODE
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWscriptmodules/admin/joy2key/joy2key_sdl.py35CODE