.pylintrc 5.2 KB

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