Mercurial > public > mercurial-scm > hg-stable
diff contrib/check-code.py @ 12785:c7d23b4ca4ba
check-code: warning and fixes for whitespace in unified tests
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 20 Oct 2010 14:57:36 -0500 |
parents | 614f0d8724ab |
children | 34034e55424f |
line wrap: on
line diff
--- a/contrib/check-code.py Wed Oct 20 20:19:34 2010 +0200 +++ b/contrib/check-code.py Wed Oct 20 14:57:36 2010 -0500 @@ -74,6 +74,7 @@ uprefix = r"^ \$ " uprefixc = r"^ > " utestpats = [ + (r'^(\S| $ ).*(\S\s+|^\s+)\n', "trailing whitespace on non-output"), (uprefix + r'.*\|\s*sed', "use regex test output patterns instead of sed"), (uprefix + r'(true|exit 0)', "explicit zero exit unnecessary"), (uprefix + r'.*\$\?', "explicit exit code checks unnecessary"),