fix: wire --no-tests flag to all query commands (CLI + MCP)#47
fix: wire --no-tests flag to all query commands (CLI + MCP)#47carlos-alm merged 4 commits intomainfrom
Conversation
The -T/--no-tests flag was defined on fn, fn-impact, context, explain, where, diff-impact, and search but missing from query, map, stats, deps, impact, and hotspots. The underlying data functions already supported noTests filtering but the CLI never passed it through. - Add -T/--no-tests to query, map, stats, deps, impact, hotspots in CLI - Add noTests support to queryNameData and statsData data functions - Add no_tests schema + handler passthrough to MCP tools: query_function, file_deps, impact_analysis, module_map - Standardize all --no-tests help text to 'Exclude test/spec files from results' - Add DOGFOOD-REPORT-2.1.0.md with full testing results and suggestions
|
Claude finished @carlos-alm's task —— View job PR Review:
|
Greptile SummaryWires the
Confidence Score: 5/5
Important Files Changed
Last reviewed commit: 937b60f |
The branch name validation only triggered on `git push` and used a pattern that missed commands prefixed with `cd "..." &&` (common in worktree sessions). Now validates on both `git push` and `gh pr create`, and handles the cd prefix pattern for all checks.
|
Claude finished @carlos-alm's task —— View job PR Review:
|
|
Claude finished @carlos-alm's task —— View job PR Review:
|
- statsData now filters nodes and edges by excluding all nodes belonging to test files (previously only file counts and hotspots were filtered) - Add no_tests schema property and handler passthrough to MCP hotspots tool - Add 7 integration tests verifying noTests filtering behavior across queryNameData, statsData, impactAnalysisData, fileDepsData, moduleMapData
|
Claude finished @carlos-alm's task —— View job Claude finished @unknown's task —— View job PR Review:
|
Summary
-T/--no-testsflag was missing from 6 CLI commands (query,map,stats,deps,impact,hotspots) and 4 MCP tools (query_function,file_deps,impact_analysis,module_map). The underlying data functions already supportednoTestsfiltering but it was never wired up.--no-testshelp text to'Exclude test/spec files from results'(was 3 different wordings).DOGFOOD-REPORT-2.1.0.mdwith full testing results from running codegraph v2.1.0 on itself (Windows x64, native engine).Test plan
--no-testsworks on all fixed commands:map --no-testsshows only source filesdeps src/builder.js --no-testsfilters test importers (5 → 1)impact src/parser.js --no-testsfilters test dependents (30 → 8)stats --no-testsfilters file count (92 → 59)query buildGraph --no-testsfilters test callershotspots --no-testsexcludes test files from rankings--no-testsstill work identically