diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/scripts/checkpatch.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/scripts/checkpatch.pl b/tools/scripts/checkpatch.pl index 3c65697..14876a1 100755 --- a/tools/scripts/checkpatch.pl +++ b/tools/scripts/checkpatch.pl @@ -4238,7 +4238,9 @@ sub process { my ($level, @ctx) = ctx_statement_level($linenr, $realcnt, 0); - if ($line =~ /^\+\t{6,}/) { + # OpenOCD specific: Begin: replace s/6/10/ + if ($line =~ /^\+\t{10,}/) { + # OpenOCD specific: End WARN("DEEP_INDENTATION", "Too many leading tabs - consider code refactoring\n" . $herecurr); } |