equal
deleted
inserted
replaced
427 ] |
427 ] |
428 |
428 |
429 cpats = [ |
429 cpats = [ |
430 [ |
430 [ |
431 (r'//', "don't use //-style comments"), |
431 (r'//', "don't use //-style comments"), |
432 (r'^ ', "don't use spaces to indent"), |
|
433 (r'\S\t', "don't use tabs except for indent"), |
432 (r'\S\t', "don't use tabs except for indent"), |
434 (r'(\S[ \t]+|^[ \t]+)\n', "trailing whitespace"), |
433 (r'(\S[ \t]+|^[ \t]+)\n', "trailing whitespace"), |
435 (r'.{81}', "line too long"), |
434 (r'.{81}', "line too long"), |
436 (r'(while|if|do|for)\(', "use space after while/if/do/for"), |
435 (r'(while|if|do|for)\(', "use space after while/if/do/for"), |
437 (r'return\(', "return is not a function"), |
436 (r'return\(', "return is not a function"), |