(org, relativePath)
| 171 | } |
| 172 | |
| 173 | function 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 | |
| 183 | function main() { |
| 184 | let input = ''; |
no test coverage detected