contrib/check-code.py
changeset 11601 4d9b4725acac
parent 11569 f8576644a222
parent 11599 6fcc066c0c2c
child 11602 ba2520dd1e29
equal deleted inserted replaced
11598:5be142109ed4 11601:4d9b4725acac
   111     (r'\s(\+=|-=|!=|<>|<=|>=|<<=|>>=)\S',
   111     (r'\s(\+=|-=|!=|<>|<=|>=|<<=|>>=)\S',
   112      "missing whitespace around operator"),
   112      "missing whitespace around operator"),
   113     (r'[^+=*!<>&| -](\s=|=\s)[^= ]',
   113     (r'[^+=*!<>&| -](\s=|=\s)[^= ]',
   114      "wrong whitespace around ="),
   114      "wrong whitespace around ="),
   115     (r'raise Exception', "don't raise generic exceptions"),
   115     (r'raise Exception', "don't raise generic exceptions"),
   116     (r'ui\.(status|progress|write|note)\([\'\"]x',
   116     (r'ui\.(status|progress|write|note|warn)\([\'\"]x',
   117      "warning: unwrapped ui message"),
   117      "warning: unwrapped ui message"),
   118 ]
   118 ]
   119 
   119 
   120 pyfilters = [
   120 pyfilters = [
   121     (r"""(?msx)(?P<comment>\#.*?$)|
   121     (r"""(?msx)(?P<comment>\#.*?$)|