Mercurial > public > mercurial-scm > hg-stable
diff contrib/check-code.py @ 52662: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 |
line wrap: on
line diff
--- a/contrib/check-code.py Mon Jan 06 13:29:42 2025 -0500 +++ b/contrib/check-code.py Mon Jan 06 13:54:40 2025 -0500 @@ -471,7 +471,7 @@ (?# this regexp can't use [^...] style, # because _preparepats forcibly adds "\n" into [^...], # even though this regexp wants match it against "\n")''', - "missing _() in ui message (use () to hide false-positives)", + "missing _() in ui message (use `noi18n` method to hide false-positives)", ), ] + commonpypats[0],