diff contrib/check-code.py @ 18683:a343eccd5ee2

check-code: warn about line glob match with no glob character (?*/)
author Simon Heimberg <simohe@besonet.ch>
date Wed, 13 Feb 2013 21:51:47 +0100
parents 667063b22a69
children a91387a37f05
line wrap: on
line diff
--- 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]: