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

Function isVendoredPath

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

Source from the content-addressed store, hash-verified

787
788/** Code the repository carries rather than owns — see {@link VENDOR_SEGMENTS}. */
789export function isVendoredPath(filePath: string): boolean {
790 for (const segment of filePath.replace(/\\/g, '/').split('/')) {
791 if (VENDOR_SEGMENTS.has(segment.toLowerCase())) return true;
792 }
793 return false;
794}
795
796/** A name the language calls by itself, so no source file could name it. */
797export 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