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
+12 -8
View File
@@ -1,9 +1,9 @@
using OpenNest.Api;
using System;
using System.Linq;
using OpenNest.Api;
using OpenNest.CNC;
using OpenNest.Converters;
using OpenNest.Geometry;
using System;
using System.Linq;
namespace OpenNest
{
@@ -12,7 +12,9 @@ namespace OpenNest
public static TimingInfo GetTimingInfo(Program pgm)
{
var entities = ConvertProgram.ToGeometry(pgm);
var shapes = ShapeBuilder.GetShapes(entities.Where(entity => entity.Layer != SpecialLayers.Rapid));
var shapes = ShapeBuilder.GetShapes(
entities.Where(entity => entity.Layer != SpecialLayers.Rapid)
);
var info = new TimingInfo { PierceCount = shapes.Count };
var last = entities[0];
@@ -58,10 +60,12 @@ namespace OpenNest
{
info.CutDistance += entity.Length;
if (entity.Type == EntityType.Line &&
lastEntity != null &&
lastEntity.Type == EntityType.Line &&
lastEntity.Layer == SpecialLayers.Cut)
if (
entity.Type == EntityType.Line
&& lastEntity != null
&& lastEntity.Type == EntityType.Line
&& lastEntity.Layer == SpecialLayers.Cut
)
info.IntersectionCount++;
}
else if (entity.Layer == SpecialLayers.Rapid)