Can't disable class-camelcase
Closed this issue · 1 comments
obayit commented
I have a .pylintrc
copied from the oca/web
repository, and I deleted the class-camelcase
from the file but the warning still shows!
My .pylintrc
file:
[MASTER]
load-plugins=pylint_odoo
score=n
[ODOOLINT]
#readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst"
manifest_required_authors=MyCompany
#manifest_required_keys=license
manifest_deprecated_keys=description,active
license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3,OPL-1
valid_odoo_versions=14.0
[MESSAGES CONTROL]
disable=all
# This .pylintrc contains optional AND mandatory checks and is meant to be
# loaded in an IDE to have it check everything, in the hope this will make
# optional checks more visible to contributors who otherwise never look at a
# green travis to see optional checks that failed.
# .pylintrc-mandatory containing only mandatory checks is used the pre-commit
# config as a blocking check.
enable=anomalous-backslash-in-string,
api-one-deprecated,
api-one-multi-together,
assignment-from-none,
attribute-deprecated,
dangerous-default-value,
dangerous-view-replace-wo-priority,
development-status-allowed,
duplicate-id-csv,
duplicate-key,
duplicate-xml-fields,
duplicate-xml-record-id,
eval-referenced,
eval-used,
incoherent-interpreter-exec-perm,
license-allowed,
manifest-author-string,
manifest-deprecated-key,
manifest-required-author,
manifest-required-key,
manifest-version-format,
method-compute,
method-inverse,
method-required-super,
method-search,
missing-import-error,
missing-manifest-dependency,
openerp-exception-warning,
pointless-statement,
pointless-string-statement,
print-used,
redundant-keyword-arg,
redundant-modulename-xml,
reimported,
relative-import,
return-in-init,
rst-syntax-error,
sql-injection,
too-few-format-args,
translation-field,
translation-required,
unreachable,
use-vim-comment,
wrong-tabs-instead-of-spaces,
xml-syntax-error,
# messages that do not cause the lint step to fail
consider-merging-classes-inherited,
create-user-wo-reset-password,
dangerous-filter-wo-user,
deprecated-module,
file-not-used,
invalid-commit,
missing-newline-extrafiles,
missing-readme,
no-utf8-coding-comment,
odoo-addons-relative-import,
old-api7-method-defined,
redefined-builtin,
too-complex,
unnecessary-utf8-coding-comment
[REPORTS]
msg-template={path}:{module}:{line}: [{msg_id}({symbol}), {obj}] {msg}
But the class-camelcase
warning still shows in the output of the command:
python3 -m pylint --load-plugins=pylint_odoo -e odoolint --rcfile=./.pylintrc module_name
The warning:
************* Module module_name.models.paper_request
module_name/models/paper_request.py:module_name.models.paper_request:4: [C8104(class-camelcase), paper_request] Use `CamelCase` "PaperRequest" in class name "paper_request". You can use oca-autopep8 of https://github.com/OCA/maintainer-tools to auto fix it.
This might be related to #298
moylop260 commented
You are re-enabling the checks using the following parameter -e odoolint
Try removing that parameter