PTU5KAS/scripts/checkcode.sh
Claudius Heine e02bee0eec Added initial sphinx documentation
This commit adds initial files for the Sphinx documentation system and
expanded checkcode.sh to include `doc8` as documentation checker. Also
added this checker to the dependencies for travis CI.

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

15 lines
290 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)
echo "Checking with doc8"
doc8 $1/docs --ignore-path $1/docs/_build || ERROR=$(expr $ERROR + 4)
exit $ERROR