From f32a7ed27d0546c2dff4c538efc43e419ced14a8 Mon Sep 17 00:00:00 2001 From: jackpoz Date: Sun, 3 Jan 2021 11:50:56 +0100 Subject: CI/Circle CI: Add codestyle check Don't leave 2 blank lines, 1 is enough. (cherry picked from commit ed975ef4c0e614addc069785f23c1b7f522f3b8e) --- contrib/check_codestyle.sh | 1 + 1 file changed, 1 insertion(+) 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}'" -- cgit v1.2.3