You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

120 lines
3.4 KiB

  1. [MASTER]
  2. load-plugins=pylint_odoo
  3. score=n
  4. [ODOOLINT]
  5. readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst"
  6. manifest_required_authors=Odoo Community Association (OCA)
  7. manifest_required_keys=license
  8. manifest_deprecated_keys=description,active
  9. license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3
  10. valid_odoo_versions=15.0
  11. [MESSAGES CONTROL]
  12. disable=all
  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. enable=anomalous-backslash-in-string,
  20. api-one-deprecated,
  21. api-one-multi-together,
  22. assignment-from-none,
  23. attribute-deprecated,
  24. class-camelcase,
  25. dangerous-default-value,
  26. dangerous-view-replace-wo-priority,
  27. development-status-allowed,
  28. duplicate-id-csv,
  29. duplicate-key,
  30. duplicate-xml-fields,
  31. duplicate-xml-record-id,
  32. eval-referenced,
  33. eval-used,
  34. incoherent-interpreter-exec-perm,
  35. license-allowed,
  36. manifest-author-string,
  37. manifest-deprecated-key,
  38. manifest-required-author,
  39. manifest-required-key,
  40. manifest-version-format,
  41. method-compute,
  42. method-inverse,
  43. method-required-super,
  44. method-search,
  45. openerp-exception-warning,
  46. pointless-statement,
  47. pointless-string-statement,
  48. print-used,
  49. redundant-keyword-arg,
  50. redundant-modulename-xml,
  51. reimported,
  52. relative-import,
  53. return-in-init,
  54. rst-syntax-error,
  55. sql-injection,
  56. too-few-format-args,
  57. translation-field,
  58. translation-required,
  59. unreachable,
  60. use-vim-comment,
  61. wrong-tabs-instead-of-spaces,
  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. [REPORTS]
  112. msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}
  113. output-format=colorized
  114. reports=no