diff options
author | Stephen Finucane <stephenfin@redhat.com> | 2020-05-18 17:09:25 +0100 |
---|---|---|
committer | Stephen Finucane <stephenfin@redhat.com> | 2020-05-27 09:41:30 +0000 |
commit | 45a88f08b4e881f0fc0039dc56c0223139850c64 (patch) | |
tree | 4427743e43890e6168c022adc31480fd24f5d683 /tox.ini | |
parent | 21fecc7060179ab62564db901ea932a1f723020e (diff) | |
download | nova-45a88f08b4e881f0fc0039dc56c0223139850c64.tar.gz |
hacking: Modify checks for translated logs
The N319 check previously asserted that debug-level logs were not
translated. Now that we've removed all log translations, we can
generalize this to all logs. We reuse the same number since these
numbers are really just metadata and not public contracts.
This also allows us to update the N323 and N326 checks, which ensure we
import the translation function, '_', wherever it's used and don't
concatenate translated and non-translated strings. Since we're no longer
translating logs and the '_LE', '_LW' and '_LI' symbols are no longer
provided, we don't need to consider logs in either of these cases.
Change-Id: I64d139ad660bc382e8b9d7c8cd03352b26aadafd
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -272,7 +272,7 @@ extension = N316 = checks:assert_true_instance N317 = checks:assert_equal_type N335 = checks:assert_raises_regexp - N319 = checks:no_translate_debug_logs + N319 = checks:no_translate_logs N337 = checks:no_import_translation_in_tests N320 = checks:no_setting_conf_directly_in_tests N322 = checks:no_mutable_default_args |