-
-
Notifications
You must be signed in to change notification settings - Fork 222
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
option --json changes return status #407
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@mrbobfrog Thanks for reporting this, will be fixed in the next release, see #465 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Description
On a code base, when I run
depcheck <project> --json
it changes the return status (returns zero on unused or missing dependencies). FYIdepcheck <project>
returns non-zero.Code snippets
Where the dependency is used:
Where the dependency is listed in package.json:
Versions
node -v
: v10.16.0npm -v
: 6.10.3depcheck --version
: 0.8.3Extra info
I would like to use
depcheck
as part of an automated build pipeline. Unfortunately, it does not behave consistently when I use the--json
option.Here's my test:
BONUS POINTS: If you wish to help us debug further, the
depcheck --json
option will show more information. Check here in the README for documentation on json output.The text was updated successfully, but these errors were encountered: