Skip to content

Commit

Permalink
#606 Improved Cobertura output (complexity metric)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpalme committed May 21, 2023
1 parent 144b4e5 commit 5b7823d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/Readme.txt
Expand Up @@ -67,6 +67,10 @@ For further details take a look at LICENSE.txt.

CHANGELOG

5.1.21.0

* Fix: #606 Improved Cobertura output (complexity metric)

5.1.20.0

* New: Added report type: OpenCover (PRO version only)
Expand Down
Expand Up @@ -97,7 +97,7 @@ public void CreateClassReport(Class @class, IEnumerable<FileAnalysis> fileAnalys
methodElement.Add(new XAttribute("branch-rate", methodBranchRate.ToString(CultureInfo.InvariantCulture)));

var methodMetrics = file.MethodMetrics
.FirstOrDefault(q => q.ShortName == codeElement.Name
.FirstOrDefault(q => q.FullName == codeElement.FullName
&& q.Line == codeElement.FirstLine);

if (methodMetrics != null)
Expand Down

0 comments on commit 5b7823d

Please sign in to comment.