Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pylint.sh
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2006-05-15 18:48:08 (GMT)
committer Dan Williams <dcbw@redhat.com>2006-05-15 18:48:08 (GMT)
commit6b786006462a36870f273f1144fb2a8dcf203ee7 (patch)
tree2f35046e5a185ea3c673902749ad06b67941d80a /pylint.sh
parent0ca5a7fed50b7aed15bf342fbc00dda9a77ef64f (diff)
Merge SVGdraw.py
Diffstat (limited to 'pylint.sh')
-rwxr-xr-xpylint.sh32
1 files changed, 32 insertions, 0 deletions
diff --git a/pylint.sh b/pylint.sh
new file mode 100755
index 0000000..4de5a50
--- /dev/null
+++ b/pylint.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+# Errors that we may fix in the future
+#
+# C0301 Line length
+# W0201 Attribute defined outside __init__
+# R0201 Method could be a function
+TODO="C0301,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