chore: replace unimported with knip and update workflow#2650
Open
abidta wants to merge 1 commit intosinonjs:mainfrom
Open
chore: replace unimported with knip and update workflow#2650abidta wants to merge 1 commit intosinonjs:mainfrom
abidta wants to merge 1 commit intosinonjs:mainfrom
Conversation
- Added knip as the recommended replacement. - Integrated knip into the workflow file for automated checks. Closes sinonjs#2637
|
New, updated, and removed dependencies detected. Learn more about Socket for GitHub ↗︎
|
Member
|
Thank you for the pull request 👏 There are still a few things to do. It is fair enough that the solution can't detect usage of things in However, it should be able to detect things that are clearly in use. $ ag -Q "incrementCallCount"
lib/sinon/spy.js
59: proxyCallUtil.incrementCallCount(fake);
lib/sinon/proxy-invoke.js
19: proxyCallUtil.incrementCallCount(this);
24: proxyCallUtil.incrementCallCount(matching);
lib/sinon/proxy-call-util.js
5:exports.incrementCallCount = function incrementCallCount(proxy) {I think |
Contributor
|
Would it be possible to revive this PR, @abidta ? Seems like most things were already in place. |
Author
|
Yes, I can revive this PR
…On Fri, 19 Dec 2025, 6:44 PM Carl-Erik Kopseng ***@***.***> wrote:
*fatso83* left a comment (sinonjs/sinon#2650)
<#2650 (comment)>
Would it be possible to revive this PR, @abidta
<https://github.com/abidta> ? Seems like most things were already in
place.
—
Reply to this email directly, view it on GitHub
<#2650 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AYQRPYAQAPPTQ4DXUWROOAD4CP2Z7AVCNFSM6AAAAACPRJKBRSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTMNZVGA2DMNRUGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added knip as the recommended replacement.
Integrated knip into the workflow file for automated checks.
Closes #2637
Purpose (TL;DR) - mandatory
How to verify - mandatory
npm installChecklist for author
npm run lintpasses