| 255 | * sind zwei verschiedene Aussagen ueber dieselbe Zahl. |
| 256 | */ |
| 257 | export function impactRouteScanNote(scanned: number, cap: number | undefined, truncatedFiles: number): string { |
| 258 | const head = cap === undefined |
| 259 | ? `Routes were read off the text of ${countOf(scanned, 'indexed source file', 'indexed source files')}.` |
| 260 | : `Routes were read from the first ${cap} indexed source files only.`; |
| 261 | return truncatedFiles === 0 |
| 262 | ? head |
| 263 | : `${head} ${countOf(truncatedFiles, 'file', 'files')} arrived incomplete, so a registration past the cut is not on this list.`; |
| 264 | } |
| 265 | |
| 266 | /** Die Zeile ueber der Badge-Begruendung. */ |
| 267 | export const IMPACT_BADGE_WHY_TITLE = 'Which rules fired'; |