Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pylint.sh
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2006-05-13 05:28:51 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2006-05-13 05:28:51 (GMT)
commita3d69ab879567f9c63378ca8341e719169e1391b (patch)
tree6507b14b8d6ac0d2c5b55d4695997416e207ccc7 /pylint.sh
parent4479a14eea6fd9c6ebc3ac9ad63e06d4020340b9 (diff)
pylintize!!!
Diffstat (limited to 'pylint.sh')
-rwxr-xr-xpylint.sh33
1 files changed, 33 insertions, 0 deletions
diff --git a/pylint.sh b/pylint.sh
new file mode 100755
index 0000000..99e9dad
--- /dev/null
+++ b/pylint.sh
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+# Errors that we may fix in the future
+#
+# C0301 Line length
+# W0603 Using the global statement
+# W0201 Attribute defined outside __init__
+# R0201 Method could be a function
+TODO="C0301,W0603,W0201,R0201"
+
+# Errors we don't like
+#
+# W0613 Unused argument (glib signals)
+# W0511 - FIXME/TODO/XXX
+DISABLE="W0613,W0511"
+
+MSGS="$TODO,$DISABLE"
+ARG="sugar"
+
+pylint \
+ --disable-all \
+ --include-ids=y \
+ --enable-variables=y \
+ --enable-exceptions=y \
+ --enable-miscellaneous=y \
+ --enable-format=y \
+ --enable-classes=y \
+ --disable-msg=$MSGS \
+ --reports=n \
+ --enable-metrics=n \
+ --indent-string=" " \
+ --ignore="SVGdraw.py" \
+ $ARG