Skip to content

chore: Enforce LF line endings via .gitattributes and .editorconfig - #980

Merged
DannyvdSluijs merged 1 commit into
mainfrom
chore/enforce-line-endings
Oct 16, 2026
Merged

DannyvdSluijs merged 1 commit into
mainfrom
chore/enforce-line-endings

Conversation

@DannyvdSluijs

Copy link
Copy Markdown
Collaborator

Summary

Line endings were left to each contributor's local core.autocrlf setting, since .gitattributes only contained export-ignore rules and there was no .editorconfig.

  • .gitattributes: add * text=auto eol=lf so text files are stored and checked out as LF on every OS.
  • .editorconfig (new): LF, UTF-8, final newline and trailing-whitespace trimming (disabled for Markdown, where trailing spaces are significant).
  • .editorconfig is added to export-ignore so it stays out of dist archives.

All tracked files were already LF, so git add --renormalize . produced no content changes. docs/ is left untouched as it is expected to be removed in a follow-up PR.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.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.

🟢 Approval recommended

The configuration changes match the stated purpose and have no identified blocking issues.

0 open findings

What changed in this PR

Standardizes line endings across contributor environments and adds shared editor settings.

Changes:

  • Enforces LF line endings for text files through Git.
  • Adds EditorConfig settings for encoding and whitespace, preserving Markdown trailing spaces.
  • Excludes .editorconfig from distribution archives.
File Description
.gitattributes Enforces LF and excludes .editorconfig from archives.
.editorconfig Sets UTF-8, LF, final newlines, and whitespace rules.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@DannyvdSluijs
DannyvdSluijs merged commit d988fb5 into main Oct 16, 2026
20 checks passed
@DannyvdSluijs
DannyvdSluijs deleted the chore/enforce-line-endings branch October 16, 2026 19:24
github-actions Bot added a commit that referenced this pull request Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants