Make check_code_format.sh not care about includes
authorCharles Giessen <charles@lunarg.com>
Thu, 9 Mar 2023 19:27:25 +0000 (12:27 -0700)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Thu, 9 Mar 2023 20:43:51 +0000 (13:43 -0700)
The code being removed here was a fix for travis CI which is no longer in
use. The git diff ignores files in the gitignore, so this workaround is no
longer necessary.

scripts/check_code_format.sh

index 1b07cf2168e98d5dc90a858bf3d29c4af59dd447..2107fbdf2ff1d737573ff4b778c2527dfe318ad3 100755 (executable)
@@ -22,7 +22,7 @@ RED='\033[0;31m'
 GREEN='\033[0;32m'
 NC='\033[0m' # No Color
 
-FILES_TO_CHECK=$(git diff --name-only main | grep -v -E "^include/vulkan" | grep -E ".*\.(cpp|cc|c\+\+|cxx|c|h|hpp)$")
+FILES_TO_CHECK=$(git diff --name-only main grep -E ".*\.(cpp|cc|c\+\+|cxx|c|h|hpp)$")
 
 if [ -z "${FILES_TO_CHECK}" ]; then
   echo -e "${GREEN}No source code to check for formatting.${NC}"