##// END OF EJS Templates
check-code: do not warn on printf \\x or \\[1-9]...
Simon Heimberg -
r19380:ee07f9d1 default
parent child Browse files
Show More
@@ -68,8 +68,8 b' testpats = ['
68 (r'head -c', "don't use 'head -c', use 'dd'"),
68 (r'head -c', "don't use 'head -c', use 'dd'"),
69 (r'sha1sum', "don't use sha1sum, use $TESTDIR/md5sum.py"),
69 (r'sha1sum', "don't use sha1sum, use $TESTDIR/md5sum.py"),
70 (r'ls.*-\w*R', "don't use 'ls -R', use 'find'"),
70 (r'ls.*-\w*R', "don't use 'ls -R', use 'find'"),
71 (r'printf.*\\([1-9]|0\d)', "don't use 'printf \NNN', use Python"),
71 (r'printf.*[^\\]\\([1-9]|0\d)', "don't use 'printf \NNN', use Python"),
72 (r'printf.*\\x', "don't use printf \\x, use Python"),
72 (r'printf.*[^\\]\\x', "don't use printf \\x, use Python"),
73 (r'\$\(.*\)', "don't use $(expr), use `expr`"),
73 (r'\$\(.*\)', "don't use $(expr), use `expr`"),
74 (r'rm -rf \*', "don't use naked rm -rf, target a directory"),
74 (r'rm -rf \*', "don't use naked rm -rf, target a directory"),
75 (r'(^|\|\s*)grep (-\w\s+)*[^|]*[(|]\w',
75 (r'(^|\|\s*)grep (-\w\s+)*[^|]*[(|]\w',
@@ -17,7 +17,7 b' hg debugsub with no remapping'
17 hg debugsub with remapping
17 hg debugsub with remapping
18
18
19 $ echo '[subpaths]' >> .hg/hgrc
19 $ echo '[subpaths]' >> .hg/hgrc
20 $ printf 'http://example.net/lib(.*) = C:\\libs\\\\1-lib\\\n' >> .hg/hgrc # no-check-code
20 $ printf 'http://example.net/lib(.*) = C:\\libs\\\\1-lib\\\n' >> .hg/hgrc
21
21
22 $ hg debugsub
22 $ hg debugsub
23 path sub
23 path sub
General Comments 0
You need to be logged in to leave comments. Login now