(buildText)
| 372 | } |
| 373 | |
| 374 | function 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 | |
| 383 | const DOCKERFILE_RE = /^(dockerfile|containerfile)(\.[\w.-]+)?$/i; |
| 384 |
no test coverage detected