From: Blue Swirl Date: Sat, 5 Feb 2011 13:18:20 +0000 (+0000) Subject: checkpatch.pl: don't complain about old lines with tabs X-Git-Tag: v0.15.0-rc0~976 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=ad36ce8ba95a756ef558579c6e9ecedfae4dfd0b;p=qemu.git 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 --- 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;