Skip to content

Commit

Permalink
Merge pull request lucaslorentz#39 from havocbcn/master
Browse files Browse the repository at this point in the history
Sort opencover report by sourceline, sonarqube do strange things if not.
  • Loading branch information
lucaslorentz authored Mar 4, 2018
2 parents d1955e8 + 2d2f71e commit 5670658
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/MiniCover/Reports/OpenCoverReport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ public static void Execute(InstrumentationResult result, string output, float th

int sequencePointMiniCounter = 0;

var sequencePoints = method.Select(methodPoint =>
var sequencePoints = method
.OrderBy(methodPoint => methodPoint.StartLine)
.Select(methodPoint =>
{
var hitCount = hitInstructions.Count(hit => hit.Equals(methodPoint));

Expand Down

0 comments on commit 5670658

Please sign in to comment.