Skip to content

Commit 6856408

Browse files
committed
fix: formatting issues
Signed-off-by: jbrinkman <joe.brinkman@improving.com>
1 parent 1fdcf4f commit 6856408

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

src/DotNetApiDiff/ExitCodes/ExitCodeManager.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// Copyright DotNet API Diff Project Contributors - SPDX Identifier: MIT
2-
using System.IO;
32
using System.Reflection;
43
using System.Security;
54
using DotNetApiDiff.Interfaces;

src/DotNetApiDiff/ExitCodes/GlobalExceptionHandler.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright DotNet API Diff Project Contributors - SPDX Identifier: MIT
22
using System.Reflection;
3-
using System.Runtime.ExceptionServices;
43
using System.Security;
54
using DotNetApiDiff.Interfaces;
65
using Microsoft.Extensions.Logging;

src/DotNetApiDiff/Reporting/HtmlFormatterScriban.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using DotNetApiDiff.Models.Configuration;
55
using Scriban;
66
using Scriban.Runtime;
7-
using System.Text;
87

98
namespace DotNetApiDiff.Reporting;
109

@@ -250,24 +249,24 @@ private string RenderChangeGroup(object sectionData)
250249
// Load and parse the change-group template
251250
var templateContent = EmbeddedTemplateLoader.LoadTemplate("change-group.scriban");
252251
var template = Template.Parse(templateContent);
253-
252+
254253
// Create a new context for the template with the section data as root
255254
var context = new TemplateContext();
256255
var scriptObject = new ScriptObject();
257-
256+
258257
// Add the section data properties to the script object
259258
if (sectionData != null)
260259
{
261260
var sectionType = sectionData.GetType();
262261
foreach (var property in sectionType.GetProperties())
263262
{
264263
var value = property.GetValue(sectionData);
265-
scriptObject.SetValue(property.Name.ToLowerInvariant().Replace("_", "_"), value, true);
264+
scriptObject.SetValue(property.Name.ToLowerInvariant().Replace("_", "_"), value, true);
266265
}
267266
}
268-
267+
269268
context.PushGlobal(scriptObject);
270-
269+
271270
return template.Render(context);
272271
}
273272
catch (Exception ex)

tests/DotNetApiDiff.Tests/Reporting/HtmlFormatterScribanTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public void Format_WithRemovedItems_IncludesRemovedSection()
9090
{
9191
ChangeType = ChangeType.Removed,
9292
ElementType = ApiElementType.Method,
93-
ElementName = "OldMethod",
93+
ElementName = "OldMethod",
9494
Description = "Removed method",
9595
Severity = SeverityLevel.Info
9696
}
@@ -149,7 +149,7 @@ public void Format_WithSignatures_IncludesSignatureDetails()
149149
// Arrange
150150
var result = new ComparisonResult
151151
{
152-
OldAssemblyPath = "source.dll",
152+
OldAssemblyPath = "source.dll",
153153
NewAssemblyPath = "target.dll",
154154
ComparisonTimestamp = new DateTime(2023, 1, 1, 12, 0, 0, DateTimeKind.Utc),
155155
Configuration = CreateDefaultConfiguration(),

0 commit comments

Comments
 (0)