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_gerrit 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482
  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. # protected-access (W0212)
  119. # fixme (W0511)
  120. # unused-argument (W0613)
  121. # redefined-outer-name (W0621)
  122. # cell-var-from-loop (W0640)
  123. # bare-except (W0702)
  124. # broad-except (W0703)
  125. # logging-format-interpolation (W1202)
  126. # anomalous-backslash-in-string (W1401) - DO NOT ENABLE, INCORRECTLY PARSES REGEX
  127. # no-absolute-import (W1618):
  128. # 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)
  129. # invalid-name (C0103)
  130. # missing-docstring (C0111)
  131. # misplaced-comparison-constant (C0122)
  132. # too-many-lines (C0302)
  133. # bad-continuation (C0330)
  134. # too-many-ancestors (R0901)
  135. # too-many-public-methods (R0904)
  136. # too-few-public-methods (R0903)
  137. # too-many-return-statements (R0911)
  138. # too-many-branches (R0912)
  139. # too-many-arguments (R0913)
  140. # too-many-locals (R0914)
  141. # too-many-statements (R0915)
  142. # locally-disabled (I0011)
  143. # locally-enabled (I0012)
  144. disable=RP0401,RP0402,RP0801,R0801, W0141,W1618,W0621,W1202,W1401,W0703,W0702,C0111,W0640,C0122,W0511, W0613, C0103, R0903, C0330, W0212, C0302, R0915, R0914, R0912, W0105, R0904, R0911, W0108, W0110, R0913, R0901, R0401, I0011, I0012
  145. [REPORTS]
  146. # Set the output format. Available formats are text, parseable, colorized, msvs
  147. # (visual studio) and html. You can also give a reporter class, eg
  148. # mypackage.mymodule.MyReporterClass.
  149. output-format=text
  150. #output-format=parseable
  151. # Put messages in a separate file for each module / package specified on the
  152. # command line instead of printing them on stdout. Reports (if any) will be
  153. # written in a file name "pylint_global.[txt|html]".
  154. files-output=no
  155. # Tells whether to display a full report or only the messages
  156. reports=yes
  157. # Python expression which should return a note less than 10 (10 is the highest
  158. # note). You have access to the variables errors warning, statement which
  159. # respectively contain the number of errors / warnings messages and the total
  160. # number of statements analyzed. This is used by the global evaluation report
  161. # (RP0004).
  162. evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
  163. # Template used to display messages. This is a python new-style format string
  164. # used to format the message information. See doc for all details
  165. #msg-template=
  166. [VARIABLES]
  167. # Tells whether we should check for unused import in __init__ files.
  168. init-import=no
  169. # A regular expression matching the name of dummy variables (i.e. expectedly
  170. # not used).
  171. dummy-variables-rgx=_$|dummy
  172. # List of additional names supposed to be defined in builtins. Remember that
  173. # you should avoid to define new builtins when possible.
  174. additional-builtins=
  175. # List of strings which can identify a callback function by name. A callback
  176. # name must start or end with one of those strings.
  177. callbacks=cb_,_cb
  178. [TYPECHECK]
  179. # Tells whether missing members accessed in mixin class should be ignored. A
  180. # mixin class is detected if its name ends with "mixin" (case insensitive).
  181. ignore-mixin-members=yes
  182. # List of module names for which member attributes should not be checked
  183. # (useful for modules/projects where namespaces are manipulated during runtime
  184. # and thus existing member attributes cannot be deduced by static analysis. It
  185. # supports qualified module names, as well as Unix pattern matching.
  186. ignored-modules=
  187. # List of classes names for which member attributes should not be checked
  188. # (useful for classes with attributes dynamically set). This supports can work
  189. # with qualified names.
  190. ignored-classes=
  191. # List of members which are set dynamically and missed by pylint inference
  192. # system, and so shouldn't trigger E1101 when accessed. Python regular
  193. # expressions are accepted.
  194. generated-members=
  195. [SPELLING]
  196. # Spelling dictionary name. Available dictionaries: none. To make it working
  197. # install python-enchant package.
  198. spelling-dict=
  199. # List of comma separated words that should not be checked.
  200. spelling-ignore-words=
  201. # A path to a file that contains private dictionary; one word per line.
  202. spelling-private-dict-file=
  203. # Tells whether to store unknown words to indicated private dictionary in
  204. # --spelling-private-dict-file option instead of raising a message.
  205. spelling-store-unknown-words=no
  206. [SIMILARITIES]
  207. # Minimum lines number of a similarity.
  208. min-similarity-lines=10
  209. # Ignore comments when computing similarities.
  210. ignore-comments=yes
  211. # Ignore docstrings when computing similarities.
  212. ignore-docstrings=yes
  213. # Ignore imports when computing similarities.
  214. ignore-imports=no
  215. [MISCELLANEOUS]
  216. # List of note tags to take in consideration, separated by a comma.
  217. notes=FIXME,XXX,TODO
  218. [LOGGING]
  219. # Logging modules to check that the string format arguments are in logging
  220. # function parameter format
  221. logging-modules=logging
  222. [FORMAT]
  223. # Maximum number of characters on a single line.
  224. max-line-length=80
  225. # Regexp for a line that is allowed to be longer than the limit.
  226. ignore-long-lines=^\s*(# )?<?https?://\S+>?$
  227. # Allow the body of an if to be on the same line as the test if there is no
  228. # else.
  229. single-line-if-stmt=no
  230. # List of optional constructs for which whitespace checking is disabled. `dict-
  231. # separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
  232. # `trailing-comma` allows a space between comma and closing bracket: (a, ).
  233. # `empty-line` allows space-only lines.
  234. no-space-check=trailing-comma,dict-separator
  235. # Maximum number of lines in a module
  236. max-module-lines=1500
  237. # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
  238. # tab).
  239. indent-string=' '
  240. # Number of spaces of indent required inside a hanging or continued line.
  241. indent-after-paren=4
  242. # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
  243. expected-line-ending-format=
  244. [BASIC]
  245. # List of builtins function names that should not be used, separated by a comma
  246. bad-functions=map,filter,input
  247. # Good variable names which should always be accepted, separated by a comma
  248. good-names=i,j,k,ex,Run,_,x,e,ip
  249. # Bad variable names which should always be refused, separated by a comma
  250. bad-names=foo,bar,baz,toto,tutu,tata
  251. # Colon-delimited sets of names that determine each other's naming style when
  252. # the name regexes allow several styles.
  253. name-group=
  254. # Include a hint for the correct naming format with invalid-name
  255. include-naming-hint=no
  256. # Regular expression matching correct function names
  257. function-rgx=[a-z_][a-z0-9_]{2,30}$
  258. # Naming hint for function names
  259. function-name-hint=[a-z_][a-z0-9_]{2,30}$
  260. # Regular expression matching correct variable names
  261. variable-rgx=[a-z_][a-z0-9_]{2,30}$
  262. # Naming hint for variable names
  263. variable-name-hint=[a-z_][a-z0-9_]{2,30}$
  264. # Regular expression matching correct constant names
  265. const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
  266. # Naming hint for constant names
  267. const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
  268. # Regular expression matching correct attribute names
  269. attr-rgx=[a-z_][a-z0-9_]{2,30}$
  270. # Naming hint for attribute names
  271. attr-name-hint=[a-z_][a-z0-9_]{2,30}$
  272. # Regular expression matching correct argument names
  273. argument-rgx=[a-z_][a-z0-9_]{2,30}$
  274. # Naming hint for argument names
  275. argument-name-hint=[a-z_][a-z0-9_]{2,30}$
  276. # Regular expression matching correct class attribute names
  277. class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
  278. # Naming hint for class attribute names
  279. class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
  280. # Regular expression matching correct inline iteration names
  281. inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
  282. # Naming hint for inline iteration names
  283. inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
  284. # Regular expression matching correct class names
  285. class-rgx=[A-Z_][a-zA-Z0-9]+$
  286. # Naming hint for class names
  287. class-name-hint=[A-Z_][a-zA-Z0-9]+$
  288. # Regular expression matching correct module names
  289. module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
  290. # Naming hint for module names
  291. module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
  292. # Regular expression matching correct method names
  293. method-rgx=[a-z_][a-z0-9_]{2,30}$
  294. # Naming hint for method names
  295. method-name-hint=[a-z_][a-z0-9_]{2,30}$
  296. # Regular expression which should only match function or class names that do
  297. # not require a docstring.
  298. no-docstring-rgx=^_
  299. # Minimum line length for functions/classes that require docstrings, shorter
  300. # ones are exempt.
  301. docstring-min-length=-1
  302. [ELIF]
  303. # Maximum number of nested blocks for function / method body
  304. max-nested-blocks=5
  305. [IMPORTS]
  306. # Deprecated modules which should not be used, separated by a comma
  307. deprecated-modules=regsub,TERMIOS,Bastion,rexec
  308. # Create a graph of every (i.e. internal and external) dependencies in the
  309. # given file (report RP0402 must not be disabled)
  310. import-graph=
  311. # Create a graph of external dependencies in the given file (report RP0402 must
  312. # not be disabled)
  313. ext-import-graph=
  314. # Create a graph of internal dependencies in the given file (report RP0402 must
  315. # not be disabled)
  316. int-import-graph=
  317. [DESIGN]
  318. # Maximum number of arguments for function / method
  319. max-args=10
  320. # Argument names that match this expression will be ignored. Default to name
  321. # with leading underscore
  322. ignored-argument-names=_.*
  323. # Maximum number of locals for function / method body
  324. max-locals=15
  325. # Maximum number of return / yield for function / method body
  326. max-returns=6
  327. # Maximum number of branch for function / method body
  328. max-branches=12
  329. # Maximum number of statements in function / method body
  330. max-statements=50
  331. # Maximum number of parents for a class (see R0901).
  332. max-parents=7
  333. # Maximum number of attributes for a class (see R0902).
  334. max-attributes=15
  335. # Minimum number of public methods for a class (see R0903).
  336. min-public-methods=2
  337. # Maximum number of public methods for a class (see R0904).
  338. max-public-methods=20
  339. # Maximum number of boolean expressions in a if statement
  340. max-bool-expr=5
  341. [CLASSES]
  342. # List of method names used to declare (i.e. assign) instance attributes.
  343. defining-attr-methods=__init__,__new__,setUp
  344. # List of valid names for the first argument in a class method.
  345. valid-classmethod-first-arg=cls
  346. # List of valid names for the first argument in a metaclass class method.
  347. valid-metaclass-classmethod-first-arg=mcs
  348. # List of member names, which should be excluded from the protected access
  349. # warning.
  350. exclude-protected=_asdict,_fields,_replace,_source,_make
  351. [EXCEPTIONS]
  352. # Exceptions that will emit a warning when being caught. Defaults to
  353. # "Exception"
  354. overgeneral-exceptions=Exception