(ref: string, relPath: string)
| 108 | } |
| 109 | |
| 110 | async function defaultGetFileAtRef(ref: string, relPath: string): Promise<string | null> { |
| 111 | try { |
| 112 | const { stdout } = await exec("git", ["show", `${ref}:${relPath}`], { maxBuffer: 10 * 1024 * 1024 }); |
| 113 | return stdout; |
| 114 | } catch { |
| 115 | return null; |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | export function countRulesFromText(text: string): number { |
| 120 | const parsed = parse(text) as |
nothing calls this directly
no outgoing calls
no test coverage detected