Skip to content

Commit

Permalink
Add note that not all issues can be printed on build breaking
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalberger committed Jan 23, 2025
1 parent f722192 commit 45d4bd4
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
namespace Cake.Frosting.Issues.Recipe;

using Cake.Common.Diagnostics;

/// <summary>
/// Main task for issue management integration.
/// </summary>
Expand Down Expand Up @@ -28,6 +31,13 @@ public override void Run(IIssuesContext context)
},
x =>
{
var issueCount = x.Count();
context.Error(
issueCount == 1
? "{0} issue was found in the build."
: "{0} issues were found in the build",
issueCount);
context.Error("Issues containing file location information are printed below. Note that there might be more issues which cannot be listed.");
// Print issues to console before failing build.
_ = context.CreateIssueReport(
x,
Expand Down

0 comments on commit 45d4bd4

Please sign in to comment.