Add lint-eol; lint-yaml reports how many files it checked #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "claude/lint-eol"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds
lint-eoland makeslint-yamlreport how many files it checked.lint-eolFails unless every tracked text file is:
i/crlfori/mixed).eol=lfattribute. Without it, a Windows checkout orgit archivewithcore.autocrlf=truewrites CRLF. That's how prodesk-2's/etc/network/interfacesgot CRLF on 2026-09-24 (Homelab/infra#21, #22).allow-crlftakes globs, space- or newline-separated, for files that really need CRLF (e.g.*.ps1 *.bat).::error file=…annotation, followed by the one-line fix:* text=auto eol=lfin the root.gitattributes, thengit add --renormalize .Tested locally:
origin/main.gitattributes)It's also added to this repo's own CI.
lint-yamlIt printed nothing on success, so a pass looked the same as a skip. It now prints
Checked N YAML files: M problem(s).Adoption
Homelab/agents: can adopt it as soon as this merges, since it already has a root LF rule.Homelab/infra: would fail onmainuntil infra#22 merges, which is by design. After that, I'll bump both repos' pins.Merge method: Squash. The second commit is a README fix-up to the first. Consumers pin the resulting commit on
main.🤖 Generated with Claude Code
Merge method: Squash.
40f36c1only fixes the README fromb038804, so one commit onmainis cleaner. Callers will pin the squashed commit's ID onmain, never a branch commit.