(file, fallback)
| 39 | const siteBase = getArg("--site", DEFAULT_SITE).replace(/\/+$/, ""); |
| 40 | |
| 41 | function readJsonFile(file, fallback) { |
| 42 | const target = path.join(ROOT, file); |
| 43 | if (!fs.existsSync(target)) return fallback; |
| 44 | return JSON.parse(fs.readFileSync(target, "utf8")); |
| 45 | } |
| 46 | |
| 47 | function readProblems(file) { |
| 48 | const source = fs.readFileSync(file, "utf8"); |
no outgoing calls
no test coverage detected