chore: pin line endings to LF via .gitattributes#13
Conversation
Windows clones with global core.autocrlf=true rewrite the working tree to CRLF on checkout. Subsequent edits made through tooling that writes LF (most editors and AI agents do) trigger 'LF will be replaced by CRLF the next time Git touches it' warnings on every commit. Pinning eol=lf in .gitattributes overrides the contributor's global autocrlf setting for this repo and silences the warning. PowerShell on Windows handles LF fine. Renormalize touches 1 file with mixed line endings; content unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Warning Rate limit exceeded
To continue reviewing without waiting, purchase usage credits in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR standardizes line endings across the repository by introducing a .gitattributes rule that forces LF checkouts, preventing recurring LF will be replaced by CRLF... warnings for contributors on Windows with core.autocrlf=true.
Changes:
- Add
.gitattributeswith* text=auto eol=lfto pin LF line endings regardless of contributor Git settings. - Renormalize
.github/workflows/PublishModuleToPowerShellGallery.yamlfrom CRLF to LF (no functional/content changes).
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
.github/workflows/PublishModuleToPowerShellGallery.yaml |
Line-ending renormalization to LF only; workflow logic unchanged. |
.gitattributes |
Enforces LF line endings on checkout to avoid CRLF/LF churn and commit warnings. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Summary
Windows clones with global
core.autocrlf=truerewrite the working tree to CRLF on checkout. Subsequent edits made through tooling that writes LF (most editors and AI agents do) triggerLF will be replaced by CRLF the next time Git touches itwarnings on every commit.Pinning
eol=lfin.gitattributesoverrides the contributor's globalautocrlfsetting for this repo and silences the warning. PowerShell on Windows handles LF fine.What changed
.gitattributesfile with* text=auto eol=lf.github/workflows/PublishModuleToPowerShellGallery.yaml) renormalized from CRLF to LF — content unchangedContext
This is part of a sweep across
tablackburn/*non-fork repos to apply the same fix. Already merged or pending inJsmOperations,PowerShellModuleTemplate(#23).Test plan
🤖 Generated with Claude Code