diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/checkpatch.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 315faf99effd..d7a44fd3b224 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -1454,6 +1454,13 @@ sub process { | |||
1454 | WARN("please, no space before tabs\n" . $herevet); | 1454 | WARN("please, no space before tabs\n" . $herevet); |
1455 | } | 1455 | } |
1456 | 1456 | ||
1457 | # check for spaces at the beginning of a line. | ||
1458 | if ($rawline =~ /^\+ / && $rawline !~ /\+ +\*/) { | ||
1459 | my $herevet = "$here\n" . cat_vet($rawline) . "\n"; | ||
1460 | WARN("please, no space for starting a line, \ | ||
1461 | excluding comments\n" . $herevet); | ||
1462 | } | ||
1463 | |||
1457 | # check we are in a valid C source file if not then ignore this hunk | 1464 | # check we are in a valid C source file if not then ignore this hunk |
1458 | next if ($realfile !~ /\.(h|c)$/); | 1465 | next if ($realfile !~ /\.(h|c)$/); |
1459 | 1466 | ||