changeset 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 408f2202bd80
children c161e4cf77d4
files contrib/check-code.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
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]: