fleetlint Policy for a fleet of repositories
v0.11 (latest)
Getting started

repo/gitattributes

.gitattributes normalizes line endings

Severitywarning
Tiersall
Stacksany
Scoperoot
Kindexpr
Sourcelibrary v0.8.0
Selected byfleetlint-recommended@v0.8.0

Requirement

A .gitattributes at the repository root contains text=auto (normally * text=auto eol=lf); the eol setting and binary markings are not checked.

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 and mark binary files binary; 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 that names no file points at .gitattributes.

Sources


Generated by fleetlint docs from catalog v0.8.0.