From patchwork Tue Feb 12 23:05:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [4, of, 4] code-check: warn about line glob match with no glob character (?*/) From: Simon Heimberg X-Patchwork-Id: 970 Message-Id: To: Mercurial-devel Date: Wed, 13 Feb 2013 00:05:33 +0100 # HG changeset patch # User Simon Heimberg # Date 1350059530 -7200 # Node ID dca96b2ac9e1f536f69a9be658d9f4c72f6c6de0 # Parent a36b0c19bec9b4d43ab250b091fbddb614d75374 code-check: warn about line glob match with no glob character (?*/) diff -r a36b0c19bec9 -r dca96b2ac9e1 contrib/check-code.py --- a/contrib/check-code.py Mon Okt 15 23:32:28 2012 +0200 +++ b/contrib/check-code.py Fre Okt 12 18:32:10 2012 +0200 @@ -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]: