script: add new check rules in merge_pre_check.pl [1/1]
authorJianxiong Pan <jianxiong.pan@amlogic.com>
Thu, 18 Oct 2018 06:23:50 +0000 (14:23 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Thu, 18 Oct 2018 06:29:40 +0000 (23:29 -0700)
PD#174488

Problem:
add some new rules

Solution:
expand the scope of check

Verify:
p212

Change-Id: Ica28adb7ddb43e39cd4570e0338dbd59ec6a42f3
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
scripts/amlogic/merge_pre_check.pl

index 3b3358f..b7a5d29 100755 (executable)
@@ -223,7 +223,7 @@ sub check_msg_314
 
        if( $lnum == 5 )
        {
-               if ($line !~ /^(\s){4}PD\#(\w)+:\s([\w]+:\s){1,2}[\w]+.*[\S]+$/)
+               if ($line !~ /^(\s){4}PD\#.+:\s([\w]+:\s){1,2}[\w]+.*[\S]+$/)
                {
                        $err_cnt += 1;
                        $line =~ s/^(\s){4}//;