From 96eb09a38389bb99376183048b51622f849b5c11 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 6 Oct 2020 02:14:46 +0200 Subject: [PATCH] Really ignore TABs in makefiles etc in the whitespace check Add missing ":" in the beginning of Git pathspecs to make the exclusions really work. Also add entries for Makefile.in, which is not caught by **/*akefile*, and other files in the root directory containing hard TABs. --- .github/workflows/code_checks.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/code_checks.yml b/.github/workflows/code_checks.yml index 85191fa9c4..fc46f8354c 100644 --- a/.github/workflows/code_checks.yml +++ b/.github/workflows/code_checks.yml @@ -55,8 +55,14 @@ jobs: run: | git fetch --depth=1 origin master git -c core.whitespace=blank-at-eol,blank-at-eof,space-before-tab,cr-at-eol,tab-in-indent \ - diff --check origin/master '*' \ - '!**/*akefile*' \ - '!**/*.sln' \ - '!**/*.vcproj' \ - '!**/*.xpm' + diff --check origin/master \ + ':!Makefile.in' \ + ':!config.guess' \ + ':!config.sub' \ + ':!configure' \ + ':!descrip.mms' \ + ':!install-sh' \ + ':!**/*akefile*' \ + ':!**/*.sln' \ + ':!**/*.vcproj' \ + ':!**/*.xpm'