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
+13 -5
View File
@@ -29,7 +29,9 @@ public class GridDedup
/// <summary>
/// Gets or creates a GridDedup from FillContext.SharedState.
/// </summary>
public static GridDedup GetOrCreate(System.Collections.Generic.Dictionary<string, object> sharedState)
public static GridDedup GetOrCreate(
System.Collections.Generic.Dictionary<string, object> sharedState
)
{
if (sharedState.TryGetValue(SharedStateKey, out var existing))
return (GridDedup)existing;
@@ -41,7 +43,11 @@ public class GridDedup
private readonly struct GridKey : IEquatable<GridKey>
{
private readonly int _patternW, _patternL, _workW, _workL, _dir;
private readonly int _patternW,
_patternL,
_workW,
_workL,
_dir;
public GridKey(Box patternBox, Box workArea, NestDirection dir)
{
@@ -53,9 +59,11 @@ public class GridDedup
}
public bool Equals(GridKey other) =>
_patternW == other._patternW && _patternL == other._patternL &&
_workW == other._workW && _workL == other._workL &&
_dir == other._dir;
_patternW == other._patternW
&& _patternL == other._patternL
&& _workW == other._workW
&& _workL == other._workL
&& _dir == other._dir;
public override bool Equals(object obj) => obj is GridKey other && Equals(other);