diff options
author | Damjan Marion <damarion@cisco.com> | 2016-08-16 22:53:54 +0200 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2016-08-17 00:52:57 +0000 |
commit | 607de1a0638fa45db49295f9ed51a7f9a5e38706 (patch) | |
tree | 1d8b8fd307715d685bb8d1f6b1ff34ac54052d2e /build-root/scripts/checkstyle.sh | |
parent | 256656735c49983a5a2ca94015facca717094730 (diff) |
Coding standards cleanup - remove trailing whitespace, fixes VPP-332
Change-Id: I649a17f8fa47599faf438b2e596f53761790d10c
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'build-root/scripts/checkstyle.sh')
-rwxr-xr-x | build-root/scripts/checkstyle.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build-root/scripts/checkstyle.sh b/build-root/scripts/checkstyle.sh index 44534d48646..df72cdb2d8a 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 |