AI Slop Code Risk Monitor

dlang/dmd

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

dmd D Programming Language compiler

0.9 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for dlang/dmd, a D project with 3,332 GitHub stars. SynthScan examined 87,621 lines of code across 653 source files, recording 68 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 0.9 (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.9
Adjusted Signal
0.9
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
3.3K
Stars
D
Language
87.6K
Lines of Code
653
Files
68
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 4.4/100 · LOW

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

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

PR Review Velocity Impact 4.3/100 · LOW

Which changes need focused human review? 68 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 5LOW 63

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 68 distinct pattern matches across 5 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 Block59 hits · 59 pts
SeverityFileLineSnippetContext
LOWdruntime/test/shared/src/host.c1#include <stdlib.h>COMMENT
LOWdruntime/test/importc_compare/src/importc_includes.c1#define __alignof__ _AlignofCOMMENT
LOWdruntime/test/importc_compare/src/importc_includes.c21#endifCOMMENT
LOWdruntime/test/importc_compare/src/importc_includes.c41#if __has_include(<semaphore.h>)COMMENT
LOWdruntime/test/importc_compare/src/importc_includes.c61#endifCOMMENT
LOWdruntime/test/importc_compare/src/importc_includes.c81#if __has_include(<sys/ipc.h>)COMMENT
LOWdruntime/test/importc_compare/src/importc_includes.c101#endifCOMMENT
LOWdruntime/src/importc.h81#ifndef _WCHAR_T_DEFINEDCOMMENT
LOWdruntime/src/importc.h101 * DMC-specific extensions, https://digitalmars.com/ctg/pointers16.htmlCOMMENT
LOWdruntime/src/importc.h141#define __builtin___strcat_chk(dest, src, x) strcat(dest,src)COMMENT
LOWdruntime/src/importc.h161// then undefing __sym_compat, the normal __sym_compat gets used.COMMENT
LOWdruntime/src/importc.h201COMMENT
LOWdruntime/src/importc.h221#endif // __linux__ || __GNU__COMMENT
LOWdruntime/src/include/importc_msvc_builtins.h21 Denoting unreachable code is the more important duty,COMMENT
LOWdruntime/src/include/importc_msvc_builtins.h61#pragma function_decl(ignore, _disable, _enable)COMMENT
LOWdruntime/src/include/importc_msvc_builtins.h81COMMENT
LOWdruntime/src/include/importc_msvc_builtins.h101#pragma function_decl(ignore, _cvt_dtoi_sat, _cvt_dtoll_sat, _cvt_dtoui_sat, _cvt_dtoull_sat, _cvt_ftoi_sent, _cvt_ftollCOMMENT
LOWdruntime/src/include/importc_msvc_builtins.h121#pragma function_decl(ignore, __sidt)COMMENT
LOWdruntime/src/include/importc_msvc_builtins.h141#pragma function_decl(ignore, __lzcnt64, _lzcnt_u64, _tzcnt_u64)COMMENT
LOWdruntime/src/include/importc_msvc_builtins.h161#pragma function_decl(ignore, _InterlockedAnd_acq, _InterlockedAnd_rel, _InterlockedAnd_nf, _InterlockedAnd8_acq, _InterCOMMENT
LOWdruntime/src/etc/valgrind/valgrind.h121#undef PLAT_ppc64le_linuxCOMMENT
LOWdruntime/src/etc/valgrind/valgrind.h141 || defined(__CYGWIN32__) \COMMENT
LOWdruntime/src/etc/valgrind/valgrind.h161# define PLAT_arm_linux 1COMMENT
LOWdruntime/src/etc/valgrind/valgrind.h7141 Note that unknown or not dynamically changeable optionsCOMMENT
LOWdruntime/src/etc/valgrind/valgrind.h7161#undef PLAT_nanomips_linuxCOMMENT
LOW.github/workflows/release.yml1# GitHub Action to build releases on commandCOMMENT
LOW.github/workflows/nightlies.yml1# Github Action to build nightly releasesCOMMENT
LOW.github/workflows/runnable_cxx.yml1# Github action to test for C++ interoperabilityCOMMENT
LOW…l_compilation/importc_pragma_construct_consideration.c1COMMENT
LOW…st/runnable/importc_pragma_construct_consideration_c.c1// EXTRA_SOURCES: imports/importc_pragma_construct_consideration.dCOMMENT
LOWcompiler/test/runnable/test_switches.sh1#!/usr/bin/env bashCOMMENT
LOWcompiler/test/compilable/msvc_intrinsics.c1// DISABLED: osx linux freebsd openbsd netbsd dragonflybsd hurdCOMMENT
LOWcompiler/test/compilable/stdcheaders.c1/* Do a smoke test of the C Standard headers.COMMENT
LOWcompiler/test/compilable/stdcheaders.c21COMMENT
LOWcompiler/test/compilable/stdcheaders.c41#ifndef __APPLE__ // /Applications/Xcode-14.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clangCOMMENT
LOWcompiler/test/compilable/stdcheaders.c61#ifndef __clang__COMMENT
LOWcompiler/test/compilable/stdcheaders.c81#ifndef __APPLE__ // no uchar.hCOMMENT
LOWcompiler/test/compilable/pragmapack.c61 char a;COMMENT
LOWcompiler/test/compilable/pragmapack.c81#pragma pack(pop,a)COMMENT
LOWcompiler/test/compilable/test21246.c1// https://github.com/dlang/dmd/issues/21246COMMENT
LOWcompiler/test/compilable/imports/imp20344.c1// https://github.com/dlang/dmd/issues/20334COMMENT
LOWcompiler/test/compilable/imports/defines.c21#define F64 8.0fCOMMENT
LOWcompiler/test/compilable/imports/defines.c41#define pr16199_trigger(cond,func,args) _Generic (cond, default: func args)COMMENT
LOWcompiler/test/compilable/imports/defines.c61#define NEGATIVE_U32 -2UCOMMENT
LOWcompiler/include/dmd/declaration.h61 #define STCparameter 0x20ULL /// is function parameterCOMMENT
LOWcompiler/include/dmd/declaration.h81 #define STCreturn 0x200000ULL /// 'return ref' or 'return scope' for function parametersCOMMENT
LOWcompiler/include/dmd/declaration.h101 #define STCtrusted 0x4000000000ULL /// `@trusted`COMMENT
LOWcompiler/include/dmd/root/dcompat.h41typedef unsigned d_size_t;COMMENT
LOWcompiler/include/dmd/root/dsystem.h21COMMENT
LOWcompiler/include/dmd/root/longdouble.h221#undef LDBL_MINCOMMENT
LOWcompiler/src/vcbuild/warnings.h1#pragma warning(disable:4996) // This function or variable may be unsafe.COMMENT
LOWcompiler/src/vcbuild/warnings.h21#pragma warning(disable:4305) // 'initializing' : truncation from 'double' to 'float'COMMENT
LOWcompiler/src/vcbuild/warnings.h41#define __pascalCOMMENT
LOWcompiler/src/vcbuild/stdint.h61#ifndef _INTPTR_T_DEFINEDCOMMENT
LOWcompiler/src/vcbuild/stdint.h81typedef unsigned long long uintmax_t;COMMENT
LOWcompiler/src/vcbuild/stdint.h101COMMENT
LOWcompiler/src/vcbuild/stdint.h121#define INT_FAST32_MIN INT32_MINCOMMENT
LOWcompiler/src/vcbuild/stdint.h141#define INTPTR_MIN INT32_MINCOMMENT
LOWcompiler/src/vcbuild/stdint.h201#define INTMAX_C(val) INT64_C(val)COMMENT
Self-Referential Comments4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMci/cirrusci.sh4# This file is invoked from the DMD and Phobos CI YAMLsCOMMENT
MEDIUMci/run.sh4# This file is invoked from the DMD and Phobos CI YAMLs.COMMENT
MEDIUM.github/workflows/release.yml73 # Create the new release using the downloaded artifactsCOMMENT
MEDIUM.github/workflows/nightlies.yml83 # Create the new release using the downloaded artifactsCOMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/runnable_cxx.yml6# but becomes problematic when we want to test more cutting-edge features,COMMENT
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippetContext
LOWcompiler/tools/gen_cpp_layout_test.py212CODE
LOWcompiler/tools/gen_cpp_layout_test.py248CODE
LOWcompiler/tools/gen_cpp_layout_test.py457CODE
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOW.github/workflows/runnable_cxx.yml14# - When debugging/troubleshooting, make sure to check the printed compiler versions.COMMENT