Skip to content

Added new Nuget packages.config analyzer (Nugetconf)#1406

Merged
jeremylong merged 14 commits intodependency-check:masterfrom
doshyt:nugetconf-analyzer
Jul 31, 2018
Merged

Added new Nuget packages.config analyzer (Nugetconf)#1406
jeremylong merged 14 commits intodependency-check:masterfrom
doshyt:nugetconf-analyzer

Conversation

@doshyt
Copy link
Copy Markdown

@doshyt doshyt commented Jul 29, 2018

Fixes Issue

Adds support of .NET packages.config dependency format. This format is a popular way to declare dependencies for MSBuild projects without including them into *.csproj files or using *.nuspec files.

Description of Change

Created a new analyzer "Nugetconf" using the existing Nuspec and MSBuild analyzers as inspirations; marked it as experimental. Updated settings, CLI options, various documentation files and added test cases.

Have test cases been added to cover the new functionality?

Yes

@jeremylong
Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@jeremylong
Copy link
Copy Markdown
Collaborator

@doshyt - this is one of the most complete and highest quality PRs we've seen. From clean, documented code to updating the user documentation. Thank you for adding the configuration to all of the implementations (maven, cli, ...). What really surprised me is that you even noticed that you needed to update the dependencycheck-base-suppression.xml to filter out some obvious FP.

Thank you!

@jeremylong jeremylong merged commit 60939c6 into dependency-check:master Jul 31, 2018
@doshyt
Copy link
Copy Markdown
Author

doshyt commented Jul 31, 2018

@jeremylong - thanks for the good words!

I also noticed that there is a lot of duplication in XPath parsing implementations between Nuspec, MSBuild and packages.config analyzers. Probably, it can be simplified and merged into the same parser that implements searches for these analyzers. I would love to work on it next.

@lock lock Bot locked and limited conversation to collaborators Apr 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants