Add .editorconfig and .gitattributes to enforce LF line endings by jessehouwing · Pull Request #181 · github/gh-actions-lock · GitHub
Skip to content

Add .editorconfig and .gitattributes to enforce LF line endings - #181

Merged
nodeselector merged 1 commit into
github:mainfrom
jessehouwing:chore/lf-line-endings
Oct 20, 2026
Merged

nodeselector merged 1 commit into
github:mainfrom
jessehouwing:chore/lf-line-endings

Conversation

@jessehouwing

Copy link
Copy Markdown
Contributor

Adds .gitattributes (text=auto eol=lf) and .editorconfig (LF, UTF-8, final newline) so Windows checkouts with autocrlf don't produce CRLF files that fail the gofmt gate.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jessehouwing
jessehouwing requested a review from a team as a code owner October 16, 2026 21:36
Copilot AI max review requested due to automatic review settings October 16, 2026 21:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

These straightforward configuration changes support the stated goal without identified blocking issues.

No open issues 🎉

What changed in this PR

Adds repository and editor settings to prevent Windows CRLF line endings from causing gofmt failures.

Changes:

  • Enforce LF for Git-managed text files, preserving common image formats as binary.
  • Standardize editor encoding, newlines, whitespace, and indentation.
File Description
.gitattributes Enforces LF text checkouts and marks image formats as binary.
.editorconfig Sets UTF-8, LF, final newlines, whitespace trimming, and file-specific indentation.

Review effort: Max

@nodeselector
nodeselector merged commit 8553b8c into github:main Oct 20, 2026
5 checks passed
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.

3 participants