-
Notifications
You must be signed in to change notification settings - Fork 28
feat: add GitHub Action to check for unused files, exports and dependencies and cleanup #120
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
feat: add GitHub Action to check for unused files, exports and dependencies and cleanup #120
Conversation
Our Pull Request Approval ProcessThis PR will be reviewed according to our: Your PR may be automatically closed if:
Thanks for contributing! |
WalkthroughIntroduces Knip tool for detecting unused files, exports, and dependencies with configuration and CI/CD integration. Removes four identified unused utility components from the src/utils directory. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20–25 minutes
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (7)
💤 Files with no reviewable changes (4)
🔇 Additional comments (3)
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 |
|
@coderabbitai full review and reevaluate all resolved items. If the PR requires any changes, even trivial ones, then give your review a “requested changes” status. If no changes are required then give the PR an “approved” status. |
🧩 Analysis chain🏁 Script executed: Length of output: 13397 🏁 Script executed: Length of output: 22036 🏁 Script executed: Length of output: 1268 🏁 Script executed: Length of output: 8134 🏁 Script executed: Length of output: 1192 @satyanvm: I've completed a full review of PR #120. The PR successfully addresses the goal of cleaning up unused code and adding automated checks, but there is one optimization needed. SummaryChanges Made:
Verification:
Issue FoundGitHub Action Optimization Required: In - name: Check for unused files, exports and dependencies
run: npx knipProblem: Since Required Change: - name: Check for unused files, exports and dependencies
run: pnpm knipThis ensures consistency with the project's package manager (pnpm) and utilizes the already-installed dependency. Once this change is made, the PR will be ready for approval. ✅ Actions performedFull review triggered. |
6172b37 to
c90a496
Compare
|
@coderabbitai full review and reevaluate all resolved items. If the PR requires any changes, even trivial ones, then give your review a “requested changes” status. If no changes are required then give the PR an “approved” status. |
🧩 Analysis chain🏁 Script executed: Length of output: 24762 @satyanvm: I've completed a comprehensive review of PR #120. The previously identified issue has been resolved, and the PR is now in excellent shape. ✅ Verification ResultsFiles Changed:
Previous Issue - RESOLVED: Code Quality Checks:
Summary:
No changes required - approving PR.✅ Actions performedComments resolved and changes approved. |
|
@palisadoes The PR is ready for review. PTAL. |
What kind of change does this PR introduce?
This PR adds a GitHub Action to check for unused files, exports and dependencies and cleans up existing unused code.
Issue Number:
Fixes #99
Did you add tests for your changes?
N/A
Snapshots/Videos:
N/A
If relevant, did you update the documentation?
N/A
Summary
There are unused code in the repository which this PR cleans up and also adds GitHub Action that checks for unused code on every PR.
#99
Does this PR introduce a breaking change?
No
Other information
I have used Knip tool for checking unused code, it's a widely popular and well maintained tool in the TypeScript/JavaScript community.
Have you read the contributing guide?
Yes
Summary by CodeRabbit
Chores
Refactor
✏️ Tip: You can customize this high-level summary in your review settings.