]> git.ipfire.org Git - pakfire.git/commitdiff
Add script to run pychecker.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 20 Mar 2011 23:58:33 +0000 (00:58 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 20 Mar 2011 23:58:33 +0000 (00:58 +0100)
Makefile
runpychecker.sh [new file with mode: 0755]

index c0a3ae4cd1588a6ae2f95a00a4b02191f4fd7d45..2e69c825dc0c2d74bc2ed3fbfbe0b1e09113dbf1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,3 +22,7 @@ install:
        -mkdir -pv $(DESTDIR)/etc/pakfire.repos.d
        cp -vf examples/pakfire.conf $(DESTDIR)/etc/pakfire.conf
        cp -vf examples/pakfire.repos.d/* $(DESTDIR)/etc/pakfire.repos.d/
+
+.PHONY: check
+check:
+       ./runpychecker.sh
diff --git a/runpychecker.sh b/runpychecker.sh
new file mode 100755 (executable)
index 0000000..383be9f
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+pychecker --only --limit 1000 \
+       --maxlines 500 --maxargs 20 --maxbranches 80 --maxlocals 60 --maxreturns 20 \
+       --no-callinit --no-local --no-shadow --no-shadowbuiltin \
+       --no-import --no-miximport --no-pkgimport --no-reimport \
+       --no-argsused --no-varargsused --no-override \
+       $(find pakfire -name "*.py" )