@@ -3,14 +3,20 @@ load-plugins=pylint_odoo
33score =n
44
55[ODOOLINT]
6- readme_template_url =" https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst"
76manifest_required_keys =license
87manifest_deprecated_keys =description,active
98license_allowed =AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3
109
1110[MESSAGES CONTROL]
1211disable =all
1312
13+ # This .pylintrc contains optional AND mandatory checks and is meant to be
14+ # loaded in an IDE to have it check everything, in the hope this will make
15+ # optional checks more visible to contributors who otherwise never look at a
16+ # green travis to see optional checks that failed.
17+ # .pylintrc-mandatory containing only mandatory checks is used the pre-commit
18+ # config as a blocking check.
19+
1420enable =anomalous-backslash-in-string,
1521 api-one-deprecated,
1622 api-one-multi-together,
@@ -19,6 +25,7 @@ enable=anomalous-backslash-in-string,
1925 class-camelcase,
2026 dangerous-default-value,
2127 dangerous-view-replace-wo-priority,
28+ development-status-allowed,
2229 duplicate-id-csv,
2330 duplicate-key,
2431 duplicate-xml-fields,
@@ -35,8 +42,6 @@ enable=anomalous-backslash-in-string,
3542 method-inverse,
3643 method-required-super,
3744 method-search,
38- missing-import-error,
39- missing-manifest-dependency,
4045 openerp-exception-warning,
4146 pointless-statement,
4247 pointless-string-statement,
@@ -54,7 +59,56 @@ enable=anomalous-backslash-in-string,
5459 unreachable,
5560 use-vim-comment,
5661 wrong-tabs-instead-of-spaces,
57- xml-syntax-error
62+ xml-syntax-error,
63+ attribute-string-redundant,
64+ character-not-valid-in-resource-link,
65+ consider-merging-classes-inherited,
66+ context-overridden,
67+ create-user-wo-reset-password,
68+ dangerous-filter-wo-user,
69+ dangerous-qweb-replace-wo-priority,
70+ deprecated-data-xml-node,
71+ deprecated-openerp-xml-node,
72+ duplicate-po-message-definition,
73+ except-pass,
74+ file-not-used,
75+ invalid-commit,
76+ manifest-maintainers-list,
77+ missing-newline-extrafiles,
78+ missing-readme,
79+ missing-return,
80+ odoo-addons-relative-import,
81+ old-api7-method-defined,
82+ po-msgstr-variables,
83+ po-syntax-error,
84+ renamed-field-parameter,
85+ resource-not-exist,
86+ str-format-used,
87+ test-folder-imported,
88+ translation-contains-variable,
89+ translation-positional-used,
90+ unnecessary-utf8-coding-comment,
91+ website-manifest-key-not-valid-uri,
92+ xml-attribute-translatable,
93+ xml-deprecated-qweb-directive,
94+ xml-deprecated-tree-attribute,
95+ # messages that do not cause the lint step to fail
96+ consider-merging-classes-inherited,
97+ create-user-wo-reset-password,
98+ dangerous-filter-wo-user,
99+ deprecated-module,
100+ file-not-used,
101+ invalid-commit,
102+ missing-manifest-dependency,
103+ missing-newline-extrafiles,
104+ missing-readme,
105+ no-utf8-coding-comment,
106+ odoo-addons-relative-import,
107+ old-api7-method-defined,
108+ redefined-builtin,
109+ too-complex,
110+ unnecessary-utf8-coding-comment
111+
58112
59113[REPORTS]
60114msg-template ={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}
0 commit comments