()
| 36 | } |
| 37 | |
| 38 | function checkReadme() { |
| 39 | const readmePath = resolve(root, "README.md"); |
| 40 | if (!existsSync(readmePath)) { |
| 41 | failures.push("README.md is missing."); |
| 42 | return; |
| 43 | } |
| 44 | |
| 45 | const readme = readFileSync(readmePath, "utf8"); |
| 46 | checkReadmeStructure(readme); |
| 47 | checkEntryDescriptions(readme); |
| 48 | checkRuleLinks(readme); |
| 49 | } |
| 50 | |
| 51 | function checkReadmeStructure(readme) { |
| 52 | const firstH2 = readme.match(/^##\s+(.+?)\s*$/m); |
no test coverage detected