AI Slop Code Risk Monitor

nim-lang/Nim

SlopCodeMonitor badge for nim-lang/Nim Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).

1.4 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for nim-lang/Nim, a Nim project with 18,294 GitHub stars. SynthScan examined 50,441 lines of code across 246 source files, recording 60 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 1.4 (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.4
Adjusted Signal
1.4
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
18.3K
Stars
Nim
Language
50.4K
Lines of Code
246
Files
60
Pattern Hits
2026-10-31
Scan Date
0.01
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.0/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.5/100 · LOW

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

Agent Over-Engineering Ratio 1.6/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? 60 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 0LOW 58

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 60 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 Block36 hits · 34 pts
SeverityFileLineSnippetContext
LOWconfig/nim.cfg261@if vxworks:COMMENT
LOWconfig/nimdoc.cfg41</ul>COMMENT
LOWconfig/nimdoc.cfg81# See doc.item for available substitution variables.COMMENT
LOWtests/manyloc/packages/noconflicts.nim.cfg1# Mark noconflicts as project fileCOMMENT
LOWtests/compiler/nim.cfg1# note: consider moving tests/compilerapi/ to tests/compiler/ sinceCOMMENT
LOWlib/nimbase.h41 */COMMENT
LOWlib/nimbase.h61# pragma GCC diagnostic ignored "-Wunused-variable"COMMENT
LOWlib/nimbase.h81#endifCOMMENT
LOWlib/nimbase.h101#else /* others are less picky: */COMMENT
LOWlib/nimbase.h121# define NIM_THREADVAR __threadCOMMENT
LOWlib/nimbase.h141#if defined(__cplusplus)COMMENT
LOWlib/nimbase.h161/* ------------------------------------------------------------------- */COMMENT
LOWlib/nimbase.h181# define N_THISCALL_PTR(rettype, name) rettype (__thiscall *name)COMMENT
LOWlib/nimbase.h201# define N_CDECL_PTR(rettype, name) rettype (*name)COMMENT
LOWlib/nimbase.h221# define N_LIB_EXPORT_VAR __attribute__((visibility("default"), used))COMMENT
LOWlib/nimbase.h241#define N_NOINLINE_PTR(rettype, name) rettype (*name)COMMENT
LOWlib/nimbase.h261#define N_CLOSURE_PTR(rettype, name) N_NIMCALL_PTR(rettype, name)COMMENT
LOWlib/nimbase.h281#define NIM_STATIC_ASSERT(x, msg) _NIM_STATIC_ASSERT_STAGE_2(x,__LINE__)COMMENT
LOWlib/nimbase.h301#endifCOMMENT
LOWlib/nimbase.h321#define NIM_BOOL boolCOMMENT
LOWlib/nimbase.h341# elseCOMMENT
LOWlib/nimbase.h401#ifdef __INT32_TYPE__COMMENT
LOWlib/nimbase.h421#endifCOMMENT
LOWlib/nimbase.h441# elif NIM_INTBITS == 16COMMENT
LOWlib/nimbase.h481/* declared size of a sequence/variable length array: */COMMENT
LOWlib/nimbase.h501# define NAN (__builtin_nanf(""))COMMENT
LOWlib/nimbase.h541# define NIM_LIKELY(x) __builtin_expect(x, 1)COMMENT
LOWlib/nimbase.h561COMMENT
LOWlib/nimbase.h581# include <sys/types.h>COMMENT
LOWlib/nimbase.h601 #if ((defined(__arm__) && !defined(__unix__)) || defined(__riscv) || (defined(__xtensa__) && !defined(__unix__))) &&COMMENT
LOWlib/cycle.h81#if TIME_WITH_SYS_TIMECOMMENT
LOWlib/wrappers/linenoise/linenoise.c101 * Sequence: ESC [ 2 JCOMMENT
LOWdoc/testament.md121 action: "run"COMMENT
LOWdoc/testament.md161 # Error message the test should print, if any.COMMENT
LOWdoc/advopt.txt1Advanced commands:COMMENT
LOWdoc/tut3.md141 # output:COMMENT
Empty Error Handlers2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHtools/debug/nim-gdb.py63except:CODE
HIGHlib/pure/unidecode/gen.py11except ImportError:CODE
Redundant / Tautological Comments6 hits · 9 pts
SeverityFileLineSnippetContext
LOWtools/debug/nimlldb.py78 # Check if data pointer is NullCOMMENT
LOWtools/debug/nimlldb.py92 # Check if first element is NULLCOMMENT
LOWtools/debug/nimlldb.py109 # Check if data pointer is NullCOMMENT
LOWtools/debug/nimlldb.py121 # Check if first element is NULLCOMMENT
LOWtools/debug/nimlldb.py514 # Check if first element is NULLCOMMENT
LOWtools/debug/nimlldb.py531 # Check if first element is NULLCOMMENT
Deep Nesting4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtools/debug/nim-gdb.py98CODE
LOWtools/debug/nim-gdb.py240CODE
LOWtools/debug/nimlldb.py792CODE
LOWtools/debug/nimlldb.py763CODE
Unused Imports3 hits · 3 pts
SeverityFileLineSnippetContext
LOWtools/debug/nim-gdb.py4CODE
LOWtools/debug/nim-gdb.py5CODE
LOWtests/untestable/gdb/gdb_pretty_printer_test.py3CODE
Excessive Try-Catch Wrapping2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtools/debug/nim-gdb.py16except Exception as e:CODE
LOWtools/debug/nim-gdb.py687 except Exception as e:CODE
Hyper-Verbose Identifiers2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtools/debug/nim-gdb.py692def register_nim_pretty_printers_for_object(objfile):CODE
LOWtools/debug/nimlldb.py1240def breakpoint_function_wrapper(frame: lldb.SBFrame, bp_loc, internal_dict):CODE
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtools/debug/nimlldb.py230CODE
LOWtools/debug/nimlldb.py1313CODE
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/testdata/string.txt1Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magnCODE
LOWtests/testdata/string.txt1Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magnCODE
AI Slop Vocabulary1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtools/debug/nim-gdb.py118 tname = target_type.name # could also just return 'string'CODE