comparison contrib/check-code.py @ 10814:cd0c49bdbfd9

Merge with stable
author Matt Mackall <mpm@selenic.com>
date Thu, 01 Apr 2010 17:51:59 -0500
parents 62b8f15683f2 6e4cf8319f54
children 217557b26bc7
comparison
equal deleted inserted replaced
10813:fa635eb0b6f2 10814:cd0c49bdbfd9
57 "use egrep for extended grep syntax"), 57 "use egrep for extended grep syntax"),
58 (r'/bin/', "don't use explicit paths for tools"), 58 (r'/bin/', "don't use explicit paths for tools"),
59 (r'\$PWD', "don't use $PWD, use `pwd`"), 59 (r'\$PWD', "don't use $PWD, use `pwd`"),
60 (r'[^\n]\Z', "no trailing newline"), 60 (r'[^\n]\Z', "no trailing newline"),
61 (r'export.*=', "don't export and assign at once"), 61 (r'export.*=', "don't export and assign at once"),
62 ('^([^"\']|("[^"]*")|(\'[^\']*\'))*\\^', "^ must be quoted"),
62 ] 63 ]
63 64
64 testfilters = [ 65 testfilters = [
65 (r"( *)(#([^\n]*\S)?)", repcomment), 66 (r"( *)(#([^\n]*\S)?)", repcomment),
66 (r"<<(\S+)((.|\n)*?\n\1)", rephere), 67 (r"<<(\S+)((.|\n)*?\n\1)", rephere),