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.

156 lines
4.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=12.0
  11. [MESSAGES CONTROL]
  12. disable=all
  13. # Enable message and code:
  14. # anomalous-backslash-in-string - W1401
  15. # assignment-from-none - W1111
  16. # dangerous-default-value - W0102
  17. # duplicate-key - W0109
  18. # missing-import-error - W7935
  19. # missing-manifest-dependency - W7936
  20. # pointless-statement - W0104
  21. # pointless-string-statement - W0105
  22. # print-statement - E1601
  23. # redundant-keyword-arg - E1124
  24. # reimported - W0404
  25. # relative-import - W0403
  26. # return-in-init - E0101
  27. # rst-syntax-error - E7901
  28. # too-few-format-args - E1306
  29. # unreachable - W0101
  30. # This .pylintrc contains optional AND mandatory checks and is meant to be
  31. # loaded in an IDE to have it check everything, in the hope this will make
  32. # optional checks more visible to contributors who otherwise never look at a
  33. # green travis to see optional checks that failed.
  34. # .pylintrc-mandatory containing only mandatory checks is used the pre-commit
  35. # config as a blocking check.
  36. # Beta message and code:
  37. # api-one-deprecated - W8104
  38. # api-one-multi-together - W8101
  39. # attribute-deprecated - W8105
  40. # class-camelcase - C8104
  41. # create-user-wo-reset-password - W7905
  42. # consider-merging-classes-inherited - R7980
  43. # copy-wo-api-one - W8102
  44. # dangerous-filter-wo-user - W7901
  45. # dangerous-view-replace-wo-priority - W7940
  46. # deprecated-module - W0402
  47. # duplicate-id-csv - W7906
  48. # duplicate-xml-fields - W7907
  49. # duplicate-xml-record-id - W7902
  50. # file-not-used - W7930
  51. # incoherent-interpreter-exec-perm - W8201
  52. # invalid-commit - E8102
  53. # javascript-lint - W7903
  54. # manifest-deprecated-key - C8103
  55. # method-compute - C8108
  56. # method-inverse - C8110
  57. # method-required-super - W8106
  58. # method-search - C8109
  59. # missing-newline-extrafiles - W7908
  60. # missing-readme - C7902
  61. # no-utf8-coding-comment - C8201
  62. # unnecessary-utf8-coding-comment - C8202
  63. # odoo-addons-relative-import - W7950
  64. # old-api7-method-defined - R8110
  65. # openerp-exception-warning - R8101
  66. # redundant-modulename-xml - W7909
  67. # sql-injection - E8103
  68. # too-complex - C0901
  69. # translation-field - W8103
  70. # translation-required - C8107
  71. # use-vim-comment - W8202
  72. # wrong-tabs-instead-of-spaces - W7910
  73. # xml-syntax-error - E7902
  74. enable=anomalous-backslash-in-string,
  75. assignment-from-none,
  76. dangerous-default-value,
  77. development-status-allowed,
  78. duplicate-key,
  79. duplicate-po-message-definition,
  80. missing-import-error,
  81. missing-manifest-dependency,
  82. po-msgstr-variables,
  83. po-syntax-error,
  84. pointless-statement,
  85. pointless-string-statement,
  86. print-used,
  87. redundant-keyword-arg,
  88. reimported,
  89. relative-import,
  90. return-in-init,
  91. rst-syntax-error,
  92. too-few-format-args,
  93. unreachable,
  94. eval-used,
  95. eval-referenced,
  96. license-allowed,
  97. manifest-author-string,
  98. manifest-required-author,
  99. manifest-required-key,
  100. manifest-version-format,
  101. api-one-deprecated,
  102. api-one-multi-together,
  103. attribute-deprecated,
  104. class-camelcase,
  105. create-user-wo-reset-password,
  106. consider-merging-classes-inherited,
  107. copy-wo-api-one,
  108. dangerous-filter-wo-user,
  109. dangerous-view-replace-wo-priority,
  110. deprecated-module,
  111. duplicate-id-csv,
  112. duplicate-po-message-definition,
  113. duplicate-xml-fields,
  114. duplicate-xml-record-id,
  115. file-not-used,
  116. incoherent-interpreter-exec-perm,
  117. invalid-commit,
  118. javascript-lint,
  119. manifest-deprecated-key,
  120. method-compute,
  121. method-inverse,
  122. method-required-super,
  123. method-search,
  124. missing-newline-extrafiles,
  125. missing-readme,
  126. po-msgstr-variables,
  127. po-syntax-error,
  128. no-utf8-coding-comment,
  129. unnecessary-utf8-coding-comment,
  130. odoo-addons-relative-import,
  131. old-api7-method-defined,
  132. openerp-exception-warning,
  133. redefined-builtin,
  134. redundant-modulename-xml,
  135. sql-injection,
  136. too-complex,
  137. translation-field,
  138. translation-required,
  139. use-vim-comment,
  140. wrong-tabs-instead-of-spaces,
  141. xml-syntax-error,
  142. [REPORTS]
  143. msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}
  144. output-format=colorized
  145. reports=no