Skip to content
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

ci: detect unused dependencies #4107

Merged
merged 2 commits into from
Oct 10, 2024
Merged

Conversation

bnjbvr
Copy link
Member

@bnjbvr bnjbvr commented Oct 10, 2024

I've noticed there were a few unused dependencies; this removes them, and introduces a new check that will fail if there are any unused dependencies detected with cargo-machete. Also marks one false positive that the tool can't detect.

@bnjbvr bnjbvr requested review from a team as code owners October 10, 2024 10:26
@bnjbvr bnjbvr requested review from jmartinesp and andybalaam and removed request for a team October 10, 2024 10:26
Copy link
Contributor

@poljar poljar left a comment

Choose a reason for hiding this comment

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

Nice, though not sure if the author of this tool can be trusted 👀.

@poljar
Copy link
Contributor

poljar commented Oct 10, 2024

Oh, and you need to rebase to get #4108 for CI to fix itself.

@bnjbvr bnjbvr force-pushed the bnjbvr/get-rid-of-unused-dependencies branch from dc4c67e to d5706b0 Compare October 10, 2024 12:04
@bnjbvr bnjbvr enabled auto-merge (rebase) October 10, 2024 12:07
@bnjbvr bnjbvr merged commit 711f4cb into main Oct 10, 2024
42 checks passed
Copy link

codecov bot commented Oct 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.66%. Comparing base (81119a6) to head (d5706b0).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4107      +/-   ##
==========================================
- Coverage   84.70%   84.66%   -0.04%     
==========================================
  Files         269      269              
  Lines       28821    28821              
==========================================
- Hits        24412    24401      -11     
- Misses       4409     4420      +11     

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

@bnjbvr bnjbvr deleted the bnjbvr/get-rid-of-unused-dependencies branch October 10, 2024 12:18
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.

2 participants