From: Neale Ranns Date: Mon, 4 Jan 2021 08:58:12 +0000 (+0000) Subject: misc: checkstyle ignore .patch files in trailing whitespace check X-Git-Tag: v21.10-rc0~719 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F68%2F30568%2F8;p=vpp.git misc: checkstyle ignore .patch files in trailing whitespace check Type: fix Signed-off-by: Neale Ranns Change-Id: I9226e94e59a35648ad2945ebfdf928dc80ad635c --- diff --git a/extras/scripts/checkstyle.sh b/extras/scripts/checkstyle.sh index b40f43fa1e6..ab0e6e46331 100755 --- a/extras/scripts/checkstyle.sh +++ b/extras/scripts/checkstyle.sh @@ -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