diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-01-13 18:02:58 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-01-13 18:02:58 +0100 |
commit | f890926cf9fa9f6c36e503008f28daf0f1951084 (patch) | |
tree | ab5bf3c3220c9a6fca10e92e4692db71168db177 | |
parent | fix info page, removed icons (diff) | |
download | pyload-f890926cf9fa9f6c36e503008f28daf0f1951084.tar.xz |
fixed pyflakes and sloccount
-rwxr-xr-x | tests/pyflakes.sh | 4 | ||||
-rwxr-xr-x | tests/sloccount.sh | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/pyflakes.sh b/tests/pyflakes.sh index 1ed61d2ee..0c7e03891 100755 --- a/tests/pyflakes.sh +++ b/tests/pyflakes.sh @@ -1,3 +1,5 @@ #!/bin/bash find -name '*.py' |egrep -v '^.(/tests/|/module/lib)'|xargs pyflakes > pyflakes.log || : -cat pyflakes.log | awk -F\: '{printf "%s:%s: [E]%s\n", $1, $2, $3}' > pyflakes.txt +# 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|hookmanager" > pyflakes.txt +sed -i 's/^.\///g' pyflakes.txt diff --git a/tests/sloccount.sh b/tests/sloccount.sh index cdb629f7f..70150501e 100755 --- a/tests/sloccount.sh +++ b/tests/sloccount.sh @@ -1,2 +1,2 @@ #!/bin/bash -sloccount module --duplicates --wide --details > sloccount.sc +sloccount --duplicates --wide --details . > sloccount.sc |