[CI] Skip whitespace checks on specific files

This commit is contained in:
Ray Speth 2024-04-05 09:11:49 -04:00 committed by Ray Speth
parent 9a33c9532a
commit 2a57a963c8

View File

@ -47,6 +47,14 @@ jobs:
- name: Whitespace errors
if: success() || failure()
run: |
# These are files that should be ignored for whitespace checks
echo ".gitmodules -diff" >> .gitattributes
echo "*.sln -diff" >> .gitattributes
echo "test/data/*.inp -diff" >> .gitattributes
echo "test/data/*.xml -diff" >> .gitattributes
echo "test/data/*.cti -diff" >> .gitattributes
echo "test_problems/**/*blessed* -diff" >> .gitattributes
git config --global core.autocrlf false
git config --global core.whitespace \
-cr-at-eol,tab-in-indent,blank-at-eol,blank-at-eof