aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2019-05-06 15:30:54 +0200
committerAntonio Borneo <borneo.antonio@gmail.com>2022-09-18 08:20:23 +0000
commit1c1fd1a71a20862335c89dca9b8ee5ca81e0dc85 (patch)
tree3c2f562fe61cb3d22078538d004a3894beb06148 /tools
parentbb1411e5987be66a8168e801a28f840d3b3b939b (diff)
downloadriscv-openocd-1c1fd1a71a20862335c89dca9b8ee5ca81e0dc85.zip
riscv-openocd-1c1fd1a71a20862335c89dca9b8ee5ca81e0dc85.tar.gz
riscv-openocd-1c1fd1a71a20862335c89dca9b8ee5ca81e0dc85.tar.bz2
checkpatch: increase the max indentation level
OpenOCD uses longer lines (120 char vs 100) and smaller tab size (4 char vs 8) wrt Linux kernel coding style. Clearly deep level of indentation is bad for code readability, but let's be more permissive on the indentation level. Change-Id: I16cf0b761145ec6072509dc26bb09c693e89e608 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/6167 Tested-by: jenkins
Diffstat (limited to 'tools')
-rwxr-xr-xtools/scripts/checkpatch.pl4
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);
}