MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / tooComplex

Function tooComplex

source code/utils/bash/ast.ts:2035–2043  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

2033}
2034
2035function tooComplex(node: Node): ParseForSecurityResult {
2036 const reason =
2037 node.type === 'ERROR'
2038 ? 'Parse error'
2039 : DANGEROUS_TYPES.has(node.type)
2040 ? `Contains ${node.type}`
2041 : `Unhandled node type: ${node.type}`
2042 return { kind: 'too-complex', reason, nodeType: node.type }
2043}
2044
2045// ────────────────────────────────────────────────────────────────────────────
2046// Post-argv semantic checks

Callers 10

collectCommandsFunction · 0.85
walkRedirectedStatementFunction · 0.85
walkFileRedirectFunction · 0.85
walkHeredocRedirectFunction · 0.85
walkHerestringRedirectFunction · 0.85
walkCommandFunction · 0.85
walkArgumentFunction · 0.85
walkStringFunction · 0.85
walkArithmeticFunction · 0.85
resolveSimpleExpansionFunction · 0.85

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected