(files: Set<string>)
| 175 | * behaves identically to before; only genuinely polyglot repos get the extra coverage. |
| 176 | */ |
| 177 | export function pickCheckers(files: Set<string>): CheckerSpec[] { |
| 178 | const chosen: CheckerSpec[] = []; |
| 179 | const owned = new Set<string>(); |
| 180 | for (const c of CHECKERS) { |
| 181 | if (!c.detect(files)) continue; |
| 182 | if (c.exts.some(e => !owned.has(e))) { |
| 183 | chosen.push(c); |
| 184 | for (const e of c.exts) owned.add(e); |
| 185 | } |
| 186 | } |
| 187 | return chosen; |
| 188 | } |