MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / isGeneratedFile

Function isGeneratedFile

projects/electron/src/modules/code/git.ts:1815–1818  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

1813const FILE_PATCH_CONTEXT_LINES = new Set([1, 3, 10, 25, 100])
1814
1815function isGeneratedFile(filePath: string): boolean {
1816 const basename = path.basename(filePath)
1817 return GENERATED_FILE_BASENAMES.has(basename)
1818}
1819
1820function exceedsLineLimit(content: string): boolean {
1821 let count = 0

Callers 3

handleGetFilePairFunction · 0.85
handleGetCommitFilePatchFunction · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected