Skip to content

Instantly share code, notes, and snippets.

@nhomar
Created June 17, 2019 00:31
Show Gist options
  • Save nhomar/4f50821b5470557e9c273eead6d720d3 to your computer and use it in GitHub Desktop.
Save nhomar/4f50821b5470557e9c273eead6d720d3 to your computer and use it in GitHub Desktop.
[MASTER]
profile=no
ignore=CVS,.git,scenarios,.bzr
persistent=yes
cache-size=500
load-plugins=pylint.extensions.docstyle, pylint.extensions.mccabe
[ODOOLINT]
readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst"
manifest_required_authors=Vauxoo,
Odoo Community Association (OCA),
Jarsa Sistemas,
manifest_required_keys=license
manifest_deprecated_keys=description,active
[MESSAGES CONTROL]
disable=all
enable=api-one-deprecated,
api-one-multi-together,
attribute-deprecated,
attribute-string-redundant,
class-camelcase,
consider-merging-classes-inherited,
copy-wo-api-one,
create-user-wo-reset-password,
dangerous-filter-wo-user,
dangerous-view-replace-wo-priority,
duplicate-id-csv,
duplicate-xml-fields,
duplicate-xml-record-id,
except-pass,
eval-referenced,
file-not-used,
incoherent-interpreter-exec-perm,
invalid-commit,
javascript-lint,
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,
missing-newline-extrafiles,
missing-readme,
missing-return,
no-utf8-coding-comment,
odoo-addons-relative-import,
openerp-exception-warning,
redundant-modulename-xml,
renamed-field-parameter,
rst-syntax-error,
sql-injection,
translation-field,
too-complex,
use-vim-comment,
useless-super-delegation,
xml-attribute-translatable,
xml-syntax-error,
translation-required,
translation-contains-variable,
wrong-tabs-instead-of-spaces,
prefer-other-formatting,
deprecated-openerp-xml-node,
deprecated-data-xml-node,
# pylint-odoo ignored: deprecated-openerp-xml-node
[REPORTS]
msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}
output-format=colorized
files-output=no
reports=no
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
[FORMAT]
indent-string=' '
expected-line-ending-format=LF
[BASIC]
class-rgx=[A-Z_][a-zA-Z0-9]{2,45}
module-rgx=.*
const-rgx=.*
function-rgx=.*
method-rgx=.*
attr-rgx=.*
argument-rgx=.*
variable-rgx=.*
inlinevar-rgx=.*
[SIMILARITIES]
ignore-comments=yes
ignore-docstrings=yes
[MISCELLANEOUS]
notes=FIXME,TODO
[IMPORTS]
deprecated-modules=openerp.osv
[DESIGN]
# McCabe complexity cyclomatic threshold for too-complex check
# Value definied from https://en.wikipedia.org/wiki/Cyclomatic_complexity
# - The figure of 10 had received substantial corroborating evidence,
#  but that in some circumstances it may be appropriate to relax the restriction
# and permit modules with a complexity as high as 15
max-complexity=10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment