From a97efc767cefa204dcd690c30738ea2e41086c80 Mon Sep 17 00:00:00 2001 From: Zhoujie628 Date: Tue, 15 Sep 2026 00:12:21 +0800 Subject: [PATCH] chore: normalize java line endings to LF via gitattributes The spotless check gate reads working-tree bytes, and Windows checkouts with core.autocrlf could produce mixed line endings (observed after a three-way cherry-pick), failing the gate inconsistently. Pin *.java to text eol=lf so every platform checks out byte-identical LF files and the gate is deterministic; text files normalize to LF in the repository. Signed-off-by: Zhoujie628 --- .gitattributes | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..07d1ad8 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,6 @@ +# Normalize all text files to LF in the repository; working-tree endings follow +# the per-type rules below so Windows and Linux checkouts are identical. +* text=auto + +# The spotless google-java-format gate expects LF; force LF in every checkout. +*.java text eol=lf