A CLI and library to extract information from React component files for documentation generation purposes.
This report summarizes scanner evidence for reactjs/react-docgen, a TypeScript project with 3,818 GitHub stars. SynthScan examined 41,376 lines of code across 309 source files, recording 47 pattern matches distributed across 1 syntactic category. The legacy adjusted pattern signal is 1.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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 47 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 47 finding(s).
Which changes need focused human review? 47 finding(s).
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.
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.
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.
The scanner identified 47 distinct pattern matches across 1 syntactic category. 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/react-docgen/tests/NodePathSerializer.ts | 5 | function removeUndefinedProperties( | CODE |
| LOW | …t-docgen/tests/integration/__fixtures__/component_2.js | 31 | export default function withNestedMemberExpressions() { | CODE |
| LOW | …ts/integration/__fixtures__/flow-spread-import-type.js | 11 | export function ImportedExtendedComponent(props: ExtendedProps) { | CODE |
| LOW | …en/tests/integration/__fixtures__/test-all-imports.tsx | 7 | export function ImportedExtendedComponent({ x = objDestruct, y = defaultFrom }) { | CODE |
| LOW | …docgen/tests/integration/__fixtures__/component_33.tsx | 7 | export function ImportedExtendedComponent(props: ExtendedProps) { | CODE |
| LOW | packages/react-docgen/src/utils/getMemberValuePath.ts | 72 | export function isSupportedDefinitionType( | CODE |
| LOW | …s/react-docgen/src/utils/resolveObjectValuesToArray.ts | 98 | export default function resolveObjectValuesToArray( | CODE |
| LOW | …/react-docgen/src/utils/isExportsOrModuleAssignment.ts | 8 | export default function isExportsOrModuleAssignment(path: NodePath): boolean { | CODE |
| LOW | …react-docgen/src/utils/resolveGenericTypeAnnotation.ts | 7 | function tryResolveGenericTypeAnnotation( | CODE |
| LOW | …react-docgen/src/utils/resolveGenericTypeAnnotation.ts | 42 | export default function resolveGenericTypeAnnotation( | CODE |
| LOW | …ges/react-docgen/src/utils/resolveObjectKeysToArray.ts | 29 | function isWhitelistedObjectProperty(path: NodePath): boolean { | CODE |
| LOW | …ges/react-docgen/src/utils/resolveObjectKeysToArray.ts | 49 | function isWhiteListedObjectTypeProperty(path: NodePath): boolean { | CODE |
| LOW | …s/react-docgen/src/utils/isReactChildrenElementCall.ts | 9 | export default function isReactChildrenElementCall( | CODE |
| LOW | …es/react-docgen/src/utils/getTypeFromReactComponent.ts | 39 | function getForwardRefGenericsType( | CODE |
| LOW | …es/react-docgen/src/utils/getTypeFromReactComponent.ts | 90 | function getMixinSuperClassPropsPath( | CODE |
| LOW | …kages/react-docgen/src/utils/isReactCreateClassCall.ts | 13 | function isReactCreateClassCallModular(path: NodePath): boolean { | CODE |
| LOW | …ages/react-docgen/src/utils/findComponentDefinition.ts | 22 | function resolveComponentDefinition( | CODE |
| LOW | …kages/react-docgen/src/utils/getMethodDocumentation.ts | 49 | export function resolveToUseCallbackFunction( | CODE |
| LOW | …kages/react-docgen/src/utils/getMethodDocumentation.ts | 69 | function getMethodFunctionExpression( | CODE |
| LOW | …es/react-docgen/src/utils/isDestructuringAssignment.ts | 7 | export default function isDestructuringAssignment( | CODE |
| LOW | …ckages/react-docgen/src/utils/isReactComponentClass.ts | 34 | function classExtendsReactComponent(path: NodePath): boolean { | CODE |
| LOW | …en/src/utils/resolveFunctionDefinitionToReturnValue.ts | 30 | export default function resolveFunctionDefinitionToReturnValue( | CODE |
| LOW | packages/react-docgen/src/utils/getTSType.ts | 185 | function getTSTypeWithRequirements( | CODE |
| LOW | packages/react-docgen/src/utils/getTSType.ts | 257 | function handleTSInterfaceDeclaration( | CODE |
| LOW | packages/react-docgen/src/utils/getTSType.ts | 395 | function handleTSParenthesizedType( | CODE |
| LOW | packages/react-docgen/src/utils/getTSType.ts | 482 | function handleTSIndexedAccessType( | CODE |
| LOW | packages/react-docgen/src/utils/getTSType.ts | 525 | function getTSTypeWithResolvedTypes( | CODE |
| LOW | …ocgen/src/utils/resolveObjectPatternPropertyToValue.ts | 6 | function resolveToObjectExpression(path: NodePath): NodePath | null { | CODE |
| LOW | …ocgen/src/utils/resolveObjectPatternPropertyToValue.ts | 26 | export default function resolveObjectPatternPropertyToValue( | CODE |
| LOW | …react-docgen/src/utils/getMemberExpressionValuePath.ts | 115 | export default function getMemberExpressionValuePath( | CODE |
| LOW | packages/react-docgen/src/utils/getFlowType.ts | 77 | function getFlowTypeWithRequirements( | CODE |
| LOW | packages/react-docgen/src/utils/getFlowType.ts | 133 | function handleArrayTypeAnnotation( | CODE |
| LOW | packages/react-docgen/src/utils/getFlowType.ts | 146 | function handleGenericTypeAnnotation( | CODE |
| LOW | packages/react-docgen/src/utils/getFlowType.ts | 222 | function handleObjectTypeAnnotation( | CODE |
| LOW | packages/react-docgen/src/utils/getFlowType.ts | 304 | function handleInterfaceDeclaration( | CODE |
| LOW | packages/react-docgen/src/utils/getFlowType.ts | 314 | function handleUnionTypeAnnotation( | CODE |
| LOW | packages/react-docgen/src/utils/getFlowType.ts | 327 | function handleIntersectionTypeAnnotation( | CODE |
| LOW | packages/react-docgen/src/utils/getFlowType.ts | 340 | function handleNullableTypeAnnotation( | CODE |
| LOW | packages/react-docgen/src/utils/getFlowType.ts | 355 | function handleFunctionTypeAnnotation( | CODE |
| LOW | packages/react-docgen/src/utils/getFlowType.ts | 397 | function handleTupleTypeAnnotation( | CODE |
| LOW | packages/react-docgen/src/utils/getFlowType.ts | 414 | function handleTypeofTypeAnnotation( | CODE |
| LOW | packages/react-docgen/src/utils/getFlowType.ts | 461 | function getFlowTypeWithResolvedTypes( | CODE |
| LOW | packages/react-docgen/src/utils/getPropType.ts | 13 | function getEnumValuesFromArrayExpression( | CODE |
| LOW | …kages/react-docgen/src/handlers/defaultPropsHandler.ts | 121 | function getDefaultValuesFromProps( | CODE |
| LOW | …s/react-docgen/src/handlers/componentMethodsHandler.ts | 153 | function findStatelessComponentBody( | CODE |
| LOW | …s/react-docgen/src/handlers/componentMethodsHandler.ts | 175 | function findImperativeHandleMethods( | CODE |
| LOW | …docgen/src/resolver/FindExportedDefinitionsResolver.ts | 42 | function assignmentExpressionVisitor( | CODE |