AI Slop Code Risk Monitor

TwilitRealm/dusklight

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

Dusklight brings a classic adventure to PC and mobile platforms with a variety of fixes and improvements.

0.6 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for TwilitRealm/dusklight, a C++ project with 6,169 GitHub stars. SynthScan examined 2,239,583 lines of code across 19171 source files, recording 1288 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 0.6 (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.6
Adjusted Signal
0.6
Raw Pattern Score
100%
Time Factor
2026-10-26
Last Push
6.2K
Stars
C++
Language
2.2M
Lines of Code
19.2K
Files
1.3K
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? 1280 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

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

Agent Over-Engineering Ratio 0.0/100 · LOW

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

PR Review Velocity Impact 2.9/100 · LOW

Which changes need focused human review? 1288 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 1MEDIUM 2LOW 1285

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 1288 distinct pattern matches across 6 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 Block1274 hits · 1264 pts
SeverityFileLineSnippetContext
LOWinclude/dusk_pch.hpp1#pragma onceCOMMENT
LOWinclude/global.h1#ifndef _global_h_COMMENT
LOWinclude/global.h21#define PLATFORM_SHIELD (VERSION >= VERSION_SHIELD && VERSION <= VERSION_SHIELD_DEBUG)COMMENT
LOWinclude/global.h41// Align X to the next N bytes (N must be power of two)COMMENT
LOWinclude/global.h61COMMENT
LOWinclude/global.h81extern int __rlwimi(int, int, int, int, int);COMMENT
LOWinclude/global.h121// Data symbols exported from the main exe need dllimport on the mod side. The game itselfCOMMENT
LOWinclude/global.h141COMMENT
LOWinclude/global.h181 (void*)0; (void*)0; (void*)0; (void*)0; (void*)0; (void*)0; (void*)0; (void*)0; (void*)0; (void*)0; \COMMENT
LOWinclude/global.h201 #define UNSET_FLAG(var, flag, type) (var) &= (type)~(flag)COMMENT
LOWinclude/global.h221 return out;COMMENT
LOWinclude/global.h241#if defined(__MWERKS__) || defined(DECOMPCTX)COMMENT
LOWinclude/global.h261#define IF_DUSK_ARG(expr)COMMENT
LOWinclude/global.h281#define DUSK_GIVE_TAG(name) IF_DUSK_ARG(::dusk::mods::item_give_tag(name))COMMENT
LOWinclude/angle_utils.h1#ifndef _ANGLE_UTILS_H_COMMENT
LOWinclude/angle_utils.h21#define S8_SUB(x, y) VAR_SUB_CAST(x, y, s8)COMMENT
LOWinclude/angle_utils.h41 #define S8_ADD_2 VAR_ADDCOMMENT
LOWinclude/angle_utils.h61#elseCOMMENT
LOWinclude/weak_bss_1109_to_1009.h1#ifndef WEAK_BSS_1109_TO_1009_HCOMMENT
LOWinclude/f_pc/f_pc_manager.h1#ifndef F_PC_MANAGER_H_COMMENT
LOWinclude/f_pc/f_pc_profile_lst.h1#ifndef F_PC_PROFILE_LST_H_COMMENT
LOWinclude/m_Do/m_Do_audio.h1#ifndef M_DO_M_DO_AUDIO_HCOMMENT
LOWinclude/m_Do/m_Do_graphic.h1#ifndef M_DO_M_DO_GRAPHIC_HCOMMENT
LOWinclude/m_Do/m_Do_MemCard.h1#ifndef M_DO_M_DO_MEMCARD_HCOMMENT
LOWinclude/f_op/f_op_actor_mng.h1#ifndef F_OP_ACTOR_MNG_H_COMMENT
LOWinclude/TRK_MINNOW_DOLPHIN/Os/dolphin/usr_put.h1#ifndef OS_DOLPHIN_USR_PUT_HCOMMENT
LOWinclude/TRK_MINNOW_DOLPHIN/MetroTRK/Portable/dispatch.h1#ifndef METROTRK_PORTABLE_DISPATCH_HCOMMENT
LOWinclude/SSystem/SComponent/c_math.h1#ifndef C_MATH_HCOMMENT
LOWinclude/SSystem/SComponent/c_angle.h1#ifndef C_ANGLE_HCOMMENT
LOWinclude/Z2AudioLib/Z2AudioMgr.h1#ifndef Z2AUDIOMGR_HCOMMENT
LOWinclude/d/d_drawlist.h1#ifndef D_D_DRAWLIST_HCOMMENT
LOWinclude/d/d_msg_class.h1#ifndef D_MSG_D_MSG_CLASS_HCOMMENT
LOWinclude/d/d_msg_class.h721#define MSGTAG_TYPE 2COMMENT
LOWinclude/d/d_msg_class.h741#define MSGTAG_UP_ARROW 22COMMENT
LOWinclude/d/d_msg_class.h761#define MSGTAG_WHITE_TARGET 42COMMENT
LOWinclude/d/d_msg_class.h781#define MSGTAG_CURRENT_LETTER_PAGE 62COMMENT
LOWinclude/d/d_msg_class.h801#define MSGTAG_WII_NUNCHUK 16COMMENT
LOWinclude/d/d_msg_class.h821#define MSGTAG_GLYPH_CENT 13COMMENT
LOWinclude/d/d_msg_class.h841#define MSGTAG_REFMARK 5COMMENT
LOWinclude/d/d_file_select.h1#ifndef D_FILE_D_FILE_SELECT_HCOMMENT
LOWinclude/d/d_com_inf_game.h1#ifndef D_COM_D_COM_INF_GAME_HCOMMENT
LOWinclude/d/d_stage.h1#ifndef D_D_STAGE_HCOMMENT
LOWinclude/d/d_camera.h1#ifndef D_D_CAMERA_HCOMMENT
LOWinclude/d/d_s_play.h121 * Short Reg(00-09) ... -32768 - +32768COMMENT
LOWinclude/d/d_s_play.h141#define SREG_F(i) g_regHIO.mChildReg[3].mFloatReg[i]COMMENT
LOWinclude/d/d_s_play.h161#define BREG_F(i) g_regHIO.mChildReg[8].mFloatReg[i]COMMENT
LOWinclude/d/d_s_play.h181#define WREG_F(i) g_regHIO.mChildReg[13].mFloatReg[i]COMMENT
LOWinclude/d/d_s_play.h201#define ZREG_F(i) g_regHIO.mChildReg[18].mFloatReg[i]COMMENT
LOWinclude/d/d_s_play.h221#define aREG_F(i) g_regHIO.mChildReg[23].mFloatReg[i]COMMENT
LOWinclude/d/d_s_play.h241#define IREG_F(i) (0.0f)COMMENT
LOWinclude/d/d_s_play.h261#define KREG_F(i) (0.0f)COMMENT
LOWinclude/d/d_s_play.h281#define NREG_F(i) (0.0f)COMMENT
LOWinclude/d/d_s_play.h301#define XREG_F(i) (0.0f)COMMENT
LOWinclude/d/d_s_play.h321#define yREG_F(i) (0.0f)COMMENT
LOWinclude/d/dolzel.h1#ifndef DOLZEL_HCOMMENT
LOWinclude/d/d_demo.h1#ifndef D_D_DEMO_HCOMMENT
LOWinclude/d/d_bg_w.h1#ifndef D_BG_D_BG_W_HCOMMENT
LOWinclude/d/d_save.h1#ifndef D_SAVE_D_SAVE_HCOMMENT
LOWinclude/d/d_a_horse_static.h1#ifndef D_A_D_A_HORSE_STATIC_HCOMMENT
LOWinclude/d/dolzel_rel.h1#ifndef DOLZEL_REL_HCOMMENT
1214 more matches not shown…
Fake / Example Data8 hits · 8 pts
SeverityFileLineSnippetContext
LOWlibs/dolphin/src/ar/ar.c257 u32* dummy_data;CODE
LOWlibs/dolphin/src/ar/ar.c275 dummy_data = (u32*)(OSRoundUp32B((u32)(dummy_data_pad)));CODE
LOWlibs/dolphin/src/ar/ar.c286 *(dummy_data + i) = 0xBAD0BAD0;COMMENT
LOWlibs/dolphin/src/ar/ar.c290 DCFlushRange((void*)dummy_data, 0x20);CODE
LOWlibs/dolphin/src/ar/ar.c323 __ARWriteDMA((u32)dummy_data, ARAM_size + 0x0200000, 0x20);CODE
LOWlibs/dolphin/src/ar/ar.c339 __ARWriteDMA((u32)dummy_data, ARAM_size + 0x1000000, 0x20);CODE
LOWlibs/dolphin/src/ar/ar.c356 __ARWriteDMA((u32)dummy_data, ARAM_size + 0x0000200, 0x20);CODE
LOWlibs/dolphin/src/ar/ar.c374 __ARWriteDMA((u32)dummy_data, ARAM_size + 0x0400000, 0x20);CODE
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMsrc/d/d_menu_collect.cpp804#if TARGET_PC // Since we allow changing wallet sizes, do something more robust.COMMENT
MEDIUMsrc/d/d_menu_collect.cpp804#if TARGET_PC // Since we allow changing wallet sizes, do something more robust.COMMENT
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHREADME.md18> Dusklight's official website is https://twilitrealm.dev/, any other website is not affiliated and may be promoting AI-CODE
Slop Phrases2 hits · 2 pts
SeverityFileLineSnippetContext
LOWlibs/JSystem/src/J3DGraphAnimator/J3DModel.cpp95 J3D_WARN1(149, "%s", "Don't forget to call J3DModel::setSkinDeform\n if you set J3DMdlFlag_SkinPosCpu.");CODE
LOWlibs/JSystem/src/J3DGraphAnimator/J3DModel.cpp99 J3D_WARN1(154, "%s", "Don't forget to call J3DModel::setSkinDeform\n if you set J3DMdlFlag_SkinNrmCpu.");CODE
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtools/mant_tear_exporter.py118CODE