From e0e6396acbc38ff37df7549e06275ca518adfd17 Mon Sep 17 00:00:00 2001 From: Miha Kralj Date: Sat, 13 Dec 2025 21:49:57 -0800 Subject: [PATCH] fix: convert scanner.sh to LF line endings and enforce for all shell scripts - Convert .github/scanner.sh from CRLF to LF line endings - Add .gitattributes to enforce LF for *.sh files - Update .editorconfig with explicit shell script settings - Prevents line ending issues on Linux/WSL execution --- .editorconfig | 5 +++++ .gitattributes | 23 +++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .gitattributes diff --git a/.editorconfig b/.editorconfig index b50a63d6..a272f3c3 100644 --- a/.editorconfig +++ b/.editorconfig @@ -27,3 +27,8 @@ csharp_style_var_for_built_in_types = false:silent csharp_style_var_when_type_is_apparent = true:suggestion # Prefer explicit types in other cases to improve readability of math formulas csharp_style_var_elsewhere = false:silent +# Shell scripts +[*.sh] +end_of_line = lf +indent_style = space +indent_size = 2 \ No newline at end of file diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..86d23c63 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +# Git Line Ending Configuration for QuanTAlib + +# Default behavior: let Git normalize line endings to LF on checkin +* text=auto + +# Shell scripts must always use LF +*.sh text eol=lf + +# Windows-specific files use CRLF +*.bat text eol=crlf +*.cmd text eol=crlf +*.ps1 text eol=crlf + +# Binary files +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.ico binary +*.dll binary +*.exe binary +*.snupkg binary +*.nupkg binary