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:
+12
-8
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user