Mercurial > hg-stable
diff contrib/check-code.py @ 13736:f3c4421e121c
osutil: fix up check-code issues
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 23 Mar 2011 09:41:58 -0500 |
parents | 121c89dd7983 |
children | 26f8844d1757 |
line wrap: on
line diff
--- a/contrib/check-code.py Wed Mar 23 09:34:22 2011 -0500 +++ b/contrib/check-code.py Wed Mar 23 09:41:58 2011 -0500 @@ -177,7 +177,7 @@ (r'\([^\)]+\) \w+', "use (int)foo, not (int) foo"), (r'\S+ (\+\+|--)', "use foo++, not foo ++"), (r'\w,\w', "missing whitespace after ,"), - (r'\w[+/*]\w', "missing whitespace in expression"), + (r'^[^#]\w[+/*]\w', "missing whitespace in expression"), (r'^#\s+\w', "use #foo, not # foo"), (r'[^\n]\Z', "no trailing newline"), ]