comparison contrib/check-code.py @ 19998:289bbb294e82 stable

check-code: check comment for '.. note::' without two newlines Because string entries are replaced before matching, we must search for the transformed pattern. But it seems to be quite unique and does not return false matches. If it will, they can be listed as 3rd arg in pypats.
author Simon Heimberg <simohe@besonet.ch>
date Tue, 05 Nov 2013 09:00:31 +0100
parents f1dd988a8bcc
children 169cb9e47f8e
comparison
equal deleted inserted replaced
19997:de16c673455b 19998:289bbb294e82
261 "missing _() in ui message (use () to hide false-positives)"), 261 "missing _() in ui message (use () to hide false-positives)"),
262 (r'release\(.*wlock, .*lock\)', "wrong lock release order"), 262 (r'release\(.*wlock, .*lock\)', "wrong lock release order"),
263 ], 263 ],
264 # warnings 264 # warnings
265 [ 265 [
266 (r'(^| )oo +xxxxoo[ \n][^\n]', "add two newlines after '.. note::'"),
266 ] 267 ]
267 ] 268 ]
268 269
269 pyfilters = [ 270 pyfilters = [
270 (r"""(?msx)(?P<comment>\#.*?$)| 271 (r"""(?msx)(?P<comment>\#.*?$)|