feat: add more patterns to unnecessary files hints#3050
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThe package content heuristics now recognise additional configuration files, changelog variants, test-file suffixes, and example/spec directories. Unit tests cover the new detections and legal-file exclusions. ChangesPackage content hint detection
Possibly related PRs
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ 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.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@app/utils/package-content-hints.ts`:
- Around line 68-69: The test/spec filename regex in
app/utils/package-content-hints.ts lines 68-69 must require a separator before
“test” or “spec” so latest.js is not matched; update the regex while preserving
valid test/spec filenames. Add a regression case for latest.js in
test/unit/app/utils/package-content-hints.spec.ts lines 38-44 and assert it is
not identified as a test/spec file.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: f8626559-07fd-4dd4-aa08-25db64a8886e
📒 Files selected for processing (2)
app/utils/package-content-hints.tstest/unit/app/utils/package-content-hints.spec.ts
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
🔗 Linked issue
None
🧭 Context
Some more patterns for files that are unnecessarily published to npmx
📚 Description
Add more patterns to unnecessary files hints