MCPcopy Create free account
hub / github.com/freecodexyz/free-code / formatSource

Function formatSource

src/utils/permissions/shadowedRuleDetection.ts:72–74  ·  view source on GitHub ↗

* Format a rule source for display in warning messages.

(source: PermissionRuleSource)

Source from the content-addressed store, hash-verified

70 * Format a rule source for display in warning messages.
71 */
72function formatSource(source: PermissionRuleSource): string {
73 return permissionRuleSourceDisplayString(source)
74}
75
76/**
77 * Generate a fix suggestion based on the shadow type.

Callers 2

generateFixSuggestionFunction · 0.85
detectUnreachableRulesFunction · 0.85

Calls 1

Tested by

no test coverage detected