Skip to content

Add versioning and markdown-hygiene rules, enforce cspell en-US - #230

Merged
ptr727 merged 2 commits into
developfrom
feature/versioning-spelling-markdown-rules
Jul 5, 2026
Merged

Add versioning and markdown-hygiene rules, enforce cspell en-US#230
ptr727 merged 2 commits into
developfrom
feature/versioning-spelling-markdown-rules

Conversation

@ptr727

@ptr727 ptr727 commented Jul 5, 2026

Copy link
Copy Markdown
Owner

Encodes #228 §4 (versioning) and §7 (markdown hygiene), plus the maintainer-flagged cspell en-US fix. Slim, additive governance-doc refinements.

  • cspell en-US (§7 / maintainer todo). cspell.json language was a bare en, which accepts British spellings and silently contradicts the US-English rule. Set it to en-US, document the requirement in CODESTYLE's Spelling rule, and name it in the spec recurring.spelling assertion so the audit catches it fleet-wide. Verified 0 issues across all .md with the CI cspell image.
  • Versioning (§4). Docs reference the 2-digit major.minor line, never a 3-digit build (NBGV owns the patch; "correcting" 1.0 to 1.0.0 is a defect that has blocked a release). Issue-closing keywords (Closes #N) go on the develop -> main promotion PR, not the feature/develop PR - GitHub auto-closes only from the default branch.
  • Markdown hygiene (§7). A URL inside a fenced code block stays inline (reference links do not resolve there; exclude fenced code from link-integrity checks). Removing a link also removes its orphaned reference definition.

Deferred per maintainer guidance: §0 platform framing, §2 editor/scripts snippets, §3 HA profile, devcontainer, and the Python/HA repo audits. Next up is the stable C#/Docker repo audits.

🤖 Generated with Claude Code

cspell: set language to en-US (a bare en accepts British spellings, silently passing the wrong spelling against the US-English rule); document the requirement in CODESTYLE and name it in the spec recurring.spelling assertion so it is machine-checkable. Verified 0 issues across all .md with the CI cspell image.

Versioning (#228 s4): docs reference the 2-digit major.minor line, never a 3-digit build; issue-closing keywords go on the develop->main promotion PR (GitHub auto-closes only from the default branch). Markdown hygiene (#228 s7): URLs in fenced code blocks stay inline (reference links do not resolve there; exclude code from link-integrity checks), and removing a link also removes its orphaned reference definition.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Pieter Viljoen <ptr727@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 5, 2026 02:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR refines the repo's governance and validation rules by tightening US-English spelling enforcement (via CSpell locale), and by documenting/encoding additional versioning and markdown-hygiene rules derived from issue #228.

Changes:

  • Enforce US-English spellings by switching cspell.json locale from en to en-US, and document the rationale in CODESTYLE.md.
  • Extend the project-type spec to explicitly assert the en-US locale requirement for spelling audits.
  • Add versioning and markdown-hygiene rules to AGENTS.md (2-digit major.minor in docs; issue-closing keywords only on develop -> main promotion PRs; fenced-code link handling guidance).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
spec/project-types.json Strengthens the spelling audit assertion to require cspell.json locale en-US.
cspell.json Sets CSpell locale to en-US to flag British spellings.
CODESTYLE.md Documents the en-US locale requirement and why bare en is insufficient.
AGENTS.md Adds versioning and markdown-hygiene governance rules to prevent recurring doc/process regressions.

Comment thread spec/project-types.json Outdated
The assertion references the cspell en-US config, which is documented in CODESTYLE's Markdown and Spelling section, not the AGENTS PR-title section the intentRef named.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Pieter Viljoen <ptr727@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@ptr727
ptr727 merged commit 00b43ea into develop Jul 5, 2026
7 checks passed
@ptr727
ptr727 deleted the feature/versioning-spelling-markdown-rules branch July 5, 2026 02:55
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