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

Function isVendoredPath

src/graph/dead-code.ts:785–790  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

783
784/** Code the repository carries rather than owns — see {@link VENDOR_SEGMENTS}. */
785export function isVendoredPath(filePath: string): boolean {
786 for (const segment of filePath.replace(/\\/g, '/').split('/')) {
787 if (VENDOR_SEGMENTS.has(segment.toLowerCase())) return true;
788 }
789 return false;
790}
791
792/** A name the language calls by itself, so no source file could name it. */
793export function isImplicitEntryName(name: string): boolean {

Callers 2

dead-code.test.tsFile · 0.90
buildDeadCodeReportFunction · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected