CI/Circle CI: Enforce codestyle checks

(cherry picked from commit 32c9f1c7a2)
This commit is contained in:
jackpoz
2020-04-04 21:12:41 +02:00
committed by Shauren
parent 8d2509eee5
commit 8878ba2dca
2 changed files with 22 additions and 0 deletions

View File

@@ -13,6 +13,11 @@ jobs:
name: Checkout
command: |
/scripts/checkout.sh
- run:
name: Codestyle checks
command: |
chmod +x contrib/check_codestyle.sh
./contrib/check_codestyle.sh
- run:
name: Setup
command: |

View File

@@ -0,0 +1,17 @@
#!/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"