Skip to content

CODESTYLE: defer line endings to AGENTS.md (don't hardcode CRLF) - #291

Merged
ptr727 merged 3 commits into
developfrom
chore/codestyle-defer-line-endings
Jul 13, 2026
Merged

CODESTYLE: defer line endings to AGENTS.md (don't hardcode CRLF)#291
ptr727 merged 3 commits into
developfrom
chore/codestyle-defer-line-endings

Conversation

@ptr727

@ptr727 ptr727 commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Summary

CODESTYLE.md's line-ending item stated a fixed "CRLF for YAML/JSON/..." rule, which contradicts operational (Linux-consumed config) repos that use a global LF default per their .editorconfig and the AGENTS.md operational lineEndings rule. Line-ending governance already lives in AGENTS.md ("Line Endings"), so point to it instead of restating a fixed ending here.

Context

Surfaced by Copilot while reviewing HomeAssistant-Config (an lf operational repo) carrying CODESTYLE.md verbatim - the hardcoded CRLF line read as misleading guidance for that repo.

Verification

markdownlint + cspell clean.

🤖 Generated with Claude Code

The line-ending item stated a fixed "CRLF for YAML/JSON/..." rule, which
contradicts operational (Linux-consumed config) repos that use a global LF
default per their .editorconfig and the AGENTS.md operational lineEndings
rule. Line-ending governance already lives in AGENTS.md; point to it instead
of restating a fixed ending here. Surfaced by Copilot on a HomeAssistant
config repo (lf) carrying this doc verbatim.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 13, 2026 19:26

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 updates the general style guidance to avoid hardcoding a CRLF default in CODESTYLE.md, deferring line-ending governance to the canonical rules in AGENTS.md so operational repos can correctly use an LF default where appropriate.

Changes:

  • Replace the fixed “CRLF for YAML/JSON/…” line-ending rule in CODESTYLE.md with a reference to AGENTS.md as the source of truth.
  • Summarize the repo-governed default behavior (via .editorconfig / .gitattributes) in the same bullet.

Comment thread CODESTYLE.md Outdated
…t LF-only

Copilot: the reworded summary implied operational repos default to LF, but
per AGENTS.md an operational repo's global default follows its consuming
application's native platform - LF (ESPHome/Home Assistant on Linux) or CRLF
(Vantage / Design Center on Windows).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 13, 2026 19:31

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 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread CODESTYLE.md Outdated
…statement)

Copilot: since the intent is to defer, don't restate a partial summary of the
policy - just point to the AGENTS.md "Line Endings" section.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 13, 2026 19:36

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 1 out of 1 changed files in this pull request and generated no new comments.

@ptr727
ptr727 merged commit 3a08685 into develop Jul 13, 2026
7 checks passed
@ptr727
ptr727 deleted the chore/codestyle-defer-line-endings branch July 13, 2026 19:38
ptr727 added a commit that referenced this pull request Jul 13, 2026
…epos (#292)

Promote the current `develop` snapshot to `main`.

Adds the **operational** workflow model and its supporting rules/tooling
(PRs #287-#291):

- **#287** operational `workflowModel` (direct-to-`develop` live-config
repos; shared `main` ruleset; dispatch-only releases; model-aware
`configure.sh`).
- **#288** per-repo `lineEndings` field (operational repos follow the
consuming app's platform; validated).
- **#289** mixed-consumer EOL guidance (prefer splitting by platform);
dropped the standalone Vantage-Config catalog entry (later re-added,
recreated single-platform).
- **#290** renamed `HomeAutomation` -> `HomeAutomation-Config`; EOL
guidance leads with the split-preferred approach.
- **#291** CODESTYLE.md defers line-ending governance to AGENTS.md (was
hardcoding CRLF, contradicting `lf` operational repos).

Applied end-to-end to ESPHome-Config, HomeAutomation-Config,
HomeAssistant-Config (lf) and the recreated Vantage-Config (crlf).

🤖 Generated with [Claude Code](https://claude.com/claude-code)
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