style: apply CSharpier formatting to all C# sources

Repo-wide sweep with the pinned CSharpier 1.3.0 tool. Whitespace and
line-wrapping only; OpenNest.Engine.Tests (109) and OpenNest.IO.Tests
pass after reformat, full solution builds 0 errors.

Added .csharpierignore so csproj/config XML keeps its existing layout
(CSharpier's XML wrapping churns attributes with zero benefit).

Formatting is now enforceable: dotnet csharpier check . passes.
This commit is contained in:
aj
2026-09-20 16:41:50 -04:00
parent 8e6fa677fb
commit aec0523062
476 changed files with 16592 additions and 7800 deletions
+16 -8
View File
@@ -1,8 +1,8 @@
using System;
using System.Diagnostics;
using ILGPU;
using ILGPU.Runtime;
using OpenNest.Engine.BestFit;
using System;
using System.Diagnostics;
namespace OpenNest.Gpu
{
@@ -18,7 +18,8 @@ namespace OpenNest.Gpu
{
get
{
if (!_probed) Probe();
if (!_probed)
Probe();
return _gpuAvailable;
}
}
@@ -27,7 +28,8 @@ namespace OpenNest.Gpu
{
get
{
if (!_probed) Probe();
if (!_probed)
Probe();
return _deviceName ?? "None";
}
}
@@ -65,7 +67,9 @@ namespace OpenNest.Gpu
}
catch (Exception ex)
{
Debug.WriteLine($"[GpuEvaluatorFactory] GPU slide computer failed: {ex.Message}");
Debug.WriteLine(
$"[GpuEvaluatorFactory] GPU slide computer failed: {ex.Message}"
);
return null;
}
}
@@ -80,12 +84,16 @@ namespace OpenNest.Gpu
using var context = Context.CreateDefault();
foreach (var device in context.Devices)
{
if (device.AcceleratorType == AcceleratorType.Cuda ||
device.AcceleratorType == AcceleratorType.OpenCL)
if (
device.AcceleratorType == AcceleratorType.Cuda
|| device.AcceleratorType == AcceleratorType.OpenCL
)
{
_gpuAvailable = true;
_deviceName = device.Name;
Debug.WriteLine($"[GpuEvaluatorFactory] GPU found: {device.Name} ({device.AcceleratorType})");
Debug.WriteLine(
$"[GpuEvaluatorFactory] GPU found: {device.Name} ({device.AcceleratorType})"
);
return;
}
}