From 8c0474a77e792b212ba0235e4aa76c59a8ceaa1c Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Mon, 4 Jan 2021 08:58:12 +0000 Subject: misc: checkstyle ignore .patch files in trailing whitespace check Type: fix Signed-off-by: Neale Ranns Change-Id: I9226e94e59a35648ad2945ebfdf928dc80ad635c --- extras/scripts/checkstyle.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extras/scripts') 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 -- cgit 1.2.3-korg