From b969961d4e905eea13bb37edaeb2fb04a3f33a52 Mon Sep 17 00:00:00 2001 From: Jian Yu Date: Fri, 5 Dec 2014 23:16:37 -0800 Subject: [PATCH] LU-5996 tests: check spaces and tabs in .sh files This patch fixes checkpatch.pl script to check the following coding style rules in .sh files: - code indent should use tabs where possible - no space before tabs - no spaces at the start of a line Signed-off-by: Jian Yu Change-Id: I71821d2d15ca218528fcd8fb37119d0e0798027a Reviewed-on: http://review.whamcloud.com/12976 Tested-by: Jenkins Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: Dmitry Eremin --- contrib/scripts/checkpatch.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/scripts/checkpatch.pl b/contrib/scripts/checkpatch.pl index f701b20..6f24be5 100755 --- a/contrib/scripts/checkpatch.pl +++ b/contrib/scripts/checkpatch.pl @@ -1841,8 +1841,9 @@ sub process { } } -# check we are in a valid source file C or perl if not then ignore this hunk - next if ($realfile !~ /\.(h|c|pl)$/); +# check we are in a valid source file C, perl or bash script +# if not then ignore this hunk + next if ($realfile !~ /\.(h|c|pl|sh)$/); # at the beginning of a line any tabs must come first and anything # more than 8 must use tabs. -- 1.8.3.1