aboutsummaryrefslogtreecommitdiff
path: root/tests/t_codingstandard.sh
blob: 4daba179dae835cf7198a3f14ad7b4c0351122ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
cd "$( dirname "${BASH_SOURCE[0]}" )"
source prepare.sh

echo "Checking code style using pep8"
pep8 ../mcwrapper
if [[ $? == 0 ]]; then
	echo "Ok"
else
	exit 1
fi

echo "Checking for common errors"
pyflakes ../mcwrapper
if [[ $? == 0 ]]; then
	echo "Ok"
else
	exit 1
fi

# This test is not part of standard check because of errors caused by dynamic variable
# loading to configuration. But it should be run from time to time to found other mistakes
#echo "Checking bugs and poor quality"
#pylint --msg-template="{line}: [{msg_id}({symbol}), {obj}] {msg}" --reports=n ../mcwrapper