AI Slop Code Risk Monitor

dotansimha/graphql-code-generator

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

A tool for generating code based on a GraphQL schema and GraphQL operations (query/mutation/subscription), with flexible support for custom plugins.

0.2 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for dotansimha/graphql-code-generator, a TypeScript project with 11,266 GitHub stars. SynthScan examined 148,135 lines of code across 758 source files, recording 35 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 0.2 (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.2
Adjusted Signal
0.2
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
11.3K
Stars
TypeScript
Language
148.1K
Lines of Code
758
Files
35
Pattern Hits
2026-10-31
Scan Date
0.00
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 1.2/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

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

Agent Over-Engineering Ratio 1.0/100 · LOW

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

PR Review Velocity Impact 1.2/100 · LOW

Which changes need focused human review? 35 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 0MEDIUM 0LOW 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 35 distinct pattern matches across 4 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.

Hyper-Verbose Identifiers29 hits · 29 pts
SeverityFileLineSnippetContext
LOWpackages/plugins/typescript/typescript/src/index.ts57export function includeIntrospectionTypesDefinitions(CODE
LOWpackages/plugins/typescript/operations/src/visitor.ts850function collectAndFlattenTypeNodes({CODE
LOW…ges/plugins/other/visitor-plugin-common/src/mappers.ts211export function transformDirectiveArgumentAndInputFieldMappings(CODE
LOW…kages/plugins/other/visitor-plugin-common/src/utils.ts443export function stripMapperTypeInterpolation(identifier: string): string {CODE
LOW…kages/plugins/other/visitor-plugin-common/src/utils.ts541export function hasIncrementalDeliveryDirectives(CODE
LOW…kages/plugins/other/visitor-plugin-common/src/utils.ts586export function wrapTypeNodeWithModifiers(baseType: string, typeNode: TypeNode): string {CODE
LOW…kages/plugins/other/visitor-plugin-common/src/utils.ts620export function getOneOfInputDeclarationKind({CODE
LOW…ges/plugins/other/visitor-plugin-common/src/imports.ts36export function generateFragmentImportStatement(CODE
LOW…er/visitor-plugin-common/src/base-resolvers-visitor.ts2277function normalizeResolversNonOptionalTypename(CODE
LOW…er/visitor-plugin-common/src/base-resolvers-visitor.ts2297function checkIfObjectTypeHasAbstractTypesRecursively(CODE
LOW…sitor-plugin-common/src/operation-declaration-kinds.ts15export function normalizeOperationDeclarationKind(CODE
LOWpackages/utils/plugins-helpers/src/federation.ts86export function addFederationReferencesToSchema(CODE
LOWpackages/utils/plugins-helpers/src/federation.ts184 function findAllSelectionSetCombinations(CODE
LOWpackages/utils/plugins-helpers/src/federation.ts587function checkTypeFederationDetails(CODE
LOWpackages/utils/plugins-helpers/src/federation.ts640function extractReferenceSelectionSet(directive: DirectiveNode): ReferenceSelectionSet {CODE
LOWpackages/utils/plugins-helpers/src/helpers.ts74export function hasNullableTypeRecursively(type: GraphQLOutputType): boolean {CODE
LOW…/plugins-helpers/src/resolve-external-module-and-fn.ts5export function resolveExternalModuleAndFn(pointer: any): any {CODE
LOWpackages/presets/graphql-modules/src/utils.ts225function ensureStartsWithSeparator(path: string) {CODE
LOWpackages/presets/graphql-modules/src/builder.ts228 function printResolveSignaturesPerType(registry: Registry) {CODE
LOWpackages/presets/graphql-modules/src/builder.ts306 function printResolveMiddlewareMap() {CODE
LOWpackages/presets/graphql-modules/src/builder.ts333 function printResolveMiddlewareRecord(path: string): string {CODE
LOWpackages/presets/client/src/persisted-documents.ts31export function normalizeAndPrintDocumentNode(documentNode: DocumentNode): string {CODE
LOWpackages/graphql-codegen-cli/src/documentTransforms.ts45export async function getDocumentTransformByName(CODE
LOWpackages/graphql-codegen-cli/src/config.ts321export function updateContextWithCliFlags(context: CodegenContext, cliFlags: YamlCliFlags) {CODE
LOWpackages/graphql-codegen-cli/src/init/questions.ts98export function getApplicationTypeChoices(possibleTargets: Record<Tags, boolean>) {CODE
LOWpackages/graphql-codegen-core/src/codegen.ts287function validateDuplicateDocuments(files: Types.DocumentFile[]) {CODE
LOWpackages/graphql-codegen-core/src/utils.ts26export function shouldValidateDuplicateDocuments(CODE
LOWpackages/graphql-codegen-core/src/utils.ts44export function shouldValidateDocumentsAgainstSchema(CODE
LOWpackages/graphql-codegen-core/src/utils.ts62export function getSkipDocumentsValidationOption(CODE
Over-Commented Block4 hits · 4 pts
SeverityFileLineSnippetContext
LOWpackages/plugins/typescript/operations/src/visitor.ts421COMMENT
LOWpackages/plugins/typescript/operations/src/index.ts101 //COMMENT
LOWpackages/graphql-codegen-cli/tests/test-files/13.tsx21// query IndexQuery {COMMENT
LOWpackages/graphql-codegen-cli/tests/test-files/12.tsx21// query IndexQuery {COMMENT
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWpackages/graphql-codegen-cli/src/graphql-config.ts50// so we need to check if it's a regular config or notCOMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWexamples/react/nextjs-swr/pages/api/hello.ts9 res.status(200).json({ name: 'John Doe' });CODE