Repository navigation
chore(front): check declared dependencies with knip (#8480) - #8619
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
📖 Documentation check — ✅ Passed 60 functional file(s), 1 doc file(s) changed. No documentation gaps detected. |
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project check has failed because the head coverage (72.33%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## chore/front-depcruise #8619 +/- ##
===========================================================
- Coverage 69.74% 69.73% -0.01%
+ Complexity 14010 14009 -1
===========================================================
Files 2053 2053
Lines 67440 67440
Branches 7967 7967
===========================================================
- Hits 47036 47032 -4
- Misses 16856 16857 +1
- Partials 3548 3551 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🔵 Needs a closer look
The new check intentionally fails until #8620 is incorporated, so approval requires validation of the completed stack.
No open issues 🎉
What changed in this PR
Adds Knip dependency checks to OpenAEV’s frontend tooling as the second part of the dependency-validation stack for #8480.
Changes:
- Adds Knip configuration and a dependency-only CI check.
- Updates
yarn controlto use Yarn 4’s audit command. - Documents the checks across development guidance and CI diagrams.
| File | Description |
|---|---|
openaev-front/yarn.lock |
Locks Knip and its dependencies. |
openaev-front/package.json |
Adds Knip and updates audit and dependency-check commands. |
openaev-front/knip.ts |
Defines narrow CLI and shell-binary exceptions. |
openaev-front/.dependency-cruiser.ts |
Classifies Knip configuration as development tooling. |
docs/docs/development/platform.md |
Documents the dependency check. |
AGENTS.md |
Adds Knip to development commands. |
.github/copilot-instructions.md |
Updates validation guidance. |
.github/ci-pipeline-schema.md |
Documents Knip in frontend quality checks. |
.github/ci-pipeline-schema.d2 |
Updates the CI diagram source. |
.github/actions/frontend-quality/action.yml |
Enforces dependency-only Knip checks. |
.claude/skills/review-code/SKILL.md |
Adds Knip to review validation commands. |
Review effort: Balanced
Proposed changes
yarn knip, config inknip.ts); CI runsyarn knip --dependencies.yarn controlusesyarn npm audit, because Yarn 4 has noyarn audit.AGENTS.md, the Copilot instructions, the platform docs and the CI schema.Testing Instructions
cd openaev-front && yarn install --immutableon Node 24.11 or later.yarn knip --dependenciesfails until the last PR of the stack removes the unused dependencies.Related issues
Checklist
Deployment
Further comments
🤖 Generated with Claude Code