AI Slop Code Risk Monitor

pardeike/Harmony

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

A library for patching, replacing and decorating .NET and Mono methods during runtime

1.4 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for pardeike/Harmony, a C# project with 6,737 GitHub stars. SynthScan examined 102,762 lines of code across 333 source files, recording 127 pattern matches distributed across 8 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-11-15
Last Push
6.7K
Stars
C#
Language
102.8K
Lines of Code
333
Files
127
Pattern Hits
2026-11-15
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-11-15.

Cognitive Ownership Risk 6.1/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.7/100 · LOW

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

Agent Over-Engineering Ratio 1.2/100 · LOW

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

PR Review Velocity Impact 7.0/100 · LOW

Which changes need focused human review? 127 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

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

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 1HIGH 1MEDIUM 4LOW 121

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 127 distinct pattern matches across 8 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 Block97 hits · 93 pts
SeverityFileLineSnippetContext
LOWdrafts/Infixes.md21Console.WriteLine($"--> OriginalMethod_Patched_By_Harmony={test.OriginalMethod_Patched_By_Harmony(123, "foobartest")}");COMMENT
LOWHarmony/Tools/Traverse.cs61COMMENT
LOWHarmony/Tools/Traverse.cs261 /// <typeparam name="T">The type of the field</typeparam>COMMENT
LOWHarmony/Tools/FileLog.cs201 public static void LogILComment(int codePos, string comment)COMMENT
LOWHarmony/Tools/SymbolExtensions.cs21 ///COMMENT
LOWHarmony/Tools/AccessTools.cs141 /// <param name="type">The class/type to start with</param>COMMENT
LOWHarmony/Tools/AccessTools.cs361 /// <returns>A method or null when the property cannot be found</returns>COMMENT
LOWHarmony/Tools/AccessTools.cs381 /// <returns>A method or null when the property cannot be found</returns>COMMENT
LOWHarmony/Tools/AccessTools.cs461 /// <summary>Gets the reflection information for the getter method of a property by searching the type and all its supCOMMENT
LOWHarmony/Tools/AccessTools.cs481 /// <summary>Gets the reflection information for the setter method of a property by searching the type and all its supCOMMENT
LOWHarmony/Tools/AccessTools.cs581 /// <param name="typeColonName">The member in the form <c>TypeFullName:MemberName</c>, where TypeFullName matches the COMMENT
LOWHarmony/Tools/AccessTools.cs601 /// <param name="name">The name of the event (case sensitive)</param>COMMENT
LOWHarmony/Tools/AccessTools.cs661 }COMMENT
LOWHarmony/Tools/AccessTools.cs801 }COMMENT
LOWHarmony/Tools/AccessTools.cs1201 return [.. method.GetParameters().Select(p => p.ParameterType).Select(pType =>COMMENT
LOWHarmony/Tools/AccessTools.cs1221 /// <returns>A readable/assignable reference to the field</returns>COMMENT
LOWHarmony/Tools/AccessTools.cs1241 /// Similarly, <typeparamref name="F"/> is not required to be the field's field type, unless that type is a non-enum vCOMMENT
LOWHarmony/Tools/AccessTools.cs1261 /// The type of the field; or if the field's type is a reference type (a class or interface, NOT a struct or other valCOMMENT
LOWHarmony/Tools/AccessTools.cs1301 /// <remarks>COMMENT
LOWHarmony/Tools/AccessTools.cs1341 /// <param name="fieldName">The name of the field</param>COMMENT
LOWHarmony/Tools/AccessTools.cs1401 /// <typeparam name="F">COMMENT
LOWHarmony/Tools/AccessTools.cs1461 /// </typeparam>COMMENT
LOWHarmony/Tools/AccessTools.cs1501 catch (Exception ex)COMMENT
LOWHarmony/Tools/AccessTools.cs1541 }COMMENT
LOWHarmony/Tools/AccessTools.cs1601 {COMMENT
LOWHarmony/Tools/AccessTools.cs1641 /// The type of the field; or if the field's type is a reference type (a class or interface, NOT a struct or other valCOMMENT
LOWHarmony/Tools/AccessTools.cs1761 /// instance delegate where the delegate invocation always applies to the given <paramref name="instance"/>.COMMENT
LOWHarmony/Tools/AccessTools.cs1941 public static DelegateType MethodDelegate<DelegateType>(string typeColonName, object instance, bool virtualCall) whereCOMMENT
LOWHarmony/Tools/AccessTools.cs1961 /// This argument only matters if the target <paramref name="typeColonName"/> signature contains a value type (such asCOMMENT
LOWHarmony/Tools/AccessTools.cs1981COMMENT
LOWHarmony/Tools/AccessTools.cs2121 /// </summary>COMMENT
LOWHarmony/Tools/AccessTools.cs2141 /// <param name="result">[out] The copy of the original object</param>COMMENT
LOWHarmony/Tools/AccessTools.cs2321 /// <summary>Tests if a type is a numerical type</summary>COMMENT
LOWHarmony/Tools/AccessToolsExtensions.cs21 /// <param name="func">The evaluation function returning T</param>COMMENT
LOWHarmony/Tools/AccessToolsExtensions.cs41 /// <param name="name">The name of the field</param>COMMENT
LOWHarmony/Tools/AccessToolsExtensions.cs61 /// <param name="type">The class/type where the property is declared</param>COMMENT
LOWHarmony/Tools/AccessToolsExtensions.cs81 /// <summary>Gets the reflection information for the getter method of a directly declared indexer property</summary>COMMENT
LOWHarmony/Tools/AccessToolsExtensions.cs101COMMENT
LOWHarmony/Tools/AccessToolsExtensions.cs121 public static MethodInfo PropertyGetter(this Type type, string name) => AccessTools.PropertyGetter(type, name);COMMENT
LOWHarmony/Tools/AccessToolsExtensions.cs141 ///COMMENT
LOWHarmony/Tools/AccessToolsExtensions.cs161 /// <returns>A method or null when type/name is null or when the event cannot be found</returns>COMMENT
LOWHarmony/Tools/AccessToolsExtensions.cs181 /// <param name="name">The name</param>COMMENT
LOWHarmony/Tools/AccessToolsExtensions.cs201 /// <param name="parameters">Optional parameters to target a specific overload of the method</param>COMMENT
LOWHarmony/Tools/AccessToolsExtensions.cs221COMMENT
LOWHarmony/Tools/AccessToolsExtensions.cs241COMMENT
LOWHarmony/Tools/AccessToolsExtensions.cs261 public static List<MethodInfo> GetDeclaredMethods(this Type type) => AccessTools.GetDeclaredMethods(type);COMMENT
LOWHarmony/Tools/AccessToolsExtensions.cs281COMMENT
LOWHarmony/Tools/AccessToolsExtensions.cs301 public static ConstructorInfo FirstConstructor(this Type type, Func<ConstructorInfo, bool> predicate) => AccessTools.FCOMMENT
LOWHarmony/Tools/AccessToolsExtensions.cs321 /// A readable/assignable <see cref="AccessTools.FieldRef{T,F}"/> delegate with <c>T=object</c>COMMENT
LOWHarmony/Tools/AccessToolsExtensions.cs341 /// either that type or the underlying integral type of that enum typeCOMMENT
LOWHarmony/Tools/AccessToolsExtensions.cs361 /// <summary>Creates an (possibly uninitialized) instance of a given type</summary>COMMENT
LOWHarmony/Tools/AccessToolsExtensions.cs381 /// <returns>True if the type is a value type</returns>COMMENT
LOWHarmony/Tools/Extensions.cs101 /// <param name="pinfo">The array of parameter infos</param>COMMENT
LOWHarmony/Tools/Extensions.cs401 /// <summary>Shortcut for <code>code.opcode == opcode &amp;&amp; code.OperandIs(operand)</code></summary>COMMENT
LOWHarmony/Tools/Extensions.cs801 /// <typeparam name="T">The inner type of the collection</typeparam>COMMENT
LOWHarmony/Tools/Extensions.cs821 /// <returns>The array containing the item</returns>COMMENT
LOWHarmony/Tools/CodeMatch.cs161COMMENT
LOWHarmony/Tools/CodeMatch.cs181 public static CodeMatch IsStarg(int? n = null) => new(instruction => instruction.IsStarg(n));COMMENT
LOWHarmony/Tools/CodeMatch.cs201 /// <summary>Tests if the code instruction calls the constructor</summary>COMMENT
LOWHarmony/Tools/CodeMatch.cs221 /// <summary>Tests if the code instruction loads a floating point constant</summary>COMMENT
37 more matches not shown…
Hyper-Verbose Identifiers21 hits · 24 pts
SeverityFileLineSnippetContext
LOWDocumentation/templates/harmony/styles/docfx.js846 function updateVisibilityAndSelection(group, state) {CODE
LOWDocumentation/templates/harmony/styles/docfx.js949 function updateTabsQueryStringParam(state) {CODE
LOWDocumentation/templates/harmony/styles/docfx.js1090 function workAroundFixedHeaderForAnchors() {CODE
LOWdocs/styles/docfx.js846 function updateVisibilityAndSelection(group, state) {CODE
LOWdocs/styles/docfx.js949 function updateTabsQueryStringParam(state) {CODE
LOWdocs/styles/docfx.js1090 function workAroundFixedHeaderForAnchors() {CODE
LOW⚡scripts/release_test.py50 def test_missing_variant_fails(self):CODE
LOW⚡scripts/release_test.py55 def test_package_for_wrong_commit_fails(self):CODE
LOW⚡scripts/release_test.py59 def test_zip_from_other_build_fails(self):CODE
LOW⚡scripts/release_test.py65 def test_modified_manifest_files_fail(self):CODE
LOW⚡scripts/release_test.py79 def test_repository_signature_does_not_change_payload(self):CODE
LOW⚡scripts/release_test.py86 def test_untrusted_ci_runs_fail(self):CODE
LOW⚡scripts/release_test.py95 def test_reviewed_notes_are_not_augmented_with_automatic_entries(self):CODE
LOWscripts/release_test.py107 def test_missing_reviewed_notes_fall_back_to_github_generation(self):CODE
LOWscripts/release_test.py118 def test_changed_notes_fail_before_publication(self):CODE
LOWscripts/release_test.py137 def test_resume_identical_packages_without_reupload(self):CODE
LOWscripts/release_test.py144 def test_upload_order_ref_fat_thin(self):CODE
LOWscripts/release_test.py155 def test_conflicting_public_package_stops_before_upload(self):CODE
LOWscripts/release_test.py164 def test_nuget_upload_protocol_and_secret_stays_out_of_process_arguments(self):CODE
LOWscripts/release_test.py179 def test_new_draft_uses_creation_response_without_waiting_for_list_visibility(self):CODE
LOWscripts/release_test.py195 def test_github_draft_flags_are_json_booleans(self):CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALdocs/styles/docfx.vendor.js4void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(CODE
Slop Phrases4 hits · 6 pts
SeverityFileLineSnippetContext
LOWDocumentation/examples/basics.cs26 FileLog.FlushBuffer(); /* don't forget to flush */CODE
MEDIUMdocs/articles/patching-auxiliary.html80<p>Here is a simple example that patches a method inside a private type:</p>CODE
LOWdocs/articles/basics.html107FileLog.FlushBuffer(); /* don't forget to flush */CODE
MEDIUMdocs/articles/patching-postfix.html132<p>There are many ways to access original arguments and even private fields: by name convention and by attributes. You cCODE
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHscripts/release.py144 if (Outer(4) != 30 || Target(4) != 5) throw new Exception("Packaged Infix scope failed");CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMscripts/release.py307 # Create the tag only after NuGet has all three exact packages. Never move an existing tag.COMMENT
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMdocs/styles/docfx.vendor.js25literal:"true false nil"},c:[e.CLCM,e.CBCM,e.NM,r,a,i,t.preprocessor],i:/#/}}),e.registerLanguage("sql",function(e){var CODE
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWHarmony/Internal/Infix.cs33 // TODO: implementCOMMENT