comparison contrib/check-code.py @ 10802:6e4cf8319f54 stable

check-code.py: Check for bare ^ Solaris sh interprets ^ as some kind of piping symbol.
author Mads Kiilerich <mads@kiilerich.com>
date Wed, 31 Mar 2010 11:07:46 +0200
parents 95c7c4b7e67a
children cd0c49bdbfd9
comparison
equal deleted inserted replaced
10801:fcfe2e50faab 10802:6e4cf8319f54
51 "use egrep for extended grep syntax"), 51 "use egrep for extended grep syntax"),
52 (r'/bin/', "don't use explicit paths for tools"), 52 (r'/bin/', "don't use explicit paths for tools"),
53 (r'\$PWD', "don't use $PWD, use `pwd`"), 53 (r'\$PWD', "don't use $PWD, use `pwd`"),
54 (r'[^\n]\Z', "no trailing newline"), 54 (r'[^\n]\Z', "no trailing newline"),
55 (r'export.*=', "don't export and assign at once"), 55 (r'export.*=', "don't export and assign at once"),
56 ('^([^"\']|("[^"]*")|(\'[^\']*\'))*\\^', "^ must be quoted"),
56 ] 57 ]
57 58
58 testfilters = [ 59 testfilters = [
59 (r"( *)(#([^\n]*\S)?)", repcomment), 60 (r"( *)(#([^\n]*\S)?)", repcomment),
60 (r"<<(\S+)((.|\n)*?\n\1)", rephere), 61 (r"<<(\S+)((.|\n)*?\n\1)", rephere),