Repository navigation
Add more shell builtins and POSIX utilities to the ignored global binaries - #2277
Merged
Merged
Conversation
β¦aries Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
commit: |
webpro
approved these changes
Nov 2, 2026
webpro
left a comment
Member
There was a problem hiding this comment.
Thanks! All 35 additions stop being reported, and an installed package that provides one of these names still counts as used. Noting for later: realpath and wait don't meet the npm criteria in the comment at the top of this list, as both are packages published in the last six years with a matching bin and about 7,200 weekly downloads. The shell meaning is far more common, so they're fine to keep.
Member
|
π This pull request is included in v6.44.2. See Release 6.44.2 for release notes. Using Knip in a commercial project? Please consider becoming a sponsor. |
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.
Scripts using shell builtins or standard utilities like
ulimit,tail,unsetormktempget them reported as unlisted binaries. I found this running knip over opencode, whosedev:consolescript starts withulimit -n 10240.Added these to
IGNORED_GLOBAL_BINARIES:alias,bg,bind,break,builtin,chgrp,cmp,continue,dd,declare,du,eval,fg,getopts,gunzip,hash,hostname,jobs,killall,local,mktemp,pgrep,pkill,read,readlink,realpath,return,shift,tail,type,ulimit,umask,unalias,unset,wait.I ran a package with one script per command: all of them were reported before this and none are now, and
ulimitis gone from the report on opencode. No new test, same as earlier additions to this list (#2182, #1972). The binary and script input tests pass.