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
@@ -1,5 +1,5 @@
using OpenNest.Math;
using System.Collections.Generic;
using OpenNest.Math;
namespace OpenNest.Engine.Sequencing
{
@@ -27,7 +27,10 @@ namespace OpenNest.Engine.Sequencing
return result;
}
private static List<Part> NearestNeighbor(IReadOnlyList<Part> parts, OpenNest.Geometry.Vector exit)
private static List<Part> NearestNeighbor(
IReadOnlyList<Part> parts,
OpenNest.Geometry.Vector exit
)
{
var remaining = new List<Part>(parts);
var ordered = new List<Part>(parts.Count);
@@ -97,7 +100,12 @@ namespace OpenNest.Engine.Sequencing
/// Only the segment around the reversed segment [i..j] needs to be checked,
/// but here we compute the full route cost for correctness.
/// </summary>
private static double RouteDistance(List<Part> ordered, OpenNest.Geometry.Vector exit, int i, int j)
private static double RouteDistance(
List<Part> ordered,
OpenNest.Geometry.Vector exit,
int i,
int j
)
{
// Full route distance: exit -> ordered[0] -> ... -> ordered[n-1]
var total = 0.0;