Skip to content

Require a matching editorconfig override for extensionless-script and data pins - #240

Merged
ptr727 merged 2 commits into
developfrom
feature/editorconfig-override-guidance
Jul 5, 2026
Merged

Require a matching editorconfig override for extensionless-script and data pins#240
ptr727 merged 2 commits into
developfrom
feature/editorconfig-override-guidance

Conversation

@ptr727

@ptr727 ptr727 commented Jul 5, 2026

Copy link
Copy Markdown
Owner

Closes the gap the fleet EOL convergence surfaced: AGENTS.md told repos to add a .gitattributes LF pin for extensionless scripts, but not the matching editorconfig override. .gitattributes governs git; the editor follows .editorconfig, where [*] end_of_line = crlf still applies to files no extension rule covers - so the editor writes a CRLF shebang into .husky/pre-commit (breaking it), or re-ends/trims byte-sensitive data, even with the git pin.

Requires: an editorconfig LF override beside each extensionless-executable git pin ([.husky/pre-commit] end_of_line = lf), and full-unset overrides for byte-preserve data dirs (charset/end_of_line unset, insert_final_newline/trim_trailing_whitespace false). This is exactly why Utilities carried the husky override while PlexCleaner/LanguageTags did not.

🤖 Generated with Claude Code

… data pins

AGENTS.md line-ending guidance told repos to add a .gitattributes LF pin for extensionless scripts (husky, s6) but not the matching .editorconfig override. .gitattributes governs git; the editor follows .editorconfig, where [*] end_of_line = crlf still applies to files no extension rule covers - so the editor writes a CRLF shebang into an extensionless hook, or re-ends/trims byte-sensitive data, even with the git pin. Require the paired editorconfig LF override for extensionless executables and full-unset overrides for byte-preserve data dirs. Closes the divergence found in the fleet EOL convergence.

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 17:39

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

Updates the repository governance guidance in AGENTS.md to close a documented gap between .gitattributes (git checkout/commit behavior) and .editorconfig (editor save behavior) for extensionless executables and byte-sensitive content.

Changes:

  • Adds an explicit requirement to pair extensionless-script .gitattributes LF pins with matching .editorconfig path overrides.
  • Extends the guidance to “byte-preserve” data directories by describing how to prevent editor-driven normalization.

Comment thread AGENTS.md Outdated
Note inline that unset removes an inherited property (charset/end_of_line), so the guidance reads unambiguously.

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

@ptr727
ptr727 merged commit 02d93eb into develop Jul 5, 2026
7 checks passed
@ptr727
ptr727 deleted the feature/editorconfig-override-guidance branch July 5, 2026 17:46
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