Files
TrinityCore/contrib/check_codestyle.sh
jackpoz 364d3fa0aa CI/Circle CI: Enforce codestyle checks
(cherry picked from commit 32c9f1c7a2)
2020-06-11 16:50:33 +02:00

18 lines
247 B
Bash

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