diff -r 10c8110d114b -r 2a1d97630f7f contrib/check-code.py --- a/contrib/check-code.py Fri Jan 27 02:59:59 2012 +0100 +++ b/contrib/check-code.py Fri Jan 27 03:00:03 2012 +0100 @@ -71,6 +71,7 @@ (r'[^>\n]>\s*\$HGRCPATH', "don't overwrite $HGRCPATH, append to it"), (r'^stop\(\)', "don't use 'stop' as a shell function name"), (r'(\[|\btest\b).*-e ', "don't use 'test -e', use 'test -f'"), + (r'^alias\b.*=', "don't use alias, use a function"), ], # warnings []