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

Function hasRules

src/utils/permissions/PermissionUpdate.ts:45–47  ·  view source on GitHub ↗
(updates: PermissionUpdate[] | undefined)

Source from the content-addressed store, hash-verified

43}
44
45export function hasRules(updates: PermissionUpdate[] | undefined): boolean {
46 return extractRules(updates).length > 0
47}
48
49/**
50 * Applies a single permission update to the context and returns the updated context

Callers 1

Calls 1

extractRulesFunction · 0.85

Tested by

no test coverage detected