Skip to content

Commit

Permalink
[REF] README: Auto-update Using pylint_odoo.messages2rst()
Browse files Browse the repository at this point in the history
  • Loading branch information
moylop260 committed Sep 10, 2021
1 parent f242fca commit 8c4c5b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.rst
Expand Up @@ -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 <tree> xml attribute "%s" | xml-deprecated-tree-attribute |
+-------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------+
| W7943 | %s Deprecated QWeb directive "%s". Use "t-options" instead | xml-deprecated-qweb-directive |
Expand Down Expand Up @@ -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 |
Expand Down
2 changes: 1 addition & 1 deletion pylint_odoo/checkers/no_modules.py
Expand Up @@ -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
),
Expand Down

0 comments on commit 8c4c5b0

Please sign in to comment.