From 1ef50b559a9dfe30edef94a5e0e1e6bc77fe9f84 Mon Sep 17 00:00:00 2001 From: Claudius Heine Date: Wed, 28 Jun 2017 14:48:42 +0200 Subject: [PATCH] Added code checker script This script just calls code checkers pep8 and pylint. Signed-off-by: Claudius Heine --- scripts/checkcode.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/checkcode.sh diff --git a/scripts/checkcode.sh b/scripts/checkcode.sh new file mode 100755 index 0000000..56ff573 --- /dev/null +++ b/scripts/checkcode.sh @@ -0,0 +1,11 @@ +#!/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