diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2011-02-05 13:18:20 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-02-05 13:18:20 +0000 |
commit | ad36ce8ba95a756ef558579c6e9ecedfae4dfd0b (patch) | |
tree | dfcec112b488db39e313b7694ad1721f9be78e1e /scripts/checkpatch.pl | |
parent | a2fdc8907bee6eb572fea992be7126e1b616d5bf (diff) |
checkpatch.pl: don't complain about old lines with tabs
Don't complain when the patch includes lines with tabs
only in the hunk's untouched context.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-x | scripts/checkpatch.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 4fa06c002..075b6149a 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -1495,7 +1495,7 @@ sub process { next if ($realfile !~ /\.(h|c|pl)$/); # in QEMU, no tabs are allowed - if ($rawline =~ /\t/) { + if ($rawline =~ /^\+.*\t/) { my $herevet = "$here\n" . cat_vet($rawline) . "\n"; ERROR("code indent should never use tabs\n" . $herevet); $rpt_cleaners = 1; |