Skip to content

Add the global editorconfig CRLF default#242

Merged
ptr727 merged 4 commits into
developfrom
feature/editorconfig-global-eol
Jul 5, 2026
Merged

Add the global editorconfig CRLF default#242
ptr727 merged 4 commits into
developfrom
feature/editorconfig-global-eol

Conversation

@ptr727

@ptr727 ptr727 commented Jul 5, 2026

Copy link
Copy Markdown
Owner

Adds end_of_line = crlf to the .editorconfig [*] block so every file type has a defined ending (matching the fleet template) instead of the per-extension-only form. Per-type CRLF rules and .gitattributes LF pins unchanged.

Resolves the recurring line-ending drift from the ProjectTemplate audit (reports/languagetags/audit.md), via the audit convergence pattern (AUDIT.md section 10).

🤖 Generated with Claude Code

Set end_of_line = crlf on the [*] block so every file type has a defined ending, matching the fleet template. Per-type CRLF rules and .gitattributes LF pins unchanged.

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:08

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 pull request standardizes line-ending governance by setting a repository-wide default of end_of_line = crlf in the .editorconfig [*] section, so all file types have an explicit baseline line-ending policy while preserving existing per-pattern overrides (e.g., *.sh and Dockerfiles remain lf).

Changes:

  • Add end_of_line = crlf to the .editorconfig global [*] defaults block.
  • Keep existing per-file-type overrides intact (notably *.sh and Dockerfiles pinned to lf).

The global [*] end_of_line = crlf also matches the extensionless .husky/pre-commit hook (must stay LF) and the downloaded LanguageData/* files (a mix of LF/CRLF that must persist byte-for-byte). Add an LF override for the hook (aligned with .gitattributes) and end_of_line = unset for LanguageData so the editor does not normalize the source data.

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 1 comment.

Comment thread .editorconfig Outdated
The [*] defaults (insert_final_newline, trim_trailing_whitespace, charset) still applied to the downloaded LanguageData/* files after only unsetting end_of_line, and any of them can mutate byte-sensitive source data. Unset charset/end_of_line and set insert_final_newline/trim_trailing_whitespace = false so the editor preserves the source bytes exactly.

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 1 comment.

Comment thread .editorconfig Outdated
Move the LanguageData/* byte-preservation block above the '.NET-only below' separator, alongside the other line-ending rules, instead of at the file end in the .NET-style section.

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 eafdc6e into develop Jul 5, 2026
11 checks passed
@ptr727 ptr727 deleted the feature/editorconfig-global-eol branch July 5, 2026 20:42
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