MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / flag

Function flag

__tests__/child-process-windows-hide.test.ts:267–270  ·  view source on GitHub ↗
(node: ts.Node, what: string)

Source from the content-addressed store, hash-verified

265 const offenders: string[] = [];
266 let seen = 0;
267 const flag = (node: ts.Node, what: string): void => {
268 const { line } = sf.getLineAndCharacterOfPosition(node.getStart(sf));
269 offenders.push(`${rel}:${line + 1} ${what}`);
270 };
271 const visit = (node: ts.Node): void => {
272 if (ts.isExportDeclaration(node) && isChildProcessModule(node.moduleSpecifier)) {
273 flag(node, 're-exports child_process: spawns through the re-export are out of sight');

Callers 1

visitFunction · 0.70

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected