Skip to content

Switch to TextLint - #43

Merged
Malcolmnixon merged 1 commit into
mainfrom
feature/switch-to-textlint
Nov 10, 2026
Merged

Malcolmnixon merged 1 commit into
mainfrom
feature/switch-to-textlint

Conversation

@Malcolmnixon

Copy link
Copy Markdown
Member

Pull Request

Description

Switches spell checking from cspell to the DemaConsulting.TextLint.Tool (pinned 0.1.0-beta.2): .cspell.yaml renamed to .textlint.yaml (with files and enableGlobDot), tool added to .config/dotnet-tools.json, .versionmark.yaml and build.yaml version capture, lint.ps1 runs dotnet textlint, cspell removed from package.json, and docs/agent text updated. British spellings (labelled, catalogue, behaviour, colour, etc.) were fixed to US English. centre/unlabelled remain in words because they appear in public API names (CentreX), requirement IDs and test names.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code quality improvement

Related Issues

Closes #

Pre-Submission Checklist

Build and Test

  • Code builds successfully and all tests pass: pwsh ./build.ps1 (not run)
  • Code produces zero warnings

Code Quality

  • New code has appropriate XML documentation comments
  • Static analyzer warnings have been addressed

Quality Checks

  • All linters pass: pwsh ./lint.ps1 (exit code 0; TextLint: 0 issues)

Testing

  • Added unit tests for new functionality
  • Updated existing tests if behavior changed
  • All tests follow the AAA (Arrange, Act, Assert) pattern
  • Test coverage is maintained or improved

Documentation

  • Updated README.md (if applicable)
  • Updated docs/ documentation (if applicable)
  • Added code examples for new features (if applicable)
  • Updated requirements.yaml (if applicable)

Additional Notes

Spelling-only edits in source/tests (plus renaming private test helper AddLabelled to AddLabeled). build.ps1 was not run. No sysml2 model exists in this repo, so no SysML2 changes.

Replace cspell with DemaConsulting.TextLint.Tool 0.1.0-beta.2, fix British spellings to US English.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings November 10, 2026 13:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The change still has an active documentation inconsistency: TextLint was added to the repository tool manifest without updating the OTS integration inventory or providing corresponding design, requirements, and verification evidence.

1 open issue
What changed in this PR

This PR replaces cspell with the pinned DemaConsulting.TextLint.Tool and standardizes repository text to US English without changing runtime behavior.

Changes:

  • Adds TextLint configuration, .NET tool registration, lint integration, and CI version capture while removing cspell.
  • Updates source comments, tests, requirements, design documents, gallery documentation, and contributor guidance; renames the private AddLabelled helper to AddLabeled.
  • Records remaining documentation consistency concerns involving the OTS inventory and globally allowed spellings.
File Description
test/​DemaConsulting.Rendering.Layout.Tests/​LayoutEngineTests.cs Updates test documentation spelling.
test/​DemaConsulting.Rendering.Layout.Tests/​LayeredLayoutAlgorithmTests.cs Updates layout test documentation spelling.
test/​DemaConsulting.Rendering.Layout.Tests/​HierarchicalLayoutAlgorithmTests.cs Updates hierarchical layout comments and documentation spelling.
test/​DemaConsulting.Rendering.Layout.Tests/​Engine/​Layered/​PortDistributorTests.cs Updates port-distribution test documentation spelling.
test/​DemaConsulting.Rendering.Layout.Tests/​Engine/​Layered/​LegacyInterconnectionLayoutEngineOracle.cs Updates implementation documentation spelling.
test/​DemaConsulting.Rendering.Layout.Tests/​ContainmentLayoutTests.cs Updates containment test comments and documentation spelling.
test/​DemaConsulting.Rendering.Layout.Tests/​ContainmentLayoutAlgorithmTests.cs Updates containment test comment spelling.
test/​DemaConsulting.Rendering.Gallery/​GalleryWriter.cs Updates gallery writer documentation spelling.
test/​DemaConsulting.Rendering.Gallery/​GalleryShowcaseTests.cs Updates gallery test documentation spelling.
test/​DemaConsulting.Rendering.Gallery/​GalleryDiagrams.cs Renames the private labeling helper and updates related comments.
test/​DemaConsulting.Rendering.Gallery/​GalleryCatalog.cs Updates gallery descriptions to US English.
test/​DemaConsulting.Rendering.Abstractions.Tests/​ConnectorLabelPlacerTests.cs Updates connector label placer test documentation spelling.
test/​DemaConsulting.Rendering.Abstractions.Tests/​BoxMetricsTests.cs Updates box metrics test documentation spelling.
src/​DemaConsulting.Rendering/​NamespaceDoc.cs Updates namespace documentation spelling.
src/​DemaConsulting.Rendering/​Graph/​LayoutGraphPort.cs Updates layout graph port API documentation spelling.
src/​DemaConsulting.Rendering/​Graph/​LayoutGraphNode.cs Updates layout graph node API documentation spelling.
src/​DemaConsulting.Rendering.Layout/​LayeredLayoutAlgorithm.cs Updates layered layout implementation comments spelling.
src/​DemaConsulting.Rendering.Layout/​HierarchicalLayoutAlgorithm.cs Updates hierarchical layout documentation and comments spelling.
src/​DemaConsulting.Rendering.Layout/​Engine/​Layered/​PortDistributor.cs Updates port distribution documentation spelling.
src/​DemaConsulting.Rendering.Layout/​ContainmentLayoutAlgorithm.cs Updates containment layout documentation spelling.
src/​DemaConsulting.Rendering.Abstractions/​ConnectorLabelPlacer.cs Updates connector label placement API documentation spelling.
README.md Updates named-port documentation spelling.
package.json Removes the cspell development dependency.
lint.ps1 Replaces cspell execution with TextLint execution.
docs/​verification/​rendering-layout/​engine/​layout-tree-packer.md Updates verification documentation spelling.
docs/​verification/​rendering-abstractions/​rendering-contracts.md Updates rendering contract verification terminology.
docs/​verification/​rendering-abstractions/​registries.md Updates registry verification terminology.
docs/​verification/​rendering-abstractions/​box-metrics.md Updates box metrics verification terminology.
docs/​verification/​ots/​reviewmark.md Updates OTS verification catalog terminology.
docs/​user_guide/​introduction.md Updates user-facing spelling.
docs/​reqstream/​rendering/​layout-graph.yaml Updates layout graph requirement justification wording.
docs/​reqstream/​rendering-svg.yaml Updates rendering SVG requirement comments spelling.
docs/​reqstream/​rendering-layout/​containment-layout.yaml Updates containment layout requirement wording.
docs/​reqstream/​rendering-abstractions/​connector-label-placer.yaml Updates connector label placer requirement justification wording.
docs/​reqstream/​ots/​reviewmark.yaml Updates OTS requirement terminology.
docs/​gallery/​parallel-edges-and-ports/​README.md Updates parallel-edges gallery documentation spelling.
docs/​gallery/​custom-rendering/​README.md Updates custom-rendering gallery documentation spelling.
docs/​gallery/​appearance-and-themes/​README.md Updates appearance and themes gallery documentation spelling.
docs/​design/​rendering/​options.md Updates rendering options design terminology.
docs/​design/​rendering/​layout-graph.md Updates layout graph design terminology.
docs/​design/​rendering-layout/​hierarchical-layout-algorithm.md Updates hierarchical layout design terminology.
docs/​design/​rendering-layout/​containment-layout.md Updates containment layout design terminology.
docs/​design/​rendering-layout/​containment-layout-algorithm.md Updates containment algorithm design terminology.
docs/​design/​rendering-abstractions/​rendering-contracts.md Updates rendering contract design terminology.
docs/​design/​rendering-abstractions/​connector-label-placer.md Updates connector label placer design terminology.
CONTRIBUTING.md Replaces cspell contributor guidance with TextLint guidance.
AGENTS.md Updates linting tool and configuration references.
.versionmark.yaml Adds TextLint version extraction configuration.
.textlint.yaml Adds TextLint file globs, hidden-file handling, and technical terms.
.github/​workflows/​build.yaml Adds TextLint to CI tool version capture.
.github/​agents/​lint-fix.agent.md Updates lint-fix agent guidance for TextLint.
.config/​dotnet-tools.json Registers the pinned TextLint local tool.

Review effort: Lite

Comment thread .config/dotnet-tools.json Resolved
@Malcolmnixon
Malcolmnixon merged commit 27c288b into main Nov 10, 2026
7 checks passed
@Malcolmnixon
Malcolmnixon deleted the feature/switch-to-textlint branch November 10, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants