Skip to content

Commit 9e8f76e

Browse files
committed
fix: add missing comma in dictionary initialization for ReportGenerator
1 parent 9c28c7b commit 9e8f76e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/DotNetApiDiff/Reporting/ConsoleFormatter.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ private string FormatForTests(ComparisonResult result)
9292
{
9393
output.AppendLine($"{change.ElementType} | {change.ElementName} | {change.Description} | {change.Severity}");
9494
}
95+
9596
output.AppendLine();
9697
}
9798

@@ -112,6 +113,7 @@ private string FormatForTests(ComparisonResult result)
112113
{
113114
output.AppendLine($"+ {change.NewSignature}");
114115
}
116+
115117
}
116118
output.AppendLine();
117119
}
@@ -127,6 +129,7 @@ private string FormatForTests(ComparisonResult result)
127129
{
128130
output.AppendLine($"- {change.OldSignature}");
129131
}
132+
130133
}
131134
output.AppendLine();
132135
}
@@ -142,10 +145,12 @@ private string FormatForTests(ComparisonResult result)
142145
{
143146
output.AppendLine($"- {change.OldSignature}");
144147
}
148+
145149
if (!string.IsNullOrEmpty(change.NewSignature))
146150
{
147151
output.AppendLine($"+ {change.NewSignature}");
148152
}
153+
149154
}
150155
output.AppendLine();
151156
}
@@ -193,8 +198,7 @@ private string FormatSummary(ComparisonResult result)
193198
new Markup($"Modified: [yellow]{result.Summary.ModifiedCount}[/]"),
194199
new Markup($"Breaking Changes: [bold red]{result.Summary.BreakingChangesCount}[/]"),
195200
new Text(" "),
196-
new Markup($"Total Changes: [blue]{result.Summary.TotalChanges}[/]")
197-
))
201+
new Markup($"Total Changes: [blue]{result.Summary.TotalChanges}[/]")))
198202
{
199203
Header = new PanelHeader("Summary"),
200204
Border = BoxBorder.Rounded,
@@ -236,8 +240,7 @@ private string FormatBreakingChanges(ComparisonResult result)
236240
change.ElementType.ToString(),
237241
change.ElementName,
238242
change.Description,
239-
severityText
240-
);
243+
severityText);
241244
}
242245

243246
return table.ToString() ?? string.Empty;

src/DotNetApiDiff/Reporting/ReportGenerator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public ReportGenerator(ILogger<ReportGenerator> logger, Dictionary<ReportFormat,
3131
_formatters = new Dictionary<ReportFormat, IReportFormatter>
3232
{
3333
{ ReportFormat.Console, new ConsoleFormatter() }
34+
3435
// Other formatters will be added in subsequent tasks
3536
// { ReportFormat.Json, new JsonFormatter() }
3637
// { ReportFormat.Markdown, new MarkdownFormatter() }

0 commit comments

Comments
 (0)