fleetlint Policy for a fleet of repositories
v0.10
Getting started

repo/gitattributes

.gitattributes normalizes line endings

Severitywarning
Tiersall
Stacksany
Scoperoot
Kindexpr
Sourcelibrary v0.7.0
Selected byfleetlint-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


Generated by fleetlint docs from catalog v0.7.0.