check-code: warn about line glob match with no glob character (?*/)
authorSimon Heimberg <simohe@besonet.ch>
Wed, 13 Feb 2013 21:51:47 +0100
changeset 18683 a343eccd5ee2
parent 18682 408f2202bd80
child 18684 c161e4cf77d4
check-code: warn about line glob match with no glob character (?*/)
contrib/check-code.py
--- a/contrib/check-code.py	Wed Feb 13 22:05:30 2013 +0100
+++ b/contrib/check-code.py	Wed Feb 13 21:51:47 2013 +0100
@@ -105,7 +105,10 @@
      "use (glob) to match Windows paths too"),
   ],
   # warnings
-  []
+  [
+    (r'^  [^*?/\n]* \(glob\)$',
+     "warning: glob match with no glob character (?*/)"),
+  ]
 ]
 
 for i in [0, 1]: