changeset 12785 | c7d23b4ca4ba |
parent 12770 | 614f0d8724ab |
child 12964 | 34034e55424f |
--- 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"),