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

feat: coreutils to IGNORED_GLOBAL_BINARIES #771

Merged
merged 1 commit into from
Sep 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 52 additions & 1 deletion packages/knip/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,51 +34,102 @@ export const DT_SCOPE = '@types';
// Package may exist in npm registry, but last publish is at least 6 years ago
export const IGNORED_GLOBAL_BINARIES = new Set([
'aws',
'base64',
'basename',
'bash',
'bun',
'bundle',
'bunx',
'cat',
'cd',
'chown',
'chmod',
'cksum',
'comm',
'command',
'corepack',
'cp',
'curl',
'cut',
'deno',
'df',
'dir',
'dirname',
'docker',
'echo',
'env',
'exec',
'exit',
'expand',
'expr',
'factor',
'false',
'find',
'gem',
'git',
'grep',
'groups',
'gzip',
'head',
'id',
'join',
'kill',
'ln',
'logname',
'ls',
'md5sum',
'mkdir',
'mknod',
'mv',
'nice',
'nl',
'nohup',
'node',
'npm',
'nproc',
'npx',
'paste',
'pnpm',
'pnpx',
'pr',
'printenv',
'pwd',
'rm',
'rmdir',
'seq',
'set',
'sha1sum',
'sha512sum',
'sh',
'shred',
'shuf',
'sort',
'split',
'ssh',
'stat',
'stty',
'sudo',
'sync',
'tac',
'tee',
'test', // exception (node built-in module)
'timeout',
'touch',
'tr',
'true',
'yarn',
'tsort',
'tty',
'uname',
'unexpand',
'uniq',
'wc',
'who',
'whoami',
'xargs',
'xcodebuild',
'xvfb-run',
'yarn',
'yes',
]);

export const IGNORED_DEPENDENCIES = new Set(['knip', 'typescript']);
Expand Down
Loading