xref: /aosp_15_r20/external/avb/pylintrc (revision d289c2ba6de359471b23d594623b906876bc48a0)
1*d289c2baSAndroid Build Coastguard Worker# Copyright 2016 The Android Open Source Project
2*d289c2baSAndroid Build Coastguard Worker#
3*d289c2baSAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License");
4*d289c2baSAndroid Build Coastguard Worker# you may not use this file except in compliance with the License.
5*d289c2baSAndroid Build Coastguard Worker# You may obtain a copy of the License at
6*d289c2baSAndroid Build Coastguard Worker#
7*d289c2baSAndroid Build Coastguard Worker#      http://www.apache.org/licenses/LICENSE-2.0
8*d289c2baSAndroid Build Coastguard Worker#
9*d289c2baSAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software
10*d289c2baSAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS,
11*d289c2baSAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*d289c2baSAndroid Build Coastguard Worker# See the License for the specific language governing permissions and
13*d289c2baSAndroid Build Coastguard Worker# limitations under the License.
14*d289c2baSAndroid Build Coastguard Worker
15*d289c2baSAndroid Build Coastguard Worker[MASTER]
16*d289c2baSAndroid Build Coastguard Worker
17*d289c2baSAndroid Build Coastguard Worker# Specify a configuration file.
18*d289c2baSAndroid Build Coastguard Worker#rcfile=
19*d289c2baSAndroid Build Coastguard Worker
20*d289c2baSAndroid Build Coastguard Worker# Python code to execute, usually for sys.path manipulation such as
21*d289c2baSAndroid Build Coastguard Worker# pygtk.require().
22*d289c2baSAndroid Build Coastguard Worker#init-hook=
23*d289c2baSAndroid Build Coastguard Worker
24*d289c2baSAndroid Build Coastguard Worker# Profiled execution.
25*d289c2baSAndroid Build Coastguard Workerprofile=no
26*d289c2baSAndroid Build Coastguard Worker
27*d289c2baSAndroid Build Coastguard Worker# Add files or directories to the blacklist. They should be base names, not
28*d289c2baSAndroid Build Coastguard Worker# paths.
29*d289c2baSAndroid Build Coastguard Workerignore=CVS,.svn,.git
30*d289c2baSAndroid Build Coastguard Workerignore-patterns=.*pb2\.py,.*pb2_grpc\.py
31*d289c2baSAndroid Build Coastguard Worker
32*d289c2baSAndroid Build Coastguard Worker# Pickle collected data for later comparisons.
33*d289c2baSAndroid Build Coastguard Workerpersistent=yes
34*d289c2baSAndroid Build Coastguard Worker
35*d289c2baSAndroid Build Coastguard Worker# List of plugins (as comma separated values of python modules names) to load,
36*d289c2baSAndroid Build Coastguard Worker# usually to register additional checkers.
37*d289c2baSAndroid Build Coastguard Workerload-plugins=
38*d289c2baSAndroid Build Coastguard Worker    pylint.extensions.bad_builtin,
39*d289c2baSAndroid Build Coastguard Worker    pylint.extensions.check_elif,
40*d289c2baSAndroid Build Coastguard Worker    pylint.extensions.docstyle,
41*d289c2baSAndroid Build Coastguard Worker    pylint.extensions.emptystring,
42*d289c2baSAndroid Build Coastguard Worker    pylint.extensions.overlapping_exceptions,
43*d289c2baSAndroid Build Coastguard Worker    pylint.extensions.redefined_variable_type,
44*d289c2baSAndroid Build Coastguard Worker
45*d289c2baSAndroid Build Coastguard Worker# Use multiple processes to speed up Pylint.  A value of 0 autodetects available
46*d289c2baSAndroid Build Coastguard Worker# processors.
47*d289c2baSAndroid Build Coastguard Workerjobs=0
48*d289c2baSAndroid Build Coastguard Worker
49*d289c2baSAndroid Build Coastguard Worker# Allow loading of arbitrary C extensions. Extensions are imported into the
50*d289c2baSAndroid Build Coastguard Worker# active Python interpreter and may run arbitrary code.
51*d289c2baSAndroid Build Coastguard Workerunsafe-load-any-extension=no
52*d289c2baSAndroid Build Coastguard Worker
53*d289c2baSAndroid Build Coastguard Worker# A comma-separated list of package or module names from where C extensions may
54*d289c2baSAndroid Build Coastguard Worker# be loaded. Extensions are loading into the active Python interpreter and may
55*d289c2baSAndroid Build Coastguard Worker# run arbitrary code
56*d289c2baSAndroid Build Coastguard Workerextension-pkg-whitelist=
57*d289c2baSAndroid Build Coastguard Worker
58*d289c2baSAndroid Build Coastguard Worker# Allow optimization of some AST trees. This will activate a peephole AST
59*d289c2baSAndroid Build Coastguard Worker# optimizer, which will apply various small optimizations. For instance, it can
60*d289c2baSAndroid Build Coastguard Worker# be used to obtain the result of joining multiple strings with the addition
61*d289c2baSAndroid Build Coastguard Worker# operator. Joining a lot of strings can lead to a maximum recursion error in
62*d289c2baSAndroid Build Coastguard Worker# Pylint and this flag can prevent that. It has one side effect, the resulting
63*d289c2baSAndroid Build Coastguard Worker# AST will be different than the one from reality.
64*d289c2baSAndroid Build Coastguard Workeroptimize-ast=no
65*d289c2baSAndroid Build Coastguard Worker
66*d289c2baSAndroid Build Coastguard Worker
67*d289c2baSAndroid Build Coastguard Worker[MESSAGES CONTROL]
68*d289c2baSAndroid Build Coastguard Worker
69*d289c2baSAndroid Build Coastguard Worker# Only show warnings with the listed confidence levels. Leave empty to show
70*d289c2baSAndroid Build Coastguard Worker# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
71*d289c2baSAndroid Build Coastguard Workerconfidence=
72*d289c2baSAndroid Build Coastguard Worker
73*d289c2baSAndroid Build Coastguard Worker# Enable the message, report, category or checker with the given id(s). You can
74*d289c2baSAndroid Build Coastguard Worker# either give multiple identifier separated by comma (,) or put this option
75*d289c2baSAndroid Build Coastguard Worker# multiple time. See also the "--disable" option for examples.
76*d289c2baSAndroid Build Coastguard Workerenable=
77*d289c2baSAndroid Build Coastguard Worker    apply-builtin,
78*d289c2baSAndroid Build Coastguard Worker    backtick,
79*d289c2baSAndroid Build Coastguard Worker    bad-python3-import,
80*d289c2baSAndroid Build Coastguard Worker    basestring-builtin,
81*d289c2baSAndroid Build Coastguard Worker    buffer-builtin,
82*d289c2baSAndroid Build Coastguard Worker    cmp-builtin,
83*d289c2baSAndroid Build Coastguard Worker    cmp-method,
84*d289c2baSAndroid Build Coastguard Worker    coerce-builtin,
85*d289c2baSAndroid Build Coastguard Worker    coerce-method,
86*d289c2baSAndroid Build Coastguard Worker    delslice-method,
87*d289c2baSAndroid Build Coastguard Worker    deprecated-itertools-function,
88*d289c2baSAndroid Build Coastguard Worker    deprecated-str-translate-call,
89*d289c2baSAndroid Build Coastguard Worker    deprecated-string-function,
90*d289c2baSAndroid Build Coastguard Worker    deprecated-types-field,
91*d289c2baSAndroid Build Coastguard Worker    dict-items-not-iterating,
92*d289c2baSAndroid Build Coastguard Worker    dict-iter-method,
93*d289c2baSAndroid Build Coastguard Worker    dict-keys-not-iterating,
94*d289c2baSAndroid Build Coastguard Worker    dict-values-not-iterating,
95*d289c2baSAndroid Build Coastguard Worker    dict-view-method,
96*d289c2baSAndroid Build Coastguard Worker    div-method,
97*d289c2baSAndroid Build Coastguard Worker    exception-message-attribute,
98*d289c2baSAndroid Build Coastguard Worker    execfile-builtin,
99*d289c2baSAndroid Build Coastguard Worker    file-builtin,
100*d289c2baSAndroid Build Coastguard Worker    filter-builtin-not-iterating,
101*d289c2baSAndroid Build Coastguard Worker    getslice-method,
102*d289c2baSAndroid Build Coastguard Worker    hex-method,
103*d289c2baSAndroid Build Coastguard Worker    idiv-method,
104*d289c2baSAndroid Build Coastguard Worker    import-star-module-level,
105*d289c2baSAndroid Build Coastguard Worker    indexing-exception,
106*d289c2baSAndroid Build Coastguard Worker    input-builtin,
107*d289c2baSAndroid Build Coastguard Worker    intern-builtin,
108*d289c2baSAndroid Build Coastguard Worker    invalid-str-codec,
109*d289c2baSAndroid Build Coastguard Worker    long-builtin,
110*d289c2baSAndroid Build Coastguard Worker    long-suffix,
111*d289c2baSAndroid Build Coastguard Worker    map-builtin-not-iterating,
112*d289c2baSAndroid Build Coastguard Worker    metaclass-assignment,
113*d289c2baSAndroid Build Coastguard Worker    next-method-called,
114*d289c2baSAndroid Build Coastguard Worker    next-method-defined,
115*d289c2baSAndroid Build Coastguard Worker    nonzero-method,
116*d289c2baSAndroid Build Coastguard Worker    oct-method,
117*d289c2baSAndroid Build Coastguard Worker    old-division,
118*d289c2baSAndroid Build Coastguard Worker    old-ne-operator,
119*d289c2baSAndroid Build Coastguard Worker    old-octal-literal,
120*d289c2baSAndroid Build Coastguard Worker    old-raise-syntax,
121*d289c2baSAndroid Build Coastguard Worker    parameter-unpacking,
122*d289c2baSAndroid Build Coastguard Worker    print-statement,
123*d289c2baSAndroid Build Coastguard Worker    raising-string,
124*d289c2baSAndroid Build Coastguard Worker    range-builtin-not-iterating,
125*d289c2baSAndroid Build Coastguard Worker    raw_input-builtin,
126*d289c2baSAndroid Build Coastguard Worker    rdiv-method,
127*d289c2baSAndroid Build Coastguard Worker    reduce-builtin,
128*d289c2baSAndroid Build Coastguard Worker    reload-builtin,
129*d289c2baSAndroid Build Coastguard Worker    round-builtin,
130*d289c2baSAndroid Build Coastguard Worker    setslice-method,
131*d289c2baSAndroid Build Coastguard Worker    standarderror-builtin,
132*d289c2baSAndroid Build Coastguard Worker    sys-max-int,
133*d289c2baSAndroid Build Coastguard Worker    unichr-builtin,
134*d289c2baSAndroid Build Coastguard Worker    unicode-builtin,
135*d289c2baSAndroid Build Coastguard Worker    unpacking-in-except,
136*d289c2baSAndroid Build Coastguard Worker    using-cmp-argument,
137*d289c2baSAndroid Build Coastguard Worker    xrange-builtin,
138*d289c2baSAndroid Build Coastguard Worker    zip-builtin-not-iterating,
139*d289c2baSAndroid Build Coastguard Worker
140*d289c2baSAndroid Build Coastguard Worker
141*d289c2baSAndroid Build Coastguard Worker# Disable the message, report, category or checker with the given id(s). You
142*d289c2baSAndroid Build Coastguard Worker# can either give multiple identifiers separated by comma (,) or put this
143*d289c2baSAndroid Build Coastguard Worker# option multiple times (only on the command line, not in the configuration
144*d289c2baSAndroid Build Coastguard Worker# file where it should appear only once).You can also use "--disable=all" to
145*d289c2baSAndroid Build Coastguard Worker# disable everything first and then reenable specific checks. For example, if
146*d289c2baSAndroid Build Coastguard Worker# you want to run only the similarities checker, you can use "--disable=all
147*d289c2baSAndroid Build Coastguard Worker# --enable=similarities". If you want to run only the classes checker, but have
148*d289c2baSAndroid Build Coastguard Worker# no Warning level messages displayed, use"--disable=all --enable=classes
149*d289c2baSAndroid Build Coastguard Worker# --disable=W"
150*d289c2baSAndroid Build Coastguard Worker# We leave many of the style warnings to judgement/peer review.
151*d289c2baSAndroid Build Coastguard Worker# useless-object-inheritance: We disable this for Python 2 compatibility.
152*d289c2baSAndroid Build Coastguard Workerdisable=
153*d289c2baSAndroid Build Coastguard Worker    fixme,
154*d289c2baSAndroid Build Coastguard Worker    file-ignored,
155*d289c2baSAndroid Build Coastguard Worker    invalid-name,
156*d289c2baSAndroid Build Coastguard Worker    locally-disabled,
157*d289c2baSAndroid Build Coastguard Worker    locally-enabled,
158*d289c2baSAndroid Build Coastguard Worker    missing-docstring,
159*d289c2baSAndroid Build Coastguard Worker    no-self-use,
160*d289c2baSAndroid Build Coastguard Worker    star-args,
161*d289c2baSAndroid Build Coastguard Worker    too-few-public-methods,
162*d289c2baSAndroid Build Coastguard Worker    too-many-arguments,
163*d289c2baSAndroid Build Coastguard Worker    too-many-branches,
164*d289c2baSAndroid Build Coastguard Worker    too-many-instance-attributes,
165*d289c2baSAndroid Build Coastguard Worker    too-many-lines,
166*d289c2baSAndroid Build Coastguard Worker    too-many-locals,
167*d289c2baSAndroid Build Coastguard Worker    too-many-public-methods,
168*d289c2baSAndroid Build Coastguard Worker    too-many-return-statements,
169*d289c2baSAndroid Build Coastguard Worker    too-many-statements,
170*d289c2baSAndroid Build Coastguard Worker    useless-object-inheritance,
171*d289c2baSAndroid Build Coastguard Worker
172*d289c2baSAndroid Build Coastguard Worker
173*d289c2baSAndroid Build Coastguard Worker[REPORTS]
174*d289c2baSAndroid Build Coastguard Worker
175*d289c2baSAndroid Build Coastguard Worker# Set the output format. Available formats are text, parseable, colorized, msvs
176*d289c2baSAndroid Build Coastguard Worker# (visual studio) and html. You can also give a reporter class, eg
177*d289c2baSAndroid Build Coastguard Worker# mypackage.mymodule.MyReporterClass.
178*d289c2baSAndroid Build Coastguard Workeroutput-format=text
179*d289c2baSAndroid Build Coastguard Worker
180*d289c2baSAndroid Build Coastguard Worker# Put messages in a separate file for each module / package specified on the
181*d289c2baSAndroid Build Coastguard Worker# command line instead of printing them on stdout. Reports (if any) will be
182*d289c2baSAndroid Build Coastguard Worker# written in a file name "pylint_global.[txt|html]".
183*d289c2baSAndroid Build Coastguard Workerfiles-output=no
184*d289c2baSAndroid Build Coastguard Worker
185*d289c2baSAndroid Build Coastguard Worker# Tells whether to display a full report or only the messages
186*d289c2baSAndroid Build Coastguard Workerreports=no
187*d289c2baSAndroid Build Coastguard Worker
188*d289c2baSAndroid Build Coastguard Worker# Activate the evaluation score.
189*d289c2baSAndroid Build Coastguard Workerscore=no
190*d289c2baSAndroid Build Coastguard Worker
191*d289c2baSAndroid Build Coastguard Worker# Python expression which should return a note less than 10 (10 is the highest
192*d289c2baSAndroid Build Coastguard Worker# note). You have access to the variables errors warning, statement which
193*d289c2baSAndroid Build Coastguard Worker# respectively contain the number of errors / warnings messages and the total
194*d289c2baSAndroid Build Coastguard Worker# number of statements analyzed. This is used by the global evaluation report
195*d289c2baSAndroid Build Coastguard Worker# (RP0004).
196*d289c2baSAndroid Build Coastguard Worker#evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
197*d289c2baSAndroid Build Coastguard Worker
198*d289c2baSAndroid Build Coastguard Worker# Template used to display messages. This is a python new-style format string
199*d289c2baSAndroid Build Coastguard Worker# used to format the message information. See doc for all details
200*d289c2baSAndroid Build Coastguard Worker#msg-template=
201*d289c2baSAndroid Build Coastguard Worker
202*d289c2baSAndroid Build Coastguard Worker
203*d289c2baSAndroid Build Coastguard Worker[SIMILARITIES]
204*d289c2baSAndroid Build Coastguard Worker
205*d289c2baSAndroid Build Coastguard Worker# Minimum lines number of a similarity.
206*d289c2baSAndroid Build Coastguard Workermin-similarity-lines=20
207*d289c2baSAndroid Build Coastguard Worker
208*d289c2baSAndroid Build Coastguard Worker# Ignore comments when computing similarities.
209*d289c2baSAndroid Build Coastguard Workerignore-comments=yes
210*d289c2baSAndroid Build Coastguard Worker
211*d289c2baSAndroid Build Coastguard Worker# Ignore docstrings when computing similarities.
212*d289c2baSAndroid Build Coastguard Workerignore-docstrings=yes
213*d289c2baSAndroid Build Coastguard Worker
214*d289c2baSAndroid Build Coastguard Worker# Ignore imports when computing similarities.
215*d289c2baSAndroid Build Coastguard Workerignore-imports=no
216*d289c2baSAndroid Build Coastguard Worker
217*d289c2baSAndroid Build Coastguard Worker
218*d289c2baSAndroid Build Coastguard Worker[TYPECHECK]
219*d289c2baSAndroid Build Coastguard Worker
220*d289c2baSAndroid Build Coastguard Worker# Tells whether missing members accessed in mixin class should be ignored. A
221*d289c2baSAndroid Build Coastguard Worker# mixin class is detected if its name ends with "mixin" (case insensitive).
222*d289c2baSAndroid Build Coastguard Workerignore-mixin-members=yes
223*d289c2baSAndroid Build Coastguard Worker
224*d289c2baSAndroid Build Coastguard Worker# List of module names for which member attributes should not be checked
225*d289c2baSAndroid Build Coastguard Worker# (useful for modules/projects where namespaces are manipulated during runtime
226*d289c2baSAndroid Build Coastguard Worker# and thus existing member attributes cannot be deduced by static analysis. It
227*d289c2baSAndroid Build Coastguard Worker# supports qualified module names, as well as Unix pattern matching.
228*d289c2baSAndroid Build Coastguard Workerignored-modules=
229*d289c2baSAndroid Build Coastguard Worker
230*d289c2baSAndroid Build Coastguard Worker# List of classes names for which member attributes should not be checked
231*d289c2baSAndroid Build Coastguard Worker# (useful for classes with attributes dynamically set). This supports can work
232*d289c2baSAndroid Build Coastguard Worker# with qualified names.
233*d289c2baSAndroid Build Coastguard Workerignored-classes=hashlib,numpy
234*d289c2baSAndroid Build Coastguard Worker
235*d289c2baSAndroid Build Coastguard Worker# List of members which are set dynamically and missed by pylint inference
236*d289c2baSAndroid Build Coastguard Worker# system, and so shouldn't trigger E1101 when accessed. Python regular
237*d289c2baSAndroid Build Coastguard Worker# expressions are accepted.
238*d289c2baSAndroid Build Coastguard Workergenerated-members=
239*d289c2baSAndroid Build Coastguard Worker
240*d289c2baSAndroid Build Coastguard Worker
241*d289c2baSAndroid Build Coastguard Worker[SPELLING]
242*d289c2baSAndroid Build Coastguard Worker
243*d289c2baSAndroid Build Coastguard Worker# Spelling dictionary name. Available dictionaries: none. To make it working
244*d289c2baSAndroid Build Coastguard Worker# install python-enchant package.
245*d289c2baSAndroid Build Coastguard Workerspelling-dict=
246*d289c2baSAndroid Build Coastguard Worker
247*d289c2baSAndroid Build Coastguard Worker# List of comma separated words that should not be checked.
248*d289c2baSAndroid Build Coastguard Workerspelling-ignore-words=
249*d289c2baSAndroid Build Coastguard Worker
250*d289c2baSAndroid Build Coastguard Worker# A path to a file that contains private dictionary; one word per line.
251*d289c2baSAndroid Build Coastguard Workerspelling-private-dict-file=
252*d289c2baSAndroid Build Coastguard Worker
253*d289c2baSAndroid Build Coastguard Worker# Tells whether to store unknown words to indicated private dictionary in
254*d289c2baSAndroid Build Coastguard Worker# --spelling-private-dict-file option instead of raising a message.
255*d289c2baSAndroid Build Coastguard Workerspelling-store-unknown-words=no
256*d289c2baSAndroid Build Coastguard Worker
257*d289c2baSAndroid Build Coastguard Worker
258*d289c2baSAndroid Build Coastguard Worker[LOGGING]
259*d289c2baSAndroid Build Coastguard Worker
260*d289c2baSAndroid Build Coastguard Worker# Logging modules to check that the string format arguments are in logging
261*d289c2baSAndroid Build Coastguard Worker# function parameter format
262*d289c2baSAndroid Build Coastguard Workerlogging-modules=logging
263*d289c2baSAndroid Build Coastguard Worker
264*d289c2baSAndroid Build Coastguard Worker
265*d289c2baSAndroid Build Coastguard Worker[VARIABLES]
266*d289c2baSAndroid Build Coastguard Worker
267*d289c2baSAndroid Build Coastguard Worker# Tells whether we should check for unused import in __init__ files.
268*d289c2baSAndroid Build Coastguard Workerinit-import=no
269*d289c2baSAndroid Build Coastguard Worker
270*d289c2baSAndroid Build Coastguard Worker# A regular expression matching the name of dummy variables (i.e. expectedly
271*d289c2baSAndroid Build Coastguard Worker# not used).
272*d289c2baSAndroid Build Coastguard Workerdummy-variables-rgx=_|unused_
273*d289c2baSAndroid Build Coastguard Worker
274*d289c2baSAndroid Build Coastguard Worker# List of additional names supposed to be defined in builtins. Remember that
275*d289c2baSAndroid Build Coastguard Worker# you should avoid to define new builtins when possible.
276*d289c2baSAndroid Build Coastguard Workeradditional-builtins=
277*d289c2baSAndroid Build Coastguard Worker
278*d289c2baSAndroid Build Coastguard Worker# List of strings which can identify a callback function by name. A callback
279*d289c2baSAndroid Build Coastguard Worker# name must start or end with one of those strings.
280*d289c2baSAndroid Build Coastguard Workercallbacks=cb_,_cb
281*d289c2baSAndroid Build Coastguard Worker
282*d289c2baSAndroid Build Coastguard Worker
283*d289c2baSAndroid Build Coastguard Worker[FORMAT]
284*d289c2baSAndroid Build Coastguard Worker
285*d289c2baSAndroid Build Coastguard Worker# Maximum number of characters on a single line.
286*d289c2baSAndroid Build Coastguard Workermax-line-length=80
287*d289c2baSAndroid Build Coastguard Worker
288*d289c2baSAndroid Build Coastguard Worker# Regexp for a line that is allowed to be longer than the limit.
289*d289c2baSAndroid Build Coastguard Workerignore-long-lines=^\s*(# )?<?https?://\S+>?$
290*d289c2baSAndroid Build Coastguard Worker
291*d289c2baSAndroid Build Coastguard Worker# Allow the body of an if to be on the same line as the test if there is no
292*d289c2baSAndroid Build Coastguard Worker# else.
293*d289c2baSAndroid Build Coastguard Workersingle-line-if-stmt=no
294*d289c2baSAndroid Build Coastguard Worker
295*d289c2baSAndroid Build Coastguard Worker# List of optional constructs for which whitespace checking is disabled. `dict-
296*d289c2baSAndroid Build Coastguard Worker# separator` is used to allow tabulation in dicts, etc.: {1  : 1,\n222: 2}.
297*d289c2baSAndroid Build Coastguard Worker# `trailing-comma` allows a space between comma and closing bracket: (a, ).
298*d289c2baSAndroid Build Coastguard Worker# `empty-line` allows space-only lines.
299*d289c2baSAndroid Build Coastguard Workerno-space-check=trailing-comma,dict-separator
300*d289c2baSAndroid Build Coastguard Worker
301*d289c2baSAndroid Build Coastguard Worker# Maximum number of lines in a module
302*d289c2baSAndroid Build Coastguard Workermax-module-lines=1000
303*d289c2baSAndroid Build Coastguard Worker
304*d289c2baSAndroid Build Coastguard Worker# String used as indentation unit. This is usually "    " (4 spaces) or "\t" (1
305*d289c2baSAndroid Build Coastguard Worker# tab).
306*d289c2baSAndroid Build Coastguard Workerindent-string='  '
307*d289c2baSAndroid Build Coastguard Worker
308*d289c2baSAndroid Build Coastguard Worker# Number of spaces of indent required inside a hanging  or continued line.
309*d289c2baSAndroid Build Coastguard Workerindent-after-paren=4
310*d289c2baSAndroid Build Coastguard Worker
311*d289c2baSAndroid Build Coastguard Worker# Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
312*d289c2baSAndroid Build Coastguard Workerexpected-line-ending-format=LF
313*d289c2baSAndroid Build Coastguard Worker
314*d289c2baSAndroid Build Coastguard Worker
315*d289c2baSAndroid Build Coastguard Worker[MISCELLANEOUS]
316*d289c2baSAndroid Build Coastguard Worker
317*d289c2baSAndroid Build Coastguard Worker# List of note tags to take in consideration, separated by a comma.
318*d289c2baSAndroid Build Coastguard Workernotes=FIXME,XXX,TODO
319*d289c2baSAndroid Build Coastguard Worker
320*d289c2baSAndroid Build Coastguard Worker
321*d289c2baSAndroid Build Coastguard Worker[BASIC]
322*d289c2baSAndroid Build Coastguard Worker
323*d289c2baSAndroid Build Coastguard Worker# List of builtins function names that should not be used, separated by a comma
324*d289c2baSAndroid Build Coastguard Workerbad-functions=map,filter,input
325*d289c2baSAndroid Build Coastguard Worker
326*d289c2baSAndroid Build Coastguard Worker# Good variable names which should always be accepted, separated by a comma
327*d289c2baSAndroid Build Coastguard Workergood-names=i,j,k,ex,x,_
328*d289c2baSAndroid Build Coastguard Worker
329*d289c2baSAndroid Build Coastguard Worker# Bad variable names which should always be refused, separated by a comma
330*d289c2baSAndroid Build Coastguard Workerbad-names=foo,bar,baz,toto,tutu,tata
331*d289c2baSAndroid Build Coastguard Worker
332*d289c2baSAndroid Build Coastguard Worker# Colon-delimited sets of names that determine each other's naming style when
333*d289c2baSAndroid Build Coastguard Worker# the name regexes allow several styles.
334*d289c2baSAndroid Build Coastguard Workername-group=
335*d289c2baSAndroid Build Coastguard Worker
336*d289c2baSAndroid Build Coastguard Worker# Include a hint for the correct naming format with invalid-name
337*d289c2baSAndroid Build Coastguard Workerinclude-naming-hint=no
338*d289c2baSAndroid Build Coastguard Worker
339*d289c2baSAndroid Build Coastguard Worker# Regular expression matching correct function names
340*d289c2baSAndroid Build Coastguard Workerfunction-rgx=[a-z_][a-z0-9_]{2,30}$
341*d289c2baSAndroid Build Coastguard Worker
342*d289c2baSAndroid Build Coastguard Worker# Naming hint for function names
343*d289c2baSAndroid Build Coastguard Workerfunction-name-hint=[a-z_][a-z0-9_]{2,30}$
344*d289c2baSAndroid Build Coastguard Worker
345*d289c2baSAndroid Build Coastguard Worker# Regular expression matching correct variable names
346*d289c2baSAndroid Build Coastguard Workervariable-rgx=[a-z_][a-z0-9_]{2,30}$
347*d289c2baSAndroid Build Coastguard Worker
348*d289c2baSAndroid Build Coastguard Worker# Naming hint for variable names
349*d289c2baSAndroid Build Coastguard Workervariable-name-hint=[a-z_][a-z0-9_]{2,30}$
350*d289c2baSAndroid Build Coastguard Worker
351*d289c2baSAndroid Build Coastguard Worker# Regular expression matching correct constant names
352*d289c2baSAndroid Build Coastguard Workerconst-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
353*d289c2baSAndroid Build Coastguard Worker
354*d289c2baSAndroid Build Coastguard Worker# Naming hint for constant names
355*d289c2baSAndroid Build Coastguard Workerconst-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
356*d289c2baSAndroid Build Coastguard Worker
357*d289c2baSAndroid Build Coastguard Worker# Regular expression matching correct attribute names
358*d289c2baSAndroid Build Coastguard Workerattr-rgx=[a-z_][a-z0-9_]{2,30}$
359*d289c2baSAndroid Build Coastguard Worker
360*d289c2baSAndroid Build Coastguard Worker# Naming hint for attribute names
361*d289c2baSAndroid Build Coastguard Workerattr-name-hint=[a-z_][a-z0-9_]{2,30}$
362*d289c2baSAndroid Build Coastguard Worker
363*d289c2baSAndroid Build Coastguard Worker# Regular expression matching correct argument names
364*d289c2baSAndroid Build Coastguard Workerargument-rgx=[a-z_][a-z0-9_]{2,30}$
365*d289c2baSAndroid Build Coastguard Worker
366*d289c2baSAndroid Build Coastguard Worker# Naming hint for argument names
367*d289c2baSAndroid Build Coastguard Workerargument-name-hint=[a-z_][a-z0-9_]{2,30}$
368*d289c2baSAndroid Build Coastguard Worker
369*d289c2baSAndroid Build Coastguard Worker# Regular expression matching correct class attribute names
370*d289c2baSAndroid Build Coastguard Workerclass-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
371*d289c2baSAndroid Build Coastguard Worker
372*d289c2baSAndroid Build Coastguard Worker# Naming hint for class attribute names
373*d289c2baSAndroid Build Coastguard Workerclass-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
374*d289c2baSAndroid Build Coastguard Worker
375*d289c2baSAndroid Build Coastguard Worker# Regular expression matching correct inline iteration names
376*d289c2baSAndroid Build Coastguard Workerinlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
377*d289c2baSAndroid Build Coastguard Worker
378*d289c2baSAndroid Build Coastguard Worker# Naming hint for inline iteration names
379*d289c2baSAndroid Build Coastguard Workerinlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
380*d289c2baSAndroid Build Coastguard Worker
381*d289c2baSAndroid Build Coastguard Worker# Regular expression matching correct class names
382*d289c2baSAndroid Build Coastguard Workerclass-rgx=[A-Z_][a-zA-Z0-9]+$
383*d289c2baSAndroid Build Coastguard Worker
384*d289c2baSAndroid Build Coastguard Worker# Naming hint for class names
385*d289c2baSAndroid Build Coastguard Workerclass-name-hint=[A-Z_][a-zA-Z0-9]+$
386*d289c2baSAndroid Build Coastguard Worker
387*d289c2baSAndroid Build Coastguard Worker# Regular expression matching correct module names
388*d289c2baSAndroid Build Coastguard Workermodule-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
389*d289c2baSAndroid Build Coastguard Worker
390*d289c2baSAndroid Build Coastguard Worker# Naming hint for module names
391*d289c2baSAndroid Build Coastguard Workermodule-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
392*d289c2baSAndroid Build Coastguard Worker
393*d289c2baSAndroid Build Coastguard Worker# Regular expression which should only match correct method names
394*d289c2baSAndroid Build Coastguard Workermethod-rgx=[a-z_][a-z0-9_]{2,30}$
395*d289c2baSAndroid Build Coastguard Worker
396*d289c2baSAndroid Build Coastguard Worker# Naming hint for method names
397*d289c2baSAndroid Build Coastguard Workermethod-name-hint=[a-z_][a-z0-9_]{2,30}$
398*d289c2baSAndroid Build Coastguard Worker
399*d289c2baSAndroid Build Coastguard Worker# Regular expression which should only match function or class names that do
400*d289c2baSAndroid Build Coastguard Worker# not require a docstring.
401*d289c2baSAndroid Build Coastguard Workerno-docstring-rgx=^_
402*d289c2baSAndroid Build Coastguard Worker
403*d289c2baSAndroid Build Coastguard Worker# Minimum line length for functions/classes that require docstrings, shorter
404*d289c2baSAndroid Build Coastguard Worker# ones are exempt.
405*d289c2baSAndroid Build Coastguard Workerdocstring-min-length=10
406*d289c2baSAndroid Build Coastguard Worker
407*d289c2baSAndroid Build Coastguard Worker
408*d289c2baSAndroid Build Coastguard Worker[ELIF]
409*d289c2baSAndroid Build Coastguard Worker
410*d289c2baSAndroid Build Coastguard Worker# Maximum number of nested blocks for function / method body
411*d289c2baSAndroid Build Coastguard Workermax-nested-blocks=5
412*d289c2baSAndroid Build Coastguard Worker
413*d289c2baSAndroid Build Coastguard Worker
414*d289c2baSAndroid Build Coastguard Worker[DESIGN]
415*d289c2baSAndroid Build Coastguard Worker
416*d289c2baSAndroid Build Coastguard Worker# Maximum number of arguments for function / method
417*d289c2baSAndroid Build Coastguard Workermax-args=5
418*d289c2baSAndroid Build Coastguard Worker
419*d289c2baSAndroid Build Coastguard Worker# Argument names that match this expression will be ignored. Default to name
420*d289c2baSAndroid Build Coastguard Worker# with leading underscore
421*d289c2baSAndroid Build Coastguard Workerignored-argument-names=_.*
422*d289c2baSAndroid Build Coastguard Worker
423*d289c2baSAndroid Build Coastguard Worker# Maximum number of locals for function / method body
424*d289c2baSAndroid Build Coastguard Workermax-locals=15
425*d289c2baSAndroid Build Coastguard Worker
426*d289c2baSAndroid Build Coastguard Worker# Maximum number of return / yield for function / method body
427*d289c2baSAndroid Build Coastguard Workermax-returns=6
428*d289c2baSAndroid Build Coastguard Worker
429*d289c2baSAndroid Build Coastguard Worker# Maximum number of branch for function / method body
430*d289c2baSAndroid Build Coastguard Workermax-branches=12
431*d289c2baSAndroid Build Coastguard Worker
432*d289c2baSAndroid Build Coastguard Worker# Maximum number of statements in function / method body
433*d289c2baSAndroid Build Coastguard Workermax-statements=50
434*d289c2baSAndroid Build Coastguard Worker
435*d289c2baSAndroid Build Coastguard Worker# Maximum number of parents for a class (see R0901).
436*d289c2baSAndroid Build Coastguard Workermax-parents=10
437*d289c2baSAndroid Build Coastguard Worker
438*d289c2baSAndroid Build Coastguard Worker# Maximum number of attributes for a class (see R0902).
439*d289c2baSAndroid Build Coastguard Workermax-attributes=7
440*d289c2baSAndroid Build Coastguard Worker
441*d289c2baSAndroid Build Coastguard Worker# Minimum number of public methods for a class (see R0903).
442*d289c2baSAndroid Build Coastguard Workermin-public-methods=2
443*d289c2baSAndroid Build Coastguard Worker
444*d289c2baSAndroid Build Coastguard Worker# Maximum number of public methods for a class (see R0904).
445*d289c2baSAndroid Build Coastguard Workermax-public-methods=20
446*d289c2baSAndroid Build Coastguard Worker
447*d289c2baSAndroid Build Coastguard Worker# Maximum number of boolean expressions in a if statement
448*d289c2baSAndroid Build Coastguard Workermax-bool-expr=5
449*d289c2baSAndroid Build Coastguard Worker
450*d289c2baSAndroid Build Coastguard Worker
451*d289c2baSAndroid Build Coastguard Worker[CLASSES]
452*d289c2baSAndroid Build Coastguard Worker
453*d289c2baSAndroid Build Coastguard Worker# List of method names used to declare (i.e. assign) instance attributes.
454*d289c2baSAndroid Build Coastguard Workerdefining-attr-methods=__init__,__new__,setUp
455*d289c2baSAndroid Build Coastguard Worker
456*d289c2baSAndroid Build Coastguard Worker# List of valid names for the first argument in a class method.
457*d289c2baSAndroid Build Coastguard Workervalid-classmethod-first-arg=cls
458*d289c2baSAndroid Build Coastguard Worker
459*d289c2baSAndroid Build Coastguard Worker# List of valid names for the first argument in a metaclass class method.
460*d289c2baSAndroid Build Coastguard Workervalid-metaclass-classmethod-first-arg=mcs
461*d289c2baSAndroid Build Coastguard Worker
462*d289c2baSAndroid Build Coastguard Worker# List of member names, which should be excluded from the protected access
463*d289c2baSAndroid Build Coastguard Worker# warning.
464*d289c2baSAndroid Build Coastguard Workerexclude-protected=_asdict,_fields,_replace,_source,_make
465*d289c2baSAndroid Build Coastguard Worker
466*d289c2baSAndroid Build Coastguard Worker
467*d289c2baSAndroid Build Coastguard Worker[IMPORTS]
468*d289c2baSAndroid Build Coastguard Worker
469*d289c2baSAndroid Build Coastguard Worker# Deprecated modules which should not be used, separated by a comma
470*d289c2baSAndroid Build Coastguard Workerdeprecated-modules=regsub,TERMIOS,Bastion,rexec,optparse
471*d289c2baSAndroid Build Coastguard Worker
472*d289c2baSAndroid Build Coastguard Worker# Create a graph of every (i.e. internal and external) dependencies in the
473*d289c2baSAndroid Build Coastguard Worker# given file (report RP0402 must not be disabled)
474*d289c2baSAndroid Build Coastguard Workerimport-graph=
475*d289c2baSAndroid Build Coastguard Worker
476*d289c2baSAndroid Build Coastguard Worker# Create a graph of external dependencies in the given file (report RP0402 must
477*d289c2baSAndroid Build Coastguard Worker# not be disabled)
478*d289c2baSAndroid Build Coastguard Workerext-import-graph=
479*d289c2baSAndroid Build Coastguard Worker
480*d289c2baSAndroid Build Coastguard Worker# Create a graph of internal dependencies in the given file (report RP0402 must
481*d289c2baSAndroid Build Coastguard Worker# not be disabled)
482*d289c2baSAndroid Build Coastguard Workerint-import-graph=
483*d289c2baSAndroid Build Coastguard Worker
484*d289c2baSAndroid Build Coastguard Worker
485*d289c2baSAndroid Build Coastguard Worker[EXCEPTIONS]
486*d289c2baSAndroid Build Coastguard Worker
487*d289c2baSAndroid Build Coastguard Worker# Exceptions that will emit a warning when being caught. Defaults to
488*d289c2baSAndroid Build Coastguard Worker# "Exception"
489*d289c2baSAndroid Build Coastguard Workerovergeneral-exceptions=Exception
490