MCPcopy Index your code
hub / github.com/codeaashu/claude-code / tooComplex

Function tooComplex

src/utils/bash/ast.ts:2033–2041  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

2031}
2032
2033function tooComplex(node: Node): ParseForSecurityResult {
2034 const reason =
2035 node.type === 'ERROR'
2036 ? 'Parse error'
2037 : DANGEROUS_TYPES.has(node.type)
2038 ? `Contains ${node.type}`
2039 : `Unhandled node type: ${node.type}`
2040 return { kind: 'too-complex', reason, nodeType: node.type }
2041}
2042
2043// ────────────────────────────────────────────────────────────────────────────
2044// 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