repo/gitattributes
.gitattributes normalizes line endings
| Severity | warning |
| Tiers | all |
| Stacks | any |
| Scope | root |
| Kind | expr |
| Source | library v0.7.0 |
| Selected by | fleetlint-recommended@v0.7.0 |
Requirement
.gitattributes sets * text=auto eol=lf and marks binaries.
Why
Prevents CRLF/LF diffs and corrupted binaries across operating systems.
Check
file(".gitattributes") && text(".gitattributes").contains("text=auto")Fix
Add .gitattributes with * text=auto eol=lf; fleetlint fix --apply writes the template.
Agent instruction: Create .gitattributes with * text=auto eol=lf and binary for image, font, archive and media extensions.
fleetlint fix can apply this rule’s fix automatically (1 action(s)).
A finding of this rule points at .gitattributes.
Sources
- https://git-scm.com/docs/gitattributes (spec, End-of-line conversion)
- https://docs.github.com/en/get-started/git-basics/configuring-git-to-handle-line-endings (guidance, Per-repository settings)
- https://fleetlint.org/baseline/#hygiene
Generated by fleetlint docs from catalog v0.7.0.