aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2021-01-03 11:50:56 +0100
committerShauren <shauren.trinity@gmail.com>2022-03-05 21:13:38 +0100
commitf32a7ed27d0546c2dff4c538efc43e419ced14a8 (patch)
treeb7905523d34b0413a388b895edc792468675a124 /contrib
parent8514164d435dcf7f17908db94777a34f8def7e77 (diff)
CI/Circle CI: Add codestyle check
Don't leave 2 blank lines, 1 is enough. (cherry picked from commit ed975ef4c0e614addc069785f23c1b7f522f3b8e)
Diffstat (limited to 'contrib')
-rw-r--r--contrib/check_codestyle.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/check_codestyle.sh b/contrib/check_codestyle.sh
index 4787f2a19dc..90ee421d973 100644
--- a/contrib/check_codestyle.sh
+++ b/contrib/check_codestyle.sh
@@ -21,6 +21,7 @@ done
declare -A multiLineRegexChecks=(
["TC_LOG_[^;]+GetCounter"]="Use ObjectGuid::ToString().c_str() method instead of ObjectGuid::GetCounter() when logging. Check the lines above"
+ ["\n\n\n"]="Multiple blank lines detected, keep only one. Check the files above"
)
for check in ${!multiLineRegexChecks[@]}; do
echo " Checking RegEx: '${check}'"