Mercurial > public > mercurial-scm > hg-stable
comparison contrib/check-code.py @ 11599:6fcc066c0c2c stable
check-code: warn about untranslated ui.warn calls
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Fri, 16 Jul 2010 14:40:57 +0200 |
parents | eaa7666ad53f |
children | 4d9b4725acac 932448701e7d |
comparison
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>\#.*?$)| |