(node: ts.Node, what: string)
| 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'); |