if( (length($line) > ($MAX_LEN + 4) ) && ($lnum > 4) )
{ #Line over 80 characters is not allowed.
$line =~ s/^(\s){4}//;
+ $err_cnt += 1;
$err_msg .= " $err_cnt: Line over $MAX_LEN characters: <$line>\n";
}
{
$err_cnt += 1;
$line =~ s/^(\s){4}//;
- $err_msg .= " $err_cnt: This line should be <[module: message>, but <$line>\n";
+ $err_msg .= " $err_cnt: <module: message>, but <$line>\n";
}
elsif ( $line =~ /PD\#/i )
{
$err_cnt += 1;
$line =~ s/^(\s){4}//;
- $err_msg .= " $err_cnt: PD#XXXX should not in the first line for 4.9, but <$line>\n";
+ $err_msg .= " $err_cnt: No PD#XXXX in the first line for 4.9, but <$line>\n";
}
elsif ( $line =~ /(kernel)/i)
{
$err_cnt += 1;
$line =~ s/^(\s){4}//;
- $err_msg .= " $err_cnt: No 'kernel' in this line, but <$line>\n";
+ $err_msg .= " $err_cnt: No 'kernel' in kernel commit message, but <$line>\n";
}
}
{
$err_cnt += 1;
$line =~ s/^(\s){4}//;
- $err_msg .= " $err_cnt: PD#xxxx: detailed description, but <$line>\n";
+ $err_msg .= " $err_cnt: <PD#xxxx: detailed description>, but <$line>\n";
}
}
}
{
$err_cnt += 1;
$line =~ s/^(\s){4}//;
- $err_msg .= " $err_cnt: This line should be PD#XXXX: <module_id: commit message>, but <$line>\n";
+ $err_msg .= " $err_cnt: <PD#XXXX: module_id: commit message>, but <$line>\n";
}
elsif ( $line =~ /(kernel)/i)
{
$err_cnt += 1;
$line =~ s/^(\s){4}//;
- $err_msg .= " $err_cnt: No 'kerenl' in this line, but <$line>\n";
+ $err_msg .= " $err_cnt: No 'kerenl' in this line, but <$line>\n";
}
}
out_review();
#out
-exit $exit;
\ No newline at end of file
+exit $exit;