chore: use American spelling in bend-grain comments and require it in AGENTS.md

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ajandClaude Sonnet 5.5 committed 2026-11-22 17:17:40 -05:00
1 parent b5069cca6f
commit 87111b1524
2 files changed
+4 -3

No files matched your search

+1
View File
@@ -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 <paths>`, 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.
+3 -3
View File
@@ -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);