contrib/check-code.py
changeset 13026 53391819f195
parent 13012 8b167ee8242f
child 13031 3da456d0c885
--- a/contrib/check-code.py	Sun Nov 21 13:16:59 2010 +0100
+++ b/contrib/check-code.py	Sun Nov 21 11:52:27 2010 +0100
@@ -149,6 +149,7 @@
     (r'raise Exception', "don't raise generic exceptions"),
     (r'ui\.(status|progress|write|note|warn)\([\'\"]x',
      "warning: unwrapped ui message"),
+    (r' is\s+(not\s+)?["\'0-9-]', "object comparison with literal"),
 ]
 
 pyfilters = [