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
Missed true dependencies #846
Comments
I played with `depcheck` on CE. it has [many false "unused deps"](depcheck/depcheck#846), I grepped the tree for usages and checked manually `make`, `make dev` and `make check` - all seems well.
Regarding the first two, Perhaps there's a way to refine the 'core module' criterion? |
The See: https://github.com/depcheck/depcheck/blob/main/src/check.js#L232 |
Bug Description
I'm trying to use depcheck on
compiler-explorer
. I get:but many of these seem to be real dependencies. Specifically:
parsed_pug_file.js
contains:webpack.config.esm.ts
contains 'sass-loader', 'source-map-loader', 'css-loader' and 'ts-loader'Makefile
includes 'supervisor' (this might be outside your scope, I get it)pre-commit
includes 'lint-staged' (ditto).eslint-license-header.yml
includes 'eslint-plugin-header'etc. I stopped there.
Code snippets
For a complete repro with context:
I'll be happy to help collect more info or debug, if that would be helpful.
Versions
node -v
: v18.17.1npm -v
: 10.2.0depcheck --version
: 1.4.7The text was updated successfully, but these errors were encountered: