scripts: exclude vulkan headers from clang-format
authorMike Schuchardt <mikes@lunarg.com>
Fri, 6 Apr 2018 04:44:05 +0000 (22:44 -0600)
committerMark Lobodzinski <mark@lunarg.com>
Fri, 6 Apr 2018 16:45:21 +0000 (10:45 -0600)
Travis CI shows linux build failure on every header update because
upstream Vulkan-Docs files are not formatted with the clang-format style
of this repo.  This change excludes the vulkan headers directory from
the CI clang-format check.

Change-Id: I6d1bee486d06b690f65aa2c3098de14f3c5931c9

scripts/check_code_format.sh

index 0a9a50a..dde4379 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 master | grep -E ".*\.(cpp|cc|c\+\+|cxx|c|h|hpp)$")
+FILES_TO_CHECK=$(git diff --name-only master | grep -v -E "^include/vulkan" | 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}"