Skip to content

Commit

Permalink
Revert "Print out the packages being audited and ny vulnerabilities f…
Browse files Browse the repository at this point in the history
…ound in the output window. #28"

This reverts commit f9a3c79.
  • Loading branch information
allisterb committed Sep 3, 2019
1 parent a201bf5 commit 832fa65
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 31 deletions.
20 changes: 1 addition & 19 deletions src/NugetAuditor/NugetAuditor.VSIX/NugetAuditManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -350,28 +350,10 @@ private void OnAuditCompleted(object sender, AuditCompletedEventArgs e)
if (vulnerableCount > 0)
{
WriteLine(Resources.VulnerabilitiesFound, vulnerableCount);
foreach (AuditResult r in e.Results.Where(x => x.Status == AuditStatus.HasVulnerabilities))
{
if (r.MatchedVulnerabilities == 1)
{
WriteLine("Package: {0} is vulnerable. 1 vulnerability found.", r.PackageId);
}
else
{
WriteLine("Package: {0} is vulnerable. {1} vulnerabilities found.", r.PackageId, r.MatchedVulnerabilities);
}
foreach (var v in r.Vulnerabilities)
{
WriteLine(" {0} {1} {2} CWE: {3} CvssS: {4} CvssV: {5}", v.Id, v.Title, v.Description, v.Cwe, v.CvssScore, v.CvssVector);
}
}
}
else
{
foreach (AuditResult r in e.Results)
{
WriteLine("No vulnerabilities found for package {0}.", r.PackageId);
}
WriteLine(Resources.NoVulnarebilitiesFound);
}

//update audit results dictionary
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>14.0</OldToolsVersion>
<StartAction>Program</StartAction>
<StartProgram>$(DevEnvDir)\devenv.exe</StartProgram>
<StartArguments>/rootsuffix Exp</StartArguments>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
Expand Down Expand Up @@ -290,5 +287,4 @@
<Target Name="AfterBuild">
</Target>
-->

</Project>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/NugetAuditor/NugetAuditor.VSIX/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@
<value>An error occurred while trying to audit package(s): {0}</value>
</data>
<data name="AuditingPackages" xml:space="preserve">
<value>Auditing {0} referenced packages... </value>
<value>Auditing {0} referenced packages. </value>
</data>
<data name="AuditingPackagesInProject" xml:space="preserve">
<value>Auditing {0} packages in project '{1}'...</value>
<value>Auditing {0} packages in project '{1}'.</value>
</data>
<data name="AuditingPackagesInSolution" xml:space="preserve">
<value>Auditing {0} packages in solution '{1}'...</value>
<value>Auditing {0} packages in solution '{1}'.</value>
</data>
<data name="General_MissingService" xml:space="preserve">
<value>The service '{0}' must be installed for this feature to work. Ensure that this service is available.</value>
Expand Down
1 change: 0 additions & 1 deletion src/NugetAuditor/NugetAuditor.VSIX/VSPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ namespace NugetAuditor.VSIX
/// </remarks>
public sealed class VSPackage : Package, IDisposable
{

private static VSPackage _instance;
private NugetAuditManager _auditManager;
private SynchronizationContext _uiCtx;
Expand Down

0 comments on commit 832fa65

Please sign in to comment.