Skip to content

Commit

Permalink
Make check_code_format.sh not care about includes
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
charles-lunarg committed Mar 9, 2023
1 parent 36e12d2 commit eb13094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/check_code_format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit eb13094

Please sign in to comment.