Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207336
b: refs/heads/master
c: 5f7ddae
h: refs/heads/master
v: v3
  • Loading branch information
Raffaele Recalcati authored and Linus Torvalds committed Aug 10, 2010
1 parent baab3ce commit 04330d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7840a94cd12559d8aee6382fafb85fbc9eb3a2c2
refs/heads/master: 5f7ddae6104d85e27c0fbcb508cfe8286a01a5e1
7 changes: 7 additions & 0 deletions trunk/scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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)$/);

Expand Down

0 comments on commit 04330d7

Please sign in to comment.