Show More
@@ -335,6 +335,7 cpats = [ | |||||
335 | (r'(while|if|do|for)\(', "use space after while/if/do/for"), |
|
335 | (r'(while|if|do|for)\(', "use space after while/if/do/for"), | |
336 | (r'return\(', "return is not a function"), |
|
336 | (r'return\(', "return is not a function"), | |
337 | (r' ;', "no space before ;"), |
|
337 | (r' ;', "no space before ;"), | |
|
338 | (r'[^;] \)', "no space before )"), | |||
338 | (r'[)][{]', "space between ) and {"), |
|
339 | (r'[)][{]', "space between ) and {"), | |
339 | (r'\w+\* \w+', "use int *foo, not int* foo"), |
|
340 | (r'\w+\* \w+', "use int *foo, not int* foo"), | |
340 | (r'\W\([^\)]+\) \w+', "use (int)foo, not (int) foo"), |
|
341 | (r'\W\([^\)]+\) \w+', "use (int)foo, not (int) foo"), |
General Comments 0
You need to be logged in to leave comments.
Login now