aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 1a93ac265c3..cf4e44cf3c2 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1422,6 +1422,12 @@ sub process {
1422 ERROR("code indent should use tabs where possible\n" . $herevet); 1422 ERROR("code indent should use tabs where possible\n" . $herevet);
1423 } 1423 }
1424 1424
1425# check for space before tabs.
1426 if ($rawline =~ /^\+/ && $rawline =~ / \t/) {
1427 my $herevet = "$here\n" . cat_vet($rawline) . "\n";
1428 WARN("please, no space before tabs\n" . $herevet);
1429 }
1430
1425# check we are in a valid C source file if not then ignore this hunk 1431# check we are in a valid C source file if not then ignore this hunk
1426 next if ($realfile !~ /\.(h|c)$/); 1432 next if ($realfile !~ /\.(h|c)$/);
1427 1433