Rename volnr in NeedFirstVolume
[rarfile.git] / .pylintrc
blob3281b5bb532d6427f2114e876ef8697d36a60b08
1 [MASTER]
3 # A comma-separated list of package or module names from where C extensions may
4 # be loaded. Extensions are loading into the active Python interpreter and may
5 # run arbitrary code.
6 extension-pkg-whitelist=
8 # Add files or directories to the blacklist. They should be base names, not
9 # paths.
10 ignore=CVS,tmp,dist
12 # Add files or directories matching the regex patterns to the blacklist. The
13 # regex matches against base names, not paths.
14 ignore-patterns=
16 # Python code to execute, usually for sys.path manipulation such as
17 # pygtk.require().
18 #init-hook=
20 # Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
21 # number of processors available to use.
22 jobs=1
24 # Control the amount of potential inferred values when inferring a single
25 # object. This can help the performance when dealing with large functions or
26 # complex, nested conditions.
27 limit-inference-results=100
29 # List of plugins (as comma separated values of python modules names) to load,
30 # usually to register additional checkers.
31 load-plugins=
33 # Pickle collected data for later comparisons.
34 persistent=yes
36 # Specify a configuration file.
37 #rcfile=
39 # When enabled, pylint would attempt to guess common misconfiguration and emit
40 # user-friendly hints instead of false-positive error messages.
41 suggestion-mode=yes
43 # Allow loading of arbitrary C extensions. Extensions are imported into the
44 # active Python interpreter and may run arbitrary code.
45 unsafe-load-any-extension=no
48 [MESSAGES CONTROL]
50 # Only show warnings with the listed confidence levels. Leave empty to show
51 # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED.
52 confidence=
54 # Disable the message, report, category or checker with the given id(s). You
55 # can either give multiple identifiers separated by comma (,) or put this
56 # option multiple times (only on the command line, not in the configuration
57 # file where it should appear only once). You can also use "--disable=all" to
58 # disable everything first and then reenable specific checks. For example, if
59 # you want to run only the similarities checker, you can use "--disable=all
60 # --enable=similarities". If you want to run only the classes checker, but have
61 # no Warning level messages displayed, use "--disable=all --enable=classes
62 # --disable=W".
63 disable=bad-continuation,
64         bad-whitespace,
65         bare-except,
66         broad-except,
67         consider-using-in,
68         consider-using-ternary,
69         fixme,
70         global-statement,
71         invalid-name,
72         missing-docstring,
73         no-else-raise,
74         no-else-return,
75         no-self-use,
76         trailing-newlines,
77         unused-argument,
78         unused-variable,
79         protected-access,
80         ungrouped-imports,
81         chained-comparison,
82         len-as-condition,
83         redefined-builtin,
84         unnecessary-pass
86 # Enable the message, report, category or checker with the given id(s). You can
87 # either give multiple identifier separated by comma (,) or put this option
88 # multiple time (only on the command line, not in the configuration file where
89 # it should appear only once). See also the "--disable" option for examples.
90 enable=c-extension-no-member
93 [REPORTS]
95 # Python expression which should return a note less than 10 (10 is the highest
96 # note). You have access to the variables errors warning, statement which
97 # respectively contain the number of errors / warnings messages and the total
98 # number of statements analyzed. This is used by the global evaluation report
99 # (RP0004).
100 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
102 # Template used to display messages. This is a python new-style format string
103 # used to format the message information. See doc for all details.
104 #msg-template=
106 # Set the output format. Available formats are text, parseable, colorized, json
107 # and msvs (visual studio). You can also give a reporter class, e.g.
108 # mypackage.mymodule.MyReporterClass.
109 output-format=colorized
111 # Tells whether to display a full report or only the messages.
112 reports=no
114 # Activate the evaluation score.
115 score=no
118 [REFACTORING]
120 # Maximum number of nested blocks for function / method body
121 max-nested-blocks=10
123 # Complete name of functions that never returns. When checking for
124 # inconsistent-return-statements if a never returning function is called then
125 # it will be considered as an explicit return statement and no message will be
126 # printed.
127 never-returning-functions=sys.exit
130 [LOGGING]
132 # Format style used to check logging format string. `old` means using %
133 # formatting, while `new` is for `{}` formatting.
134 logging-format-style=old
136 # Logging modules to check that the string format arguments are in logging
137 # function parameter format.
138 logging-modules=logging
141 [MISCELLANEOUS]
143 # List of note tags to take in consideration, separated by a comma.
144 notes=FIXME,
145       XXX,
146       TODO
149 [SPELLING]
151 # Limits count of emitted suggestions for spelling mistakes.
152 max-spelling-suggestions=4
154 # Spelling dictionary name. Available dictionaries: none. To make it working
155 # install python-enchant package..
156 #spelling-dict=en_US
158 # List of comma separated words that should not be checked.
159 spelling-ignore-words=usr,bin,env
161 # A path to a file that contains private dictionary; one word per line.
162 spelling-private-dict-file=.local.dict
164 # Tells whether to store unknown words to indicated private dictionary in
165 # --spelling-private-dict-file option instead of raising a message.
166 spelling-store-unknown-words=no
169 [BASIC]
171 # Naming style matching correct argument names.
172 argument-naming-style=snake_case
174 # Regular expression matching correct argument names. Overrides argument-
175 # naming-style.
176 #argument-rgx=
178 # Naming style matching correct attribute names.
179 attr-naming-style=snake_case
181 # Regular expression matching correct attribute names. Overrides attr-naming-
182 # style.
183 #attr-rgx=
185 # Bad variable names which should always be refused, separated by a comma.
186 bad-names=foo,
187           bar,
188           baz,
189           toto,
190           tutu,
191           tata
193 # Naming style matching correct class attribute names.
194 class-attribute-naming-style=any
196 # Regular expression matching correct class attribute names. Overrides class-
197 # attribute-naming-style.
198 #class-attribute-rgx=
200 # Naming style matching correct class names.
201 class-naming-style=PascalCase
203 # Regular expression matching correct class names. Overrides class-naming-
204 # style.
205 #class-rgx=
207 # Naming style matching correct constant names.
208 const-naming-style=UPPER_CASE
210 # Regular expression matching correct constant names. Overrides const-naming-
211 # style.
212 #const-rgx=
214 # Minimum line length for functions/classes that require docstrings, shorter
215 # ones are exempt.
216 docstring-min-length=-1
218 # Naming style matching correct function names.
219 function-naming-style=snake_case
221 # Regular expression matching correct function names. Overrides function-
222 # naming-style.
223 #function-rgx=
225 # Good variable names which should always be accepted, separated by a comma.
226 good-names=i,
227            j,
228            k,
229            ex,
230            Run,
231            _
233 # Include a hint for the correct naming format with invalid-name.
234 include-naming-hint=no
236 # Naming style matching correct inline iteration names.
237 inlinevar-naming-style=any
239 # Regular expression matching correct inline iteration names. Overrides
240 # inlinevar-naming-style.
241 #inlinevar-rgx=
243 # Naming style matching correct method names.
244 method-naming-style=snake_case
246 # Regular expression matching correct method names. Overrides method-naming-
247 # style.
248 #method-rgx=
250 # Naming style matching correct module names.
251 module-naming-style=snake_case
253 # Regular expression matching correct module names. Overrides module-naming-
254 # style.
255 #module-rgx=
257 # Colon-delimited sets of names that determine each other's naming style when
258 # the name regexes allow several styles.
259 name-group=
261 # Regular expression which should only match function or class names that do
262 # not require a docstring.
263 no-docstring-rgx=^_
265 # List of decorators that produce properties, such as abc.abstractproperty. Add
266 # to this list to register other decorators that produce valid properties.
267 # These decorators are taken in consideration only for invalid-name.
268 property-classes=abc.abstractproperty
270 # Naming style matching correct variable names.
271 variable-naming-style=snake_case
273 # Regular expression matching correct variable names. Overrides variable-
274 # naming-style.
275 #variable-rgx=
278 [STRING]
280 # This flag controls whether the implicit-str-concat-in-sequence should
281 # generate a warning on implicit string concatenation in sequences defined over
282 # several lines.
283 check-str-concat-over-line-jumps=no
286 [SIMILARITIES]
288 # Ignore comments when computing similarities.
289 ignore-comments=yes
291 # Ignore docstrings when computing similarities.
292 ignore-docstrings=yes
294 # Ignore imports when computing similarities.
295 ignore-imports=no
297 # Minimum lines number of a similarity.
298 min-similarity-lines=4
301 [VARIABLES]
303 # List of additional names supposed to be defined in builtins. Remember that
304 # you should avoid defining new builtins when possible.
305 additional-builtins=
307 # Tells whether unused global variables should be treated as a violation.
308 allow-global-unused-variables=yes
310 # List of strings which can identify a callback function by name. A callback
311 # name must start or end with one of those strings.
312 callbacks=cb_,
313           _cb
315 # A regular expression matching the name of dummy variables (i.e. expected to
316 # not be used).
317 dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
319 # Argument names that match this expression will be ignored. Default to name
320 # with leading underscore.
321 ignored-argument-names=_.*|^ignored_|^unused_
323 # Tells whether we should check for unused import in __init__ files.
324 init-import=no
326 # List of qualified module names which can have objects that can redefine
327 # builtins.
328 redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io
331 [TYPECHECK]
333 # List of decorators that produce context managers, such as
334 # contextlib.contextmanager. Add to this list to register other decorators that
335 # produce valid context managers.
336 contextmanager-decorators=contextlib.contextmanager
338 # List of members which are set dynamically and missed by pylint inference
339 # system, and so shouldn't trigger E1101 when accessed. Python regular
340 # expressions are accepted.
341 generated-members=
343 # Tells whether missing members accessed in mixin class should be ignored. A
344 # mixin class is detected if its name ends with "mixin" (case insensitive).
345 ignore-mixin-members=yes
347 # Tells whether to warn about missing members when the owner of the attribute
348 # is inferred to be None.
349 ignore-none=yes
351 # This flag controls whether pylint should warn about no-member and similar
352 # checks whenever an opaque object is returned when inferring. The inference
353 # can return multiple potential results while evaluating a Python object, but
354 # some branches might not be evaluated, which results in partial inference. In
355 # that case, it might be useful to still emit no-member and other checks for
356 # the rest of the inferred objects.
357 ignore-on-opaque-inference=yes
359 # List of class names for which member attributes should not be checked (useful
360 # for classes with dynamically set attributes). This supports the use of
361 # qualified names.
362 ignored-classes=optparse.Values,thread._local,_thread._local
364 # List of module names for which member attributes should not be checked
365 # (useful for modules/projects where namespaces are manipulated during runtime
366 # and thus existing member attributes cannot be deduced by static analysis. It
367 # supports qualified module names, as well as Unix pattern matching.
368 ignored-modules=
370 # Show a hint with possible names when a member name was not found. The aspect
371 # of finding the hint is based on edit distance.
372 missing-member-hint=yes
374 # The minimum edit distance a name should have in order to be considered a
375 # similar match for a missing member name.
376 missing-member-hint-distance=1
378 # The total number of similar names that should be taken in consideration when
379 # showing a hint for a missing member.
380 missing-member-max-choices=1
383 [FORMAT]
385 # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
386 expected-line-ending-format=LF
388 # Regexp for a line that is allowed to be longer than the limit.
389 ignore-long-lines=^\s*(# )?<?https?://\S+>?$
391 # Number of spaces of indent required inside a hanging or continued line.
392 indent-after-paren=4
394 # String used as indentation unit. This is usually "    " (4 spaces) or "\t" (1
395 # tab).
396 indent-string='    '
398 # Maximum number of characters on a single line.
399 max-line-length=160
401 # Maximum number of lines in a module.
402 max-module-lines=10000
404 # List of optional constructs for which whitespace checking is disabled. `dict-
405 # separator` is used to allow tabulation in dicts, etc.: {1  : 1,\n222: 2}.
406 # `trailing-comma` allows a space between comma and closing bracket: (a, ).
407 # `empty-line` allows space-only lines.
408 no-space-check=trailing-comma,
409                dict-separator
411 # Allow the body of a class to be on the same line as the declaration if body
412 # contains single statement.
413 single-line-class-stmt=no
415 # Allow the body of an if to be on the same line as the test if there is no
416 # else.
417 single-line-if-stmt=no
420 [CLASSES]
422 # List of method names used to declare (i.e. assign) instance attributes.
423 defining-attr-methods=__init__,
424                       __new__,
425                       setUp
427 # List of member names, which should be excluded from the protected access
428 # warning.
429 exclude-protected=_asdict,
430                   _fields,
431                   _replace,
432                   _source,
433                   _make
435 # List of valid names for the first argument in a class method.
436 valid-classmethod-first-arg=cls
438 # List of valid names for the first argument in a metaclass class method.
439 valid-metaclass-classmethod-first-arg=cls
442 [DESIGN]
444 # Maximum number of arguments for function / method.
445 max-args=15
447 # Maximum number of attributes for a class (see R0902).
448 max-attributes=17
450 # Maximum number of boolean expressions in an if statement.
451 max-bool-expr=5
453 # Maximum number of branch for function / method body.
454 max-branches=50
456 # Maximum number of locals for function / method body.
457 max-locals=45
459 # Maximum number of parents for a class (see R0901).
460 max-parents=7
462 # Maximum number of public methods for a class (see R0904).
463 max-public-methods=420
465 # Maximum number of return / yield for function / method body.
466 max-returns=16
468 # Maximum number of statements in function / method body.
469 max-statements=150
471 # Minimum number of public methods for a class (see R0903).
472 min-public-methods=0
475 [IMPORTS]
477 # Allow wildcard imports from modules that define __all__.
478 allow-wildcard-with-all=no
480 # Analyse import fallback blocks. This can be used to support both Python 2 and
481 # 3 compatible code, which means that the block might have code that exists
482 # only in one or another interpreter, leading to false positives when analysed.
483 analyse-fallback-blocks=no
485 # Deprecated modules which should not be used, separated by a comma.
486 deprecated-modules=optparse,tkinter.tix
488 # Create a graph of external dependencies in the given file (report RP0402 must
489 # not be disabled).
490 ext-import-graph=
492 # Create a graph of every (i.e. internal and external) dependencies in the
493 # given file (report RP0402 must not be disabled).
494 import-graph=
496 # Create a graph of internal dependencies in the given file (report RP0402 must
497 # not be disabled).
498 int-import-graph=
500 # Force import order to recognize a module as part of the standard
501 # compatibility libraries.
502 known-standard-library=
504 # Force import order to recognize a module as part of a third party library.
505 known-third-party=enchant
508 [EXCEPTIONS]
510 # Exceptions that will emit a warning when being caught. Defaults to
511 # "BaseException, Exception".
512 overgeneral-exceptions=BaseException,
513                        Exception