Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
e700df8
)
misc: checkstyle ignore .patch files in trailing whitespace check
68/30568/8
author
Neale Ranns
<nranns@cisco.com>
Mon, 4 Jan 2021 08:58:12 +0000
(08:58 +0000)
committer
Damjan 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
patch
|
blob
|
history
diff --git
a/extras/scripts/checkstyle.sh
b/extras/scripts/checkstyle.sh
index
b40f43f
..
ab0e6e4
100755
(executable)
--- 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