MCPcopy Create free account
hub / github.com/SethGammon/Citadel / shouldBlockViolation

Function shouldBlockViolation

hooks_src/organize-enforce.js:173–181  ·  view source on GitHub ↗
(org, relativePath)

Source from the content-addressed store, hash-verified

171}
172
173function shouldBlockViolation(org, relativePath) {
174 if (org.locked !== true) return false;
175 if (ADVISORY_ONLY_PREFIXES.some(prefix => relativePath.startsWith(prefix))) return false;
176
177 const enforcePaths = Array.isArray(org.enforcePaths) ? org.enforcePaths : [];
178 if (enforcePaths.length === 0) return false;
179
180 return enforcePaths.some(pattern => matchesPathPattern(relativePath, pattern));
181}
182
183function main() {
184 let input = '';

Callers 1

mainFunction · 0.85

Calls 1

matchesPathPatternFunction · 0.85

Tested by

no test coverage detected