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

Function checkEntryDescriptions

scripts/check-awesome-list.mjs:130–144  ·  view source on GitHub ↗
(readme)

Source from the content-addressed store, hash-verified

128}
129
130function checkEntryDescriptions(readme) {
131 for (const { lineNumber, description } of extractEntries(readme)) {
132 if (/^Cursor rules\s+(for|that|to)\b/i.test(description)) {
133 failures.push(`README entry description on line ${lineNumber} starts with noisy "Cursor rules ..." phrasing.`);
134 }
135
136 if (!/^[A-Z0-9`]/.test(description)) {
137 failures.push(`README entry description on line ${lineNumber} must start with an uppercase character.`);
138 }
139
140 if (!description.endsWith(".")) {
141 failures.push(`README entry description on line ${lineNumber} must end with a period.`);
142 }
143 }
144}
145
146function extractEntries(readme) {
147 return readme

Callers 1

checkReadmeFunction · 0.85

Calls 1

extractEntriesFunction · 0.85

Tested by

no test coverage detected