( full: string, skipSubpaths: readonly string[] )
| 15 | export const TESTS_LINT_META_SKIP = [join("tests", "lint-meta")] as const; |
| 16 | |
| 17 | function shouldSkipDirectory( |
| 18 | full: string, |
| 19 | skipSubpaths: readonly string[] |
| 20 | ): boolean { |
| 21 | const normalized = full.replace(/\\/g, "/"); |
| 22 | |
| 23 | return skipSubpaths.some((skip) => { |
| 24 | const skipNorm = skip.replace(/\\/g, "/"); |
| 25 | |
| 26 | return normalized.endsWith(`/${skipNorm}`) || normalized.endsWith(skipNorm); |
| 27 | }); |
| 28 | } |
| 29 | |
| 30 | export function collectSourceFiles( |
| 31 | dir: string, |
no outgoing calls
no test coverage detected