Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217581
b: refs/heads/master
c: 6b4c5be
h: refs/heads/master
i:
  217579: c1878cb
v: v3
  • Loading branch information
Andy Whitcroft authored and Linus Torvalds committed Oct 26, 2010
1 parent 2139e1a commit 3b4fe6e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 658716d19f8f155c67d4677ba68034b8e492dfbe
refs/heads/master: 6b4c5bebcebb0a48d29947e9aa749650751a7696
9 changes: 6 additions & 3 deletions trunk/scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1459,10 +1459,13 @@ sub process {
}

# check for spaces at the beginning of a line.
if ($rawline =~ /^\+ / && $rawline !~ /\+ +\*/) {
# Exceptions:
# 1) within comments
# 2) indented preprocessor commands
# 3) hanging labels
if ($rawline =~ /^\+ / && $line !~ /\+ *(?:$;|#|$Ident:)/) {
my $herevet = "$here\n" . cat_vet($rawline) . "\n";
WARN("please, no space for starting a line, \
excluding comments\n" . $herevet);
WARN("please, no spaces at the start of a line\n" . $herevet);
}

# check we are in a valid C source file if not then ignore this hunk
Expand Down

0 comments on commit 3b4fe6e

Please sign in to comment.