(tools: string[])
| 331 | }; |
| 332 | |
| 333 | const extractCommands = (tools: string[]): string[] => |
| 334 | tools.flatMap((tool) => { |
| 335 | for (const toolName of SHELL_TOOL_NAMES) { |
| 336 | if (tool.startsWith(`${toolName}(`) && tool.endsWith(')')) { |
| 337 | return [normalize(tool.slice(toolName.length + 1, -1))]; |
| 338 | } |
| 339 | } |
| 340 | return []; |
| 341 | }); |
| 342 | |
| 343 | const coreTools = config.getCoreTools() || []; |
| 344 | const excludeTools = config.getExcludeTools() || []; |
no test coverage detected