Motore di metasearch che rispetta la privacy, hackerabile / pronuncia səːks. https://devol.it/it/searx
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.
 
 
 
 
 
 

445 lines
14 KiB

  1. # -*- coding: utf-8; mode: conf -*-
  2. # lint Python modules using external checkers.
  3. #
  4. # This is the main checker controlling the other ones and the reports
  5. # generation. It is itself both a raw checker and an astng checker in order
  6. # to:
  7. # * handle message activation / deactivation at the module level
  8. # * handle some basic but necessary stats'data (number of classes, methods...)
  9. #
  10. [MASTER]
  11. # A comma-separated list of package or module names from where C extensions may
  12. # be loaded. Extensions are loading into the active Python interpreter and may
  13. # run arbitrary code
  14. extension-pkg-whitelist=lxml.etree
  15. # Add files or directories to the blacklist. They should be base names, not
  16. # paths.
  17. ignore=CVS, .git, .svn
  18. # Add files or directories matching the regex patterns to the blacklist. The
  19. # regex matches against base names, not paths.
  20. ignore-patterns=
  21. # Python code to execute, usually for sys.path manipulation such as
  22. # pygtk.require().
  23. #init-hook=
  24. # Use multiple processes to speed up Pylint.
  25. jobs=1
  26. # List of plugins (as comma separated values of python modules names) to load,
  27. # usually to register additional checkers.
  28. load-plugins=
  29. # Pickle collected data for later comparisons.
  30. persistent=yes
  31. # Specify a configuration file.
  32. #rcfile=
  33. # Allow loading of arbitrary C extensions. Extensions are imported into the
  34. # active Python interpreter and may run arbitrary code.
  35. unsafe-load-any-extension=no
  36. [MESSAGES CONTROL]
  37. # Only show warnings with the listed confidence levels. Leave empty to show
  38. # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
  39. confidence=
  40. # Disable the message, report, category or checker with the given id(s). You
  41. # can either give multiple identifiers separated by comma (,) or put this
  42. # option multiple times (only on the command line, not in the configuration
  43. # file where it should appear only once).You can also use "--disable=all" to
  44. # disable everything first and then reenable specific checks. For example, if
  45. # you want to run only the similarities checker, you can use "--disable=all
  46. # --enable=similarities". If you want to run only the classes checker, but have
  47. # no Warning level messages displayed, use"--disable=all --enable=classes
  48. # --disable=W"
  49. disable=bad-whitespace, duplicate-code
  50. # Enable the message, report, category or checker with the given id(s). You can
  51. # either give multiple identifier separated by comma (,) or put this option
  52. # multiple time (only on the command line, not in the configuration file where
  53. # it should appear only once). See also the "--disable" option for examples.
  54. enable=
  55. [REPORTS]
  56. # Python expression which should return a note less than 10 (10 is the highest
  57. # note). You have access to the variables errors warning, statement which
  58. # respectively contain the number of errors / warnings messages and the total
  59. # number of statements analyzed. This is used by the global evaluation report
  60. # (RP0004).
  61. evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
  62. # Template used to display messages. This is a python new-style format string
  63. # used to format the message information. See doc for all details
  64. # HINT: do not set this here, use argument --msg-template=...
  65. #msg-template={path}:{line}: [{msg_id}({symbol}),{obj}] {msg}
  66. # Set the output format. Available formats are text, parseable, colorized, json
  67. # and msvs (visual studio).You can also give a reporter class, eg
  68. # mypackage.mymodule.MyReporterClass.
  69. # HINT: do not set this here, use argument --output-format=...
  70. #output-format=text
  71. # Tells whether to display a full report or only the messages
  72. reports=no
  73. # Activate the evaluation score.
  74. score=yes
  75. [REFACTORING]
  76. # Maximum number of nested blocks for function / method body
  77. max-nested-blocks=5
  78. [BASIC]
  79. # List of builtins function names that should not be used, separated by a comma
  80. bad-functions=map,filter,apply,input
  81. # Naming hint for argument names
  82. argument-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
  83. # Regular expression matching correct argument names
  84. argument-rgx=(([a-z][a-zA-Z0-9_]{2,30})|(_[a-z0-9_]*))$
  85. # Naming hint for attribute names
  86. attr-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
  87. # Regular expression matching correct attribute names
  88. attr-rgx=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*)|([A-Z0-9_]*))$
  89. # Bad variable names which should always be refused, separated by a comma
  90. bad-names=foo,bar,baz,toto,tutu,tata
  91. # Naming hint for class attribute names
  92. class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
  93. # Regular expression matching correct class attribute names
  94. class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
  95. # Naming hint for class names
  96. class-name-hint=[A-Z_][a-zA-Z0-9]+$
  97. # Regular expression matching correct class names
  98. class-rgx=[A-Z_][a-zA-Z0-9]+$
  99. # Naming hint for constant names
  100. const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
  101. # Regular expression matching correct constant names
  102. const-rgx=(([a-zA-Z_][a-zA-Z0-9_]*)|(__.*__))$
  103. #const-rgx=[f]?[A-Z_][a-zA-Z0-9_]{2,30}$
  104. # Minimum line length for functions/classes that require docstrings, shorter
  105. # ones are exempt.
  106. docstring-min-length=-1
  107. # Naming hint for function names
  108. function-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
  109. # Regular expression matching correct function names
  110. function-rgx=(([a-z][a-zA-Z0-9_]{2,30})|(_[a-z0-9_]*))$
  111. # Good variable names which should always be accepted, separated by a comma
  112. good-names=i,j,k,ex,Run,_,log,cfg,id
  113. # Include a hint for the correct naming format with invalid-name
  114. include-naming-hint=no
  115. # Naming hint for inline iteration names
  116. inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
  117. # Regular expression matching correct inline iteration names
  118. inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
  119. # Naming hint for method names
  120. method-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
  121. # Regular expression matching correct method names
  122. method-rgx=(([a-z][a-zA-Z0-9_]{2,30})|(_[a-z0-9_]*))$
  123. # Naming hint for module names
  124. module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
  125. # Regular expression matching correct module names
  126. #module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
  127. module-rgx=([a-z_][a-z0-9_]*)$
  128. # Colon-delimited sets of names that determine each other's naming style when
  129. # the name regexes allow several styles.
  130. name-group=
  131. # Regular expression which should only match function or class names that do
  132. # not require a docstring.
  133. no-docstring-rgx=^_
  134. # List of decorators that produce properties, such as abc.abstractproperty. Add
  135. # to this list to register other decorators that produce valid properties.
  136. property-classes=abc.abstractproperty
  137. # Naming hint for variable names
  138. variable-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
  139. # Regular expression matching correct variable names
  140. variable-rgx=(([a-z][a-zA-Z0-9_]{2,30})|(_[a-z0-9_]*)|([a-z]))$
  141. [FORMAT]
  142. # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
  143. expected-line-ending-format=
  144. # Regexp for a line that is allowed to be longer than the limit.
  145. ignore-long-lines=^\s*(# )?<?https?://\S+>?$
  146. # Number of spaces of indent required inside a hanging or continued line.
  147. indent-after-paren=4
  148. # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
  149. # tab).
  150. indent-string=' '
  151. # Maximum number of characters on a single line.
  152. max-line-length=120
  153. # Maximum number of lines in a module
  154. max-module-lines=2000
  155. # List of optional constructs for which whitespace checking is disabled. `dict-
  156. # separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
  157. # `trailing-comma` allows a space between comma and closing bracket: (a, ).
  158. # `empty-line` allows space-only lines.
  159. no-space-check=trailing-comma,dict-separator
  160. # Allow the body of a class to be on the same line as the declaration if body
  161. # contains single statement.No config file found, using default configuration
  162. single-line-class-stmt=no
  163. # Allow the body of an if to be on the same line as the test if there is no
  164. # else.
  165. single-line-if-stmt=no
  166. [LOGGING]
  167. # Logging modules to check that the string format arguments are in logging
  168. # function parameter format
  169. logging-modules=logging
  170. [MISCELLANEOUS]
  171. # List of note tags to take in consideration, separated by a comma.
  172. notes=FIXME,XXX,TODO
  173. [SIMILARITIES]
  174. # Ignore comments when computing similarities.
  175. ignore-comments=yes
  176. # Ignore docstrings when computing similarities.
  177. ignore-docstrings=yes
  178. # Ignore imports when computing similarities.
  179. ignore-imports=no
  180. # Minimum lines number of a similarity.
  181. min-similarity-lines=4
  182. [SPELLING]
  183. # Spelling dictionary name. Available dictionaries: none. To make it working
  184. # install python-enchant package.
  185. spelling-dict=
  186. # List of comma separated words that should not be checked.
  187. spelling-ignore-words=
  188. # A path to a file that contains private dictionary; one word per line.
  189. spelling-private-dict-file=
  190. # Tells whether to store unknown words to indicated private dictionary in
  191. # --spelling-private-dict-file option instead of raising a message.
  192. spelling-store-unknown-words=no
  193. [TYPECHECK]
  194. # List of decorators that produce context managers, such as
  195. # contextlib.contextmanager. Add to this list to register other decorators that
  196. # produce valid context managers.
  197. contextmanager-decorators=contextlib.contextmanager
  198. # List of members which are set dynamically and missed by pylint inference
  199. # system, and so shouldn't trigger E1101 when accessed. Python regular
  200. # expressions are accepted.
  201. generated-members=
  202. # Tells whether missing members accessed in mixin class should be ignored. A
  203. # mixin class is detected if its name ends with "mixin" (case insensitive).
  204. ignore-mixin-members=yes
  205. # This flag controls whether pylint should warn about no-member and similar
  206. # checks whenever an opaque object is returned when inferring. The inference
  207. # can return multiple potential results while evaluating a Python object, but
  208. # some branches might not be evaluated, which results in partial inference. In
  209. # that case, it might be useful to still emit no-member and other checks for
  210. # the rest of the inferred objects.
  211. ignore-on-opaque-inference=yes
  212. # List of class names for which member attributes should not be checked (useful
  213. # for classes with dynamically set attributes). This supports the use of
  214. # qualified names.
  215. ignored-classes=optparse.Values,thread._local,_thread._local
  216. # List of module names for which member attributes should not be checked
  217. # (useful for modules/projects where namespaces are manipulated during runtime
  218. # and thus existing member attributes cannot be deduced by static analysis. It
  219. # supports qualified module names, as well as Unix pattern matching.
  220. ignored-modules=
  221. # Show a hint with possible names when a member name was not found. The aspect
  222. # of finding the hint is based on edit distance.
  223. missing-member-hint=yes
  224. # The minimum edit distance a name should have in order to be considered a
  225. # similar match for a missing member name.
  226. missing-member-hint-distance=1
  227. # The total number of similar names that should be taken in consideration when
  228. # showing a hint for a missing member.
  229. missing-member-max-choices=1
  230. [VARIABLES]
  231. # List of additional names supposed to be defined in builtins. Remember that
  232. # you should avoid to define new builtins when possible.
  233. additional-builtins=
  234. # Tells whether unused global variables should be treated as a violation.
  235. allow-global-unused-variables=yes
  236. # List of strings which can identify a callback function by name. A callback
  237. # name must start or end with one of those strings.
  238. callbacks=cb_,_cb
  239. # A regular expression matching the name of dummy variables (i.e. expectedly
  240. # not used).
  241. dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
  242. # Argument names that match this expression will be ignored. Default to name
  243. # with leading underscore
  244. ignored-argument-names=_.*|^ignored_|^unused_
  245. # Tells whether we should check for unused import in __init__ files.
  246. init-import=no
  247. # List of qualified module names which can have objects that can redefine
  248. # builtins.
  249. redefining-builtins-modules=six.moves,future.builtins
  250. [CLASSES]
  251. # List of method names used to declare (i.e. assign) instance attributes.
  252. defining-attr-methods=__init__,__new__,setUp
  253. # List of member names, which should be excluded from the protected access
  254. # warning.
  255. exclude-protected=_asdict,_fields,_replace,_source,_make
  256. # List of valid names for the first argument in a class method.
  257. valid-classmethod-first-arg=cls
  258. # List of valid names for the first argument in a metaclass class method.
  259. valid-metaclass-classmethod-first-arg=mcs
  260. [DESIGN]
  261. # Maximum number of arguments for function / method
  262. max-args=8
  263. # Maximum number of attributes for a class (see R0902).
  264. max-attributes=20
  265. # Maximum number of boolean expressions in a if statement
  266. max-bool-expr=5
  267. # Maximum number of branch for function / method body
  268. max-branches=12
  269. # Maximum number of locals for function / method body
  270. max-locals=20
  271. # Maximum number of parents for a class (see R0901).
  272. max-parents=7
  273. # Maximum number of public methods for a class (see R0904).
  274. max-public-methods=20
  275. # Maximum number of return / yield for function / method body
  276. max-returns=6
  277. # Maximum number of statements in function / method body
  278. max-statements=50
  279. # Minimum number of public methods for a class (see R0903).
  280. min-public-methods=2
  281. [IMPORTS]
  282. # Allow wildcard imports from modules that define __all__.
  283. allow-wildcard-with-all=no
  284. # Analyse import fallback blocks. This can be used to support both Python 2 and
  285. # 3 compatible code, which means that the block might have code that exists
  286. # only in one or another interpreter, leading to false positives when analysed.
  287. analyse-fallback-blocks=no
  288. # Deprecated modules which should not be used, separated by a comma
  289. deprecated-modules=optparse,tkinter.tix
  290. # Create a graph of external dependencies in the given file (report RP0402 must
  291. # not be disabled)
  292. ext-import-graph=
  293. # Create a graph of every (i.e. internal and external) dependencies in the
  294. # given file (report RP0402 must not be disabled)
  295. import-graph=
  296. # Create a graph of internal dependencies in the given file (report RP0402 must
  297. # not be disabled)
  298. int-import-graph=
  299. # Force import order to recognize a module as part of the standard
  300. # compatibility libraries.
  301. known-standard-library=
  302. # Force import order to recognize a module as part of a third party library.
  303. known-third-party=enchant
  304. [EXCEPTIONS]
  305. # Exceptions that will emit a warning when being caught. Defaults to
  306. # "Exception"
  307. overgeneral-exceptions=Exception