-
-
Notifications
You must be signed in to change notification settings - Fork 221
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
Add ability to skip calculation of missing dependencies #242
Conversation
Codecov Report
@@ Coverage Diff @@
## master #242 +/- ##
==========================================
+ Coverage 98.43% 98.43% +<.01%
==========================================
Files 25 25
Lines 447 448 +1
==========================================
+ Hits 440 441 +1
Misses 7 7
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
`--json`: Output results in JSON. When not specified, depcheck outputs in human friendly format. | ||
|
||
`--ignores`: A comma separated array containing package names to ignore. It can be glob expressions. Example, `--ignores=eslint,babel-*`. | ||
`--ignores`: A comma separated array containing package names to ignore. It can be glob expressions. Example, `--ignores="eslint,babel-*"`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
@tSte Do you want me to publish a new version for this? |
@lijunle I hope I didn't break anything... ;) |
@tSte I have high confidence with the test cases. 😃 |
In some cases, you don't care about missing dependencies. While non-empty missing dependencies do not seem to affect CLI exit code, this might change in the future (#235).
This PR adds simple flag to both JS (
skipMissing
) and CLI (--skip-missing
). It is optional (defaults tofalse
- the original behavior).Todo: