pylintrc 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. [MASTER]
  2. persistent=no
  3. ignore=tests,
  4. ui_about.py,
  5. ui_backupdlg.py,
  6. ui_bootfromdevice.py,
  7. ui_globalsettingsdlg.py,
  8. ui_informationnotes.py,
  9. ui_logdlg.py,
  10. ui_multiselectwidget.py,
  11. ui_newappvmdlg.py,
  12. ui_newfwruledlg.py,
  13. ui_releasenotes.py,
  14. ui_restoredlg.py,
  15. ui_settingsdlg.py,
  16. resources_rc.py
  17. [MESSAGES CONTROL]
  18. # abstract-class-little-used: see http://www.logilab.org/ticket/111138
  19. # deprecated-method:
  20. # enable again after disabling py-3.4.3 asyncio.ensure_future compat hack
  21. disable=
  22. abstract-class-little-used,
  23. bad-continuation,
  24. cyclic-import,
  25. deprecated-method,
  26. duplicate-code,
  27. file-ignored,
  28. fixme,
  29. inconsistent-return-statements,
  30. locally-disabled,
  31. locally-enabled,
  32. logging-format-interpolation,
  33. missing-docstring,
  34. star-args,
  35. useless-super-delegation,
  36. wrong-import-order
  37. [REPORTS]
  38. # Set the output format. Available formats are text, parseable, colorized, msvs
  39. # (visual studio) and html
  40. output-format=colorized
  41. #files-output=no
  42. reports=yes
  43. [TYPECHECK]
  44. #ignored-classes=
  45. ignore-mixin-members=yes
  46. generated-members=
  47. iter_entry_points,
  48. Element,ElementTree,QName,SubElement,fromstring,parse,tostring,
  49. [BASIC]
  50. # List of builtins function names that should not be used, separated by a comma
  51. bad-functions=
  52. # Regular expression which should only match correct module names
  53. module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
  54. # Regular expression which should only match correct module level names
  55. const-rgx=(([A-Za-z_][A-Za-z0-9_]*)|(__.*__))$
  56. # Regular expression which should only match correct class names
  57. class-rgx=([A-Z_][a-zA-Z0-9]+|TC_\d\d_[a-zA-Z0-9_]+)$
  58. # Regular expression which should only match correct function names
  59. function-rgx=[a-z_][a-z0-9_]{2,30}$
  60. # Regular expression which should only match correct method names
  61. method-rgx=[a-z_][a-z0-9_]{2,30}$
  62. # Regular expression which should only match correct instance attribute names
  63. attr-rgx=[a-z_][a-z0-9_]{2,30}$
  64. # Regular expression which should only match correct argument names
  65. argument-rgx=[a-z_][a-z0-9_]{2,30}$
  66. # Regular expression which should only match correct variable names
  67. variable-rgx=[a-z_][a-z0-9_]{2,30}$
  68. # Regular expression which should only match correct list comprehension /
  69. # generator expression variable names
  70. inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
  71. # Good variable names which should always be accepted, separated by a comma
  72. good-names=e,i,j,k,m,p,v,ex,Run,_,log,vm,ok,ip
  73. # Bad variable names which should always be refused, separated by a comma
  74. bad-names=foo,bar,baz,toto,tutu,tata
  75. # Regular expression which should only match functions or classes name which do
  76. # not require a docstring
  77. no-docstring-rgx=__.*__
  78. [MISCELLANEOUS]
  79. # List of note tags to take in consideration, separated by a comma.
  80. notes=FIXME,FIX,XXX,TODO
  81. [FORMAT]
  82. # Maximum number of characters on a single line.
  83. max-line-length=80
  84. # Maximum number of lines in a module
  85. max-module-lines=3000
  86. # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
  87. # tab).
  88. indent-string=' '
  89. [VARIABLES]
  90. # Tells whether we should check for unused import in __init__ files.
  91. init-import=no
  92. # A regular expression matching the beginning of the name of dummy variables
  93. # (i.e. not used).
  94. dummy-variables-rgx=_|dummy
  95. [SIMILARITIES]
  96. # Minimum lines number of a similarity.
  97. min-similarity-lines=4
  98. # Ignore comments when computing similarities.
  99. ignore-comments=yes
  100. # Ignore docstrings when computing similarities.
  101. ignore-docstrings=yes
  102. [CLASSES]
  103. # List of method names used to declare (i.e. assign) instance attributes.
  104. defining-attr-methods=__init__,__new__,setUp
  105. # List of valid names for the first argument in a class method.
  106. valid-classmethod-first-arg=cls
  107. [IMPORTS]
  108. # Deprecated modules which should not be used, separated by a comma
  109. deprecated-modules=regsub,TERMIOS,Bastion,rexec
  110. # Create a graph of every (i.e. internal and external) dependencies in the
  111. # given file (report RP0402 must not be disabled)
  112. import-graph=
  113. # Create a graph of external dependencies in the given file (report RP0402 must
  114. # not be disabled)
  115. ext-import-graph=
  116. # Create a graph of internal dependencies in the given file (report RP0402 must
  117. # not be disabled)
  118. int-import-graph=
  119. [DESIGN]
  120. # Maximum number of arguments for function / method
  121. max-args=35
  122. # Argument names that match this expression will be ignored. Default to name
  123. # with leading underscore
  124. ignored-argument-names=_.*
  125. # Maximum number of locals for function / method body
  126. # Let's have max-args + 5
  127. max-locals=40
  128. # Maximum number of return / yield for function / method body
  129. max-returns=6
  130. # Maximum number of branch for function / method body
  131. # 4x the default value
  132. max-branches=48
  133. # Maximum number of statements in function / method body
  134. # Double default
  135. max-statements=100
  136. # Maximum number of parents for a class (see R0901).
  137. max-parents=7
  138. # Maximum number of attributes for a class (see R0902).
  139. max-attributes=15
  140. # Minimum number of public methods for a class (see R0903).
  141. min-public-methods=2
  142. # Maximum number of public methods for a class (see R0904).
  143. max-public-methods=100
  144. [EXCEPTIONS]
  145. # Exceptions that will emit a warning when being caught. Defaults to
  146. # "Exception"
  147. overgeneral-exceptions=Exception,EnvironmentError
  148. # vim: ft=conf