Mercurial > public > mercurial-scm > hg
comparison contrib/check-code.py @ 14303:e2be0bba0d83
check-code: add /= to operator list
author | Sune Foldager <cryo@cyanite.org> |
---|---|
date | Thu, 12 May 2011 18:19:28 +0200 |
parents | 6332c02b3d68 |
children | 1ffeeb91c55d |
comparison
equal
deleted
inserted
replaced
14302:b0f97b2589cc | 14303:e2be0bba0d83 |
---|---|
155 "missing whitespace around operator"), | 155 "missing whitespace around operator"), |
156 (r'[^>< ](\+=|-=|!=|<>|<=|>=|<<=|>>=)\s', | 156 (r'[^>< ](\+=|-=|!=|<>|<=|>=|<<=|>>=)\s', |
157 "missing whitespace around operator"), | 157 "missing whitespace around operator"), |
158 (r'\s(\+=|-=|!=|<>|<=|>=|<<=|>>=)\S', | 158 (r'\s(\+=|-=|!=|<>|<=|>=|<<=|>>=)\S', |
159 "missing whitespace around operator"), | 159 "missing whitespace around operator"), |
160 (r'[^+=*!<>&| -](\s=|=\s)[^= ]', | 160 (r'[^+=*/!<>&| -](\s=|=\s)[^= ]', |
161 "wrong whitespace around ="), | 161 "wrong whitespace around ="), |
162 (r'raise Exception', "don't raise generic exceptions"), | 162 (r'raise Exception', "don't raise generic exceptions"), |
163 (r' is\s+(not\s+)?["\'0-9-]', "object comparison with literal"), | 163 (r' is\s+(not\s+)?["\'0-9-]', "object comparison with literal"), |
164 (r' [=!]=\s+(True|False|None)', | 164 (r' [=!]=\s+(True|False|None)', |
165 "comparison with singleton, use 'is' or 'is not' instead"), | 165 "comparison with singleton, use 'is' or 'is not' instead"), |