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

Can't disable MSBuild Analyzer from CLI #3035

Closed
RyanMcC opened this issue Dec 22, 2020 · 5 comments
Closed

Can't disable MSBuild Analyzer from CLI #3035

RyanMcC opened this issue Dec 22, 2020 · 5 comments
Labels
Milestone

Comments

@RyanMcC
Copy link

RyanMcC commented Dec 22, 2020

Describe the bug
There's no CLI option that disables the MSBuild Analyzer, the only way to do so is with a .properties file.

If I understand it correctly, there should be a disableMsBuild option in https://github.com/jeremylong/DependencyCheck/blob/main/cli/src/main/java/org/owasp/dependencycheck/CliParser.java and then it needs to be used in https://github.com/jeremylong/DependencyCheck/blob/main/cli/src/main/java/org/owasp/dependencycheck/App.java populateSettings to overwrite ANALYZER_MSBUILD_PROJECT_ENABLED.

Version of dependency-check used
The problem occurs using version 6.0.3 of the cli

@RyanMcC RyanMcC added the bug label Dec 22, 2020
@jeremylong
Copy link
Owner

Thanks for pointing out the miss when the MSBuild Analyzer was added. You can disable via JAVA_OPTS:

export JAVA_OPTS='-Danalyzer.msbuildproject.enabled=false'

@RyanMcC
Copy link
Author

RyanMcC commented Dec 23, 2020

That works great for now, thanks!

jeremylong added a commit that referenced this issue Jan 2, 2021
@jeremylong jeremylong added this to the 6.0.5 milestone Jan 2, 2021
@jeremylong
Copy link
Owner

This will be included in the next release.

@daxin09pp
Copy link

hi @jeremylong,
I use the Windows Bat version of Dependent-Check. How can I desable MSBuild Analyzer?

@daxin09pp
Copy link

I use the new version dependency-check(6.0.5), but there is other issue. Could you help me to see how to solve it? #3090

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

3 participants