e02bee0eec
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>
15 lines
290 B
Bash
Executable File
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
|