MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / shouldSkipDirectory

Function shouldSkipDirectory

apps/api/scripts/lint-meta/context.ts:17–28  ·  view source on GitHub ↗
(
  full: string,
  skipSubpaths: readonly string[]
)

Source from the content-addressed store, hash-verified

15export const TESTS_LINT_META_SKIP = [join("tests", "lint-meta")] as const;
16
17function 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
30export function collectSourceFiles(
31 dir: string,

Callers 1

collectSourceFilesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected