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

Function isSourceInBlocklist

src/utils/plugins/marketplaceHelpers.ts:461–469  ·  view source on GitHub ↗
(source: MarketplaceSource)

Source from the content-addressed store, hash-verified

459 * git URLs (e.g., git@github.com:owner/repo.git or https://github.com/owner/repo.git).
460 */
461export function isSourceInBlocklist(source: MarketplaceSource): boolean {
462 const blocklist = getBlockedMarketplaces()
463 if (blocklist === null) {
464 return false
465 }
466 return blocklist.some(blocked =>
467 areSourcesEquivalentForBlocklist(source, blocked),
468 )
469}
470
471/**
472 * Check if a marketplace source is allowed by enterprise policy.

Callers 3

addMarketplaceSourceFunction · 0.85
isSourceAllowedByPolicyFunction · 0.85

Calls 2

getBlockedMarketplacesFunction · 0.85

Tested by

no test coverage detected