From 8c4c5b0b90b2d73fc2b76ca242928606479db33c Mon Sep 17 00:00:00 2001 From: "Moises Lopez - https://www.vauxoo.com/" Date: Fri, 10 Sep 2021 13:21:47 -0500 Subject: [PATCH] [REF] README: Auto-update Using pylint_odoo.messages2rst() --- README.rst | 4 ++++ pylint_odoo/checkers/no_modules.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 8501a301..aec32dbc 100644 --- a/README.rst +++ b/README.rst @@ -97,6 +97,8 @@ Enable custom checks for Odoo modules. +-------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------+ | W7940 | %s Dangerous use of "replace" from view with priority %s < %s | dangerous-view-replace-wo-priority | +-------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------+ +| W7941 | %s Dangerous use of "replace" from view with priority %s < %s | dangerous-qweb-replace-wo-priority | ++-------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------+ | W7942 | %s Deprecated xml attribute "%s" | xml-deprecated-tree-attribute | +-------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------+ | W7943 | %s Deprecated QWeb directive "%s". Use "t-options" instead | xml-deprecated-qweb-directive | @@ -137,6 +139,8 @@ Enable custom checks for Odoo modules. +-------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------+ | W8120 | Translation method _(%s) is using positional string printf formatting. Use named placeholder ``_("%%(placeholder)s")`` instead. | translation-positional-used | +-------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------+ +| W8121 | Context overridden using dict. Better using kwargs ``with_context(**%s)`` or ``with_context(key=value)`` | context-overridden | ++-------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------+ | W8201 | You have a python file with execution permissions but you don't have an interpreter magic comment, or a magic comment but no execution permission. If you really needs a execution permission then add a magic comment ( https://en.wikipedia.org/wiki/Shebang_(Unix) ). If you don't needs a execution permission then remove it with: chmod -x %s | incoherent-interpreter-exec-perm | +-------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------+ | W8202 | Use of vim comment | use-vim-comment | diff --git a/pylint_odoo/checkers/no_modules.py b/pylint_odoo/checkers/no_modules.py index 55521c9e..cca22fcd 100644 --- a/pylint_odoo/checkers/no_modules.py +++ b/pylint_odoo/checkers/no_modules.py @@ -247,7 +247,7 @@ ), 'W%d21' % settings.BASE_NOMODULE_ID: ( 'Context overridden using dict. ' - 'Better using kwargs "with_context(**%s)" or "with_context(key=value)"', + 'Better using kwargs `with_context(**%s)` or `with_context(key=value)`', 'context-overridden', settings.DESC_DFLT ),