comparison contrib/check-code.py @ 13301:4b07578967e6

check-code: do not complain about 'ls x | foo -v' Such a line was introduced in test-subrepo-git.t in 5dda6c708138, which made check-code confused.
author Martin Geisler <mg@aragost.com>
date Wed, 26 Jan 2011 12:35:02 +0100
parents 11eb53464e68
children 14f3795a5ed7
comparison
equal deleted inserted replaced
13300:23bbb5b888ea 13301:4b07578967e6
63 (r'[^\n]\Z', "no trailing newline"), 63 (r'[^\n]\Z', "no trailing newline"),
64 (r'export.*=', "don't export and assign at once"), 64 (r'export.*=', "don't export and assign at once"),
65 ('^([^"\']|("[^"]*")|(\'[^\']*\'))*\\^', "^ must be quoted"), 65 ('^([^"\']|("[^"]*")|(\'[^\']*\'))*\\^', "^ must be quoted"),
66 (r'^source\b', "don't use 'source', use '.'"), 66 (r'^source\b', "don't use 'source', use '.'"),
67 (r'touch -d', "don't use 'touch -d', use 'touch -t' instead"), 67 (r'touch -d', "don't use 'touch -d', use 'touch -t' instead"),
68 (r'ls\s+[^-]+\s+-', "options to 'ls' must come before filenames"), 68 (r'ls\s+[^|-]+\s+-', "options to 'ls' must come before filenames"),
69 ] 69 ]
70 70
71 testfilters = [ 71 testfilters = [
72 (r"( *)(#([^\n]*\S)?)", repcomment), 72 (r"( *)(#([^\n]*\S)?)", repcomment),
73 (r"<<(\S+)((.|\n)*?\n\1)", rephere), 73 (r"<<(\S+)((.|\n)*?\n\1)", rephere),