Skip to content

chore(front): check declared dependencies with knip (#8480) - #8619

Merged
Guillaume (guillaumejparis) merged 2 commits into
chore/front-depcruisefrom
chore/front-knip
Oct 21, 2026
Merged

Guillaume (guillaumejparis) merged 2 commits into
chore/front-depcruisefrom
chore/front-knip

Conversation

@guillaumejparis

@guillaumejparis Guillaume (guillaumejparis) commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Proposed changes

  • Add knip (yarn knip, config in knip.ts); CI runs yarn knip --dependencies.
  • yarn control uses yarn npm audit, because Yarn 4 has no yarn audit.
  • List the new checks in AGENTS.md, the Copilot instructions, the platform docs and the CI schema.

Testing Instructions

  1. cd openaev-front && yarn install --immutable on Node 24.11 or later.
  2. yarn knip --dependencies fails until the last PR of the stack removes the unused dependencies.

Related issues

Checklist

  • I consider the submitted work as finished
  • I tested the code for its functionality
  • I wrote test cases for the relevant uses case
  • I added/update the relevant documentation (either on github or on notion)
  • Where necessary I refactored code to improve the overall quality
  • For bug fix -> I implemented a test that covers the bug

Deployment

  • 🚀 Deploy this branch to a staging environment

Further comments

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

📖 Documentation check — ✅ Passed

60 functional file(s), 1 doc file(s) changed.

No documentation gaps detected.

@codecov

codecov Bot commented Oct 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.73%. Comparing base (7978c23) to head (98fe4bb).

❌ 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     
Flag Coverage Δ
backend 72.33% <ø> (-0.01%) ⬇️
e2e 17.81% <ø> (-0.10%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@guillaumejparis
Guillaume (guillaumejparis) marked this pull request as ready for review October 21, 2026 14:17
Copilot AI balanced review requested due to automatic review settings October 21, 2026 14:17
…checks (#8480) (#8620)

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
@guillaumejparis
Guillaume (guillaumejparis) merged commit dc9724c into chore/front-depcruise Oct 21, 2026
@guillaumejparis
Guillaume (guillaumejparis) deleted the chore/front-knip branch October 21, 2026 14:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 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 control to 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

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants