HBASE-10824 Enhance detection of protobuf generated code in line length check
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1581361 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e165d19130
commit
318430bb5c
|
@ -601,7 +601,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" | grep -v "hbase.protobuf.generated" | awk -v len="$MAX_LINE_LENGTH_PATCH" 'length ($0) > len' | head -n 10`
|
||||
lines=`cat $PATCH_DIR/patch | grep "^+" | grep -v "^@@" | grep -v "^+++" | grep -v "import" | grep -v "com.google.protobuf." | 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 "1" ]]; then
|
||||
JIRA_COMMENT="$JIRA_COMMENT
|
||||
|
|
Loading…
Reference in New Issue