Mercurial > public > mercurial-scm > hg
comparison contrib/check-code.py @ 11601:4d9b4725acac
Merge with stable
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Fri, 16 Jul 2010 14:45:52 +0200 |
parents | f8576644a222 6fcc066c0c2c |
children | ba2520dd1e29 |
comparison
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>\#.*?$)| |