Skip to content

Run knip in CI#265

Merged
jamescmartinez merged 1 commit intomainfrom
knip
Feb 8, 2026
Merged

Run knip in CI#265
jamescmartinez merged 1 commit intomainfrom
knip

Conversation

@jamescmartinez
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings February 8, 2026 14:46
@codecov
Copy link

codecov bot commented Feb 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR integrates Knip into the repository’s CI pipeline to detect unused files/exports/dependencies, and adjusts code/config so Knip can run cleanly in this monorepo setup.

Changes:

  • Run knip as part of the root npm run ci workflow.
  • Update knip.json with stricter settings and multiple ignore rules to reduce false positives.
  • Remove unused Dashboard components that would otherwise be flagged by Knip.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/dashboard/src/components/status-badge.tsx Removes an unused StatusBadge component.
packages/dashboard/src/components/stats-card.tsx Removes an unused StatsCard component.
package.json Adds npm run knip into the ci script pipeline.
package-lock.json Lockfile updates (appears to be regeneration/metadata changes).
knip.json Tightens Knip config and adds ignore rules to make CI pass.

Comment on lines +19 to +27
"ignoreFiles": [
"**/openworkflow.config.*",
"openworkflow/**/*.ts",
"packages/dashboard/src/components/ui/*.tsx",
"packages/docs/style.css"
],
"ignoreIssues": {
"packages/dashboard/src/components/ui/*.tsx": ["exports"],
"packages/openworkflow/workflow.ts": ["duplicates"]
Copy link

Copilot AI Feb 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

packages/dashboard/src/components/ui/*.tsx is listed in both ignoreFiles and ignoreIssues. If those files are ignored entirely, the ignoreIssues entry for them won’t have any effect and may hide whether the files are actually in-scope for dependency/entry analysis. Consider keeping only one of these (e.g., drop ignoreFiles if you only meant to suppress exports, or drop the ignoreIssues entry if you truly want to exclude these files).

Copilot uses AI. Check for mistakes.
Comment on lines +5 to +14
"ignoreBinaries": ["mint", "open"],
"ignoreDependencies": [
"@tanstack/react-router-ssr-query",
"@tanstack/router-plugin",
"@testing-library/dom",
"@testing-library/react",
"jsdom",
"postgres",
"web-vitals"
],
Copy link

Copilot AI Feb 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ignoreDependencies is configured at the top level, but the ignored packages appear to be workspace-specific (most are only in packages/dashboard/package.json, while postgres is also used elsewhere). If Knip is intended to enforce unused deps across the monorepo, consider scoping these ignores to the relevant workspace/package so they don’t mask unused-dependency findings in other workspaces that might add the same deps later.

Copilot uses AI. Check for mistakes.
@jamescmartinez jamescmartinez merged commit a8d68ab into main Feb 8, 2026
14 checks passed
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.

1 participant