Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions ci/jenkins/bin/clang-format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ set +x
cd "${WORKSPACE}/src"

# First, make sure there are no trailing WS!!!
git grep -IE ' +$' | fgrep -v '.gold:'
git grep -IE ' +$' | \
fgrep -v '.gold:' | \
fgrep -v '.test_input'
if [ "1" != "$?" ]; then
echo "Error: Trailing whitespaces are not allowed!"
echo "Error: Please run: git grep -IE ' +$'"
Expand All @@ -29,7 +31,9 @@ fi
echo "Success! No trailing whitespace"

# Make sure there are no DOS shit here.
git grep -IE $'\r$' | fgrep -v 'lib/yamlcpp'
git grep -IE $'\r$' | \
fgrep -v 'lib/yamlcpp' | \
fgrep -v '.test_input'
if [ "1" != "$?" ]; then
echo "Error: Please make sure to run dos2unix on the above file(s)"
exit 1
Expand Down