AI Slop Code Risk Monitor

graphql-dotnet/graphql-dotnet

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

GraphQL for .NET

2.9 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for graphql-dotnet/graphql-dotnet, a C# project with 5,984 GitHub stars. SynthScan examined 174,294 lines of code across 1348 source files, recording 437 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 2.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.

2.9
Adjusted Signal
2.9
Raw Pattern Score
100%
Time Factor
2026-11-15
Last Push
6.0K
Stars
C#
Language
174.3K
Lines of Code
1.3K
Files
437
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 11.2/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 1.3/100 · LOW

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

Agent Over-Engineering Ratio 1.5/100 · LOW

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

PR Review Velocity Impact 14.0/100 · LOW

Which changes need focused human review? 437 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 3HIGH 9MEDIUM 9LOW 416

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 437 distinct pattern matches across 12 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 Block381 hits · 381 pts
SeverityFileLineSnippetContext
LOWdocs2/site/docs/getting-started/directives.md341 /// Allow experimental features only for client queries but not for standard introspectionCOMMENT
LOWdocs2/site/docs/getting-started/field-middleware.md141 .ApplyMiddleware<FieldMiddleware2>();COMMENT
LOWsrc/GraphQL.MemoryCache/MemoryDocumentCacheOptions.cs21 /// for the query is reset to this value. Defaults to <see langword="null"/>, indicating that there is no expirationCOMMENT
LOWsrc/GraphQL.MemoryCache/MemoryDocumentCache.cs41COMMENT
LOW…/GraphQL.NewtonsoftJson/GraphQLRequestJsonConverter.cs1using GraphQL.Transport;COMMENT
LOW…/GraphQL.NewtonsoftJson/GraphQLRequestJsonConverter.cs21 private const string QUERY_KEY = "query";COMMENT
LOWsrc/GraphQL.NewtonsoftJson/GraphQLSerializer.cs21 /// Returns the underlying serializer.COMMENT
LOWsrc/GraphQL.NewtonsoftJson/SchemaExtensions.cs1using GraphQL.Types;COMMENT
LOWsrc/GraphQL.Benchmarks/Program.cs1using System.Reflection;COMMENT
LOWsrc/GraphQL.Benchmarks/Program.cs21// PROFILER MODE (/p)COMMENT
LOW…/GraphQL.SystemTextJson/GraphQLRequestJsonConverter.cs21 /// </summary>COMMENT
LOWsrc/GraphQL.SystemTextJson/GraphQLSerializer.cs81 /// <see cref="JsonSerializer.Serialize(object, Type, JsonSerializerOptions)">Serialize()</see> orCOMMENT
LOWsrc/GraphQL.SystemTextJson/GraphQLSerializer.cs101COMMENT
LOWsrc/GraphQL.SystemTextJson/GraphQLSerializer.cs221 => jsonDocument == null ? default : JsonSerializer.Deserialize<T>(jsonDocument, _options);COMMENT
LOWsrc/GraphQL.SystemTextJson/SchemaExtensions.cs1using GraphQL.Types;COMMENT
LOWsrc/GraphQL.DataLoader.Tests/ApolloTracingTests.cs1using GraphQL.Instrumentation;COMMENT
LOWsrc/GraphQL.Tests/AssertionExtensions.cs1using System.Text.Json;COMMENT
LOWsrc/GraphQL.Tests/Bugs/Bug4447.cs1using GraphQL.Types;COMMENT
LOW…raphQL.Tests/Validation/ArgumentsOfCorrectTypeTests.cs581 _.Query = query;COMMENT
LOWsrc/GraphQL.DataLoader/DataLoaderBase.cs21 /// </summary>COMMENT
LOWsrc/GraphQL.DataLoader/DataLoaderBase.cs41 /// Initialize a DataLoaderBase with the specified options.COMMENT
LOWsrc/GraphQL.DataLoader/DataLoaderBase.cs121 /// None of the keys will be <see langword="null"/>.COMMENT
LOWsrc/GraphQL.DataLoader/DataLoaderPair.cs1namespace GraphQL.DataLoader;COMMENT
LOWsrc/GraphQL.DataLoader/BatchDataLoader.cs1namespace GraphQL.DataLoader;COMMENT
LOWsrc/GraphQL.DataLoader/CollectionBatchDataLoader.cs1namespace GraphQL.DataLoader;COMMENT
LOWsrc/GraphQL.DataLoader/IDataLoader.cs1namespace GraphQL.DataLoader;COMMENT
LOWsrc/GraphQL.DataLoader/IDataLoader.cs21 /// <summary>COMMENT
LOW…L.DataLoader/Extensions/DataLoaderContextExtensions.cs1using GraphQL.DataLoader;COMMENT
LOW…L.DataLoader/Extensions/DataLoaderContextExtensions.cs61 }COMMENT
LOW…L.DataLoader/Extensions/DataLoaderContextExtensions.cs81COMMENT
LOW…L.DataLoader/Extensions/DataLoaderContextExtensions.cs141COMMENT
LOW…L.DataLoader/Extensions/DataLoaderContextExtensions.cs241 if (keySelector == null)COMMENT
LOW…/GraphQL.DataLoader/Extensions/DataLoaderExtensions.cs81 /// Chains post-processing to a pending data loader operationCOMMENT
LOW…/GraphQL.DataLoader/Extensions/DataLoaderExtensions.cs101 /// <typeparam name="TResult">The type of the result</typeparam>COMMENT
LOW…c/GraphQL.MicrosoftDI/SelfActivatingServiceProvider.cs1using GraphQL.Types;COMMENT
LOW…hQL.MicrosoftDI/MicrosoftDIGraphQLBuilderExtensions.cs21 public static IServiceCollection AddGraphQL(this IServiceCollection services, Action<IGraphQLBuilder>? configure)COMMENT
LOW…hQL.MicrosoftDI/ScopedSubscriptionExecutionStrategy.cs1using GraphQL.Execution;COMMENT
LOW…hQL.MicrosoftDI/ScopedSubscriptionExecutionStrategy.cs41 /// <inheritdoc/>COMMENT
LOWsrc/GraphQL/GlobalSwitches.cs1using System.ComponentModel;COMMENT
LOWsrc/GraphQL/GlobalSwitches.cs21 /// </summary>COMMENT
LOWsrc/GraphQL/GlobalSwitches.cs61 /// 'enum-member'. Only change it when absolutely necessary. This is typically only overriddenCOMMENT
LOWsrc/GraphQL/GlobalSwitches.cs81 /// <br/>COMMENT
LOWsrc/GraphQL/GlobalSwitches.cs101 /// See <see href="https://spec.graphql.org/October2021/#sec-Root-Operation-Types">Root Operation Types</see>.COMMENT
LOWsrc/GraphQL/GlobalSwitches.cs121 /// </summary>COMMENT
LOWsrc/GraphQL/IConfigureAutoSchema.cs1using GraphQL.DI;COMMENT
LOWsrc/GraphQL/ExperimentalFeatures.cs1namespace GraphQL;COMMENT
LOWsrc/GraphQL/ExperimentalFeatures.cs21 /// This feature is from a working draft of the specification (not experimental, just not released yet).COMMENT
LOWsrc/GraphQL/VariableName.cs41 /// Does not include the index or child property name.COMMENT
LOWsrc/GraphQL/LightweightCache.cs101 }COMMENT
LOWsrc/GraphQL/Types/ArgumentInformation.cs1using System.Linq.Expressions;COMMENT
LOWsrc/GraphQL/Types/ArgumentInformation.cs61 /// The <see cref="Types.FieldType"/> that the query argument will be added to.COMMENT
LOWsrc/GraphQL/Types/ArgumentInformation.cs161 public virtual void ApplyAttributes()COMMENT
LOWsrc/GraphQL/Types/IGraphType.cs1namespace GraphQL.Types;COMMENT
LOWsrc/GraphQL/Types/IGraphType.cs21 /// <summary>COMMENT
LOWsrc/GraphQL/Types/IGraphType.cs41/// Represents a graph type within the GraphQL schema.COMMENT
LOWsrc/GraphQL/Types/TypeCollectionContext.cs1namespace GraphQL.Types;COMMENT
LOWsrc/GraphQL/Types/ISchema.cs21 /// Returns <see langword="true"/> once the schema has been initialized.COMMENT
LOWsrc/GraphQL/Types/ISchema.cs41 /// then adding additional middleware through the builder does nothing. The schema is initialized (if not yet)COMMENT
LOWsrc/GraphQL/Types/ISchema.cs61COMMENT
LOWsrc/GraphQL/Types/ISchema.cs81COMMENT
321 more matches not shown…
Cross-File Repetition9 hits · 45 pts
SeverityFileLineSnippetContext
HIGH…raphQL.Tests/Introspection/SchemaIntrospectionTests.cs0input exampleinputtagged @oneof { a: string b: int } type query { test(arg: exampleinputtagged!): string }STRING
HIGHsrc/GraphQL.Tests/Utilities/SchemaExporterTests.cs0input exampleinputtagged @oneof { a: string b: int } type query { test(arg: exampleinputtagged!): string }STRING
HIGHsrc/GraphQL.Tests/Validation/ValidationContextTests.cs0input exampleinputtagged @oneof { a: string b: int } type query { test(arg: exampleinputtagged!): string }STRING
HIGHsrc/GraphQL.Tests/Attributes/ParserAttributeTests.cs0{ hello1(value: "abc") hello2(value: "def") hello3(value: "ghi") hello4(value: "jkl") }STRING
HIGH…QL.Tests/Attributes/ValidateArgumentsAttributeTests.cs0{ hello1(value: "abc") hello2(value: "def") hello3(value: "ghi") hello4(value: "jkl") }STRING
HIGHsrc/GraphQL.Tests/Attributes/ValidatorAttributeTests.cs0{ hello1(value: "abc") hello2(value: "def") hello3(value: "ghi") hello4(value: "jkl") }STRING
HIGHsrc/GraphQL.Tests/Validation/KnownDirectivesTests.cs0{ dog @include(if: true) { name } human @skip(if: false) { name } }STRING
HIGH…raphQL.Tests/Validation/ArgumentsOfCorrectTypeTests.cs0{ dog @include(if: true) { name } human @skip(if: false) { name } }STRING
HIGH…phQL.Tests/Validation/ProvidedNonNullArgumentsTests.cs0{ dog @include(if: true) { name } human @skip(if: false) { name } }STRING
Fake / Example Data25 hits · 25 pts
SeverityFileLineSnippetContext
LOWsrc/GraphQL.Benchmarks/Benchmarks/ToObjectBenchmark.cs38 { "name", "John Doe" },CODE
LOWsrc/GraphQL.Benchmarks/Benchmarks/ToObjectBenchmark.cs44 { "name", "John Doe" },CODE
LOWsrc/GraphQL.Benchmarks/Benchmarks/ToObjectBenchmark.cs73 { "address1", "123 Main St" },CODE
LOWsrc/GraphQL.Tests/Types/InterfaceGraphTypeTests.cs14 hello(name: "John Doe")CODE
LOWsrc/GraphQL.Tests/Types/InterfaceGraphTypeTests.cs21 "hello": "John Doe"CODE
LOW…ests/Types/AutoRegisteringInputObjectGraphTypeTests.cs280 var actual = TestParse<TestBasicClass>(graphType, """{"id":123,"name":"John Doe"}""");CODE
LOW…ests/Types/AutoRegisteringInputObjectGraphTypeTests.cs282 actual.Name.ShouldBe("John Doe");CODE
LOW…ests/Types/AutoRegisteringInputObjectGraphTypeTests.cs293 var actual = TestParse<TestBasicRecord>(graphType, """{"id":123,"name":"John Doe"}""");CODE
LOW…ests/Types/AutoRegisteringInputObjectGraphTypeTests.cs295 actual.Name.ShouldBe("John Doe");CODE
LOW…ests/Types/AutoRegisteringInputObjectGraphTypeTests.cs306 var actual = TestParse<TestBasicRecordStruct>(graphType, """{"id":123,"name":"John Doe"}""");CODE
LOW…ests/Types/AutoRegisteringInputObjectGraphTypeTests.cs308 actual.Name.ShouldBe("John Doe");CODE
LOW…ests/Types/AutoRegisteringInputObjectGraphTypeTests.cs319 var actual = TestParse<TestStructWritableProperties>(graphType, """{"id":123,"name":"John Doe"}""");CODE
LOW…ests/Types/AutoRegisteringInputObjectGraphTypeTests.cs321 actual.Name.ShouldBe("John Doe");CODE
LOW…ests/Types/AutoRegisteringInputObjectGraphTypeTests.cs332 var actual = TestParse<TestStructReadOnlyProperties>(graphType, """{"id":123,"name":"John Doe"}""");CODE
LOW…ests/Types/AutoRegisteringInputObjectGraphTypeTests.cs334 actual.Name.ShouldBe("John Doe");CODE
LOW…ests/Types/AutoRegisteringInputObjectGraphTypeTests.cs358 var actual = TestParse<ReadOnlyClass>(graphType, """{"id":123,"name":"John Doe"}""");CODE
LOW…ests/Types/AutoRegisteringInputObjectGraphTypeTests.cs360 actual.Name.ShouldBe("John Doe");CODE
LOW⚡src/GraphQL.Tests/Bugs/Bug3988.cs50 "name": "John Doe",CODE
LOW⚡src/GraphQL.Tests/Bugs/Bug3988.cs51 "name2": "John Doe",CODE
LOW⚡src/GraphQL.Tests/Bugs/Bug3988.cs52 "name3": "John Doe"CODE
LOWsrc/GraphQL.Tests/Bugs/Bug3988.cs68 public string Name => "John Doe";STRING
LOWsrc/GraphQL.Tests/Bugs/Bug4083.cs45 "name": "John Doe"CODE
LOWsrc/GraphQL.Tests/Bugs/Bug4083.cs54 public static Class1 Hero(int id) => new Class1 { Id = id, Name = "John Doe" };STRING
LOWsrc/GraphQL.Tests/Bugs/Issue4060.cs71 .Resolve(context => new { id = context.GetArgument<int>("id"), name = "John Doe" });STRING
LOWsrc/GraphQL.Tests/Bugs/Issue4060.cs109 "name": "John Doe"CODE
Hallucination Indicators3 hits · 20 pts
SeverityFileLineSnippetContext
CRITICAL…GraphQL.Tests/Utilities/SchemaBuilderExecutionTests.cs63 stack.ShouldStartWith("GraphQL.Tests.Utilities.SchemaBuilderExecutionTests.Query.Method()");STRING
CRITICAL…GraphQL.Tests/Utilities/SchemaBuilderExecutionTests.cs95 stack.ShouldStartWith("GraphQL.Tests.Utilities.SchemaBuilderExecutionTests.Query.get_Property()");STRING
CRITICALsrc/GraphQL/Validation/Rules/KnownTypeNames.cs37 var typeNames = context.Schema.AllTypes.Dictionary.Values.Select(x => x.Name).ToArray();CODE
Decorative Section Separators3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMsrc/GraphQL.Benchmarks/Program.cs5// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/GraphQL.Benchmarks/Program.cs22// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/GraphQL.Benchmarks/Program.cs34// ─────────────────────────────────────────────────────────────────────────────COMMENT
Verbosity Indicators4 hits · 8 pts
SeverityFileLineSnippetContext
LOWsrc/GraphQL/Types/Schema.cs637 // Step 3: if defaultValue is a listCOMMENT
LOWsrc/GraphQL/Types/Schema.cs649 // Step 4: if defaultValue is an unordered mapCOMMENT
LOW⚡src/GraphQL/Types/Schema.cs695 // Step 6: fieldDefaultValue exists in the provided mapCOMMENT
LOW⚡src/GraphQL/Types/Schema.cs699 // Step 7: fall back to the field's own default valueCOMMENT
Structural Annotation Overuse4 hits · 8 pts
SeverityFileLineSnippetContext
LOWsrc/GraphQL/Types/Schema.cs637 // Step 3: if defaultValue is a listCOMMENT
LOWsrc/GraphQL/Types/Schema.cs649 // Step 4: if defaultValue is an unordered mapCOMMENT
LOW⚡src/GraphQL/Types/Schema.cs695 // Step 6: fieldDefaultValue exists in the provided mapCOMMENT
LOW⚡src/GraphQL/Types/Schema.cs699 // Step 7: fall back to the field's own default valueCOMMENT
Slop Phrases3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMsamples/GraphQL.Harness/CountFieldMiddleware.cs21 // these dependencies are not needed here and are used only for demonstration purposesCOMMENT
MEDIUMsrc/GraphQL.Tests/Bugs/Bug781UnobservedTasks.cs9 [Theory(Skip = "for demonstration purposes only, unreliable results")]CODE
LOW…hQL/ResolveFieldContext/ReadonlyResolveFieldContext.cs16 // WARNING: if you add a new field here, then don't forget to clear it in Reset method!COMMENT
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMsrc/GraphQL/Resolvers/ObservableFromAsyncEnumerable.cs105 /// This allows the <see cref="SourceStreamMethodResolver"/> to utilize existing functionalityCOMMENT
MEDIUMsrc/GraphQL/Execution/SubscriptionExecutionStrategy.cs44 /// If scoped services are needed, it is recommended to utilize the ScopedSubscriptionExecutionStrategyCOMMENT
Modern AI Meta-Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMdocs2/site/docs/guides/dataloader.md6Sample projects demonstrating both default data loaders (as described below on this page) and [DI-based data loaders](#dCODE
Self-Referential Comments1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/wipcheck.yml19 if: ${{ contains(github.event.pull_request.title, '[WIP]') }} # This function is case insensitive.CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…ties/Visitors/Custom/DeprecatedTypeReferenceVisitor.cs14/// Example usage:COMMENT