xref: /aosp_15_r20/build/make/tools/releasetools/pylintrc (revision 9e94795a3d4ef5c1d47486f9a02bb378756cea8a)
1*9e94795aSAndroid Build Coastguard Worker[MASTER]
2*9e94795aSAndroid Build Coastguard Worker
3*9e94795aSAndroid Build Coastguard Worker# Specify a configuration file.
4*9e94795aSAndroid Build Coastguard Worker#rcfile=
5*9e94795aSAndroid Build Coastguard Worker
6*9e94795aSAndroid Build Coastguard Worker# Python code to execute, usually for sys.path manipulation such as
7*9e94795aSAndroid Build Coastguard Worker# pygtk.require().
8*9e94795aSAndroid Build Coastguard Worker#init-hook=
9*9e94795aSAndroid Build Coastguard Worker
10*9e94795aSAndroid Build Coastguard Worker# Profiled execution.
11*9e94795aSAndroid Build Coastguard Workerprofile=no
12*9e94795aSAndroid Build Coastguard Worker
13*9e94795aSAndroid Build Coastguard Worker# Add files or directories to the blacklist. They should be base names, not
14*9e94795aSAndroid Build Coastguard Worker# paths.
15*9e94795aSAndroid Build Coastguard Workerignore=CVS
16*9e94795aSAndroid Build Coastguard Worker
17*9e94795aSAndroid Build Coastguard Worker# Pickle collected data for later comparisons.
18*9e94795aSAndroid Build Coastguard Workerpersistent=yes
19*9e94795aSAndroid Build Coastguard Worker
20*9e94795aSAndroid Build Coastguard Worker# List of plugins (as comma separated values of python modules names) to load,
21*9e94795aSAndroid Build Coastguard Worker# usually to register additional checkers.
22*9e94795aSAndroid Build Coastguard Workerload-plugins=
23*9e94795aSAndroid Build Coastguard Worker
24*9e94795aSAndroid Build Coastguard Worker# Use multiple processes to speed up Pylint.
25*9e94795aSAndroid Build Coastguard Workerjobs=1
26*9e94795aSAndroid Build Coastguard Worker
27*9e94795aSAndroid Build Coastguard Worker# Allow loading of arbitrary C extensions. Extensions are imported into the
28*9e94795aSAndroid Build Coastguard Worker# active Python interpreter and may run arbitrary code.
29*9e94795aSAndroid Build Coastguard Workerunsafe-load-any-extension=no
30*9e94795aSAndroid Build Coastguard Worker
31*9e94795aSAndroid Build Coastguard Worker# A comma-separated list of package or module names from where C extensions may
32*9e94795aSAndroid Build Coastguard Worker# be loaded. Extensions are loading into the active Python interpreter and may
33*9e94795aSAndroid Build Coastguard Worker# run arbitrary code
34*9e94795aSAndroid Build Coastguard Workerextension-pkg-whitelist=
35*9e94795aSAndroid Build Coastguard Worker
36*9e94795aSAndroid Build Coastguard Worker# Allow optimization of some AST trees. This will activate a peephole AST
37*9e94795aSAndroid Build Coastguard Worker# optimizer, which will apply various small optimizations. For instance, it can
38*9e94795aSAndroid Build Coastguard Worker# be used to obtain the result of joining multiple strings with the addition
39*9e94795aSAndroid Build Coastguard Worker# operator. Joining a lot of strings can lead to a maximum recursion error in
40*9e94795aSAndroid Build Coastguard Worker# Pylint and this flag can prevent that. It has one side effect, the resulting
41*9e94795aSAndroid Build Coastguard Worker# AST will be different than the one from reality.
42*9e94795aSAndroid Build Coastguard Workeroptimize-ast=no
43*9e94795aSAndroid Build Coastguard Worker
44*9e94795aSAndroid Build Coastguard Worker
45*9e94795aSAndroid Build Coastguard Worker[MESSAGES CONTROL]
46*9e94795aSAndroid Build Coastguard Worker
47*9e94795aSAndroid Build Coastguard Worker# Only show warnings with the listed confidence levels. Leave empty to show
48*9e94795aSAndroid Build Coastguard Worker# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
49*9e94795aSAndroid Build Coastguard Workerconfidence=
50*9e94795aSAndroid Build Coastguard Worker
51*9e94795aSAndroid Build Coastguard Worker# Enable the message, report, category or checker with the given id(s). You can
52*9e94795aSAndroid Build Coastguard Worker# either give multiple identifier separated by comma (,) or put this option
53*9e94795aSAndroid Build Coastguard Worker# multiple time. See also the "--disable" option for examples.
54*9e94795aSAndroid Build Coastguard Worker#enable=
55*9e94795aSAndroid Build Coastguard Worker
56*9e94795aSAndroid Build Coastguard Worker# Disable the message, report, category or checker with the given id(s). You
57*9e94795aSAndroid Build Coastguard Worker# can either give multiple identifiers separated by comma (,) or put this
58*9e94795aSAndroid Build Coastguard Worker# option multiple times (only on the command line, not in the configuration
59*9e94795aSAndroid Build Coastguard Worker# file where it should appear only once).You can also use "--disable=all" to
60*9e94795aSAndroid Build Coastguard Worker# disable everything first and then reenable specific checks. For example, if
61*9e94795aSAndroid Build Coastguard Worker# you want to run only the similarities checker, you can use "--disable=all
62*9e94795aSAndroid Build Coastguard Worker# --enable=similarities". If you want to run only the classes checker, but have
63*9e94795aSAndroid Build Coastguard Worker# no Warning level messages displayed, use"--disable=all --enable=classes
64*9e94795aSAndroid Build Coastguard Worker# --disable=W"
65*9e94795aSAndroid Build Coastguard Workerdisable=invalid-name,missing-docstring,too-many-branches,too-many-locals,too-many-arguments,too-many-statements,duplicate-code,too-few-public-methods,too-many-instance-attributes,too-many-lines,too-many-public-methods,locally-disabled,fixme,not-callable
66*9e94795aSAndroid Build Coastguard Worker
67*9e94795aSAndroid Build Coastguard Worker
68*9e94795aSAndroid Build Coastguard Worker[REPORTS]
69*9e94795aSAndroid Build Coastguard Worker
70*9e94795aSAndroid Build Coastguard Worker# Set the output format. Available formats are text, parseable, colorized, msvs
71*9e94795aSAndroid Build Coastguard Worker# (visual studio) and html. You can also give a reporter class, eg
72*9e94795aSAndroid Build Coastguard Worker# mypackage.mymodule.MyReporterClass.
73*9e94795aSAndroid Build Coastguard Workeroutput-format=text
74*9e94795aSAndroid Build Coastguard Worker
75*9e94795aSAndroid Build Coastguard Worker# Put messages in a separate file for each module / package specified on the
76*9e94795aSAndroid Build Coastguard Worker# command line instead of printing them on stdout. Reports (if any) will be
77*9e94795aSAndroid Build Coastguard Worker# written in a file name "pylint_global.[txt|html]".
78*9e94795aSAndroid Build Coastguard Workerfiles-output=no
79*9e94795aSAndroid Build Coastguard Worker
80*9e94795aSAndroid Build Coastguard Worker# Tells whether to display a full report or only the messages
81*9e94795aSAndroid Build Coastguard Workerreports=yes
82*9e94795aSAndroid Build Coastguard Worker
83*9e94795aSAndroid Build Coastguard Worker# Python expression which should return a note less than 10 (10 is the highest
84*9e94795aSAndroid Build Coastguard Worker# note). You have access to the variables errors warning, statement which
85*9e94795aSAndroid Build Coastguard Worker# respectively contain the number of errors / warnings messages and the total
86*9e94795aSAndroid Build Coastguard Worker# number of statements analyzed. This is used by the global evaluation report
87*9e94795aSAndroid Build Coastguard Worker# (RP0004).
88*9e94795aSAndroid Build Coastguard Workerevaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
89*9e94795aSAndroid Build Coastguard Worker
90*9e94795aSAndroid Build Coastguard Worker# Add a comment according to your evaluation note. This is used by the global
91*9e94795aSAndroid Build Coastguard Worker# evaluation report (RP0004).
92*9e94795aSAndroid Build Coastguard Workercomment=no
93*9e94795aSAndroid Build Coastguard Worker
94*9e94795aSAndroid Build Coastguard Worker# Template used to display messages. This is a python new-style format string
95*9e94795aSAndroid Build Coastguard Worker# used to format the message information. See doc for all details
96*9e94795aSAndroid Build Coastguard Worker#msg-template=
97*9e94795aSAndroid Build Coastguard Worker
98*9e94795aSAndroid Build Coastguard Worker
99*9e94795aSAndroid Build Coastguard Worker[SIMILARITIES]
100*9e94795aSAndroid Build Coastguard Worker
101*9e94795aSAndroid Build Coastguard Worker# Minimum lines number of a similarity.
102*9e94795aSAndroid Build Coastguard Workermin-similarity-lines=4
103*9e94795aSAndroid Build Coastguard Worker
104*9e94795aSAndroid Build Coastguard Worker# Ignore comments when computing similarities.
105*9e94795aSAndroid Build Coastguard Workerignore-comments=yes
106*9e94795aSAndroid Build Coastguard Worker
107*9e94795aSAndroid Build Coastguard Worker# Ignore docstrings when computing similarities.
108*9e94795aSAndroid Build Coastguard Workerignore-docstrings=yes
109*9e94795aSAndroid Build Coastguard Worker
110*9e94795aSAndroid Build Coastguard Worker# Ignore imports when computing similarities.
111*9e94795aSAndroid Build Coastguard Workerignore-imports=no
112*9e94795aSAndroid Build Coastguard Worker
113*9e94795aSAndroid Build Coastguard Worker
114*9e94795aSAndroid Build Coastguard Worker[TYPECHECK]
115*9e94795aSAndroid Build Coastguard Worker
116*9e94795aSAndroid Build Coastguard Worker# Tells whether missing members accessed in mixin class should be ignored. A
117*9e94795aSAndroid Build Coastguard Worker# mixin class is detected if its name ends with "mixin" (case insensitive).
118*9e94795aSAndroid Build Coastguard Workerignore-mixin-members=yes
119*9e94795aSAndroid Build Coastguard Worker
120*9e94795aSAndroid Build Coastguard Worker# List of module names for which member attributes should not be checked
121*9e94795aSAndroid Build Coastguard Worker# (useful for modules/projects where namespaces are manipulated during runtime
122*9e94795aSAndroid Build Coastguard Worker# and thus existing member attributes cannot be deduced by static analysis
123*9e94795aSAndroid Build Coastguard Workerignored-modules=
124*9e94795aSAndroid Build Coastguard Worker
125*9e94795aSAndroid Build Coastguard Worker# List of classes names for which member attributes should not be checked
126*9e94795aSAndroid Build Coastguard Worker# (useful for classes with attributes dynamically set).
127*9e94795aSAndroid Build Coastguard Workerignored-classes=SQLObject
128*9e94795aSAndroid Build Coastguard Worker
129*9e94795aSAndroid Build Coastguard Worker# When zope mode is activated, add a predefined set of Zope acquired attributes
130*9e94795aSAndroid Build Coastguard Worker# to generated-members.
131*9e94795aSAndroid Build Coastguard Workerzope=no
132*9e94795aSAndroid Build Coastguard Worker
133*9e94795aSAndroid Build Coastguard Worker# List of members which are set dynamically and missed by pylint inference
134*9e94795aSAndroid Build Coastguard Worker# system, and so shouldn't trigger E0201 when accessed. Python regular
135*9e94795aSAndroid Build Coastguard Worker# expressions are accepted.
136*9e94795aSAndroid Build Coastguard Workergenerated-members=REQUEST,acl_users,aq_parent
137*9e94795aSAndroid Build Coastguard Worker
138*9e94795aSAndroid Build Coastguard Worker
139*9e94795aSAndroid Build Coastguard Worker[MISCELLANEOUS]
140*9e94795aSAndroid Build Coastguard Worker
141*9e94795aSAndroid Build Coastguard Worker# List of note tags to take in consideration, separated by a comma.
142*9e94795aSAndroid Build Coastguard Workernotes=FIXME,XXX,TODO
143*9e94795aSAndroid Build Coastguard Worker
144*9e94795aSAndroid Build Coastguard Worker
145*9e94795aSAndroid Build Coastguard Worker[BASIC]
146*9e94795aSAndroid Build Coastguard Worker
147*9e94795aSAndroid Build Coastguard Worker# List of builtins function names that should not be used, separated by a comma
148*9e94795aSAndroid Build Coastguard Workerbad-functions=map,filter,input
149*9e94795aSAndroid Build Coastguard Worker
150*9e94795aSAndroid Build Coastguard Worker# Good variable names which should always be accepted, separated by a comma
151*9e94795aSAndroid Build Coastguard Workergood-names=i,j,k,ex,Run,_
152*9e94795aSAndroid Build Coastguard Worker
153*9e94795aSAndroid Build Coastguard Worker# Bad variable names which should always be refused, separated by a comma
154*9e94795aSAndroid Build Coastguard Workerbad-names=foo,bar,baz,toto,tutu,tata
155*9e94795aSAndroid Build Coastguard Worker
156*9e94795aSAndroid Build Coastguard Worker# Colon-delimited sets of names that determine each other's naming style when
157*9e94795aSAndroid Build Coastguard Worker# the name regexes allow several styles.
158*9e94795aSAndroid Build Coastguard Workername-group=
159*9e94795aSAndroid Build Coastguard Worker
160*9e94795aSAndroid Build Coastguard Worker# Include a hint for the correct naming format with invalid-name
161*9e94795aSAndroid Build Coastguard Workerinclude-naming-hint=no
162*9e94795aSAndroid Build Coastguard Worker
163*9e94795aSAndroid Build Coastguard Worker# Regular expression matching correct function names
164*9e94795aSAndroid Build Coastguard Workerfunction-rgx=[a-z_][a-z0-9_]{2,30}$
165*9e94795aSAndroid Build Coastguard Worker
166*9e94795aSAndroid Build Coastguard Worker# Naming hint for function names
167*9e94795aSAndroid Build Coastguard Workerfunction-name-hint=[a-z_][a-z0-9_]{2,30}$
168*9e94795aSAndroid Build Coastguard Worker
169*9e94795aSAndroid Build Coastguard Worker# Regular expression matching correct variable names
170*9e94795aSAndroid Build Coastguard Workervariable-rgx=[a-z_][a-z0-9_]{2,30}$
171*9e94795aSAndroid Build Coastguard Worker
172*9e94795aSAndroid Build Coastguard Worker# Naming hint for variable names
173*9e94795aSAndroid Build Coastguard Workervariable-name-hint=[a-z_][a-z0-9_]{2,30}$
174*9e94795aSAndroid Build Coastguard Worker
175*9e94795aSAndroid Build Coastguard Worker# Regular expression matching correct constant names
176*9e94795aSAndroid Build Coastguard Workerconst-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
177*9e94795aSAndroid Build Coastguard Worker
178*9e94795aSAndroid Build Coastguard Worker# Naming hint for constant names
179*9e94795aSAndroid Build Coastguard Workerconst-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
180*9e94795aSAndroid Build Coastguard Worker
181*9e94795aSAndroid Build Coastguard Worker# Regular expression matching correct attribute names
182*9e94795aSAndroid Build Coastguard Workerattr-rgx=[a-z_][a-z0-9_]{2,30}$
183*9e94795aSAndroid Build Coastguard Worker
184*9e94795aSAndroid Build Coastguard Worker# Naming hint for attribute names
185*9e94795aSAndroid Build Coastguard Workerattr-name-hint=[a-z_][a-z0-9_]{2,30}$
186*9e94795aSAndroid Build Coastguard Worker
187*9e94795aSAndroid Build Coastguard Worker# Regular expression matching correct argument names
188*9e94795aSAndroid Build Coastguard Workerargument-rgx=[a-z_][a-z0-9_]{2,30}$
189*9e94795aSAndroid Build Coastguard Worker
190*9e94795aSAndroid Build Coastguard Worker# Naming hint for argument names
191*9e94795aSAndroid Build Coastguard Workerargument-name-hint=[a-z_][a-z0-9_]{2,30}$
192*9e94795aSAndroid Build Coastguard Worker
193*9e94795aSAndroid Build Coastguard Worker# Regular expression matching correct class attribute names
194*9e94795aSAndroid Build Coastguard Workerclass-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
195*9e94795aSAndroid Build Coastguard Worker
196*9e94795aSAndroid Build Coastguard Worker# Naming hint for class attribute names
197*9e94795aSAndroid Build Coastguard Workerclass-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
198*9e94795aSAndroid Build Coastguard Worker
199*9e94795aSAndroid Build Coastguard Worker# Regular expression matching correct inline iteration names
200*9e94795aSAndroid Build Coastguard Workerinlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
201*9e94795aSAndroid Build Coastguard Worker
202*9e94795aSAndroid Build Coastguard Worker# Naming hint for inline iteration names
203*9e94795aSAndroid Build Coastguard Workerinlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
204*9e94795aSAndroid Build Coastguard Worker
205*9e94795aSAndroid Build Coastguard Worker# Regular expression matching correct class names
206*9e94795aSAndroid Build Coastguard Workerclass-rgx=[A-Z_][a-zA-Z0-9]+$
207*9e94795aSAndroid Build Coastguard Worker
208*9e94795aSAndroid Build Coastguard Worker# Naming hint for class names
209*9e94795aSAndroid Build Coastguard Workerclass-name-hint=[A-Z_][a-zA-Z0-9]+$
210*9e94795aSAndroid Build Coastguard Worker
211*9e94795aSAndroid Build Coastguard Worker# Regular expression matching correct module names
212*9e94795aSAndroid Build Coastguard Workermodule-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
213*9e94795aSAndroid Build Coastguard Worker
214*9e94795aSAndroid Build Coastguard Worker# Naming hint for module names
215*9e94795aSAndroid Build Coastguard Workermodule-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
216*9e94795aSAndroid Build Coastguard Worker
217*9e94795aSAndroid Build Coastguard Worker# Regular expression matching correct method names
218*9e94795aSAndroid Build Coastguard Workermethod-rgx=[a-z_][a-z0-9_]{2,30}$
219*9e94795aSAndroid Build Coastguard Worker
220*9e94795aSAndroid Build Coastguard Worker# Naming hint for method names
221*9e94795aSAndroid Build Coastguard Workermethod-name-hint=[a-z_][a-z0-9_]{2,30}$
222*9e94795aSAndroid Build Coastguard Worker
223*9e94795aSAndroid Build Coastguard Worker# Regular expression which should only match function or class names that do
224*9e94795aSAndroid Build Coastguard Worker# not require a docstring.
225*9e94795aSAndroid Build Coastguard Workerno-docstring-rgx=__.*__
226*9e94795aSAndroid Build Coastguard Worker
227*9e94795aSAndroid Build Coastguard Worker# Minimum line length for functions/classes that require docstrings, shorter
228*9e94795aSAndroid Build Coastguard Worker# ones are exempt.
229*9e94795aSAndroid Build Coastguard Workerdocstring-min-length=-1
230*9e94795aSAndroid Build Coastguard Worker
231*9e94795aSAndroid Build Coastguard Worker
232*9e94795aSAndroid Build Coastguard Worker[SPELLING]
233*9e94795aSAndroid Build Coastguard Worker
234*9e94795aSAndroid Build Coastguard Worker# Spelling dictionary name. Available dictionaries: none. To make it working
235*9e94795aSAndroid Build Coastguard Worker# install python-enchant package.
236*9e94795aSAndroid Build Coastguard Workerspelling-dict=
237*9e94795aSAndroid Build Coastguard Worker
238*9e94795aSAndroid Build Coastguard Worker# List of comma separated words that should not be checked.
239*9e94795aSAndroid Build Coastguard Workerspelling-ignore-words=
240*9e94795aSAndroid Build Coastguard Worker
241*9e94795aSAndroid Build Coastguard Worker# A path to a file that contains private dictionary; one word per line.
242*9e94795aSAndroid Build Coastguard Workerspelling-private-dict-file=
243*9e94795aSAndroid Build Coastguard Worker
244*9e94795aSAndroid Build Coastguard Worker# Tells whether to store unknown words to indicated private dictionary in
245*9e94795aSAndroid Build Coastguard Worker# --spelling-private-dict-file option instead of raising a message.
246*9e94795aSAndroid Build Coastguard Workerspelling-store-unknown-words=no
247*9e94795aSAndroid Build Coastguard Worker
248*9e94795aSAndroid Build Coastguard Worker
249*9e94795aSAndroid Build Coastguard Worker[FORMAT]
250*9e94795aSAndroid Build Coastguard Worker
251*9e94795aSAndroid Build Coastguard Worker# Maximum number of characters on a single line.
252*9e94795aSAndroid Build Coastguard Workermax-line-length=80
253*9e94795aSAndroid Build Coastguard Worker
254*9e94795aSAndroid Build Coastguard Worker# Regexp for a line that is allowed to be longer than the limit.
255*9e94795aSAndroid Build Coastguard Workerignore-long-lines=^\s*(# )?<?https?://\S+>?$
256*9e94795aSAndroid Build Coastguard Worker
257*9e94795aSAndroid Build Coastguard Worker# Allow the body of an if to be on the same line as the test if there is no
258*9e94795aSAndroid Build Coastguard Worker# else.
259*9e94795aSAndroid Build Coastguard Workersingle-line-if-stmt=no
260*9e94795aSAndroid Build Coastguard Worker
261*9e94795aSAndroid Build Coastguard Worker# List of optional constructs for which whitespace checking is disabled
262*9e94795aSAndroid Build Coastguard Workerno-space-check=trailing-comma,dict-separator
263*9e94795aSAndroid Build Coastguard Worker
264*9e94795aSAndroid Build Coastguard Worker# Maximum number of lines in a module
265*9e94795aSAndroid Build Coastguard Workermax-module-lines=1000
266*9e94795aSAndroid Build Coastguard Worker
267*9e94795aSAndroid Build Coastguard Worker# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
268*9e94795aSAndroid Build Coastguard Worker# tab).
269*9e94795aSAndroid Build Coastguard Workerindent-string='  '
270*9e94795aSAndroid Build Coastguard Worker
271*9e94795aSAndroid Build Coastguard Worker# Number of spaces of indent required inside a hanging or continued line.
272*9e94795aSAndroid Build Coastguard Workerindent-after-paren=4
273*9e94795aSAndroid Build Coastguard Worker
274*9e94795aSAndroid Build Coastguard Worker# Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
275*9e94795aSAndroid Build Coastguard Workerexpected-line-ending-format=LF
276*9e94795aSAndroid Build Coastguard Worker
277*9e94795aSAndroid Build Coastguard Worker
278*9e94795aSAndroid Build Coastguard Worker[LOGGING]
279*9e94795aSAndroid Build Coastguard Worker
280*9e94795aSAndroid Build Coastguard Worker# Logging modules to check that the string format arguments are in logging
281*9e94795aSAndroid Build Coastguard Worker# function parameter format
282*9e94795aSAndroid Build Coastguard Workerlogging-modules=logging
283*9e94795aSAndroid Build Coastguard Worker
284*9e94795aSAndroid Build Coastguard Worker
285*9e94795aSAndroid Build Coastguard Worker[VARIABLES]
286*9e94795aSAndroid Build Coastguard Worker
287*9e94795aSAndroid Build Coastguard Worker# Tells whether we should check for unused import in __init__ files.
288*9e94795aSAndroid Build Coastguard Workerinit-import=no
289*9e94795aSAndroid Build Coastguard Worker
290*9e94795aSAndroid Build Coastguard Worker# A regular expression matching the name of dummy variables (i.e. expectedly
291*9e94795aSAndroid Build Coastguard Worker# not used).
292*9e94795aSAndroid Build Coastguard Workerdummy-variables-rgx=_$|dummy
293*9e94795aSAndroid Build Coastguard Worker
294*9e94795aSAndroid Build Coastguard Worker# List of additional names supposed to be defined in builtins. Remember that
295*9e94795aSAndroid Build Coastguard Worker# you should avoid to define new builtins when possible.
296*9e94795aSAndroid Build Coastguard Workeradditional-builtins=
297*9e94795aSAndroid Build Coastguard Worker
298*9e94795aSAndroid Build Coastguard Worker# List of strings which can identify a callback function by name. A callback
299*9e94795aSAndroid Build Coastguard Worker# name must start or end with one of those strings.
300*9e94795aSAndroid Build Coastguard Workercallbacks=cb_,_cb
301*9e94795aSAndroid Build Coastguard Worker
302*9e94795aSAndroid Build Coastguard Worker
303*9e94795aSAndroid Build Coastguard Worker[DESIGN]
304*9e94795aSAndroid Build Coastguard Worker
305*9e94795aSAndroid Build Coastguard Worker# Maximum number of arguments for function / method
306*9e94795aSAndroid Build Coastguard Workermax-args=5
307*9e94795aSAndroid Build Coastguard Worker
308*9e94795aSAndroid Build Coastguard Worker# Argument names that match this expression will be ignored. Default to name
309*9e94795aSAndroid Build Coastguard Worker# with leading underscore
310*9e94795aSAndroid Build Coastguard Workerignored-argument-names=_.*
311*9e94795aSAndroid Build Coastguard Worker
312*9e94795aSAndroid Build Coastguard Worker# Maximum number of locals for function / method body
313*9e94795aSAndroid Build Coastguard Workermax-locals=15
314*9e94795aSAndroid Build Coastguard Worker
315*9e94795aSAndroid Build Coastguard Worker# Maximum number of return / yield for function / method body
316*9e94795aSAndroid Build Coastguard Workermax-returns=6
317*9e94795aSAndroid Build Coastguard Worker
318*9e94795aSAndroid Build Coastguard Worker# Maximum number of branch for function / method body
319*9e94795aSAndroid Build Coastguard Workermax-branches=12
320*9e94795aSAndroid Build Coastguard Worker
321*9e94795aSAndroid Build Coastguard Worker# Maximum number of statements in function / method body
322*9e94795aSAndroid Build Coastguard Workermax-statements=50
323*9e94795aSAndroid Build Coastguard Worker
324*9e94795aSAndroid Build Coastguard Worker# Maximum number of parents for a class (see R0901).
325*9e94795aSAndroid Build Coastguard Workermax-parents=7
326*9e94795aSAndroid Build Coastguard Worker
327*9e94795aSAndroid Build Coastguard Worker# Maximum number of attributes for a class (see R0902).
328*9e94795aSAndroid Build Coastguard Workermax-attributes=7
329*9e94795aSAndroid Build Coastguard Worker
330*9e94795aSAndroid Build Coastguard Worker# Minimum number of public methods for a class (see R0903).
331*9e94795aSAndroid Build Coastguard Workermin-public-methods=2
332*9e94795aSAndroid Build Coastguard Worker
333*9e94795aSAndroid Build Coastguard Worker# Maximum number of public methods for a class (see R0904).
334*9e94795aSAndroid Build Coastguard Workermax-public-methods=20
335*9e94795aSAndroid Build Coastguard Worker
336*9e94795aSAndroid Build Coastguard Worker
337*9e94795aSAndroid Build Coastguard Worker[IMPORTS]
338*9e94795aSAndroid Build Coastguard Worker
339*9e94795aSAndroid Build Coastguard Worker# Deprecated modules which should not be used, separated by a comma
340*9e94795aSAndroid Build Coastguard Workerdeprecated-modules=regsub,TERMIOS,Bastion,rexec
341*9e94795aSAndroid Build Coastguard Worker
342*9e94795aSAndroid Build Coastguard Worker# Create a graph of every (i.e. internal and external) dependencies in the
343*9e94795aSAndroid Build Coastguard Worker# given file (report RP0402 must not be disabled)
344*9e94795aSAndroid Build Coastguard Workerimport-graph=
345*9e94795aSAndroid Build Coastguard Worker
346*9e94795aSAndroid Build Coastguard Worker# Create a graph of external dependencies in the given file (report RP0402 must
347*9e94795aSAndroid Build Coastguard Worker# not be disabled)
348*9e94795aSAndroid Build Coastguard Workerext-import-graph=
349*9e94795aSAndroid Build Coastguard Worker
350*9e94795aSAndroid Build Coastguard Worker# Create a graph of internal dependencies in the given file (report RP0402 must
351*9e94795aSAndroid Build Coastguard Worker# not be disabled)
352*9e94795aSAndroid Build Coastguard Workerint-import-graph=
353*9e94795aSAndroid Build Coastguard Worker
354*9e94795aSAndroid Build Coastguard Worker
355*9e94795aSAndroid Build Coastguard Worker[CLASSES]
356*9e94795aSAndroid Build Coastguard Worker
357*9e94795aSAndroid Build Coastguard Worker# List of method names used to declare (i.e. assign) instance attributes.
358*9e94795aSAndroid Build Coastguard Workerdefining-attr-methods=__init__,__new__,setUp
359*9e94795aSAndroid Build Coastguard Worker
360*9e94795aSAndroid Build Coastguard Worker# List of valid names for the first argument in a class method.
361*9e94795aSAndroid Build Coastguard Workervalid-classmethod-first-arg=cls
362*9e94795aSAndroid Build Coastguard Worker
363*9e94795aSAndroid Build Coastguard Worker# List of valid names for the first argument in a metaclass class method.
364*9e94795aSAndroid Build Coastguard Workervalid-metaclass-classmethod-first-arg=mcs
365*9e94795aSAndroid Build Coastguard Worker
366*9e94795aSAndroid Build Coastguard Worker# List of member names, which should be excluded from the protected access
367*9e94795aSAndroid Build Coastguard Worker# warning.
368*9e94795aSAndroid Build Coastguard Workerexclude-protected=_asdict,_fields,_replace,_source,_make
369*9e94795aSAndroid Build Coastguard Worker
370*9e94795aSAndroid Build Coastguard Worker
371*9e94795aSAndroid Build Coastguard Worker[EXCEPTIONS]
372*9e94795aSAndroid Build Coastguard Worker
373*9e94795aSAndroid Build Coastguard Worker# Exceptions that will emit a warning when being caught. Defaults to
374*9e94795aSAndroid Build Coastguard Worker# "Exception"
375*9e94795aSAndroid Build Coastguard Workerovergeneral-exceptions=Exception
376