Files
iot-dc3/.gitattributes
T
pnoker c04d541bf6 chore(repo): normalize line endings for cross-platform clones
gitattributes only covered five file types; on a windows clone
(core.autocrlf=true) every other text file checks out as crlf, which
spotless's origin/main ratchet then treats as whole-repo changes and
the format gate fails everywhere. declare lf as the repository-wide
text convention with explicit crlf exceptions for bat/cmd/ps1, mark
the binary asset families, and renormalize (no content changes - the
tree was already lf)
2026-09-18 18:39:04 +08:00

32 lines
761 B
Plaintext

# Default: normalize all text to LF in the repository. Without this a
# Windows clone (core.autocrlf=true) checks out CRLF working trees, which
# spotless's origin/main ratchet then treats as whole-repo changes and the
# format gate fails everywhere. Platform-specific exceptions follow.
* text=auto eol=lf
# Windows scripts keep CRLF on purpose
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf
# Binary assets — never normalize
*.jar binary
*.db binary
*.png binary
*.jpg binary
*.gif binary
*.ico binary
*.pdf binary
*.qcow2 binary
*.dylib binary
*.jnilib binary
*.so binary
*.dll binary
*.ttf binary
*.woff binary
*.woff2 binary
# Historic specific rules kept for clarity (subsumed above but explicit)
mvnw text eol=lf
mvnw.cmd text eol=crlf