From 607de1a0638fa45db49295f9ed51a7f9a5e38706 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Tue, 16 Aug 2016 22:53:54 +0200 Subject: Coding standards cleanup - remove trailing whitespace, fixes VPP-332 Change-Id: I649a17f8fa47599faf438b2e596f53761790d10c Signed-off-by: Damjan Marion --- build-root/scripts/checkstyle.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'build-root/scripts') diff --git a/build-root/scripts/checkstyle.sh b/build-root/scripts/checkstyle.sh index 44534d48..df72cdb2 100755 --- a/build-root/scripts/checkstyle.sh +++ b/build-root/scripts/checkstyle.sh @@ -32,10 +32,14 @@ for i in `git ls-tree -r HEAD --name-only`;do if [ ${FIX} == 0 ]; then indent ${i} -o ${i}.out1 > /dev/null 2>&1 indent ${i}.out1 -o ${i}.out2 > /dev/null 2>&1 + # Remove trailing whitespace + sed -i -e 's/[[:space:]]*$//' ${i}.out2 diff -q ${i} ${i}.out2 else indent ${i} indent ${i} + # Remove trailing whitespace + sed -i -e 's/[[:space:]]*$//' ${i} fi if [ $? != 0 ]; then EXIT_CODE=1 -- cgit 1.2.3-korg