MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / detectGeneratedFile

Function detectGeneratedFile

src/extraction/generated-detection.ts:251–253  ·  view source on GitHub ↗
(filePath: string, content: string)

Source from the content-addressed store, hash-verified

249 * indexer persists to `files.generated`.
250 */
251export function detectGeneratedFile(filePath: string, content: string): boolean {
252 return isGeneratedFile(filePath) || hasGeneratedHeader(content) || isMinifiedContent(filePath, content);
253}
254
255/** Scripts a bundler or minifier writes as a few enormous lines. */
256const MINIFIABLE_SCRIPT = /\.(?:m?js|cjs)$/i;

Callers 3

storeExtractionResultMethod · 0.90
buildFileRecordMethod · 0.90

Calls 3

isGeneratedFileFunction · 0.85
hasGeneratedHeaderFunction · 0.85
isMinifiedContentFunction · 0.85

Tested by

no test coverage detected