diff options
author | Neale Ranns <nranns@cisco.com> | 2021-01-04 08:58:12 +0000 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2021-01-15 15:24:38 +0000 |
commit | 8c0474a77e792b212ba0235e4aa76c59a8ceaa1c (patch) | |
tree | d8a37f9077bceb482cd941f8e6ec217e9c2e488f /extras/scripts | |
parent | e700df8eb4f640762d5eced6623bbc2473ad0095 (diff) |
misc: checkstyle ignore .patch files in trailing whitespace check
Type: fix
Signed-off-by: Neale Ranns <nranns@cisco.com>
Change-Id: I9226e94e59a35648ad2945ebfdf928dc80ad635c
Diffstat (limited to 'extras/scripts')
-rwxr-xr-x | extras/scripts/checkstyle.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |