lkml.org 
[lkml]   [2011]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [patch v3] checkpatch: Signature format verification
From
Date
On Mon, 2011-05-23 at 20:51 +0530, anish wrote:
> From: anish kumar <anish198519851985@gmail.com>
> This patch generates warning when there is no space between
> the patch submitter and successive mail-id.
[]
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
[]
> + if (!($line =~ /^\s*$sign/)) {

if ($line !~ /etc...)

> + WARN("$sign is the preferred form\n" .
> + $herecurr);
> + }
> + if ($line =~ /^\s*$sign(.*)/i) {
> + if($1 !~ /^\s*(\s[a-zA-Z]*.*)/i) {

Email addresses may start with a quote (") or a digit.

Space between if and (

> + WARN("Space required after $sign\n" .
> + $herecurr);
> + }
> + if($1 !~ /[\sa-zA-Z]+\s<.*>/i) {

Space between if and (




\
 
 \ /
  Last update: 2011-05-23 18:13    [W:0.095 / U:51.976 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site