-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
Knip detects a script parameter as a package dependency #477
Comments
|
|
🚀 This issue has been resolved in v4.2.2. See Release 4.2.2 for release notes. |
Bit of an edge case situation, but should be fixed! |
Eh, looking at the fix code, I'm not sure this does it. I've used If your experience says that |
The reason I mentioned it's an edge case, is because it's not that common to use a binary in Knip makes a difference between these scripts and, for instance, binaries in GitHub Actions files, which is totally different context. I'm definitely not stating that The obvious downside and, indeed, a very ugly part of Knip here is that if..
..then it's reported as an unlisted dependency. So either Knip makes a whitelist or a blacklist for this, and I'm still on the fence with it. It's hard to justify hard-coding |
The binary in my case is a listed dependency. It's internal to the monorepo, but it's in I for sure am not asking for a hardcode of And I guess I do agree that people don't often write their own binaries, though they sorta should, it's nice :) Still, IMO allowlist is a better pattern, because I've only seen Regardless, I think doc updates are in order. Regardless of allow or block list, this is "magical" behaviour and should be documented. Here's a PR: #484 |
All it the title.
Repro.
The text was updated successfully, but these errors were encountered: