Skip to content
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

How to exclude dev-dependency in report #6977

Open
weihan1394 opened this issue Sep 22, 2024 · 1 comment
Open

How to exclude dev-dependency in report #6977

weihan1394 opened this issue Sep 22, 2024 · 1 comment
Labels

Comments

@weihan1394
Copy link

Following from the discussion from this issue created before (#1806)

Is there a way to exclude the dev-dependency from the dependency-check scan. I realize that with --nodeAuditSkipDevDependencies it just does not scan the dev-dependencies but in the HTML report it still reflect the dependency in dev-dependency. Hope anyone could share more insight if it could be remove from the report.

Thank you.

@jeremylong
Copy link
Owner

Try adding --disableNodeJS. There are a couple of JS analyzers and that one can cause the dev dependencies to be included and there isn't a way to exclude them. You might also need to disable the retire JS analyzer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants