* The included source files (`codegraph.json` `include`) for a scan root, or an * empty set when nothing is force-included. Centralizes loading the matcher, * roots, exclude, and overrides so both enumeration paths (git and filesystem * walk) add the same files.
(rootDir: string)
| 498 | * walk) add the same files. |
| 499 | */ |
| 500 | function collectIncludedFilesForRoot(rootDir: string): Set<string> { |
| 501 | const include = loadIncludeMatcher(rootDir); |
| 502 | if (!include) return new Set(); |
| 503 | const roots = includeStaticRoots(loadIncludePatterns(rootDir)); |
| 504 | return collectIncludedFiles(rootDir, include, loadExcludeMatcher(rootDir), roots, loadExtensionOverrides(rootDir)); |
| 505 | } |
| 506 | |
| 507 | /** |
| 508 | * `git ls-files --directory` collapses a wholly-untracked/ignored directory into |
no test coverage detected