Skip to content

Commit

Permalink
Fix Sarif.Driver and Sarif.Functional tests. (#1217)
Browse files Browse the repository at this point in the history
* Fix Sarif.Driver and Sarif.Functional tests.

* Restore test file
  • Loading branch information
michaelcfanning authored Jan 16, 2019
1 parent 5e62a20 commit 5af4079
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Sarif.Converters/AndroidStudioConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public override void Convert(Stream input, IResultLogWriter output, OptionallyEm
/// </returns>
private IList<Result> ProcessAndroidStudioLog(XmlReader xmlReader)
{
var results = new List<Result>();
var results = new HashSet<Result>(Result.ValueComparer);

int problemsDepth = xmlReader.Depth;
xmlReader.ReadStartElement(_strings.Problems);
Expand All @@ -98,7 +98,7 @@ private IList<Result> ProcessAndroidStudioLog(XmlReader xmlReader)

xmlReader.ReadEndElement(); // </problems>

return results;
return new List<Result>(results);
}

public Result ConvertProblemToSarifResult(AndroidStudioProblem problem)
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif.Driver.UnitTests/SimpleTestRule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Microsoft.CodeAnalysis.Sarif
[Export(typeof(IRule)), Export(typeof(IOptionsProvider)), Export(typeof(ISkimmer<TestAnalysisContext>))]
internal class SimpleTestRule : TestRuleBase, IOptionsProvider
{
public new string Id => "TEST002";
public override string Id => "TEST002";

public override Message FullDescription { get { return new Message { Text = String.Empty }; } }

Expand Down

0 comments on commit 5af4079

Please sign in to comment.