misc: checkstyle ignore .patch files in trailing whitespace check

Type: fix

Signed-off-by: Neale Ranns <nranns@cisco.com>
Change-Id: I9226e94e59a35648ad2945ebfdf928dc80ad635c
This commit is contained in:
Neale Ranns
2021-01-04 08:58:12 +00:00
committed by Damjan Marion
parent e700df8eb4
commit 8c0474a77e

View File

@ -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