bucharest-gold / szero

The main goal is to show unused dependencies on Node.js modules, more specifically, to show that Foo dependency declared in package.json is not being used because there is no require('foo').
Other
17 stars 6 forks source link

issues with non .js files and ignore option #115

Closed helio-frota closed 6 years ago

helio-frota commented 6 years ago

When running szero on nodeshift project, it shows yargs as unused :

11:02 $ szero . --summary --ignore bin
----------------------------------------------------------------------
[ Unused dependencies ]
----------------------------------------------------------------------
yargs

nodeshift is using yargs inside bin directory in a executable file nodeshift, since szero scope is to scan only .js files, then the ignore option should avoid the bin directory and not show the dependency yargs as unused.

helio-frota commented 6 years ago

https://github.com/bucharest-gold/szero/commit/cad7cf6eb236dee0bdf45d4a33cae491fc4d9651