Skip to content

Commit

Permalink
Release 5.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpalme committed Apr 3, 2022
1 parent e36c837 commit bf487cb
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:
solution: 'src\ReportGenerator.sln'
buildPlatform: Any CPU
buildConfiguration: Release
version: 5.1.3
version: 5.1.4
dotnetSDKVersion: 6.0.201
nodeVersion: 16

Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
run: dotnet test src\ReportGenerator.Core.Test\ReportGenerator.Core.Test.csproj --configuration ${{ env.BuildConfiguration }} --no-build /p:CollectCoverage=true /p:DeterministicSourcePaths=true /p:IncludeTestAssembly=true /p:CoverletOutputFormat=opencover%2ccobertura /p:CoverletOutput=../target/reports/coverage/

- name: ReportGenerator
uses: danielpalme/ReportGenerator-GitHub-Action@5.0.2
uses: danielpalme/ReportGenerator-GitHub-Action@5.1.3
with:
reports: 'src\target\reports\coverage\coverage.opencover.xml'
targetdir: 'src\target\reports\coverage'
Expand Down
2 changes: 1 addition & 1 deletion src/AzureDevopsTask/ReportGenerator/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"version": {
"Major": 5,
"Minor": 1,
"Patch": 3
"Patch": 4
},
"instanceNameFormat": "ReportGenerator",
"groups": [
Expand Down
2 changes: 1 addition & 1 deletion src/AzureDevopsTask/vss-extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifestVersion": 1,
"id": "reportgenerator",
"name": "ReportGenerator",
"version": "5.1.3",
"version": "5.1.4",
"publisher": "Palmmedia",
"public": true,
"targets": [
Expand Down
4 changes: 4 additions & 0 deletions src/Readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ For further details take a look at LICENSE.txt.

CHANGELOG

5.1.4.0

* Fix: #408: Improved support for generic classes for 'dotnet-coverage'

5.1.3.0

* Fix: #503: Updated System.Text.Encodings.Web
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<AssemblyName>ReportGenerator</AssemblyName>
<RootNamespace>Palmmedia.ReportGenerator</RootNamespace>
<StartupObject>Palmmedia.ReportGenerator.Console.NetCore.Program</StartupObject>
<AssemblyVersion>5.1.3.0</AssemblyVersion>
<FileVersion>5.1.3.0</FileVersion>
<AssemblyVersion>5.1.4.0</AssemblyVersion>
<FileVersion>5.1.4.0</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
<RootNamespace>Palmmedia.ReportGenerator.Core.Test</RootNamespace>
<AssemblyVersion>5.1.3.0</AssemblyVersion>
<FileVersion>5.1.3.0</FileVersion>
<AssemblyVersion>5.1.4.0</AssemblyVersion>
<FileVersion>5.1.4.0</FileVersion>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>

Expand Down
8 changes: 7 additions & 1 deletion src/ReportGenerator.Core/Parser/CoberturaParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ internal class CoberturaParser : ParserBase
/// </summary>
private static readonly ILogger Logger = LoggerFactory.GetLogger(typeof(CoberturaParser));

/// <summary>
/// Regex to analyze if a class name represents a generic class.
/// </summary>
private static readonly Regex GenericClassRegex = new Regex("<.*>$", RegexOptions.Compiled);

/// <summary>
/// Regex to analyze if a method name belongs to a lamda expression.
/// </summary>
Expand Down Expand Up @@ -124,7 +129,8 @@ private Assembly ProcessAssembly(XElement[] modules, string assemblyName)
int nestedClassSeparatorIndex = fullname.IndexOf('/');
return nestedClassSeparatorIndex > -1 ? fullname.Substring(0, nestedClassSeparatorIndex) : fullname;
})
.Where(name => !name.Contains("$") && !name.Contains("<"))
.Where(name => !name.Contains("$")
&& (!name.Contains("<") || GenericClassRegex.IsMatch(name)))
.Distinct()
.Where(c => this.ClassFilter.IsElementIncludedInReport(c))
.OrderBy(name => name)
Expand Down
4 changes: 2 additions & 2 deletions src/ReportGenerator.Core/ReportGenerator.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<AssemblyName>ReportGenerator.Core</AssemblyName>
<AssemblyVersion>5.1.3.0</AssemblyVersion>
<FileVersion>5.1.3.0</FileVersion>
<AssemblyVersion>5.1.4.0</AssemblyVersion>
<FileVersion>5.1.4.0</FileVersion>
</PropertyGroup>

<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<PropertyGroup>
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
<RootNamespace>ReportGenerator.DotnetCorePluginLoader</RootNamespace>
<AssemblyVersion>5.1.3.0</AssemblyVersion>
<FileVersion>5.1.3.0</FileVersion>
<AssemblyVersion>5.1.4.0</AssemblyVersion>
<FileVersion>5.1.4.0</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<AssemblyName>ReportGenerator</AssemblyName>
<RootNamespace>Palmmedia.ReportGenerator</RootNamespace>
<StartupObject>Palmmedia.ReportGenerator.DotnetGlobalTool.Program</StartupObject>
<AssemblyVersion>5.1.3.0</AssemblyVersion>
<FileVersion>5.1.3.0</FileVersion>
<AssemblyVersion>5.1.4.0</AssemblyVersion>
<FileVersion>5.1.4.0</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/ReportGenerator.MSBuild/ReportGenerator.MSBuild.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<RootNamespace>Palmmedia.ReportGenerator.MSBuild</RootNamespace>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<AssemblyVersion>5.1.3.0</AssemblyVersion>
<FileVersion>5.1.3.0</FileVersion>
<AssemblyVersion>5.1.4.0</AssemblyVersion>
<FileVersion>5.1.4.0</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<!-- Version, adjust before build -->
<PropertyGroup>
<Version>5.1.3</Version>
<Version>5.1.4</Version>
</PropertyGroup>

<!-- Tools -->
Expand Down

0 comments on commit bf487cb

Please sign in to comment.