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

Function checkArgElementType

src/tools/PowerShellTool/pathValidation.ts:1334–1340  ·  view source on GitHub ↗
(argIdx: number)

Source from the content-addressed store, hash-verified

1332 const positionalSkip = config.positionalSkip ?? 0
1333
1334 function checkArgElementType(argIdx: number): void {
1335 if (!elementTypes) return
1336 const et = elementTypes[argIdx + 1]
1337 if (et && !SAFE_PATH_ELEMENT_TYPES.has(et)) {
1338 hasUnvalidatablePathArg = true
1339 }
1340 }
1341
1342 // Extract named parameter values (e.g., -Path "C:\foo")
1343 for (let i = 0; i < args.length; i++) {

Callers 1

extractPathsFromCommandFunction · 0.85

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected