-
Notifications
You must be signed in to change notification settings - Fork 676
chore: add knip
#7233
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?
chore: add knip
#7233
Conversation
🦋 Changeset detectedLatest commit: 1ddf877 The changes in this PR will be included in the next version bump. This PR includes changesets to release 8 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
85f86a0 to
8b9c0a0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it!
We can add it to the required checks, and remove it if we think it’s not helpful.
This comment was marked as outdated.
This comment was marked as outdated.
|
Ah, sorry, we don't need to add it to the "needs" array everywhere, we can just add it to the required checks, that’s enough I‘d say. |
|
Now |
Problem
N/A
Solution
This PR is a small proof of concept to try out Knip on this repository.
Currently, it includes analysis for the following packages and files:
package.jsonscriptsintegrations/docusaurusintegrations/fastifycustomThemefromfastifyApiReference.ts.It was an empty string and wasn't exported from the package entry point so it wasn't part of the public API.
packages/mock-serverAlthough this PR introduces only a few changes,
it should provide a good initial sense of how Knip can help improve and maintain the project over time.
E.g.,
My plan is to proceed gradually with additional PRs to expand coverage.
Let me know what you think about this. Thanks!
Checklist
I've gone through the following:
pnpm changeset).Note
Adds Knip with CI integration and config, cleans unused code/deps, and removes the unused customTheme from fastify with a related test update.
knip.jsonc) and CI job (knip) withpnpm lint:knip; gaterequired-ci-okon it.knipin rootpackage.json; addlint:knipscript..syncpackrc.customThemeand stop passing it togetHtmlDocumentinfastifyApiReference.ts.vi; assert warning when no spec source is provided.stdout-updatedependency and the spinner output module (scripts/src/commands/output.ts).integrations/docusaurusdev script fix; add@scalar/build-tooling).@scalar/mock-serverand its playground.turbo.jsonschema to local path.pnpm-workspace.yamlcatalogs (removestdout-update).Written by Cursor Bugbot for commit 1ddf877. This will update automatically on new commits. Configure here.