misc: checkstyle ignore .patch files in trailing whitespace check 68/30568/8
authorNeale Ranns <nranns@cisco.com>
Mon, 4 Jan 2021 08:58:12 +0000 (08:58 +0000)
committerDamjan Marion <dmarion@me.com>
Fri, 15 Jan 2021 15:24:38 +0000 (15:24 +0000)
Type: fix

Signed-off-by: Neale Ranns <nranns@cisco.com>
Change-Id: I9226e94e59a35648ad2945ebfdf928dc80ad635c

extras/scripts/checkstyle.sh

index b40f43f..ab0e6e4 100755 (executable)
@@ -23,7 +23,7 @@ SUFFIX="-${CLANG_FORMAT_VER}"
 clang-format${SUFFIX} --version
 
 in=$(mktemp)
-git diff ${GIT_DIFF_ARGS} > ${in}
+git diff ${GIT_DIFF_ARGS} ':!*.patch' > ${in}
 
 line_count=$(sed -n '/^+.*\*INDENT-O[NF][F]\{0,1\}\*/p' ${in} | wc -l)
 if [ ${line_count} -gt 0 ] ; then