(readme)
| 144 | } |
| 145 | |
| 146 | function extractEntries(readme) { |
| 147 | return readme |
| 148 | .split(/\r?\n/) |
| 149 | .map((line, index) => ({ line, lineNumber: index + 1 })) |
| 150 | .map(({ line, lineNumber }) => { |
| 151 | const match = line.match(/^\s*-\s+\[[^\]]+\]\([^)]+\)\s+-\s+(.+)$/); |
| 152 | return match ? { lineNumber, description: match[1].trim() } : null; |
| 153 | }) |
| 154 | .filter(Boolean); |
| 155 | } |
| 156 | |
| 157 | function checkRuleLinks(readme) { |
| 158 | if (/\]\((\.\/)?rules\//.test(readme)) { |
no outgoing calls
no test coverage detected