.gitattributes 688 B

123456789101112131415161718192021222324252627282930
  1. # Enforce LF line endings for all text files in the repository.
  2. # This prevents CRLF endings (written by Windows editors/tools) from
  3. # reaching the Docker/Linux Ruby runtime, which misparses \r as a token.
  4. * text=auto eol=lf
  5. # Ruby source — always LF
  6. *.rb text eol=lf
  7. # Shell scripts — always LF (CRLF breaks shebang and bash execution)
  8. *.sh text eol=lf
  9. # PHP, SQL, config — always LF
  10. *.php text eol=lf
  11. *.sql text eol=lf
  12. *.yml text eol=lf
  13. *.yaml text eol=lf
  14. *.json text eol=lf
  15. *.md text eol=lf
  16. *.txt text eol=lf
  17. Dockerfile text eol=lf
  18. .env* text eol=lf
  19. # Binary files — no line-ending conversion
  20. *.pdf binary
  21. *.png binary
  22. *.jpg binary
  23. *.jpeg binary
  24. *.gif binary
  25. *.ico binary