Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
13735:ce341da8537c | 13736:f3c4421e121c |
---|---|
175 (r' ;', "no space before ;"), | 175 (r' ;', "no space before ;"), |
176 (r'\w+\* \w+', "use int *foo, not int* foo"), | 176 (r'\w+\* \w+', "use int *foo, not int* foo"), |
177 (r'\([^\)]+\) \w+', "use (int)foo, not (int) foo"), | 177 (r'\([^\)]+\) \w+', "use (int)foo, not (int) foo"), |
178 (r'\S+ (\+\+|--)', "use foo++, not foo ++"), | 178 (r'\S+ (\+\+|--)', "use foo++, not foo ++"), |
179 (r'\w,\w', "missing whitespace after ,"), | 179 (r'\w,\w', "missing whitespace after ,"), |
180 (r'\w[+/*]\w', "missing whitespace in expression"), | 180 (r'^[^#]\w[+/*]\w', "missing whitespace in expression"), |
181 (r'^#\s+\w', "use #foo, not # foo"), | 181 (r'^#\s+\w', "use #foo, not # foo"), |
182 (r'[^\n]\Z', "no trailing newline"), | 182 (r'[^\n]\Z', "no trailing newline"), |
183 ] | 183 ] |
184 | 184 |
185 cfilters = [ | 185 cfilters = [ |