From 474768b2685ebba5bb2d5f8e40dac5dde2953b9d Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 30 Jun 2013 13:11:00 +0200 Subject: catch pylint return code --- pylintrc | 1 - tests/code_analysis.sh | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pylintrc b/pylintrc index 6dad28d58..cda638456 100644 --- a/pylintrc +++ b/pylintrc @@ -20,7 +20,6 @@ disable=C,I,R,W0102,W0106,W0142,W0312,W0403,W0611,W0613,W0614,W0702,W0703 # (visual studio) and html. You can also give a reporter class, eg # mypackage.mymodule.MyReporterClass. output-format=parseable -reports=no include-ids=yes diff --git a/tests/code_analysis.sh b/tests/code_analysis.sh index 85b177223..052ddcdf2 100755 --- a/tests/code_analysis.sh +++ b/tests/code_analysis.sh @@ -3,7 +3,6 @@ sloccount --duplicates --wide --details pyload > sloccount.sc echo "Running pep8" - pep8 pyload > pep8.txt #echo "Running pyflakes" @@ -13,4 +12,6 @@ pep8 pyload > pep8.txt #cat pyflakes.log | awk -F\: '{printf "%s:%s: [E]%s\n", $1, $2, $3}' | grep -i -E -v "'_'|pypath|webinterface|pyreq|addonmanager" > pyflakes.txt #sed -i 's/^.\///g' pyflakes.txt -pylint pyload > pylint.txt \ No newline at end of file + +echo "Running pylint" +pylint --reports=no pyload > pylint.txt || return 0 \ No newline at end of file -- cgit v1.2.3