Files
TrinityCore/contrib/check_codestyle.sh
jackpoz af1260c40e CI/Circle CI: Add codestyle check
ObjectGuid::GetCounter() should not be called in logs, use ObjectGuid::ToString().c_str() instead
2020-04-05 19:10:56 +02:00

18 lines
268 B
Bash

#!/bin/bash
set -e
echo "Codestyle check script:"
echo
regexChecks=("TC_LOG_.+GetCounter")
for check in ${regexChecks[@]}; do
echo " Checking RegEx: '${check}'"
if grep -E -r ${check} src; then
exit 1
fi
done
echo "Everything looks good"