Commit graph

1 commit

Author SHA1 Message Date
google-labs-jules[bot]
44b1b0d27c feat: optimize repo validation by pruning excluded dirs
Replaces `rglob` with `os.walk` using `topdown=True` in `scripts/ci_validate_repo.py`.
This allows pruning large ignored directories (like `node_modules` or `.git`) *before*
traversal, significantly reducing the number of files scanned.

Performance:
- Benchmarked ~2.4x faster in the current environment (0.045s -> 0.019s).
- Impact scales with the size of ignored directories.

Verification:
- Added `scripts/verify_secret_scanning.py` to ensure secret scanning logic
  correctly detects secrets in tracked files and ignores them in excluded directories.
2026-02-27 05:32:13 +00:00