From 87111b15247fd489e005f8e9392d3a36ca5ca32f Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Sun, 22 Nov 2026 17:17:40 -0500 Subject: [PATCH] chore: use American spelling in bend-grain comments and require it in AGENTS.md Co-Authored-By: Claude Sonnet 5.5 --- AGENTS.md | 1 + OpenNest/Controls/PlateRenderer.cs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 2292f15a..51bb72f3 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -7,6 +7,7 @@ OpenNest is a .NET 8 Windows CNC-nesting application with cross-platform librari - Prefer Roslyn Bridge MCP for symbols, references and diagnostics when available; fall back to text search. - Use `var` for locals and namespaces matching project directories. Follow `.editorconfig`; format only changed C# files with `dotnet format OpenNest.sln --include `, then repeat with `--verify-no-changes`. On Linux, prefix both commands with `EnableWindowsTargeting=true`. +- Spell identifiers, comments, docs and commit messages as the .NET framework does (American English: `color`, `behavior`, `center`), never `colour`, `behaviour` or `centre`. - Keep instructions concise: commands, boundaries and non-obvious safeguards, not class inventories or session history. Update affected instructions and user-facing docs with behavior/build changes; put detailed contracts in `docs/`. User guides and their screenshots live in the separate `ajisaacs/opennest-help` repo: update or recapture them when a UI change alters a documented screen, and never rename a `HelpTopics` ID. - Never commit design specs, implementation plans, progress notes or temporary benchmark reports. Keep working records under local, ignored `.hermes/plans/` or `.hermes/progress/`; retain reusable verification procedures in `docs/`. - Keep vendor manuals/full-text extracts out of source control unless redistribution is authorized. Write project-specific behavior summaries with citations, separating controller rules, machine macros and unconfirmed behavior. diff --git a/OpenNest/Controls/PlateRenderer.cs b/OpenNest/Controls/PlateRenderer.cs index c325d1d8..f0e9c876 100644 --- a/OpenNest/Controls/PlateRenderer.cs +++ b/OpenNest/Controls/PlateRenderer.cs @@ -528,8 +528,8 @@ namespace OpenNest.Controls } } - // Bend lines are coloured by how they run against the sheet's grain. Across the grain is - // the preferred direction, so it keeps the plain bend colour; the others stand out. + // Bend lines are colored by how they run against the sheet's grain. Across the grain is + // the preferred direction, so it keeps the plain bend color; the others stand out. private static readonly Color AcrossGrainBendColor = Color.Yellow; private static readonly Color WithGrainBendColor = Color.FromArgb(255, 140, 0); private static readonly Color OtherGrainBendColor = Color.DeepSkyBlue; @@ -558,7 +558,7 @@ namespace OpenNest.Controls foreach (var bend in part.BaseDrawing.Bends) { - // Without a plate there is no grain to compare with: plain bend colour. + // Without a plate there is no grain to compare with: plain bend color. var kind = plate == null ? BendGrainKind.AcrossGrain : BendGrain.Classify(bend, part.Rotation, plate.GrainAngle);