MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / walk

Function walk

scripts/lint-error-codes.cjs:44–52  ·  view source on GitHub ↗
(dir)

Source from the content-addressed store, hash-verified

42}
43
44function walk(dir) {
45 const out = [];
46 for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
47 const full = path.join(dir, entry.name);
48 if (entry.isDirectory()) out.push(...walk(full));
49 else if (entry.isFile() && entry.name.endsWith('.yaml')) out.push(full);
50 }
51 return out;
52}
53
54function* findErrorCodeAssertions(node, trail) {
55 if (Array.isArray(node)) {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected