Mercurial > hg-stable
comparison contrib/check-code.py @ 16332:42e95631887d
tests: remove sed -i from test-record
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 01 Apr 2012 13:59:11 -0500 |
parents | 0d175ac527c1 |
children | 329887a7074c |
comparison
equal
deleted
inserted
replaced
16330:a5a3af000e0d | 16332:42e95631887d |
---|---|
45 [ | 45 [ |
46 (r'(pushd|popd)', "don't use 'pushd' or 'popd', use 'cd'"), | 46 (r'(pushd|popd)', "don't use 'pushd' or 'popd', use 'cd'"), |
47 (r'\W\$?\(\([^\)\n]*\)\)', "don't use (()) or $(()), use 'expr'"), | 47 (r'\W\$?\(\([^\)\n]*\)\)', "don't use (()) or $(()), use 'expr'"), |
48 (r'^function', "don't use 'function', use old style"), | 48 (r'^function', "don't use 'function', use old style"), |
49 (r'grep.*-q', "don't use 'grep -q', redirect to /dev/null"), | 49 (r'grep.*-q', "don't use 'grep -q', redirect to /dev/null"), |
50 (r'sed.*-i', "don't use 'sed -i', use a temporary file"), | |
50 (r'echo.*\\n', "don't use 'echo \\n', use printf"), | 51 (r'echo.*\\n', "don't use 'echo \\n', use printf"), |
51 (r'echo -n', "don't use 'echo -n', use printf"), | 52 (r'echo -n', "don't use 'echo -n', use printf"), |
52 (r'^diff.*-\w*N', "don't use 'diff -N'"), | 53 (r'^diff.*-\w*N', "don't use 'diff -N'"), |
53 (r'(^| )wc[^|]*$\n(?!.*\(re\))', "filter wc output"), | 54 (r'(^| )wc[^|]*$\n(?!.*\(re\))', "filter wc output"), |
54 (r'head -c', "don't use 'head -c', use 'dd'"), | 55 (r'head -c', "don't use 'head -c', use 'dd'"), |