pylintrc 5.1 KB

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