contrib/check-code.py
branchstable
changeset 11599 6fcc066c0c2c
parent 11522 eaa7666ad53f
child 11601 4d9b4725acac
child 11884 932448701e7d
equal deleted inserted replaced
11571:636554d58665 11599:6fcc066c0c2c
   106     (r'\s(\+=|-=|!=|<>|<=|>=|<<=|>>=)\S',
   106     (r'\s(\+=|-=|!=|<>|<=|>=|<<=|>>=)\S',
   107      "missing whitespace around operator"),
   107      "missing whitespace around operator"),
   108     (r'[^+=*!<>&| -](\s=|=\s)[^= ]',
   108     (r'[^+=*!<>&| -](\s=|=\s)[^= ]',
   109      "wrong whitespace around ="),
   109      "wrong whitespace around ="),
   110     (r'raise Exception', "don't raise generic exceptions"),
   110     (r'raise Exception', "don't raise generic exceptions"),
   111     (r'ui\.(status|progress|write|note)\([\'\"]x',
   111     (r'ui\.(status|progress|write|note|warn)\([\'\"]x',
   112      "warning: unwrapped ui message"),
   112      "warning: unwrapped ui message"),
   113 ]
   113 ]
   114 
   114 
   115 pyfilters = [
   115 pyfilters = [
   116     (r"""(?msx)(?P<comment>\#.*?$)|
   116     (r"""(?msx)(?P<comment>\#.*?$)|