Skip to content

Report stale workspaces configuration keys as configuration hints#1807

Merged
webpro merged 4 commits into
webpro-nl:mainfrom
WooWan:feat/unused-services
Jun 22, 2026
Merged

Report stale workspaces configuration keys as configuration hints#1807
webpro merged 4 commits into
webpro-nl:mainfrom
WooWan:feat/unused-services

Conversation

@WooWan

@WooWan WooWan commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Reports workspaces entries in Knip configuration that no longer match any discovered workspace as configuration hints. This helps large monorepos clean up stale workspace-specific overrides after services are removed or renamed, matching the existing behavior for stale ignoreWorkspaces entries.

Tested with bun test test/workspaces/stale-config.test.ts.

@pkg-pr-new

pkg-pr-new Bot commented Jun 22, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/knip@1807
npm i https://pkg.pr.new/@knip/language-server@1807
npm i https://pkg.pr.new/@knip/mcp@1807

commit: e85b220

@webpro

webpro commented Jun 22, 2026

Copy link
Copy Markdown
Member

Good idea, thanks for the PR! Made a few adjustments but was good to go.

@webpro webpro merged commit 9083c16 into webpro-nl:main Jun 22, 2026
30 checks passed
@webpro

webpro commented Jun 22, 2026

Copy link
Copy Markdown
Member

🚀 This pull request is included in v6.18.0. See Release 6.18.0 for release notes.

Using Knip in a commercial project? Please consider becoming a sponsor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

💡 Report stale workspaces configuration keys as configuration hints

3 participants