comparison contrib/check-code.py @ 10658:95c7c4b7e67a stable

test-merge-default and check-code.py: No "export x=x" in sh
author Mads Kiilerich <mads@kiilerich.com>
date Mon, 08 Mar 2010 03:07:35 +0100
parents 63a9bfad50ff
children 1437542a9fd7 6e4cf8319f54
comparison
equal deleted inserted replaced
10656:f6ee02933af9 10658:95c7c4b7e67a
50 (r'(^|\|\s*)grep (-\w\s+)*[^|]*[(|]\w', 50 (r'(^|\|\s*)grep (-\w\s+)*[^|]*[(|]\w',
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 ] 56 ]
56 57
57 testfilters = [ 58 testfilters = [
58 (r"( *)(#([^\n]*\S)?)", repcomment), 59 (r"( *)(#([^\n]*\S)?)", repcomment),
59 (r"<<(\S+)((.|\n)*?\n\1)", rephere), 60 (r"<<(\S+)((.|\n)*?\n\1)", rephere),