Mercurial > hg
changeset 11210:0c0088881562
check-code: add check for 'source'
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 21 May 2010 22:53:57 +0900 |
parents | 385b95d10410 |
children | e43c23d189a5 |
files | contrib/check-code.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
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 = [