diff options
author | Anas Nashif <anas.nashif@intel.com> | 2016-10-18 18:17:58 -0400 |
---|---|---|
committer | Andrew Boie <andrew.p.boie@intel.com> | 2016-10-19 16:46:41 +0000 |
commit | 34ffa156699524cc4e4e2b4fdbca110508d6d435 (patch) | |
tree | 1fc6bf81aa5f2270c960849c79e5a0ba5292776e /scripts | |
parent | e03f561588fcc63a4830c8a6b5886cde0dbe41d2 (diff) |
checkpatch: complain only about actual leading spaces
Change-Id: Ia591966a35765bfc560bd823be488257537e6530
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Diffstat (limited to 'scripts')
-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 5c1f6b710..767b39ea2 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2619,7 +2619,7 @@ sub process { "Use of $flag is deprecated, please use \`$replacement->{$flag} instead.\n" . $herecurr) if ($replacement->{$flag}); } # Kconfig use tabs and no spaces in line - if ($realfile =~ /Kconfig/ && $rawline =~ /^\+\t*[ ]+/) { + if ($realfile =~ /Kconfig/ && $rawline =~ /^\+ /) { my $herevet = "$here\n" . cat_vet($rawline) . "\n"; WARN("LEADING_SPACE", "please, no spaces at the start of a line\n" . $herevet); |