| 286 | if (unreadable.length) return source(relativeDir, 'unreadable', `${unreadable.length} file(s) could not be parsed`, names.length, unreadable); |
| 287 | return source(relativeDir, options.midRun ? 'mid-run' : 'healthy', options.midRun ? 'work is active' : 'source is readable', names.length); |
| 288 | } |
| 289 | |
| 290 | function inspectFile(projectRoot, relativePath, options = {}) { |
| 291 | const absolute = path.join(projectRoot, relativePath); |
| 292 | if (!fs.existsSync(absolute)) return source(relativePath, 'unknown', 'source is absent'); |
| 293 | try { |