PTU5KAS/scripts/checkcode.sh
Claudius Heine 1ef50b559a Added code checker script
This script just calls code checkers pep8 and pylint.

Signed-off-by: Claudius Heine <ch@denx.de>
2017-06-28 15:12:15 +02:00

12 lines
192 B
Bash
Executable File

#!/bin/sh
ERROR=0
echo "Checking with pep8"
pep8 $1/*.py $1/*/*.py || ERROR=$(expr $ERROR + 1)
echo "Checking with pylint"
pylint $1/*.py $1/*/*.py || ERROR=$(expr $ERROR + 2)
exit $ERROR