MCPcopy Create free account
hub / github.com/Snapchat/Valdi / isSharedLibFile

Function isSharedLibFile

npm_modules/cli/src/core/analyze/scanner.ts:187–189  ·  view source on GitHub ↗
(filePath: string, config: ScanConfig)

Source from the content-addressed store, hash-verified

185}
186
187export function isSharedLibFile(filePath: string, config: ScanConfig): boolean {
188 return config.sharedLibPaths.some(libPath => filePath === libPath || filePath.startsWith(libPath + path.sep));
189}

Callers 2

clusterFingerprintsFunction · 0.90
detectKnownPatternsFunction · 0.90

Calls 1

startsWithMethod · 0.80

Tested by

no test coverage detected