From 04330d7689be9f6a0d65e35bfd493e800b5549a9 Mon Sep 17 00:00:00 2001 From: Raffaele Recalcati Date: Mon, 9 Aug 2010 17:20:59 -0700 Subject: [PATCH] --- yaml --- r: 207336 b: refs/heads/master c: 5f7ddae6104d85e27c0fbcb508cfe8286a01a5e1 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/scripts/checkpatch.pl | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 5f4be435cd8f..c14ab0601326 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7840a94cd12559d8aee6382fafb85fbc9eb3a2c2 +refs/heads/master: 5f7ddae6104d85e27c0fbcb508cfe8286a01a5e1 diff --git a/trunk/scripts/checkpatch.pl b/trunk/scripts/checkpatch.pl index 315faf99effd..d7a44fd3b224 100755 --- a/trunk/scripts/checkpatch.pl +++ b/trunk/scripts/checkpatch.pl @@ -1454,6 +1454,13 @@ sub process { WARN("please, no space before tabs\n" . $herevet); } +# check for spaces at the beginning of a line. + if ($rawline =~ /^\+ / && $rawline !~ /\+ +\*/) { + my $herevet = "$here\n" . cat_vet($rawline) . "\n"; + WARN("please, no space for starting a line, \ + excluding comments\n" . $herevet); + } + # check we are in a valid C source file if not then ignore this hunk next if ($realfile !~ /\.(h|c)$/);