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 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. method-hidden,
  13. no-member,
  14. not-callable,
  15. # "W" Warnings for stylistic problems or minor programming issues
  16. arguments-differ,
  17. attribute-defined-outside-init,
  18. bad-indentation,
  19. broad-except,
  20. deprecated-method, # TODO
  21. fixme,
  22. keyword-arg-before-vararg, # TODO
  23. pointless-string-statement,
  24. protected-access,
  25. redefined-builtin,
  26. redefined-outer-name,
  27. signature-differs,
  28. super-init-not-called,
  29. unidiomatic-typecheck,
  30. unused-argument,
  31. unused-wildcard-import,
  32. useless-else-on-loop,
  33. wildcard-import,
  34. # "C" Coding convention violations
  35. abstract-method,
  36. anomalous-backslash-in-string,
  37. bad-builtin,
  38. bad-continuation,
  39. deprecated-lambda,
  40. global-statement,
  41. invalid-name,
  42. missing-docstring,
  43. superfluous-parens,
  44. too-many-lines,
  45. unused-variable,
  46. wrong-import-order, # TODO
  47. # "R" Refactor recommendations
  48. duplicate-code,
  49. inconsistent-return-statements, # TODO
  50. interface-not-implemented,
  51. no-else-return,
  52. no-self-use,
  53. too-many-ancestors,
  54. too-many-arguments,
  55. too-many-branches,
  56. too-many-function-args,
  57. too-many-instance-attributes,
  58. too-many-locals,
  59. too-many-return-statements,
  60. too-many-statements,
  61. useless-object-inheritance
  62. [Basic]
  63. # Variable names can be 1 to 31 characters long, with lowercase and underscores
  64. variable-rgx=[a-z_][a-z0-9_]{0,30}$
  65. # Argument names can be 2 to 31 characters long, with lowercase and underscores
  66. argument-rgx=[a-z_][a-z0-9_]{1,30}$
  67. # Method names should be at least 3 characters long
  68. # and be lowecased with underscores
  69. method-rgx=([a-z_][a-z0-9_]{2,50}|setUp|tearDown)$
  70. # Module names matching keystone-* are ok (files in bin/)
  71. module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+)|(keystone-[a-z0-9_-]+))$
  72. # Don't require docstrings on tests.
  73. no-docstring-rgx=((__.*__)|([tT]est.*)|setUp|tearDown)$
  74. [Format]
  75. # Maximum number of characters on a single line.
  76. max-line-length=80
  77. [Design]
  78. max-public-methods=100
  79. min-public-methods=0
  80. max-args=6
  81. [Variables]
  82. # List of additional names supposed to be defined in builtins. Remember that
  83. # you should avoid to define new builtins when possible.
  84. # _ is used by our localization
  85. additional-builtins=_
  86. [typecheck]
  87. # List of module names for which member attributes should not be checked
  88. ignored-modules=six.moves,_MovedItems
  89. [reports]
  90. # Tells whether to display a full report or only the messages
  91. reports=no