pylintrc 5.1 KB

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