Added Shell script to run static code analyzis for python code.

This commit is contained in:
ba2150 2014-04-04 11:51:57 +02:00
Родитель e75d560980
Коммит 715ea0d8ab
1 изменённых файлов: 20 добавлений и 0 удалений

20
analyze_code.sh Executable file
Просмотреть файл

@ -0,0 +1,20 @@
#!/bin/bash
# Automated static code analysis for Python and JavaScript
# Python tools pylint, pep8, pyflakes
# Javascrip tools jshint
NOW=$(date +%Y%m%d_%H%M%S)
echo "Creating folder $NOW"
mkdir -p results/$NOW
cd results/$NOW
echo "Analyzing python code"
echo "Running pyflakes"
pyflakes ../.. > pyflakes.txt
echo "Running pylint"
pylint ../../*/*.py --output-format=parseable > pylint.txt
echo "Running pep8"
pep8 ../../*/*.py > pep8.txt
# TBD Analyze JavaScript Code