MCPcopy
hub / github.com/PatrickJS/awesome-cursorrules / checkReadme

Function checkReadme

scripts/check-awesome-list.mjs:38–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36}
37
38function 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
51function checkReadmeStructure(readme) {
52 const firstH2 = readme.match(/^##\s+(.+?)\s*$/m);

Callers 1

Calls 3

checkReadmeStructureFunction · 0.85
checkEntryDescriptionsFunction · 0.85
checkRuleLinksFunction · 0.85

Tested by

no test coverage detected