summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-06-29 20:39:28 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-06-29 20:39:28 +0200
commit569d96af625ad4837b06cf2beb5720f1e0fea2a2 (patch)
tree41c8ac53931e0ec9802632d1466413bc6fe9f14a /tests
parentupdated test suite (diff)
downloadpyload-569d96af625ad4837b06cf2beb5720f1e0fea2a2.tar.xz
added pep8 configsection
Diffstat (limited to 'tests')
-rwxr-xr-xtests/code_analysis.sh (renamed from tests/pyflakes.sh)10
-rwxr-xr-xtests/sloccount.sh2
2 files changed, 10 insertions, 2 deletions
diff --git a/tests/pyflakes.sh b/tests/code_analysis.sh
index d569b05f6..d8ede8d4b 100755
--- a/tests/pyflakes.sh
+++ b/tests/code_analysis.sh
@@ -1,4 +1,14 @@
#!/bin/bash
+
+sloccount --duplicates --wide --details pyload > sloccount.sc
+
+echo "Running pep8"
+
+pep8 pyload > pep8.txt
+
+echo "Running pyflakes"
+
+# pyflakes to pylint syntak
find -name '*.py' |egrep -v '^.(/tests/|/pyload/lib)'|xargs pyflakes > pyflakes.log || :
# Filter warnings and strip ./ from path
cat pyflakes.log | awk -F\: '{printf "%s:%s: [E]%s\n", $1, $2, $3}' | grep -i -E -v "'_'|pypath|webinterface|pyreq|addonmanager" > pyflakes.txt
diff --git a/tests/sloccount.sh b/tests/sloccount.sh
deleted file mode 100755
index beca391bd..000000000
--- a/tests/sloccount.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/bash
-sloccount --duplicates --wide --details pyload > sloccount.sc