From d040e9cbd91d5e6a2f6bf8e7498a797d597f9446 Mon Sep 17 00:00:00 2001 From: Zhihong Yu Date: Thu, 8 Aug 2013 16:08:06 +0000 Subject: [PATCH] HBASE-9123 Filter protobuf generated code from long line warning (Ted Yu) git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1511846 13f79535-47bb-0310-9956-ffa450edef68 --- dev-support/test-patch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-support/test-patch.sh b/dev-support/test-patch.sh index 64c31a53c22..b6dbc7ee8a6 100755 --- a/dev-support/test-patch.sh +++ b/dev-support/test-patch.sh @@ -632,7 +632,7 @@ checkLineLengths () { #see http://en.wikipedia.org/wiki/Diff#Unified_format MAX_LINE_LENGTH_PATCH=`expr $MAX_LINE_LENGTH + 1` - lines=`cat $PATCH_DIR/patch | grep "^+" | grep -v "^@@" | grep -v "^+++" | grep -v "import" | awk -v len="$MAX_LINE_LENGTH_PATCH" 'length ($0) > len'` + lines=`cat $PATCH_DIR/patch | grep "^+" | grep -v "^@@" | grep -v "^+++" | grep -v "import" | grep -v "hbase.protobuf.generated" | awk -v len="$MAX_LINE_LENGTH_PATCH" 'length ($0) > len' | head -n 10` ll=`echo "$lines" | wc -l` if [[ "$ll" -gt "$MAX_LINE_LENGTH_PATCH" ]]; then JIRA_COMMENT="$JIRA_COMMENT