Skip to content
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.

Commit

Permalink
Merge branch 'release/0.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalberger committed Sep 5, 2021
2 parents edda4b9 + db6f98b commit bfd37f7
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 21 deletions.
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These owners will be the default owners for everything in the repo and
# will be requested for review when someone opens a pull request.
* @pascalberger
18 changes: 18 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: 2
updates:
- package-ecosystem: nuget
directory: "/src"
schedule:
interval: daily
time: "04:00"
open-pull-requests-limit: 10
ignore:
- dependency-name: Cake.Core
versions:
- "> 1.0.0, < 2"
- dependency-name: Cake.Testing
versions:
- "> 1.0.0, < 2"
- dependency-name: Cake.Issues
versions:
- "> 1.0.0, < 2"
1 change: 1 addition & 0 deletions GitReleaseManager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ issue-labels-include:
- Bug
- Improvement
- Documentation
- Dependencies
issue-labels-exclude:
- Build
issue-labels-alias:
Expand Down
12 changes: 6 additions & 6 deletions nuspec/nuget/Cake.Frosting.Issues.Reporting.Console.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ NOTE:
This is the version of the addin compatible with Cake Frosting.
For addin compatible with Cake Script Runners see Cake.Issues.Reporting.Console.

The addin requires Cake Frosting 1.2.0 or higher running on .NET 5.0 or higher.
The addin requires Cake Frosting 1.2.0 or higher.
</description>
<license type="expression">MIT</license>
<projectUrl>https://cakeissues.net</projectUrl>
Expand All @@ -28,20 +28,20 @@ The addin requires Cake Frosting 1.2.0 or higher running on .NET 5.0 or higher.
<repository type="git" url="https://github.com/cake-contrib/Cake.Issues.Reporting.Console.git"/>
<copyright>Copyright © Pascal Berger</copyright>
<tags>cake cake-addin cake-issues cake-reportformat issues reporting console</tags>
<releaseNotes>https://github.com/cake-contrib/Cake.Issues.Reporting.Console/releases/tag/0.2.0</releaseNotes>
<releaseNotes>https://github.com/cake-contrib/Cake.Issues.Reporting.Console/releases/tag/0.3.0</releaseNotes>
<dependencies>
<group targetFramework=".NETStandard2.0">
<dependency id="Cake.Core" version="[1.2,2.0)" exclude="Build,Analyzers" />
<dependency id="Cake.Issues" version="[1.0,2.0)" exclude="Build,Analyzers" />
<dependency id="Cake.Issues.Reporting" version="[1.0,2.0)" exclude="Build,Analyzers" />
<dependency id="Errata" version="0.2.0" exclude="Build,Analyzers" />
<dependency id="Errata" version="0.6.0" exclude="Build,Analyzers" />
</group>
</dependencies>
</metadata>
<files>
<file src="icon.png" target="" />
<file src="..\..\src\Cake.Issues.Reporting.Console\bin\Release\net5.0\Cake.Issues.Reporting.Console.dll" target="lib\net5.0" />
<file src="..\..\src\Cake.Issues.Reporting.Console\bin\Release\net5.0\Cake.Issues.Reporting.Console.pdb" target="lib\net5.0" />
<file src="..\..\src\Cake.Issues.Reporting.Console\bin\Release\net5.0\Cake.Issues.Reporting.Console.xml" target="lib\net5.0" />
<file src="..\..\src\Cake.Issues.Reporting.Console\bin\Release\netstandard2.0\Cake.Issues.Reporting.Console.dll" target="lib\netstandard2.0" />
<file src="..\..\src\Cake.Issues.Reporting.Console\bin\Release\netstandard2.0\Cake.Issues.Reporting.Console.pdb" target="lib\netstandard2.0" />
<file src="..\..\src\Cake.Issues.Reporting.Console\bin\Release\netstandard2.0\Cake.Issues.Reporting.Console.xml" target="lib\netstandard2.0" />
</files>
</package>
16 changes: 8 additions & 8 deletions nuspec/nuget/Cake.Issues.Reporting.Console.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
<owners>pascalberger, cake-contrib</owners>
<summary>Support for reporting issues to console for the Cake.Issues addin for Cake Build Automation System</summary>
<description>
This addin for the Cake.Issues addin for Cake .NET Tool allows you to print issues to the console.
This addin for the Cake.Issues addin for Cake Script Runners allows you to print issues to the console.

This addin provides the aliases for reporting issues to the console.
It also requires the core Cake.Issues and Cake.Issues.Reporting addins and one or more issue providers.

See the Project Site for an overview of the whole ecosystem of addins for working with issues in Cake scripts.

NOTE:
This is the version of the addin compatible with Cake .NET Tool.
This is the version of the addin compatible with Cake Script Runners.
For addin compatible with Cake Frosting see Cake.Frosting.Issues.Reporting.Console.

The addin requires Cake .NET Tool 1.2.0 or higher running on .NET 5.0 or higher.
The addin requires Cake 1.2.0 or higher.
</description>
<license type="expression">MIT</license>
<projectUrl>https://cakeissues.net</projectUrl>
Expand All @@ -28,13 +28,13 @@ The addin requires Cake .NET Tool 1.2.0 or higher running on .NET 5.0 or higher.
<repository type="git" url="https://github.com/cake-contrib/Cake.Issues.Reporting.Console.git"/>
<copyright>Copyright © Pascal Berger</copyright>
<tags>cake cake-addin cake-issues cake-reportformat issues reporting console</tags>
<releaseNotes>https://github.com/cake-contrib/Cake.Issues.Reporting.Console/releases/tag/0.2.0</releaseNotes>
<releaseNotes>https://github.com/cake-contrib/Cake.Issues.Reporting.Console/releases/tag/0.3.0</releaseNotes>
</metadata>
<files>
<file src="..\..\..\..\nuspec\nuget\icon.png" target="" />
<file src="net5.0/Cake.Issues.Reporting.Console.dll" target="lib\net5.0" />
<file src="net5.0/Cake.Issues.Reporting.Console.pdb" target="lib\net5.0" />
<file src="net5.0/Cake.Issues.Reporting.Console.xml" target="lib\net5.0" />
<file src="net5.0/Errata.dll" target="lib\net5.0" />
<file src="netstandard2.0/Cake.Issues.Reporting.Console.dll" target="lib\netstandard2.0" />
<file src="netstandard2.0/Cake.Issues.Reporting.Console.pdb" target="lib\netstandard2.0" />
<file src="netstandard2.0/Cake.Issues.Reporting.Console.xml" target="lib\netstandard2.0" />
<file src="netstandard2.0/Errata.dll" target="lib\netstandard2.0" />
</files>
</package>
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0" />
<PackageReference Include="xunit">
<Version>2.4.1</Version>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFrameworks>net5.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<Description>Support for reporting issues to the console for the Cake.Issues addin for Cake Build Automation System</Description>
<Authors>Pascal Berger</Authors>
<Product>Cake.Issues</Product>
<Copyright>Copyright © Pascal Berger</Copyright>
</PropertyGroup>

<PropertyGroup>
<LangVersion>latest</LangVersion>
<DebugType>full</DebugType>
<DebugSymbols>true</DebugSymbols>
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
Expand All @@ -31,7 +32,7 @@
<PackageReference Include="Cake.Core" Version="1.2.0" PrivateAssets="All" />
<PackageReference Include="Cake.Issues" Version="1.0.0" PrivateAssets="All" />
<PackageReference Include="Cake.Issues.Reporting" Version="1.0.0" PrivateAssets="All" />
<PackageReference Include="Errata" Version="0.5.0" />
<PackageReference Include="Errata" Version="0.6.0" />
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="5.0.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected override FilePath InternalCreateReport(IEnumerable<IIssue> issues)

report.Render(
AnsiConsole.Console,
new ReportSettings
new ReportSettings
{
Compact = this.consoleIssueReportFormatSettings.Compact,
});
Expand Down Expand Up @@ -105,11 +105,12 @@ private void PrintSummary(IEnumerable<IIssue> issues)
priorityTable.AddColumn(new TableColumn("Issue Provider / Run").Centered());
priorityTable.AddColumn(new TableColumn("Number Of Issues").Centered());

var i = 1;
foreach (var providerGroup in issues.GroupBy(x => x.ProviderName))
{
var issueProvider = providerGroup.Key;

providerChart.AddItem(issueProvider, providerGroup.Count());
providerChart.AddItem(issueProvider, providerGroup.Count(), Color.FromInt32(i));

foreach (var runGroup in providerGroup.GroupBy(x => x.Run))
{
Expand All @@ -136,6 +137,7 @@ private void PrintSummary(IEnumerable<IIssue> issues)
}

priorityTable.AddEmptyRow();
i++;
}

if (this.consoleIssueReportFormatSettings.ShowProviderSummary)
Expand Down
3 changes: 1 addition & 2 deletions src/Cake.Issues.Reporting.Console/FileSystemRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using Errata;

Expand All @@ -24,7 +23,7 @@ public FileSystemRepository(ICreateIssueReportSettings settings)
}

/// <inheritdoc />
public bool TryGet(string id, [NotNullWhen(true)] out Source source)
public bool TryGet(string id, out Source source)
{
if (!this.cache.TryGetValue(id, out source))
{
Expand Down

0 comments on commit bfd37f7

Please sign in to comment.