Return all repo-relative paths that are in scope for scanning, before applying --targets.
(repo_root: Path, cfg: ToolConfig)
| 327 | |
| 328 | |
| 329 | def iter_scan_candidate_paths(repo_root: Path, cfg: ToolConfig) -> list[str]: |
| 330 | """ |
| 331 | Return all repo-relative paths that are in scope for scanning, before applying --targets. |
| 332 | """ |
| 333 | rels: list[str] = [] |
| 334 | for p in glob_paths(repo_root, cfg.scan.include): |
| 335 | rel = str(p.resolve().relative_to(repo_root)).replace(os.sep, "/") |
| 336 | if is_excluded(rel, cfg.scan.exclude): |
| 337 | continue |
| 338 | rels.append(rel) |
| 339 | return sorted(set(rels)) |
| 340 | |
| 341 | |
| 342 | def validate_requested_targets( |
no test coverage detected