• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[MASTER]  # nocheck
2
3# Pickle collected data for later comparisons.
4persistent=yes
5
6# List of plugins (as comma separated values of python modules names) to load,
7# usually to register additional checkers.
8load-plugins=
9    pylint_quotes
10
11# Configure quote preferences.
12string-quote = single-avoid-escape
13triple-quote = double
14docstring-quote = double
15
16[MESSAGES CONTROL]
17
18# Disable the message, report, category or checker with the given id(s).
19# TODO(crbug.com/353942917): Burn down this list to the minimal reasonable
20# amount by fixing issues or doing inline-disables where appropriate.
21# Intentionally kept:
22#   bad-indentation: Formatting is auto-handled by yapf and there is expected to
23#     be a mixture of 2 and 4-space files due to a change in style guidelines.
24#   duplicate-code: Finds many non-actionable "duplicate" entries such as
25#     similar imports in multiple files.
26#   fixme: TODOs are perfectly valid as long as they're associated with a bug.
27#   missing-docstring: Docstrings should be encouraged, but also should not be
28#     required for every single function and method.
29#   wrong-import-position: We often need to add directories to PATH before
30#     importing, which causes this check to fail.
31disable=bad-indentation,
32        duplicate-code,
33        fixme,
34        import-error,
35        invalid-name,
36        missing-docstring,
37        no-member,
38        no-self-use,
39        too-few-public-methods,
40        too-many-arguments,
41        too-many-branches,
42        too-many-instance-attributes,
43        too-many-lines,
44        too-many-locals,
45        too-many-nested-blocks,
46        too-many-public-methods,
47        too-many-return-statements,
48        too-many-statements,
49        wrong-import-position,
50
51[REPORTS]
52
53# Set the output format. Available formats are text, parseable, colorized, msvs
54# (visual studio) and html
55output-format=text
56
57# Put messages in a separate file for each module / package specified on the
58# command line instead of printing them on stdout. Reports (if any) will be
59# written in a file name "pylint_global.[txt|html]".
60files-output=no
61
62# Tells whether to display a full report or only the messages
63# CHANGED:
64reports=no
65
66# Activate the evaluation score.
67score=no
68
69# Python expression which should return a note less than 10 (10 is the highest
70# note). You have access to the variables errors warning, statement which
71# respectively contain the number of errors / warnings messages and the total
72# number of statements analyzed. This is used by the global evaluation report
73# (RP0004).
74evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
75
76
77[VARIABLES]
78
79# Tells whether we should check for unused import in __init__ files.
80init-import=no
81
82# A regular expression matching the beginning of the name of dummy variables
83# (i.e. not used).
84dummy-variables-rgx=_|dummy
85
86# List of additional names supposed to be defined in builtins. Remember that
87# you should avoid to define new builtins when possible.
88additional-builtins=
89
90
91[TYPECHECK]
92
93# Tells whether missing members accessed in mixin class should be ignored. A
94# mixin class is detected if its name ends with "mixin" (case insensitive).
95ignore-mixin-members=yes
96
97# List of classes names for which member attributes should not be checked
98# (useful for classes with attributes dynamically set).
99ignored-classes=SQLObject,
100                twisted.internet.reactor,
101                hashlib,
102                google.appengine.api.memcache
103
104# List of members which are set dynamically and missed by pylint inference
105# system, and so shouldn't trigger E0201 when accessed. Python regular
106# expressions are accepted.
107generated-members=REQUEST,
108                  acl_users,
109                  aq_parent,
110                  multiprocessing.managers.SyncManager
111
112
113[MISCELLANEOUS]
114
115# List of note tags to take in consideration, separated by a comma.
116notes=FIXME,
117      XXX,
118      TODO
119
120
121[SIMILARITIES]
122
123# Minimum lines number of a similarity.
124min-similarity-lines=4
125
126# Ignore comments when computing similarities.
127ignore-comments=yes
128
129# Ignore docstrings when computing similarities.
130ignore-docstrings=yes
131
132
133[FORMAT]
134
135# Maximum number of characters on a single line.
136max-line-length=80
137
138# Maximum number of lines in a module
139max-module-lines=1000
140
141# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
142# tab).
143# CHANGED: We use two spaces for indents instead of the usual four or tab.
144indent-string='  '
145
146
147[BASIC]
148
149# List of builtins function names that should not be used, separated by a comma
150bad-functions=map,
151              filter,
152              apply,
153              input
154
155# Regular expression which should only match correct module names
156module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
157
158# Regular expression which should only match correct module level names
159const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
160
161# Regular expression which should only match correct class names
162class-rgx=[A-Z_][a-zA-Z0-9]+$
163
164# Regular expression which should only match correct function names
165function-rgx=[a-z_][a-z0-9_]{2,30}$
166
167# Regular expression which should only match correct method names
168method-rgx=[a-z_][a-z0-9_]{2,30}$
169
170# Regular expression which should only match correct instance attribute names
171attr-rgx=[a-z_][a-z0-9_]{2,30}$
172
173# Regular expression which should only match correct argument names
174argument-rgx=[a-z_][a-z0-9_]{2,30}$
175
176# Regular expression which should only match correct variable names
177variable-rgx=[a-z_][a-z0-9_]{2,30}$
178
179# Regular expression which should only match correct list comprehension /
180# generator expression variable names
181inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
182
183# Good variable names which should always be accepted, separated by a comma
184good-names=i,j,k,ex,Run,_
185
186# Bad variable names which should always be refused, separated by a comma
187bad-names=foo,bar,baz,toto,tutu,tata
188
189# Regular expression which should only match functions or classes name which do
190# not require a docstring
191no-docstring-rgx=__.*__
192
193
194[DESIGN]
195
196# Maximum number of arguments for function / method
197max-args=5
198
199# Argument names that match this expression will be ignored. Default to name
200# with leading underscore
201ignored-argument-names=_.*
202
203# Maximum number of locals for function / method body
204max-locals=15
205
206# Maximum number of return / yield for function / method body
207max-returns=6
208
209# Maximum number of branch for function / method body
210max-branchs=12
211
212# Maximum number of statements in function / method body
213max-statements=50
214
215# Maximum number of parents for a class (see R0901).
216max-parents=7
217
218# Maximum number of attributes for a class (see R0902).
219max-attributes=7
220
221# Minimum number of public methods for a class (see R0903).
222min-public-methods=2
223
224# Maximum number of public methods for a class (see R0904).
225max-public-methods=20
226
227
228[CLASSES]
229
230# List of method names used to declare (i.e. assign) instance attributes.
231defining-attr-methods=__init__,__new__,setUp
232
233# List of valid names for the first argument in a class method.
234valid-classmethod-first-arg=cls
235
236
237[IMPORTS]
238
239# Deprecated modules which should not be used, separated by a comma
240deprecated-modules=regsub,
241                   TERMIOS,
242                   Bastion,
243                   rexec
244
245# Create a graph of every (i.e. internal and external) dependencies in the
246# given file (report RP0402 must not be disabled)
247import-graph=
248
249# Create a graph of external dependencies in the given file (report RP0402 must
250# not be disabled)
251ext-import-graph=
252
253# Create a graph of internal dependencies in the given file (report RP0402 must
254# not be disabled)
255int-import-graph=
256
257
258[EXCEPTIONS]
259
260# Exceptions that will emit a warning when being caught. Defaults to
261# "Exception"
262overgeneral-exceptions=Exception
263