aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2020-04-05 15:32:53 +0200
committerShauren <shauren.trinity@gmail.com>2022-01-01 01:00:44 +0100
commitda25846615c23f3e088ce639e95fae0771be4a40 (patch)
tree1d117fbfb000c08ace1d725c42e6a0910768c2f1 /contrib
parentecdc387df2d4fb9602bb10765898949f99e7c5c5 (diff)
CI/Circle CI: Add codestyle check
Tabs are not allowed, use 4 spaces instead (cherry picked from commit 5f29577f63da506d8099c9a09b1565e4f5d9eeaf)
Diffstat (limited to 'contrib')
-rw-r--r--contrib/check_codestyle.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/contrib/check_codestyle.sh b/contrib/check_codestyle.sh
index ee1ab09f219..2f9bd5ef09b 100644
--- a/contrib/check_codestyle.sh
+++ b/contrib/check_codestyle.sh
@@ -4,7 +4,11 @@ set -e
echo "Codestyle check script:"
echo
-singleLineRegexChecks=("TC_LOG_.+GetCounter" "[[:blank:]]$")
+singleLineRegexChecks=(
+ "TC_LOG_.+GetCounter"
+ "[[:blank:]]$"
+ "\t"
+)
for check in ${singleLineRegexChecks[@]}; do
echo " Checking RegEx: '${check}'"
@@ -13,7 +17,9 @@ for check in ${singleLineRegexChecks[@]}; do
fi
done
-multiLineRegexChecks=("TC_LOG_[^;]+GetCounter")
+multiLineRegexChecks=(
+ "TC_LOG_[^;]+GetCounter"
+)
for check in ${multiLineRegexChecks[@]}; do
echo " Checking RegEx: '${check}'"