Browse Source

chore(git): check out every text file with LF, not only Go and scripts

.gitattributes forced LF only for Go, shell, generated files, snapshots
and deploy YAML, so a Windows clone with core.autocrlf=true got CRLF
everywhere else. On that working copy `make format-check` flags 198
frontend files, `msw-worker-check` sees mockServiceWorker.js differ from
the installed copy, and TestAnalystContextNamesRealCIJobs and
TestReviewNamesRealCIJobsAndGates find no ci.yml job at all, while Linux
CI stays green. `* text=auto eol=lf` extends 5c5a5096 to every text
file. No committed blob changes: the index already holds LF everywhere,
and binary detection still leaves the 50 binary files alone.

An existing Windows clone applies it with a fresh checkout on a clean
tree: `git rm -rq --cached . && git reset -q --hard HEAD`.
MHSanaei 7 hours ago
parent
commit
f6a1a3bbd1
1 changed files with 3 additions and 6 deletions
  1. 3 6
      .gitattributes

+ 3 - 6
.gitattributes

@@ -1,6 +1,3 @@
-*.sh text eol=lf
-frontend/src/generated/** text eol=lf
-frontend/public/openapi.json text eol=lf
-frontend/src/test/__snapshots__/** text eol=lf
-*.go text eol=lf
-deploy/**/*.yaml text eol=lf
+# LF in every checkout, Windows included: format-check, the msw worker check and
+# tests that parse repo files compare bytes, so a CRLF working copy fails them.
+* text=auto eol=lf