##// END OF EJS Templates
check-code: avoid false-positive on ++
Matt Mackall -
r16413:1a420761 default
parent child Browse files
Show More
@@ -227,7 +227,7 b' cpats = ['
227 (r' ;', "no space before ;"),
227 (r' ;', "no space before ;"),
228 (r'\w+\* \w+', "use int *foo, not int* foo"),
228 (r'\w+\* \w+', "use int *foo, not int* foo"),
229 (r'\([^\)]+\) \w+', "use (int)foo, not (int) foo"),
229 (r'\([^\)]+\) \w+', "use (int)foo, not (int) foo"),
230 (r'\S+ (\+\+|--)', "use foo++, not foo ++"),
230 (r'\w+ (\+\+|--)', "use foo++, not foo ++"),
231 (r'\w,\w', "missing whitespace after ,"),
231 (r'\w,\w', "missing whitespace after ,"),
232 (r'^[^#]\w[+/*]\w', "missing whitespace in expression"),
232 (r'^[^#]\w[+/*]\w', "missing whitespace in expression"),
233 (r'^#\s+\w', "use #foo, not # foo"),
233 (r'^#\s+\w', "use #foo, not # foo"),
General Comments 0
You need to be logged in to leave comments. Login now