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

Function checkSplatting

src/tools/PowerShellTool/powershellSecurity.ts:746–756  ·  view source on GitHub ↗

* AST-only check: Detects splatting (@variable) which can obscure arguments.

(
  parsed: ParsedPowerShellCommand,
)

Source from the content-addressed store, hash-verified

744 * AST-only check: Detects splatting (@variable) which can obscure arguments.
745 */
746function checkSplatting(
747 parsed: ParsedPowerShellCommand,
748): PowerShellSecurityResult {
749 if (deriveSecurityFlags(parsed).hasSplatting) {
750 return {
751 behavior: 'ask',
752 message: 'Command uses splatting (@variable)',
753 }
754 }
755 return { behavior: 'passthrough' }
756}
757
758/**
759 * AST-only check: Detects stop-parsing token (--%) which prevents further parsing.

Callers

nothing calls this directly

Calls 1

deriveSecurityFlagsFunction · 0.85

Tested by

no test coverage detected