-
Notifications
You must be signed in to change notification settings - Fork 2
perf(discovery): optimize root discovery #366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Implement automatic discovery of spectr directories across nested repositories, enabling monorepo support for list, validate, and view commands. Changes: - Add internal/discovery package with FindSpectrRoots function - Add spectr discovery command for listing discovered roots - Update list command to aggregate items from all discovered roots - Update validate command to validate across all roots - Update view command to show aggregated dashboard - Add FormatMode type for cleaner multi-root formatting - Fix lint errors (optimize-operands-order, goconst, etc.) - Add proposal for relative line numbers feature (gh#364) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
When items come from multiple spectr roots (e.g., monorepo), the ID column now displays "[project] id" format to show which subproject each change/spec belongs to. Also fixes edit path construction to handle nested project paths correctly. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the
✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Replaces filepath.WalkDir with os.ReadDir to reduce syscalls and improve startup time on large repos.
Fixes issue with slow startup on large monorepos.
Benchmarked ~43% improvement on synthetic large repo.