MCPcopy
hub / github.com/github/awesome-copilot / detectDependencies

Function detectDependencies

extensions/java-modernization-studio/scan.mjs:374–381  ·  view source on GitHub ↗
(buildText)

Source from the content-addressed store, hash-verified

372}
373
374function detectDependencies(buildText) {
375 const text = (buildText || "").toLowerCase();
376 const keys = [];
377 for (const [key, sigs] of Object.entries(DEP_SIGNATURES)) {
378 if (sigs.some((s) => signatureMatches(text, s))) keys.push(key);
379 }
380 return keys;
381}
382
383const DOCKERFILE_RE = /^(dockerfile|containerfile)(\.[\w.-]+)?$/i;
384

Callers 1

buildAssessmentFunction · 0.85

Calls 1

signatureMatchesFunction · 0.85

Tested by

no test coverage detected