aboutsummaryrefslogtreecommitdiff
path: root/contrib/check_codestyle.sh
blob: 02f39285cd30770c35a438d1c6116cd0cb053a64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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"