fix: gracefully skip permission-denied errors during project scan#24
Conversation
|
Warning Review limit reached
More reviews will be available in 28 minutes and 56 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
✨ 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 |
There was a problem hiding this comment.
Gates Passed
3 Quality Gates Passed
See analysis details in CodeScene
Quality Gate Profile: The Bare Minimum
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Problem
When running
kdcfrom the home directory or any directory containing macOS-protected folders (like~/Music,~/Photos, etc.), the project scanner fails with:This happens because:
kdcdefaults to scanning the current directory (.) when no--projectpath is providedWalkDirand propagates all errors viaentry?Fix
Change the scanner to skip entries that fail with permission errors instead of propagating the error and aborting the scan:
This allows
kdcto:Result
kdcnow runs successfully from any directory, including~, without failing on permission-denied errors.