OpenStack Dashboard (Horizon)
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.

.pylintrc 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. # The format of this file isn't really documented; just use --generate-rcfile
  2. [MASTER]
  3. # Add <file or directory> to the black list. It should be a base name, not a
  4. # path. You may set this option multiple times.
  5. ignore=test,tests,tests.py,local_settings.py
  6. [Messages Control]
  7. disable=
  8. # "F" Fatal errors that prevent further processing
  9. # "I" Informational noise
  10. locally-disabled,
  11. # "E" Error for important programming issues (likely bugs)
  12. access-member-before-definition,
  13. assignment-from-no-return,
  14. bad-super-call,
  15. import-error,
  16. logging-too-few-args,
  17. method-hidden,
  18. misplaced-bare-raise,
  19. no-member,
  20. no-name-in-module,
  21. not-an-iterable,
  22. not-callable,
  23. raising-non-exception,
  24. redundant-keyword-arg,
  25. undefined-all-variable,
  26. unexpected-keyword-arg,
  27. # "W" Warnings for stylistic problems or minor programming issues
  28. arguments-differ,
  29. attribute-defined-outside-init,
  30. bad-indentation,
  31. broad-except,
  32. cell-var-from-loop,
  33. dangerous-default-value,
  34. deprecated-method, # TODO
  35. exec-used,
  36. fixme,
  37. keyword-arg-before-vararg, # TODO
  38. logging-not-lazy,
  39. pointless-string-statement,
  40. protected-access,
  41. raising-format-tuple,
  42. redefined-builtin,
  43. redefined-outer-name,
  44. reimported,
  45. signature-differs,
  46. super-init-not-called,
  47. undefined-loop-variable,
  48. unidiomatic-typecheck,
  49. unnecessary-pass,
  50. unused-argument,
  51. unused-import,
  52. unused-wildcard-import,
  53. useless-else-on-loop,
  54. useless-super-delegation,
  55. using-constant-test,
  56. wildcard-import,
  57. # "C" Coding convention violations
  58. abstract-method,
  59. anomalous-backslash-in-string,
  60. bad-builtin,
  61. bad-continuation,
  62. bad-mcs-classmethod-argument,
  63. deprecated-lambda,
  64. expression-not-assigned,
  65. global-statement,
  66. invalid-name,
  67. len-as-condition,
  68. line-too-long,
  69. misplaced-comparison-constant,
  70. missing-docstring,
  71. no-method-argument,
  72. superfluous-parens,
  73. too-many-lines,
  74. try-except-raise,
  75. ungrouped-imports,
  76. unused-variable,
  77. wrong-import-order, # TODO
  78. # "R" Refactor recommendations
  79. chained-comparison,
  80. comparison-with-itself,
  81. consider-using-dict-comprehension,
  82. consider-using-in,
  83. consider-using-set-comprehension,
  84. cyclic-import, # TODO
  85. duplicate-code,
  86. inconsistent-return-statements, # TODO
  87. interface-not-implemented,
  88. no-else-return,
  89. no-self-use,
  90. redefined-argument-from-local,
  91. simplifiable-if-expression,
  92. simplifiable-if-statement,
  93. too-many-ancestors,
  94. too-many-arguments,
  95. too-many-branches,
  96. too-many-function-args,
  97. too-many-instance-attributes,
  98. too-many-locals,
  99. too-many-nested-blocks,
  100. too-many-return-statements,
  101. too-many-statements,
  102. trailing-comma-tuple,
  103. useless-object-inheritance
  104. [Basic]
  105. # Variable names can be 1 to 31 characters long, with lowercase and underscores
  106. variable-rgx=[a-z_][a-z0-9_]{0,30}$
  107. # Argument names can be 2 to 31 characters long, with lowercase and underscores
  108. argument-rgx=[a-z_][a-z0-9_]{1,30}$
  109. # Method names should be at least 3 characters long
  110. # and be lowecased with underscores
  111. method-rgx=([a-z_][a-z0-9_]{2,50}|setUp|tearDown)$
  112. # Module names matching keystone-* are ok (files in bin/)
  113. module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+)|(keystone-[a-z0-9_-]+))$
  114. # Don't require docstrings on tests.
  115. no-docstring-rgx=((__.*__)|([tT]est.*)|setUp|tearDown)$
  116. [Format]
  117. # Maximum number of characters on a single line.
  118. max-line-length=80
  119. [Design]
  120. max-public-methods=100
  121. min-public-methods=0
  122. max-args=6
  123. [Variables]
  124. # List of additional names supposed to be defined in builtins. Remember that
  125. # you should avoid to define new builtins when possible.
  126. # _ is used by our localization
  127. additional-builtins=_
  128. [typecheck]
  129. # List of module names for which member attributes should not be checked
  130. ignored-modules=six.moves,_MovedItems
  131. [reports]
  132. # Tells whether to display a full report or only the messages
  133. reports=no