From 8878ba2dcae671f405bdf06cc37cb6af593a8626 Mon Sep 17 00:00:00 2001 From: jackpoz Date: Sat, 4 Apr 2020 21:12:41 +0200 Subject: CI/Circle CI: Enforce codestyle checks (cherry picked from commit 32c9f1c7a228db33110ab0ab5975ba37cba85106) --- contrib/check_codestyle.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 contrib/check_codestyle.sh (limited to 'contrib') diff --git a/contrib/check_codestyle.sh b/contrib/check_codestyle.sh new file mode 100644 index 00000000000..3f4ab9d2657 --- /dev/null +++ b/contrib/check_codestyle.sh @@ -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" -- cgit v1.2.3