AI Slop Code RIsk Monitor

crystal-lang/crystal

The Crystal Programming Language

4.1 Low pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for crystal-lang/crystal, a Crystal project with 20,446 GitHub stars. SynthScan examined 23,069 lines of code across 159 source files, recording 56 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 4.1 (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.

4.1
Adjusted Signal
4.1
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
20.4K
Stars
Crystal
Language
23.1K
Lines of Code
159
Files
56
Pattern Hits
2026-10-12
Scan Date
0.03
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 3.5/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 2.1/100 · LOW

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

Agent Over-Engineering Ratio 13.8/100 · LOW

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

PR Review Velocity Impact 21.2/100 · LOW

Which changes need focused human review? 56 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 4MEDIUM 17LOW 35

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 56 distinct pattern matches across 7 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.

Excessive Try-Catch Wrapping25 hits · 30 pts
SeverityFileLineSnippetContext
MEDIUMetc/lldb/crystal_formatters.py14def _env_int(name, default):CODE
MEDIUMetc/lldb/crystal_formatters.py61def _valid_child(value, index):CODE
MEDIUMetc/lldb/crystal_formatters.py74def _child_by_name(value, name):CODE
MEDIUMetc/lldb/crystal_formatters.py272def get_child_index(self, name):CODE
MEDIUMetc/lldb/crystal_formatters.py295def CrystalArray_SummaryProvider(value, dict):CODE
MEDIUMetc/lldb/crystal_formatters.py338def CrystalString_SummaryProvider(value, dict):CODE
MEDIUMetc/lldb/crystal_formatters.py431def CrystalHash_SummaryProvider(value, dict):CODE
MEDIUMetc/lldb/crystal_formatters.py455def CrystalSet_SummaryProvider(value, dict):CODE
MEDIUMetc/lldb/crystal_formatters.py581def CrystalUnion_SummaryProvider(value, dict):CODE
MEDIUMetc/lldb/crystal_formatters.py595def CrystalRange_SummaryProvider(value, dict):CODE
LOWetc/lldb/crystal_formatters.py19 except Exception:CODE
LOWetc/lldb/crystal_formatters.py42 except Exception:CODE
LOWetc/lldb/crystal_formatters.py51 except Exception:CODE
LOWetc/lldb/crystal_formatters.py64 except Exception:CODE
LOWetc/lldb/crystal_formatters.py79 except Exception:CODE
LOWetc/lldb/crystal_formatters.py90 except Exception:CODE
LOWetc/lldb/crystal_formatters.py133 except Exception:CODE
LOWetc/lldb/crystal_formatters.py290 except Exception as e:CODE
LOWetc/lldb/crystal_formatters.py326 except Exception as e:CODE
LOWetc/lldb/crystal_formatters.py366 except Exception:CODE
LOWetc/lldb/crystal_formatters.py426 except Exception as e:CODE
LOWetc/lldb/crystal_formatters.py451 except Exception as e:CODE
LOWetc/lldb/crystal_formatters.py479 except Exception as e:CODE
LOWetc/lldb/crystal_formatters.py591 except Exception:CODE
LOWetc/lldb/crystal_formatters.py608 except Exception as e:CODE
Empty Error Handlers4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHetc/lldb/crystal_formatters.py19except Exception:CODE
HIGHetc/lldb/crystal_formatters.py42except Exception:CODE
HIGHetc/lldb/crystal_formatters.py51except Exception:CODE
HIGHetc/lldb/crystal_formatters.py79except Exception:CODE
Decorative Section Separators6 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUM.ameba.yml18# =========================COMMENT
MEDIUM.ameba.yml25# =========================COMMENT
MEDIUM.ameba.yml122# =========================COMMENT
MEDIUM.ameba.yml129# =========================COMMENT
MEDIUM.ameba.yml166# =========================COMMENT
MEDIUM.ameba.yml176# =========================COMMENT
Over-Commented Block10 hits · 10 pts
SeverityFileLineSnippetContext
LOW.ameba.yml1# This configuration file was generated by `ameba --gen-config`COMMENT
LOWetc/win-ci/windres-rc.sh1#! /bin/shCOMMENT
LOWspec/generate_wasm32_spec.sh1#! /usr/bin/env bashCOMMENT
LOWspec/compiler/data/visibility.h1#ifdef _WIN32COMMENT
LOWspec/debug/test.sh1#!/bin/bashCOMMENT
LOWscripts/update-distribution-scripts.sh1#!/usr/bin/env shCOMMENT
LOWscripts/update-changelog.sh1#! /bin/shCOMMENT
LOWscripts/release-update.sh1#!/usr/bin/env shCOMMENT
LOW.github/actionlint.yaml21# are ignored. This is similar to the "-ignore" command line option.COMMENT
LOW.github/workflows/smoke.yml1# These jobs are smoke tests for platforms where we don't run full tests.COMMENT
Fake / Example Data7 hits · 10 pts
SeverityFileLineSnippetContext
LOW⚡spec/std/data/argf_test_file_3.xml4 <content>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus facilisis leo nunc, consectetur dictum libCODE
LOW⚡spec/std/data/argf_test_file_3.xml4 <content>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus facilisis leo nunc, consectetur dictum libCODE
LOW⚡spec/std/data/argf_test_file_3.xml11 <content>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus facilisis leo nunc, consectetur dictum libCODE
LOW⚡spec/std/data/argf_test_file_3.xml11 <content>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus facilisis leo nunc, consectetur dictum libCODE
LOW⚡spec/std/data/argf_test_file_3.xml18 <content>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus facilisis leo nunc, consectetur dictum libCODE
LOW⚡spec/std/data/argf_test_file_3.xml18 <content>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus facilisis leo nunc, consectetur dictum libCODE
LOWsrc/compiler/crystal/tools/playground/views/_about.html34s = "Lorem ipsum"CODE
Example Usage Blocks3 hits · 4 pts
SeverityFileLineSnippetContext
LOWscripts/update-distribution-scripts.sh6# Usage:COMMENT
LOWscripts/update-changelog.sh15# Usage:COMMENT
LOWscripts/release-update.sh5# Usage:COMMENT
Self-Referential Comments1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMspec/generate_wasm32_spec.sh36echo "# This file is autogenerated by \`${command% }\`"CODE