AI Slop Code Risk Monitor

ErsatzTV/legacy

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

Open-source platform that transforms your personal media library into live, custom TV channels.

0.1 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for ErsatzTV/legacy, a C# project with 3,029 GitHub stars. SynthScan examined 3,006,328 lines of code across 3727 source files, recording 162 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 0.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.

0.1
Adjusted Signal
0.1
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
3.0K
Stars
C#
Language
3.0M
Lines of Code
3.7K
Files
162
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 0.2/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.3/100 · LOW

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

Agent Over-Engineering Ratio 0.0/100 · LOW

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

PR Review Velocity Impact 0.5/100 · LOW

Which changes need focused human review? 162 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 14HIGH 6MEDIUM 3LOW 139

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

Hallucination Indicators14 hits · 180 pts
SeverityFileLineSnippetContext
CRITICALErsatzTV.Scanner/Worker.cs32 //HibernatingRhinos.Profiler.Appender.EntityFramework.EntityFrameworkProfiler.Initialize();COMMENT
CRITICALErsatzTV/Program.cs135 //HibernatingRhinos.Profiler.Appender.EntityFramework.EntityFrameworkProfiler.Initialize();COMMENT
CRITICALErsatzTV/wwwroot/lib/jqueryui/jquery-ui.min.js6(t=>{"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function(V){V.ui=V.ui||{};V.ui.version="1.14CODE
CRITICALErsatzTV/wwwroot/lib/jquery/jquery.min.js2!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):fCODE
CRITICALErsatzTV/Properties/Annotations.cs902/// <c>System.Web.Mvc.Html.ChildActionExtensions.RenderAction(HtmlHelper, String)</c>.COMMENT
CRITICALErsatzTV/Properties/Annotations.cs923/// <c>System.Web.Mvc.Html.ChildActionExtensions.RenderAction(HtmlHelper, String)</c>.COMMENT
CRITICALErsatzTV/Properties/Annotations.cs944/// <c>System.Web.Mvc.Html.ChildActionExtensions.RenderAction(HtmlHelper, String, String)</c>.COMMENT
CRITICALErsatzTV/Properties/Annotations.cs984/// <c>System.Web.Mvc.Html.RenderPartialExtensions.RenderPartial(HtmlHelper, String)</c>.COMMENT
CRITICALErsatzTV/Properties/Annotations.cs1003/// <c>System.Web.Mvc.Html.DisplayExtensions.DisplayForModel(HtmlHelper, String)</c>.COMMENT
CRITICALErsatzTV/Properties/Annotations.cs1013/// <c>System.Web.Mvc.Html.EditorExtensions.EditorForModel(HtmlHelper, String)</c>.COMMENT
CRITICALErsatzTV.Infrastructure/Search/LuceneSearchIndex.cs1615 $"{Title(em)}_{em.Episode.Season.Show.ShowMetadata.Head().Title}_{em.Year}_{em.Episode.Season.SeasonNumbCODE
CRITICAL…lication/MediaCollections/Commands/TraktCommandBase.cs402 .Filter(sm => sm.Episode.Season.Show.ShowMetadata.Any(s => s.Title == item.Title && s.Year == item.Year))CODE
CRITICALErsatzTV.Application/MediaCards/Mapper.cs71 episodeMetadata.Episode.Season.Show.ShowMetadata.HeadOrNone().Match(CODE
CRITICALErsatzTV.Application/MediaCards/Mapper.cs248 episodeMetadata.Episode.Season.Show.ShowMetadata.HeadOrNone();CODE
Over-Commented Block135 hits · 112 pts
SeverityFileLineSnippetContext
LOWhdhr.md41#define HDHOMERUN_CONTROL_TCP_PORT 65001COMMENT
LOWhdhr.md61#define HDHOMERUN_TAG_STORAGE_URL 0x28COMMENT
LOWErsatzTV.Core/Next/Playout.cs1// <auto-generated />COMMENT
LOWErsatzTV.Core/Next/Playout.cs21 using System.Globalization;COMMENT
LOWErsatzTV.Core/Next/Playout.cs41 [JsonPropertyName("version")]COMMENT
LOWErsatzTV.Core/Next/Playout.cs81 /// <summary>COMMENT
LOWErsatzTV.Core/Next/Playout.cs101 /// <summary>COMMENT
LOWErsatzTV.Core/Next/Playout.cs141 public GraphicsLocation Location { get; set; }COMMENT
LOWErsatzTV.Core/Next/Playout.cs201 /// (stale playout metadata) is stretched to the output size.COMMENT
LOWErsatzTV.Core/Next/Playout.cs221 /// chroma-subsampled output.COMMENT
LOWErsatzTV.Core/Next/Playout.cs241 /// The source providing the graphics media (typically an image, but any `PlayoutItemSource`COMMENT
LOWErsatzTV.Core/Next/Playout.cs261 /// `start` advances each tick, the resolver is re-hit while the transcode position remainsCOMMENT
LOWErsatzTV.Core/Next/Playout.cs301 /// read only once (at playback). See `ProbeHint`.COMMENT
LOWErsatzTV.Core/Next/Playout.cs321 /// Selects a dynamic source, resolved over HTTP when the item plays.COMMENT
LOWErsatzTV.Core/Next/Playout.cs341COMMENT
LOWErsatzTV.Core/Next/Playout.cs361COMMENT
LOWErsatzTV.Core/Next/Playout.cs381 ///COMMENT
LOWErsatzTV.Core/Next/Playout.cs421 /// the waits between them. Absent or 0 disables retry. Transport errors, timeouts and 5xxCOMMENT
LOWErsatzTV.Core/Next/Playout.cs441 /// </summary>COMMENT
LOWErsatzTV.Core/Next/Playout.cs501 /// Zero-based index of this stream within the source.COMMENT
LOWErsatzTV.Core/Next/Playout.cs521 /// Zero-based index of this stream within the source.COMMENT
LOWErsatzTV.Core/Next/Playout.cs541 /// <summary>COMMENT
LOWErsatzTV.Core/Next/Playout.cs561 /// "smpte2084" and "arib-std-b67" mark the stream as HDR. Omit for SDR.COMMENT
LOWErsatzTV.Core/Next/Playout.cs581 /// <summary>COMMENT
LOWErsatzTV.Core/Next/Playout.cs621COMMENT
LOWErsatzTV.Core/Next/Playout.cs641 /// </summary>COMMENT
LOWErsatzTV.Core/Next/Playout.cs661 {COMMENT
LOWErsatzTV.Core/Next/Playout.cs681 public long? FadeMs { get; set; }COMMENT
LOWErsatzTV.Core/Next/Playout.cs701 public long? PhaseOffsetMs { get; set; }COMMENT
LOWErsatzTV.Core/Next/Playout.cs721 /// HTTP.COMMENT
LOWErsatzTV.Core/Next/Playout.cs741 /// extends beyond this (it will be clamped if it does).COMMENT
LOWErsatzTV.Core/Next/Playout.cs761 [JsonPropertyName("path")]COMMENT
LOWErsatzTV.Core/Next/Playout.cs781 ///COMMENT
LOWErsatzTV.Core/Next/Playout.cs801 /// Custom HTTP headers, e.g. ["Authorization: Bearer {{TOKEN}}"]. Supports {{TEMPLATE}}COMMENT
LOWErsatzTV.Core/Next/Playout.cs821 /// <summary>COMMENT
LOWErsatzTV.Core/Next/Playout.cs841COMMENT
LOWErsatzTV.Core/Next/Playout.cs881 [JsonPropertyName("retry_backoff_ms")]COMMENT
LOWErsatzTV.Core/Next/Playout.cs921 /// <summary>COMMENT
LOWErsatzTV.Core/Next/Playout.cs941 /// </summary>COMMENT
LOWErsatzTV.Core/Next/Playout.cs961 ///COMMENT
LOWErsatzTV.Core/Next/Playout.cs1401#pragma warning restore CS8602COMMENT
LOWErsatzTV.Core/Next/Config/ChannelConfig.cs1// <auto-generated />COMMENT
LOWErsatzTV.Core/Next/Config/ChannelConfig.cs21 using System.Globalization;COMMENT
LOWErsatzTV.Core/Next/Config/ChannelConfig.cs61 public string? Version { get; set; }COMMENT
LOWErsatzTV.Core/Next/Config/ChannelConfig.cs161 /// <summary>COMMENT
LOWErsatzTV.Core/Next/Config/ChannelConfig.cs241 /// <summary>COMMENT
LOWErsatzTV.Core/Next/Config/ChannelConfig.cs301 /// Bitrate in kbit/s. Required for `mpeg2video`. Unset leaves it to the encoder.COMMENT
LOWErsatzTV.Core/Next/Config/ChannelConfig.cs341 /// <summary>COMMENT
LOWErsatzTV.Core/Next/Config/ChannelConfig.cs381 /// <summary>COMMENT
LOWErsatzTV.Core/Next/Config/ChannelConfig.cs401 [JsonPropertyName("width")]COMMENT
LOWErsatzTV.Core/Next/Config/ChannelConfig.cs421 /// </summary>COMMENT
LOWErsatzTV.Core/Next/Config/ChannelConfig.cs441 /// used for CUDA and Vulkan tonemapping.COMMENT
LOWErsatzTV.Core/Next/Config/ChannelConfig.cs461COMMENT
LOWErsatzTV.Core/Next/Config/ChannelConfig.cs621 }COMMENT
LOWErsatzTV.Core/Next/Config/ChannelConfig.cs641 ///COMMENT
LOWErsatzTV.Core/Next/Config/ChannelConfig.cs661 public enum StreamMode { Copy, Transcode };COMMENT
LOWErsatzTV.Core/Next/Config/ChannelConfig.cs681 /// VA-API. Linux only.COMMENT
LOWErsatzTV.Core/Next/Config/ChannelConfig.cs701COMMENT
LOW…satzTV.Core/FFmpeg/FFmpegPlaybackSettingsCalculator.cs1// zlib LicenseCOMMENT
LOWErsatzTV.Core/FFmpeg/FFmpegProcessBuilder.cs1// zlib LicenseCOMMENT
75 more matches not shown…
Synthetic Comment Markers3 hits · 22 pts
SeverityFileLineSnippetContext
HIGHErsatzTV/Locals/Shared/Common.Designer.cs3// This code was generated by a tool.COMMENT
HIGHErsatzTV/Locals/Shared/MainLayout.Designer.cs3// This code was generated by a tool.COMMENT
HIGHErsatzTV/Locals/Pages/Channels.Designer.cs3// This code was generated by a tool.COMMENT
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGH…frastructure/Data/Repositories/OtherVideoRepository.cs0insert into artwork (artworkkind, dateadded, dateupdated, path) values (@artworkkind, @dateadded, @dateupdated, @path); STRING
HIGH…frastructure/Data/Repositories/TelevisionRepository.cs0insert into artwork (artworkkind, dateadded, dateupdated, path) values (@artworkkind, @dateadded, @dateupdated, @path); STRING
HIGH…TV.Infrastructure/Data/Repositories/MovieRepository.cs0insert into artwork (artworkkind, dateadded, dateupdated, path) values (@artworkkind, @dateadded, @dateupdated, @path); STRING
Excessive Try-Catch Wrapping3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMscripts/scripted-schedules/entrypoint.py25 print(f"Error: cannot find a script file named '{known_args.script_name}.py' in the 'scripts' directory.")CODE
MEDIUMscripts/scripted-schedules/entrypoint.py33 print("Error: ETV_API_KEY is not set; this script must be launched by ErsatzTV.")CODE
MEDIUMscripts/scripted-schedules/entrypoint.py56 print(f"Error: the '{known_args.script_name}' script is missing a required function. {e}")CODE
Hyper-Verbose Identifiers3 hits · 3 pts
SeverityFileLineSnippetContext
LOWErsatzTV/Resources/Scripts/_episode.js3function selectEpisodeAudioStreamIndex(CODE
LOWErsatzTV/Resources/Scripts/_movie.js3function selectMovieAudioStreamIndex(CODE
LOW…ication/Channels/Commands/RefreshChannelDataHandler.cs27public class RefreshChannelDataHandler : IRequestHandler<RefreshChannelData>CODE
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWErsatzTV/wwwroot/lib/jqueryui/jquery-ui.min.js6(t=>{"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function(V){V.ui=V.ui||{};V.ui.version="1.14CODE