update docs for procedure after host reboot
[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  inconsistent-return-statements,
73  interface-not-implemented,
74  no-else-return,
75  no-self-use,
76  redefined-argument-from-local,
77  simplifiable-if-statement,
78  too-few-public-methods,
79  too-many-ancestors,
80  too-many-arguments,
81  too-many-branches,
82  too-many-instance-attributes,
83  too-many-lines,
84  too-many-locals,
85  too-many-nested-blocks,
86  too-many-public-methods,
87  too-many-return-statements,
88  too-many-statements
89
90 [BASIC]
91 # Variable names can be 1 to 31 characters long, with lowercase and underscores
92 variable-rgx=[a-z_][a-z0-9_]{0,30}$
93
94 # Argument names can be 2 to 31 characters long, with lowercase and underscores
95 argument-rgx=[a-z_][a-z0-9_]{1,30}$
96
97 # Method names should be at least 3 characters long
98 # and be lowercased with underscores
99 method-rgx=([a-z_][a-z0-9_]{2,}|setUp|tearDown)$
100
101 # Module names matching neutron-* are ok (files in bin/)
102 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
103
104 # Don't require docstrings on tests.
105 no-docstring-rgx=((__.*__)|([tT]est.*)|setUp|tearDown)$
106
107 dummy-variables-rgx=(_+[a-zA-Z0-9]*?$)|dummy|args
108
109 [FORMAT]
110 # Maximum number of characters on a single line.
111 max-line-length=99
112
113 # String used as indentation unit. This is usually "    " (4 spaces) or "\t" (1
114 # tab).
115 indent-string='    '
116
117
118 [VARIABLES]
119 # List of additional names supposed to be defined in builtins. Remember that
120 # you should avoid to define new builtins when possible.
121 # _ is used by our localization
122 additional-builtins=_
123
124
125 [CLASSES]
126 # List of interface methods to ignore, separated by a comma.
127 ignore-iface-methods=
128
129
130 [TYPECHECK]
131 # List of module names for which member attributes should not be checked
132 ignored-modules=six.moves,_MovedItems
133
134
135 [REPORTS]
136 # Tells whether to display a full report or only the messages
137 reports=no
138
139 # Set the output format. Available formats are text, parseable, colorized, msvs
140 # (visual studio) and html. You can also give a reporter class, eg
141 # mypackage.mymodule.MyReporterClass.
142 output-format=colorized
143
144 # Python expression which should return a note less than 10 (10 is the highest
145 # note). You have access to the variables errors warning, statement which
146 # respectively contain the number of errors / warnings messages and the total
147 # number of statements analyzed. This is used by the global evaluation report
148 # (RP0004).
149 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
150
151
152 [MISCELLANEOUS]
153
154 # List of note tags to take in consideration, separated by a comma.
155 notes=FIXME,XXX,TODO