source: flex_extract.git/for_developers/pylintrc @ ad10eca

ctbtodev
Last change on this file since ad10eca was 25b14be, checked in by Anne Philipp <anne.philipp@…>, 6 years ago

changed whole tree structure of flex_extract to have better overview

  • Property mode set to 100644
File size: 16.2 KB
Line 
1[MASTER]
2
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
6extension-pkg-whitelist=
7
8# Add files or directories to the blacklist. They should be base names, not
9# paths.
10ignore=CVS
11
12# Add files or directories matching the regex patterns to the blacklist. The
13# regex matches against base names, not paths.
14ignore-patterns=
15
16# Python code to execute, usually for sys.path manipulation such as
17# pygtk.require().
18#init-hook=
19
20# Use multiple processes to speed up Pylint.
21jobs=1
22
23# List of plugins (as comma separated values of python modules names) to load,
24# usually to register additional checkers.
25load-plugins=
26
27# Pickle collected data for later comparisons.
28persistent=yes
29
30# Specify a configuration file.
31#rcfile=
32
33# When enabled, pylint would attempt to guess common misconfiguration and emit
34# user-friendly hints instead of false-positive error messages
35suggestion-mode=yes
36
37# Allow loading of arbitrary C extensions. Extensions are imported into the
38# active Python interpreter and may run arbitrary code.
39unsafe-load-any-extension=no
40
41
42[MESSAGES CONTROL]
43
44# Only show warnings with the listed confidence levels. Leave empty to show
45# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
46confidence=
47
48# Disable the message, report, category or checker with the given id(s). You
49# can either give multiple identifiers separated by comma (,) or put this
50# option multiple times (only on the command line, not in the configuration
51# file where it should appear only once).You can also use "--disable=all" to
52# disable everything first and then reenable specific checks. For example, if
53# you want to run only the similarities checker, you can use "--disable=all
54# --enable=similarities". If you want to run only the classes checker, but have
55# no Warning level messages displayed, use"--disable=all --enable=classes
56# --disable=W"
57disable=print-statement,
58        parameter-unpacking,
59        unpacking-in-except,
60        old-raise-syntax,
61        backtick,
62        long-suffix,
63        old-ne-operator,
64        old-octal-literal,
65        import-star-module-level,
66        non-ascii-bytes-literal,
67        raw-checker-failed,
68        bad-inline-option,
69        locally-disabled,
70        locally-enabled,
71        file-ignored,
72        suppressed-message,
73        useless-suppression,
74        deprecated-pragma,
75        apply-builtin,
76        basestring-builtin,
77        buffer-builtin,
78        cmp-builtin,
79        coerce-builtin,
80        execfile-builtin,
81        file-builtin,
82        long-builtin,
83        raw_input-builtin,
84        reduce-builtin,
85        standarderror-builtin,
86        unicode-builtin,
87        xrange-builtin,
88        coerce-method,
89        delslice-method,
90        getslice-method,
91        setslice-method,
92        no-absolute-import,
93        old-division,
94        dict-iter-method,
95        dict-view-method,
96        next-method-called,
97        metaclass-assignment,
98        indexing-exception,
99        raising-string,
100        reload-builtin,
101        oct-method,
102        hex-method,
103        nonzero-method,
104        cmp-method,
105        input-builtin,
106        round-builtin,
107        intern-builtin,
108        unichr-builtin,
109        map-builtin-not-iterating,
110        zip-builtin-not-iterating,
111        range-builtin-not-iterating,
112        filter-builtin-not-iterating,
113        using-cmp-argument,
114        eq-without-hash,
115        div-method,
116        idiv-method,
117        rdiv-method,
118        exception-message-attribute,
119        invalid-str-codec,
120        sys-max-int,
121        bad-python3-import,
122        deprecated-string-function,
123        deprecated-str-translate-call,
124        deprecated-itertools-function,
125        deprecated-types-field,
126        next-method-defined,
127        dict-items-not-iterating,
128        dict-keys-not-iterating,
129        dict-values-not-iterating
130
131# Enable the message, report, category or checker with the given id(s). You can
132# either give multiple identifier separated by comma (,) or put this option
133# multiple time (only on the command line, not in the configuration file where
134# it should appear only once). See also the "--disable" option for examples.
135enable=c-extension-no-member
136
137
138[REPORTS]
139
140# Python expression which should return a note less than 10 (10 is the highest
141# note). You have access to the variables errors warning, statement which
142# respectively contain the number of errors / warnings messages and the total
143# number of statements analyzed. This is used by the global evaluation report
144# (RP0004).
145evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
146
147# Template used to display messages. This is a python new-style format string
148# used to format the message information. See doc for all details
149#msg-template=
150
151# Set the output format. Available formats are text, parseable, colorized, json
152# and msvs (visual studio).You can also give a reporter class, eg
153# mypackage.mymodule.MyReporterClass.
154output-format=text
155
156# Tells whether to display a full report or only the messages
157reports=no
158
159# Activate the evaluation score.
160score=yes
161
162
163[REFACTORING]
164
165# Maximum number of nested blocks for function / method body
166max-nested-blocks=5
167
168# Complete name of functions that never returns. When checking for
169# inconsistent-return-statements if a never returning function is called then
170# it will be considered as an explicit return statement and no message will be
171# printed.
172never-returning-functions=optparse.Values,sys.exit
173
174
175[TYPECHECK]
176
177# List of decorators that produce context managers, such as
178# contextlib.contextmanager. Add to this list to register other decorators that
179# produce valid context managers.
180contextmanager-decorators=contextlib.contextmanager
181
182# List of members which are set dynamically and missed by pylint inference
183# system, and so shouldn't trigger E1101 when accessed. Python regular
184# expressions are accepted.
185generated-members=
186
187# Tells whether missing members accessed in mixin class should be ignored. A
188# mixin class is detected if its name ends with "mixin" (case insensitive).
189ignore-mixin-members=yes
190
191# This flag controls whether pylint should warn about no-member and similar
192# checks whenever an opaque object is returned when inferring. The inference
193# can return multiple potential results while evaluating a Python object, but
194# some branches might not be evaluated, which results in partial inference. In
195# that case, it might be useful to still emit no-member and other checks for
196# the rest of the inferred objects.
197ignore-on-opaque-inference=yes
198
199# List of class names for which member attributes should not be checked (useful
200# for classes with dynamically set attributes). This supports the use of
201# qualified names.
202ignored-classes=optparse.Values,thread._local,_thread._local
203
204# List of module names for which member attributes should not be checked
205# (useful for modules/projects where namespaces are manipulated during runtime
206# and thus existing member attributes cannot be deduced by static analysis. It
207# supports qualified module names, as well as Unix pattern matching.
208ignored-modules=
209
210# Show a hint with possible names when a member name was not found. The aspect
211# of finding the hint is based on edit distance.
212missing-member-hint=yes
213
214# The minimum edit distance a name should have in order to be considered a
215# similar match for a missing member name.
216missing-member-hint-distance=1
217
218# The total number of similar names that should be taken in consideration when
219# showing a hint for a missing member.
220missing-member-max-choices=1
221
222
223[SIMILARITIES]
224
225# Ignore comments when computing similarities.
226ignore-comments=yes
227
228# Ignore docstrings when computing similarities.
229ignore-docstrings=yes
230
231# Ignore imports when computing similarities.
232ignore-imports=no
233
234# Minimum lines number of a similarity.
235min-similarity-lines=4
236
237
238[SPELLING]
239
240# Limits count of emitted suggestions for spelling mistakes
241max-spelling-suggestions=4
242
243# Spelling dictionary name. Available dictionaries: none. To make it working
244# install python-enchant package.
245spelling-dict=
246
247# List of comma separated words that should not be checked.
248spelling-ignore-words=
249
250# A path to a file that contains private dictionary; one word per line.
251spelling-private-dict-file=
252
253# Tells whether to store unknown words to indicated private dictionary in
254# --spelling-private-dict-file option instead of raising a message.
255spelling-store-unknown-words=no
256
257
258[VARIABLES]
259
260# List of additional names supposed to be defined in builtins. Remember that
261# you should avoid to define new builtins when possible.
262additional-builtins=
263
264# Tells whether unused global variables should be treated as a violation.
265allow-global-unused-variables=yes
266
267# List of strings which can identify a callback function by name. A callback
268# name must start or end with one of those strings.
269callbacks=cb_,
270          _cb
271
272# A regular expression matching the name of dummy variables (i.e. expectedly
273# not used).
274dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
275
276# Argument names that match this expression will be ignored. Default to name
277# with leading underscore
278ignored-argument-names=_.*|^ignored_|^unused_
279
280# Tells whether we should check for unused import in __init__ files.
281init-import=no
282
283# List of qualified module names which can have objects that can redefine
284# builtins.
285redefining-builtins-modules=six.moves,past.builtins,future.builtins
286
287
288[BASIC]
289
290# Naming style matching correct argument names
291argument-naming-style=snake_case
292
293# Regular expression matching correct argument names. Overrides argument-
294# naming-style
295#argument-rgx=
296
297# Naming style matching correct attribute names
298attr-naming-style=snake_case
299
300# Regular expression matching correct attribute names. Overrides attr-naming-
301# style
302#attr-rgx=
303
304# Bad variable names which should always be refused, separated by a comma
305bad-names=foo,
306          bar,
307          baz,
308          toto,
309          tutu,
310          tata
311
312# Naming style matching correct class attribute names
313class-attribute-naming-style=any
314
315# Regular expression matching correct class attribute names. Overrides class-
316# attribute-naming-style
317#class-attribute-rgx=
318
319# Naming style matching correct class names
320class-naming-style=PascalCase
321
322# Regular expression matching correct class names. Overrides class-naming-style
323#class-rgx=
324
325# Naming style matching correct constant names
326const-naming-style=UPPER_CASE
327
328# Regular expression matching correct constant names. Overrides const-naming-
329# style
330#const-rgx=
331
332# Minimum line length for functions/classes that require docstrings, shorter
333# ones are exempt.
334docstring-min-length=-1
335
336# Naming style matching correct function names
337function-naming-style=snake_case
338
339# Regular expression matching correct function names. Overrides function-
340# naming-style
341#function-rgx=
342
343# Good variable names which should always be accepted, separated by a comma
344good-names=i,
345           j,
346           k,
347           ex,
348           Run,
349           _,
350           f,
351           fo,
352           c,
353           p,
354           e,
355           s,
356           l,
357           d,
358           dd,
359           v
360
361# Include a hint for the correct naming format with invalid-name
362include-naming-hint=no
363
364# Naming style matching correct inline iteration names
365inlinevar-naming-style=any
366
367# Regular expression matching correct inline iteration names. Overrides
368# inlinevar-naming-style
369#inlinevar-rgx=
370
371# Naming style matching correct method names
372method-naming-style=snake_case
373
374# Regular expression matching correct method names. Overrides method-naming-
375# style
376#method-rgx=
377
378# Naming style matching correct module names
379module-naming-style=snake_case
380
381# Regular expression matching correct module names. Overrides module-naming-
382# style
383#module-rgx=
384
385# Colon-delimited sets of names that determine each other's naming style when
386# the name regexes allow several styles.
387name-group=
388
389# Regular expression which should only match function or class names that do
390# not require a docstring.
391no-docstring-rgx=^_
392
393# List of decorators that produce properties, such as abc.abstractproperty. Add
394# to this list to register other decorators that produce valid properties.
395property-classes=abc.abstractproperty
396
397# Naming style matching correct variable names
398variable-naming-style=snake_case
399
400# Regular expression matching correct variable names. Overrides variable-
401# naming-style
402#variable-rgx=
403
404
405[MISCELLANEOUS]
406
407# List of note tags to take in consideration, separated by a comma.
408notes=FIXME,
409      XXX,
410      TODO
411
412
413[LOGGING]
414
415# Logging modules to check that the string format arguments are in logging
416# function parameter format
417logging-modules=logging
418
419
420[FORMAT]
421
422# Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
423expected-line-ending-format=
424
425# Regexp for a line that is allowed to be longer than the limit.
426ignore-long-lines=^\s*(# )?<?https?://\S+>?$
427
428# Number of spaces of indent required inside a hanging  or continued line.
429indent-after-paren=4
430
431# String used as indentation unit. This is usually "    " (4 spaces) or "\t" (1
432# tab).
433indent-string='    '
434
435# Maximum number of characters on a single line.
436max-line-length=100
437
438# Maximum number of lines in a module
439max-module-lines=1000
440
441# List of optional constructs for which whitespace checking is disabled. `dict-
442# separator` is used to allow tabulation in dicts, etc.: {1  : 1,\n222: 2}.
443# `trailing-comma` allows a space between comma and closing bracket: (a, ).
444# `empty-line` allows space-only lines.
445no-space-check=trailing-comma,
446               dict-separator
447
448# Allow the body of a class to be on the same line as the declaration if body
449# contains single statement.
450single-line-class-stmt=no
451
452# Allow the body of an if to be on the same line as the test if there is no
453# else.
454single-line-if-stmt=no
455
456
457[DESIGN]
458
459# Maximum number of arguments for function / method
460max-args=10
461
462# Maximum number of attributes for a class (see R0902).
463max-attributes=7
464
465# Maximum number of boolean expressions in a if statement
466max-bool-expr=5
467
468# Maximum number of branch for function / method body
469max-branches=12
470
471# Maximum number of locals for function / method body
472max-locals=15
473
474# Maximum number of parents for a class (see R0901).
475max-parents=7
476
477# Maximum number of public methods for a class (see R0904).
478max-public-methods=20
479
480# Maximum number of return / yield for function / method body
481max-returns=6
482
483# Maximum number of statements in function / method body
484max-statements=50
485
486# Minimum number of public methods for a class (see R0903).
487min-public-methods=2
488
489
490[IMPORTS]
491
492# Allow wildcard imports from modules that define __all__.
493allow-wildcard-with-all=no
494
495# Analyse import fallback blocks. This can be used to support both Python 2 and
496# 3 compatible code, which means that the block might have code that exists
497# only in one or another interpreter, leading to false positives when analysed.
498analyse-fallback-blocks=no
499
500# Deprecated modules which should not be used, separated by a comma
501deprecated-modules=regsub,
502                   TERMIOS,
503                   Bastion,
504                   rexec
505
506# Create a graph of external dependencies in the given file (report RP0402 must
507# not be disabled)
508ext-import-graph=
509
510# Create a graph of every (i.e. internal and external) dependencies in the
511# given file (report RP0402 must not be disabled)
512import-graph=
513
514# Create a graph of internal dependencies in the given file (report RP0402 must
515# not be disabled)
516int-import-graph=
517
518# Force import order to recognize a module as part of the standard
519# compatibility libraries.
520known-standard-library=
521
522# Force import order to recognize a module as part of a third party library.
523known-third-party=enchant
524
525
526[CLASSES]
527
528# List of method names used to declare (i.e. assign) instance attributes.
529defining-attr-methods=__init__,
530                      __new__,
531                      setUp
532
533# List of member names, which should be excluded from the protected access
534# warning.
535exclude-protected=_asdict,
536                  _fields,
537                  _replace,
538                  _source,
539                  _make
540
541# List of valid names for the first argument in a class method.
542valid-classmethod-first-arg=cls
543
544# List of valid names for the first argument in a metaclass class method.
545valid-metaclass-classmethod-first-arg=mcs
546
547
548[EXCEPTIONS]
549
550# Exceptions that will emit a warning when being caught. Defaults to
551# "Exception"
552overgeneral-exceptions=Exception
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG