Debian Codegraph @

ansible_collections/community/dns/.pylintrc

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