A JSON list of names from metadata, or null when absent or unreadable.
(value: string | null)
| 169 | |
| 170 | /** A JSON list of names from metadata, or null when absent or unreadable. */ |
| 171 | function parseNameList(value: string | null): string[] | null { |
| 172 | if (!value) return null; |
| 173 | try { |
| 174 | const parsed: unknown = JSON.parse(value); |
| 175 | return Array.isArray(parsed) && parsed.every((n) => typeof n === 'string') ? parsed : null; |
| 176 | } catch { |
| 177 | return null; |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | /** |
| 182 | * CODEGRAPH_SYNTH_MIN_INTERVAL_MS: the least time between two repo-wide |
no test coverage detected