contrib/check-code.py
changeset 34799 0b46352384a0
parent 34648 4889b84b15f2
child 35087 dd000a958364
equal deleted inserted replaced
34798:e33381d95930 34799:0b46352384a0
   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"),