| 1 |
# The format of this file isn't really documented; just use --generate-rcfile |
| 2 |
[MASTER] |
| 3 |
# Add <file or directory> to the black list. It should be a base name, not a |
| 4 |
# path. You may set this option multiple times. |
| 5 |
ignore=.git,tests |
| 6 |
|
| 7 |
[MESSAGES CONTROL] |
| 8 |
# NOTE(gus): This is a long list. A number of these are important and |
| 9 |
# should be re-enabled once the offending code is fixed (or marked |
| 10 |
# with a local disable) |
| 11 |
disable= |
| 12 |
# "F" Fatal errors that prevent further processing |
| 13 |
import-error, |
| 14 |
# "I" Informational noise |
| 15 |
locally-disabled, |
| 16 |
# "E" Error for important programming issues (likely bugs) |
| 17 |
access-member-before-definition, |
| 18 |
no-member, |
| 19 |
no-method-argument, |
| 20 |
no-self-argument, |
| 21 |
possibly-used-before-assignment, |
| 22 |
# "W" Warnings for stylistic problems or minor programming issues |
| 23 |
abstract-method, |
| 24 |
arguments-differ, |
| 25 |
attribute-defined-outside-init, |
| 26 |
bad-indentation, |
| 27 |
broad-except, |
| 28 |
dangerous-default-value, |
| 29 |
expression-not-assigned, |
| 30 |
fixme, |
| 31 |
global-statement, |
| 32 |
not-callable, |
| 33 |
protected-access, |
| 34 |
redefined-builtin, |
| 35 |
redefined-outer-name, |
| 36 |
signature-differs, |
| 37 |
super-init-not-called, |
| 38 |
unpacking-non-sequence, |
| 39 |
unused-argument, |
| 40 |
unused-import, |
| 41 |
unused-variable, |
| 42 |
# "C" Coding convention violations |
| 43 |
invalid-name, |
| 44 |
len-as-condition, |
| 45 |
missing-docstring, |
| 46 |
superfluous-parens, |
| 47 |
# "R" Refactor recommendations |
| 48 |
duplicate-code, |
| 49 |
inconsistent-return-statements, |
| 50 |
no-else-return, |
| 51 |
too-few-public-methods, |
| 52 |
too-many-ancestors, |
| 53 |
too-many-arguments, |
| 54 |
too-many-branches, |
| 55 |
too-many-instance-attributes, |
| 56 |
too-many-lines, |
| 57 |
too-many-locals, |
| 58 |
too-many-public-methods, |
| 59 |
too-many-return-statements, |
| 60 |
too-many-statements |
| 61 |
|
| 62 |
[BASIC] |
| 63 |
# Variable names can be 1 to 31 characters long, with lowercase and underscores |
| 64 |
variable-rgx=[a-z_][a-z0-9_]{0,30}$ |
| 65 |
|
| 66 |
# Argument names can be 2 to 31 characters long, with lowercase and underscores |
| 67 |
argument-rgx=[a-z_][a-z0-9_]{1,30}$ |
| 68 |
|
| 69 |
# Method names should be at least 3 characters long |
| 70 |
# and be lowercased with underscores |
| 71 |
method-rgx=([a-z_][a-z0-9_]{2,}|setUp|tearDown)$ |
| 72 |
|
| 73 |
# Module names matching neutron-* are ok (files in bin/) |
| 74 |
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+)|(neutron-[a-z0-9_-]+))$ |
| 75 |
|
| 76 |
# Don't require docstrings on tests. |
| 77 |
no-docstring-rgx=((__.*__)|([tT]est.*)|setUp|tearDown)$ |
| 78 |
|
| 79 |
[FORMAT] |
| 80 |
# Maximum number of characters on a single line. |
| 81 |
max-line-length=79 |
| 82 |
|
| 83 |
[VARIABLES] |
| 84 |
# List of additional names supposed to be defined in builtins. Remember that |
| 85 |
# you should avoid to define new builtins when possible. |
| 86 |
# _ is used by our localization |
| 87 |
additional-builtins=_ |
| 88 |
|
| 89 |
[IMPORTS] |
| 90 |
# Deprecated modules which should not be used, separated by a comma |
| 91 |
deprecated-modules= |
| 92 |
# should use oslo_serialization.jsonutils |
| 93 |
json |
| 94 |
|
| 95 |
[REPORTS] |
| 96 |
# Tells whether to display a full report or only the messages |
| 97 |
reports=no |