Skip to content

Commit

Permalink
[CI] Skip whitespace checks on specific files
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Apr 11, 2024
1 parent 9a33c95 commit 2a57a96
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2a57a96

Please sign in to comment.