comparison contrib/check-code.py @ 52637:3b6f25190157

check-code: reference the `noi18n` methods in the missing `_()` message The regex is complex enough, so I'm not bothering with figuring out how to detect and fail the older style of wrapping the constant string in `()`.
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 06 Jan 2025 13:54:40 -0500
parents 1c23faf64ad4
children 24ee91ba9aa8
comparison
equal deleted inserted replaced
52636:0e11e532c958 52637:3b6f25190157
469 (['"]|\'\'\'|""") 469 (['"]|\'\'\'|""")
470 ((%([ n]?[PM]?([np]+|A))?x)|%%|b[bnx]|[ \nnpqAPMo])*x 470 ((%([ n]?[PM]?([np]+|A))?x)|%%|b[bnx]|[ \nnpqAPMo])*x
471 (?# this regexp can't use [^...] style, 471 (?# this regexp can't use [^...] style,
472 # because _preparepats forcibly adds "\n" into [^...], 472 # because _preparepats forcibly adds "\n" into [^...],
473 # even though this regexp wants match it against "\n")''', 473 # even though this regexp wants match it against "\n")''',
474 "missing _() in ui message (use () to hide false-positives)", 474 "missing _() in ui message (use `noi18n` method to hide false-positives)",
475 ), 475 ),
476 ] 476 ]
477 + commonpypats[0], 477 + commonpypats[0],
478 # warnings 478 # warnings
479 [ 479 [