Fuel tests
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 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481
  1. [MASTER]
  2. # Specify a configuration file.
  3. #rcfile=
  4. # Python code to execute, usually for sys.path manipulation such as
  5. # pygtk.require().
  6. #init-hook=
  7. # Add files or directories to the blacklist. They should be base names, not
  8. # paths.
  9. ignore=CVS, tox, logs
  10. # Pickle collected data for later comparisons.
  11. persistent=yes
  12. # List of plugins (as comma separated values of python modules names) to load,
  13. # usually to register additional checkers.
  14. load-plugins=
  15. # Use multiple processes to speed up Pylint.
  16. jobs=1
  17. # Allow loading of arbitrary C extensions. Extensions are imported into the
  18. # active Python interpreter and may run arbitrary code.
  19. unsafe-load-any-extension=no
  20. # A comma-separated list of package or module names from where C extensions may
  21. # be loaded. Extensions are loading into the active Python interpreter and may
  22. # run arbitrary code
  23. extension-pkg-whitelist=
  24. # Allow optimization of some AST trees. This will activate a peephole AST
  25. # optimizer, which will apply various small optimizations. For instance, it can
  26. # be used to obtain the result of joining multiple strings with the addition
  27. # operator. Joining a lot of strings can lead to a maximum recursion error in
  28. # Pylint and this flag can prevent that. It has one side effect, the resulting
  29. # AST will be different than the one from reality.
  30. optimize-ast=no
  31. [MESSAGES CONTROL]
  32. # Only show warnings with the listed confidence levels. Leave empty to show
  33. # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
  34. confidence=
  35. # Enable the message, report, category or checker with the given id(s). You can
  36. # either give multiple identifier separated by comma (,) or put this option
  37. # multiple time. See also the "--disable" option for examples.
  38. # old-style-class (C1001)
  39. # return-arg-in-generator (E0106)
  40. # slots-on-old-class (E1001)
  41. # super-on-old-class (E1002)
  42. # missing-super-argument (E1004)
  43. # print-statement (E1601)
  44. # parameter-unpacking (E1602)
  45. # unpacking-in-except (E1603)
  46. # old-raise-syntax (E1604)
  47. # backtick (E1605)
  48. # long-suffix (E1606)
  49. # old-ne-operator (E1607)
  50. # old-octal-literal (E1608)
  51. # import-star-module-level (E1609)
  52. # lowercase-l-suffix (W0332)
  53. # deprecated-module (W0402)
  54. # invalid-encoded-data (W0512)
  55. # property-on-old-class (W1001)
  56. # boolean-datetime (W1502)
  57. # deprecated-method (W1505)
  58. # apply-builtin (W1601)
  59. # basestring-builtin (W1602)
  60. # buffer-builtin (W1603)
  61. # cmp-builtin (W1604)
  62. # coerce-builtin (W1605)
  63. # execfile-builtin (W1606)
  64. # file-builtin (W1607)
  65. # long-builtin (W1608)
  66. # raw_input-builtin (W1609)
  67. # reduce-builtin (W1610)
  68. # standarderror-builtin (W1611)
  69. # unicode-builtin (W1612)
  70. # xrange-builtin (W1613)
  71. # coerce-method (W1614)
  72. # delslice-method (W1615)
  73. # getslice-method (W1616)
  74. # setslice-method (W1617)
  75. # old-division (W1619)
  76. # dict-iter-method (W1620)
  77. # dict-view-method (W1621)
  78. # next-method-called (W1622)
  79. # metaclass-assignment (W1623)
  80. # indexing-exception (W1624)
  81. # raising-string (W1625)
  82. # reload-builtin (W1626)
  83. # oct-method (W1627)
  84. # hex-method (W1628)
  85. # nonzero-method (W1629)
  86. # cmp-method (W1630)
  87. # input-builtin (W1632)
  88. # round-builtin (W1633)
  89. # intern-builtin (W1634)
  90. # unichr-builtin (W1635)
  91. # map-builtin-not-iterating (W1636)
  92. # zip-builtin-not-iterating (W1637)
  93. # range-builtin-not-iterating (W1638)
  94. # filter-builtin-not-iterating (W1639)
  95. # filter-builtin-not-iterating (W1639)
  96. # using-cmp-argument (W1640)
  97. enable = E0106,C1001,E1001,E1002,E1004,E1601,E1602,E1603,E1604,E1605,E1606,E1607,E1608,E1609,W0332,W0402,W0512,W1001,W1502,W1505,W1601,W1602,W1603,W1604,W1605,W1606,W1607,W1608,W1609,W1610,W1611,W1612,W1613,W1614,W1615,W1616,W1617,W1619,W1620,W1621,W1622,W1623,W1624,W1625,W1626,W1627,W1628,W1629,W1630,W1632,W1633,W1634,W1635,W1636,W1637,W1638,W1639,W1640,
  98. # Disable the message, report, category or checker with the given id(s). You
  99. # can either give multiple identifiers separated by comma (,) or put this
  100. # option multiple times (only on the command line, not in the configuration
  101. # file where it should appear only once).You can also use "--disable=all" to
  102. # disable everything first and then reenable specific checks. For example, if
  103. # you want to run only the similarities checker, you can use "--disable=all
  104. # --enable=similarities". If you want to run only the classes checker, but have
  105. # no Warning level messages displayed, use"--disable=all --enable=classes
  106. # --disable=W"
  107. # Disabling pointless reports:
  108. # RP0401: External dependencies
  109. # RP0402: Modules dependencies graph
  110. # RP0801: Duplication
  111. # R0801: Duplication
  112. # cyclic-import (R0401) - produces false-negative results
  113. # Disabling messages:
  114. # pointless-string-statement (W0105)
  115. # unnecessary-lambda (W0108)
  116. # deprecated-lambda (W0110)
  117. # bad-builtin (W0141)
  118. # fixme (W0511)
  119. # unused-argument (W0613)
  120. # redefined-outer-name (W0621)
  121. # cell-var-from-loop (W0640)
  122. # bare-except (W0702)
  123. # broad-except (W0703)
  124. # logging-format-interpolation (W1202)
  125. # anomalous-backslash-in-string (W1401) - DO NOT ENABLE, INCORRECTLY PARSES REGEX
  126. # no-absolute-import (W1618):
  127. # import missing `from __future__ import absolute_import` Used when an import is not accompanied by from __future__ import absolute_import (default behaviour in Python 3)
  128. # invalid-name (C0103)
  129. # missing-docstring (C0111)
  130. # misplaced-comparison-constant (C0122)
  131. # too-many-lines (C0302)
  132. # bad-continuation (C0330)
  133. # too-many-ancestors (R0901)
  134. # too-many-public-methods (R0904)
  135. # too-few-public-methods (R0903)
  136. # too-many-return-statements (R0911)
  137. # too-many-branches (R0912)
  138. # too-many-arguments (R0913)
  139. # too-many-locals (R0914)
  140. # too-many-statements (R0915)
  141. # locally-disabled (I0011)
  142. # locally-enabled (I0012)
  143. disable=RP0401,RP0402,RP0801,R0801,W0141,W1618,W0621,W1202,W1401,W0703,W0702,C0111,W0640,C0122,W0511, W0613, C0103, R0903, C0330, C0302, R0915, R0914, R0912, W0105, R0904, R0911, W0108, W0110, R0913, R0901, R0401, I0011, I0012
  144. [REPORTS]
  145. # Set the output format. Available formats are text, parseable, colorized, msvs
  146. # (visual studio) and html. You can also give a reporter class, eg
  147. # mypackage.mymodule.MyReporterClass.
  148. output-format=colorized
  149. #output-format=parseable
  150. # Put messages in a separate file for each module / package specified on the
  151. # command line instead of printing them on stdout. Reports (if any) will be
  152. # written in a file name "pylint_global.[txt|html]".
  153. files-output=no
  154. # Tells whether to display a full report or only the messages
  155. reports=yes
  156. # Python expression which should return a note less than 10 (10 is the highest
  157. # note). You have access to the variables errors warning, statement which
  158. # respectively contain the number of errors / warnings messages and the total
  159. # number of statements analyzed. This is used by the global evaluation report
  160. # (RP0004).
  161. evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
  162. # Template used to display messages. This is a python new-style format string
  163. # used to format the message information. See doc for all details
  164. #msg-template=
  165. [VARIABLES]
  166. # Tells whether we should check for unused import in __init__ files.
  167. init-import=no
  168. # A regular expression matching the name of dummy variables (i.e. expectedly
  169. # not used).
  170. dummy-variables-rgx=_$|dummy
  171. # List of additional names supposed to be defined in builtins. Remember that
  172. # you should avoid to define new builtins when possible.
  173. additional-builtins=
  174. # List of strings which can identify a callback function by name. A callback
  175. # name must start or end with one of those strings.
  176. callbacks=cb_,_cb
  177. [TYPECHECK]
  178. # Tells whether missing members accessed in mixin class should be ignored. A
  179. # mixin class is detected if its name ends with "mixin" (case insensitive).
  180. ignore-mixin-members=yes
  181. # List of module names for which member attributes should not be checked
  182. # (useful for modules/projects where namespaces are manipulated during runtime
  183. # and thus existing member attributes cannot be deduced by static analysis. It
  184. # supports qualified module names, as well as Unix pattern matching.
  185. ignored-modules=
  186. # List of classes names for which member attributes should not be checked
  187. # (useful for classes with attributes dynamically set). This supports can work
  188. # with qualified names.
  189. ignored-classes=
  190. # List of members which are set dynamically and missed by pylint inference
  191. # system, and so shouldn't trigger E1101 when accessed. Python regular
  192. # expressions are accepted.
  193. generated-members=
  194. [SPELLING]
  195. # Spelling dictionary name. Available dictionaries: none. To make it working
  196. # install python-enchant package.
  197. spelling-dict=
  198. # List of comma separated words that should not be checked.
  199. spelling-ignore-words=
  200. # A path to a file that contains private dictionary; one word per line.
  201. spelling-private-dict-file=
  202. # Tells whether to store unknown words to indicated private dictionary in
  203. # --spelling-private-dict-file option instead of raising a message.
  204. spelling-store-unknown-words=no
  205. [SIMILARITIES]
  206. # Minimum lines number of a similarity.
  207. min-similarity-lines=10
  208. # Ignore comments when computing similarities.
  209. ignore-comments=yes
  210. # Ignore docstrings when computing similarities.
  211. ignore-docstrings=yes
  212. # Ignore imports when computing similarities.
  213. ignore-imports=no
  214. [MISCELLANEOUS]
  215. # List of note tags to take in consideration, separated by a comma.
  216. notes=FIXME,XXX,TODO
  217. [LOGGING]
  218. # Logging modules to check that the string format arguments are in logging
  219. # function parameter format
  220. logging-modules=logging
  221. [FORMAT]
  222. # Maximum number of characters on a single line.
  223. max-line-length=80
  224. # Regexp for a line that is allowed to be longer than the limit.
  225. ignore-long-lines=^\s*(# )?<?https?://\S+>?$
  226. # Allow the body of an if to be on the same line as the test if there is no
  227. # else.
  228. single-line-if-stmt=no
  229. # List of optional constructs for which whitespace checking is disabled. `dict-
  230. # separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
  231. # `trailing-comma` allows a space between comma and closing bracket: (a, ).
  232. # `empty-line` allows space-only lines.
  233. no-space-check=trailing-comma,dict-separator
  234. # Maximum number of lines in a module
  235. max-module-lines=1500
  236. # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
  237. # tab).
  238. indent-string=' '
  239. # Number of spaces of indent required inside a hanging or continued line.
  240. indent-after-paren=4
  241. # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
  242. expected-line-ending-format=
  243. [BASIC]
  244. # List of builtins function names that should not be used, separated by a comma
  245. bad-functions=map,filter,input
  246. # Good variable names which should always be accepted, separated by a comma
  247. good-names=i,j,k,ex,Run,_,x,e,ip
  248. # Bad variable names which should always be refused, separated by a comma
  249. bad-names=foo,bar,baz,toto,tutu,tata
  250. # Colon-delimited sets of names that determine each other's naming style when
  251. # the name regexes allow several styles.
  252. name-group=
  253. # Include a hint for the correct naming format with invalid-name
  254. include-naming-hint=no
  255. # Regular expression matching correct function names
  256. function-rgx=[a-z_][a-z0-9_]{2,30}$
  257. # Naming hint for function names
  258. function-name-hint=[a-z_][a-z0-9_]{2,30}$
  259. # Regular expression matching correct variable names
  260. variable-rgx=[a-z_][a-z0-9_]{2,30}$
  261. # Naming hint for variable names
  262. variable-name-hint=[a-z_][a-z0-9_]{2,30}$
  263. # Regular expression matching correct constant names
  264. const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
  265. # Naming hint for constant names
  266. const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
  267. # Regular expression matching correct attribute names
  268. attr-rgx=[a-z_][a-z0-9_]{2,30}$
  269. # Naming hint for attribute names
  270. attr-name-hint=[a-z_][a-z0-9_]{2,30}$
  271. # Regular expression matching correct argument names
  272. argument-rgx=[a-z_][a-z0-9_]{2,30}$
  273. # Naming hint for argument names
  274. argument-name-hint=[a-z_][a-z0-9_]{2,30}$
  275. # Regular expression matching correct class attribute names
  276. class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
  277. # Naming hint for class attribute names
  278. class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
  279. # Regular expression matching correct inline iteration names
  280. inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
  281. # Naming hint for inline iteration names
  282. inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
  283. # Regular expression matching correct class names
  284. class-rgx=[A-Z_][a-zA-Z0-9]+$
  285. # Naming hint for class names
  286. class-name-hint=[A-Z_][a-zA-Z0-9]+$
  287. # Regular expression matching correct module names
  288. module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
  289. # Naming hint for module names
  290. module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
  291. # Regular expression matching correct method names
  292. method-rgx=[a-z_][a-z0-9_]{2,30}$
  293. # Naming hint for method names
  294. method-name-hint=[a-z_][a-z0-9_]{2,30}$
  295. # Regular expression which should only match function or class names that do
  296. # not require a docstring.
  297. no-docstring-rgx=^_
  298. # Minimum line length for functions/classes that require docstrings, shorter
  299. # ones are exempt.
  300. docstring-min-length=-1
  301. [ELIF]
  302. # Maximum number of nested blocks for function / method body
  303. max-nested-blocks=5
  304. [IMPORTS]
  305. # Deprecated modules which should not be used, separated by a comma
  306. deprecated-modules=regsub,TERMIOS,Bastion,rexec
  307. # Create a graph of every (i.e. internal and external) dependencies in the
  308. # given file (report RP0402 must not be disabled)
  309. import-graph=
  310. # Create a graph of external dependencies in the given file (report RP0402 must
  311. # not be disabled)
  312. ext-import-graph=
  313. # Create a graph of internal dependencies in the given file (report RP0402 must
  314. # not be disabled)
  315. int-import-graph=
  316. [DESIGN]
  317. # Maximum number of arguments for function / method
  318. max-args=10
  319. # Argument names that match this expression will be ignored. Default to name
  320. # with leading underscore
  321. ignored-argument-names=_.*
  322. # Maximum number of locals for function / method body
  323. max-locals=15
  324. # Maximum number of return / yield for function / method body
  325. max-returns=6
  326. # Maximum number of branch for function / method body
  327. max-branches=12
  328. # Maximum number of statements in function / method body
  329. max-statements=50
  330. # Maximum number of parents for a class (see R0901).
  331. max-parents=7
  332. # Maximum number of attributes for a class (see R0902).
  333. max-attributes=15
  334. # Minimum number of public methods for a class (see R0903).
  335. min-public-methods=2
  336. # Maximum number of public methods for a class (see R0904).
  337. max-public-methods=20
  338. # Maximum number of boolean expressions in a if statement
  339. max-bool-expr=5
  340. [CLASSES]
  341. # List of method names used to declare (i.e. assign) instance attributes.
  342. defining-attr-methods=__init__,__new__,setUp
  343. # List of valid names for the first argument in a class method.
  344. valid-classmethod-first-arg=cls
  345. # List of valid names for the first argument in a metaclass class method.
  346. valid-metaclass-classmethod-first-arg=mcs
  347. # List of member names, which should be excluded from the protected access
  348. # warning.
  349. exclude-protected=_asdict,_fields,_replace,_source,_make
  350. [EXCEPTIONS]
  351. # Exceptions that will emit a warning when being caught. Defaults to
  352. # "Exception"
  353. overgeneral-exceptions=Exception