CI/Circle CI: Enforce codestyle checks
(cherry picked from commit 32c9f1c7a228db33110ab0ab5975ba37cba85106)
This commit is contained in:
@@ -13,6 +13,11 @@ jobs:
|
|||||||
name: Checkout
|
name: Checkout
|
||||||
command: |
|
command: |
|
||||||
/scripts/checkout.sh
|
/scripts/checkout.sh
|
||||||
|
- run:
|
||||||
|
name: Codestyle checks
|
||||||
|
command: |
|
||||||
|
chmod +x contrib/check_codestyle.sh
|
||||||
|
./contrib/check_codestyle.sh
|
||||||
- run:
|
- run:
|
||||||
name: Setup
|
name: Setup
|
||||||
command: |
|
command: |
|
||||||
|
|||||||
@@ -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"
|
||||||
Reference in New Issue
Block a user