diff options
Diffstat (limited to 'tests/code_analysis.sh')
-rw-r--r-- | tests/code_analysis.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/code_analysis.sh b/tests/code_analysis.sh new file mode 100644 index 000000000..aaf6bb6a4 --- /dev/null +++ b/tests/code_analysis.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +PYLOAD="../pyload" #: Check pyload directory + +echo "Running sloccount ..." +REPORT="sloccount.sc" +sloccount --duplicates --wide --details ${PYLOAD} > ${REPORT} && echo "Done. Report saved to $REPORT" + +echo "Running pep8 ..." +REPORT="pep8.txt" +pep8 ${PYLOAD} > ${REPORT} && echo "Done. Report saved to $REPORT" + +echo "Running pylint ..." +REPORT="pylint.txt" +pylint --reports=no ${PYLOAD} > ${REPORT} && echo "Done. Report saved to $REPORT" |