(path: string)
| 14 | export const isComposePath = (path: string) => /(^|\/)(?:docker-)?compose(?:[.-][\w.-]+)?\.ya?ml$/i.test(path); |
| 15 | const isDockerfile = (path: string) => /(^|\/)(?:Dockerfile(?:[.][\w.-]+)?|[\w.-]+\.Dockerfile)$/i.test(path); |
| 16 | const isCode = (path: string) => /\.(?:py|js|jsx|ts|tsx|cs|go|java|kt|rs|rb|php|c|cc|cpp|ex|exs)$/i.test(path) |
| 17 | && !/(^|\/)(?:node_modules|vendor|vendored|test|tests|fixtures|dist|build)\//.test(path) |
| 18 | && !/\.(?:min|test|spec)\.[^.]+$/.test(path); |
| 19 | const checkAbort = (signal: AbortSignal) => { if (signal.aborted) throw new DOMException('Aborted', 'AbortError'); }; |
| 20 | |
| 21 | /** File names that can be Compose manifests; isComposePath decides. The filter keeps the answer small in any repository. */ |
no outgoing calls
no test coverage detected