NSB: Fix standalone.model.Libvirt SR-IOV modeling
[yardstick.git] / .pylintrc
1 [MASTER]
2
3 # List of plugins (as comma separated values of python modules names) to load,
4 # usually to register additional checkers.
5 load-plugins=
6
7 # Use multiple processes to speed up Pylint.
8 jobs=1
9
10 # A comma-separated list of package or module names from where C extensions may
11 # be loaded. Extensions are loading into the active Python interpreter and may
12 # run arbitrary code
13 extension-pkg-whitelist=
14
15
16 [MESSAGES CONTROL]
17
18 # --disable=W"
19 disable=
20 # "F" Fatal errors that prevent further processing
21  import-error,
22 # "I" Informational noise
23  locally-disabled,
24 # "E" Error for important programming issues (likely bugs)
25  access-member-before-definition,
26  no-member,
27  no-method-argument,
28  no-self-argument,
29  not-an-iterable,
30 # "W" Warnings for stylistic problems or minor programming issues
31  abstract-method,
32  arguments-differ,
33  attribute-defined-outside-init,
34  bad-builtin,
35  bad-indentation,
36  dangerous-default-value,
37  deprecated-lambda,
38  expression-not-assigned,
39  global-statement,
40  literal-comparison,
41  no-init,
42  non-parent-init-called,
43  not-callable,
44  protected-access,
45  redefined-builtin,
46  redefined-outer-name,
47  signature-differs,
48  star-args,
49  super-init-not-called,
50  super-on-old-class,
51  unpacking-non-sequence,
52  useless-super-delegation,
53  nonstandard-exception,
54 # "C" Coding convention violations
55  bad-continuation,
56  consider-iterating-dictionary,
57  consider-using-enumerate,
58  invalid-name,
59  len-as-condition,
60  misplaced-comparison-constant,
61  missing-docstring,
62  singleton-comparison,
63  superfluous-parens,
64  ungrouped-imports,
65  wrong-import-order,
66 # "R" Refactor recommendations
67  abstract-class-little-used,
68  abstract-class-not-used,
69  consider-merging-isinstance,
70  consider-using-ternary,
71  duplicate-code,
72  interface-not-implemented,
73  no-else-return,
74  no-self-use,
75  redefined-argument-from-local,
76  simplifiable-if-statement,
77  too-few-public-methods,
78  too-many-ancestors,
79  too-many-arguments,
80  too-many-branches,
81  too-many-instance-attributes,
82  too-many-lines,
83  too-many-locals,
84  too-many-nested-blocks,
85  too-many-public-methods,
86  too-many-return-statements,
87  too-many-statements
88
89 [BASIC]
90 # Variable names can be 1 to 31 characters long, with lowercase and underscores
91 variable-rgx=[a-z_][a-z0-9_]{0,30}$
92
93 # Argument names can be 2 to 31 characters long, with lowercase and underscores
94 argument-rgx=[a-z_][a-z0-9_]{1,30}$
95
96 # Method names should be at least 3 characters long
97 # and be lowercased with underscores
98 method-rgx=([a-z_][a-z0-9_]{2,}|setUp|tearDown)$
99
100 # Module names matching neutron-* are ok (files in bin/)
101 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
102
103 # Don't require docstrings on tests.
104 no-docstring-rgx=((__.*__)|([tT]est.*)|setUp|tearDown)$
105
106 dummy-variables-rgx=(_+[a-zA-Z0-9]*?$)|dummy|args
107
108 [FORMAT]
109 # Maximum number of characters on a single line.
110 max-line-length=99
111
112 # String used as indentation unit. This is usually "    " (4 spaces) or "\t" (1
113 # tab).
114 indent-string='    '
115
116
117 [VARIABLES]
118 # List of additional names supposed to be defined in builtins. Remember that
119 # you should avoid to define new builtins when possible.
120 # _ is used by our localization
121 additional-builtins=_
122
123
124 [CLASSES]
125 # List of interface methods to ignore, separated by a comma.
126 ignore-iface-methods=
127
128
129 [TYPECHECK]
130 # List of module names for which member attributes should not be checked
131 ignored-modules=six.moves,_MovedItems
132
133
134 [REPORTS]
135 # Tells whether to display a full report or only the messages
136 reports=no
137
138 # Set the output format. Available formats are text, parseable, colorized, msvs
139 # (visual studio) and html. You can also give a reporter class, eg
140 # mypackage.mymodule.MyReporterClass.
141 output-format=colorized
142
143 # Python expression which should return a note less than 10 (10 is the highest
144 # note). You have access to the variables errors warning, statement which
145 # respectively contain the number of errors / warnings messages and the total
146 # number of statements analyzed. This is used by the global evaluation report
147 # (RP0004).
148 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
149
150
151 [MISCELLANEOUS]
152
153 # List of note tags to take in consideration, separated by a comma.
154 notes=FIXME,XXX,TODO