diff contrib/check-code.py @ 11210:0c0088881562

check-code: add check for 'source'
author Yuya Nishihara <yuya@tcha.org>
date Fri, 21 May 2010 22:53:57 +0900
parents 13a1b2fb7ef2
children 920a783e5f91
line wrap: on
line diff
--- a/contrib/check-code.py	Fri May 21 14:21:27 2010 +0200
+++ b/contrib/check-code.py	Fri May 21 22:53:57 2010 +0900
@@ -61,6 +61,7 @@
     (r'[^\n]\Z', "no trailing newline"),
     (r'export.*=', "don't export and assign at once"),
     ('^([^"\']|("[^"]*")|(\'[^\']*\'))*\\^', "^ must be quoted"),
+    (r'^source\b', "don't use 'source', use '.'"),
 ]
 
 testfilters = [