MCPcopy Create free account
hub / github.com/codeaashu/claude-code / isDotnetSafe

Function isDotnetSafe

src/tools/PowerShellTool/readOnlyValidation.ts:1809–1823  ·  view source on GitHub ↗
(args: string[])

Source from the content-addressed store, hash-verified

1807}
1808
1809function isDotnetSafe(args: string[]): boolean {
1810 if (args.length === 0) {
1811 return false
1812 }
1813
1814 // dotnet uses top-level flags like --version, --info, --list-runtimes
1815 // All args must be in the safe set
1816 for (const arg of args) {
1817 if (!DOTNET_READ_ONLY_FLAGS.has(arg.toLowerCase())) {
1818 return false
1819 }
1820 }
1821
1822 return true
1823}
1824

Callers 1

isExternalCommandSafeFunction · 0.85

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected