* Matcher for the project's `codegraph.json` `include` patterns — first-party * source to force INTO the index even when `.gitignore` drops it (the general * whitelist `includeIgnored` never was — that one only revives *embedded git * repos*). The case it exists for: a project under a second VCS
(rootDir: string)
| 348 | * operation from the scan root. |
| 349 | */ |
| 350 | function loadIncludeMatcher(rootDir: string): Ignore | null { |
| 351 | const patterns = loadIncludePatterns(rootDir); |
| 352 | return patterns.length > 0 ? ignore().add(patterns) : null; |
| 353 | } |
| 354 | |
| 355 | /** Glob metacharacters that end the static (literal) prefix of an `include` pattern. */ |
| 356 | const GLOB_META = /[*?[\]{}!]/; |
no test coverage detected