diff --git a/.gitattributes b/.gitattributes index 921952f..0d49588 100644 --- a/.gitattributes +++ b/.gitattributes @@ -10,4 +10,16 @@ .githooks/* text eol=lf scripts/* text eol=lf +# csharpier check fails with "different line endings than formatting would +# result in" when .cs files are CRLF. The Gitea Actions runners are Linux +# and the local dev box is Linux too, so force LF for the entire source +# tree and the supporting text manifests. +*.cs text eol=lf +*.csproj text eol=lf +*.sln text eol=lf +*.yml text eol=lf +*.yaml text eol=lf +*.json text eol=lf +*.md text eol=lf + *.png binary