fix: exclude build/vendor/VCS directories from search tool (#226)

* fix: exclude build/vendor/VCS directories from search tool

grep -rn recursed into .git, node_modules, target, __pycache__, etc.
producing hundreds of noise hits from generated content.  Add
--exclude-dir flags for common directories that should never appear
in search results.

* fix: glob egg-info pattern and add vendor exclude

Copilot review: .egg-info misses turnstone.egg-info (named dirs),
use *.egg-info glob.  Also add vendor to the exclude list.
This commit is contained in:
Patrick Buckley
2026-03-29 15:28:52 -07:00
committed by GitHub
parent 1aa6982868
commit 6742c7e405
+15
View File
@@ -4285,6 +4285,21 @@ class ChatSession:
"-m",
"200", # max matches per file
"--color=never", # no ANSI codes in output
# Skip common build/vendor/VCS directories
"--exclude-dir=.git",
"--exclude-dir=node_modules",
"--exclude-dir=target",
"--exclude-dir=__pycache__",
"--exclude-dir=.mypy_cache",
"--exclude-dir=.ruff_cache",
"--exclude-dir=.pytest_cache",
"--exclude-dir=dist",
"--exclude-dir=build",
"--exclude-dir=*.egg-info",
"--exclude-dir=.tox",
"--exclude-dir=.venv",
"--exclude-dir=venv",
"--exclude-dir=vendor",
"--",
pattern,
path, # -- prevents pattern as flag