Use mstatus.MPP to check existence of U-mode
[riscv-tests.git] / debug / pylint.rc
1 [MASTER]
2
3 # Specify a configuration file.
4 #rcfile=
5
6 # Python code to execute, usually for sys.path manipulation such as
7 # pygtk.require().
8 #init-hook=
9
10 # Profiled execution.
11 profile=no
12
13 # Add files or directories to the blacklist. They should be base names, not
14 # paths.
15 ignore=.git
16
17 # Pickle collected data for later comparisons.
18 persistent=yes
19
20 # List of plugins (as comma separated values of python modules names) to load,
21 # usually to register additional checkers.
22 load-plugins=
23
24 # Allow loading of arbitrary C extensions. Extensions are imported into the
25 # active Python interpreter and may run arbitrary code.
26 unsafe-load-any-extension=no
27
28 # A comma-separated list of package or module names from where C extensions may
29 # be loaded. Extensions are loading into the active Python interpreter and may
30 # run arbitrary code
31 extension-pkg-whitelist=
32
33
34 [MESSAGES CONTROL]
35
36 # Enable the message, report, category or checker with the given id(s). You can
37 # either give multiple identifier separated by comma (,) or put this option
38 # multiple time. See also the "--disable" option for examples.
39 #enable=
40
41 # Disable the message, report, category or checker with the given id(s). You
42 # can either give multiple identifiers separated by comma (,) or put this
43 # option multiple times (only on the command line, not in the configuration
44 # file where it should appear only once).You can also use "--disable=all" to
45 # disable everything first and then reenable specific checks. For example, if
46 # you want to run only the similarities checker, you can use "--disable=all
47 # --enable=similarities". If you want to run only the classes checker, but have
48 # no Warning level messages displayed, use"--disable=all --enable=classes
49 # --disable=W"
50 disable=bad-continuation, missing-docstring, invalid-name, locally-disabled,
51 too-few-public-methods, too-many-arguments, fixme, duplicate-code
52
53
54 [REPORTS]
55
56 # Set the output format. Available formats are text, parseable, colorized, msvs
57 # (visual studio) and html. You can also give a reporter class, eg
58 # mypackage.mymodule.MyReporterClass.
59 output-format=text
60
61 # Put messages in a separate file for each module / package specified on the
62 # command line instead of printing them on stdout. Reports (if any) will be
63 # written in a file name "pylint_global.[txt|html]".
64 files-output=no
65
66 # Tells whether to display a full report or only the messages
67 reports=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).
74 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
75
76 # Add a comment according to your evaluation note. This is used by the global
77 # evaluation report (RP0004).
78 comment=no
79
80 # Template used to display messages. This is a python new-style format string
81 # used to format the message information. See doc for all details
82 #msg-template=
83
84
85 [MISCELLANEOUS]
86
87 # List of note tags to take in consideration, separated by a comma.
88 notes=FIXME,XXX,TODO
89
90
91 [SIMILARITIES]
92
93 # Minimum lines number of a similarity.
94 min-similarity-lines=4
95
96 # Ignore comments when computing similarities.
97 ignore-comments=yes
98
99 # Ignore docstrings when computing similarities.
100 ignore-docstrings=yes
101
102 # Ignore imports when computing similarities.
103 ignore-imports=no
104
105
106 [VARIABLES]
107
108 # Tells whether we should check for unused import in __init__ files.
109 init-import=no
110
111 # A regular expression matching the name of dummy variables (i.e. expectedly
112 # not used).
113 dummy-variables-rgx=_$|dummy
114
115 # List of additional names supposed to be defined in builtins. Remember that
116 # you should avoid to define new builtins when possible.
117 additional-builtins=
118
119
120 [TYPECHECK]
121
122 # Tells whether missing members accessed in mixin class should be ignored. A
123 # mixin class is detected if its name ends with "mixin" (case insensitive).
124 ignore-mixin-members=yes
125
126 # List of module names for which member attributes should not be checked
127 # (useful for modules/projects where namespaces are manipulated during runtime
128 # and thus existing member attributes cannot be deduced by static analysis
129 ignored-modules=
130
131 # List of classes names for which member attributes should not be checked
132 # (useful for classes with attributes dynamically set).
133 ignored-classes=SQLObject
134
135 # When zope mode is activated, add a predefined set of Zope acquired attributes
136 # to generated-members.
137 zope=no
138
139 # List of members which are set dynamically and missed by pylint inference
140 # system, and so shouldn't trigger E0201 when accessed. Python regular
141 # expressions are accepted.
142 generated-members=REQUEST,acl_users,aq_parent
143
144
145 [FORMAT]
146
147 # Maximum number of characters on a single line.
148 max-line-length=80
149
150 # Regexp for a line that is allowed to be longer than the limit.
151 ignore-long-lines=^\s*(# )?<?https?://\S+>?$
152
153 # Allow the body of an if to be on the same line as the test if there is no
154 # else.
155 single-line-if-stmt=no
156
157 # List of optional constructs for which whitespace checking is disabled
158 no-space-check=trailing-comma,dict-separator
159
160 # Maximum number of lines in a module
161 max-module-lines=1000
162
163 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
164 # tab).
165 indent-string=' '
166
167 # Number of spaces of indent required inside a hanging or continued line.
168 indent-after-paren=4
169
170
171 [LOGGING]
172
173 # Logging modules to check that the string format arguments are in logging
174 # function parameter format
175 logging-modules=logging
176
177
178 [BASIC]
179
180 # Required attributes for module, separated by a comma
181 #required-attributes=
182
183 # List of builtins function names that should not be used, separated by a comma
184 bad-functions=map,filter,apply,input,file
185
186 # Good variable names which should always be accepted, separated by a comma
187 good-names=i,j,k,ex,Run,_
188
189 # Bad variable names which should always be refused, separated by a comma
190 bad-names=foo,bar,baz,toto,tutu,tata
191
192 # Colon-delimited sets of names that determine each other's naming style when
193 # the name regexes allow several styles.
194 name-group=
195
196 # Include a hint for the correct naming format with invalid-name
197 include-naming-hint=no
198
199 # Regular expression matching correct function names
200 function-rgx=[a-z_][a-z0-9_]{2,30}$
201
202 # Naming hint for function names
203 function-name-hint=[a-z_][a-z0-9_]{2,30}$
204
205 # Regular expression matching correct variable names
206 variable-rgx=[a-z_][a-z0-9_]{2,30}$
207
208 # Naming hint for variable names
209 variable-name-hint=[a-z_][a-z0-9_]{2,30}$
210
211 # Regular expression matching correct constant names
212 const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
213
214 # Naming hint for constant names
215 const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
216
217 # Regular expression matching correct attribute names
218 attr-rgx=[a-z_][a-z0-9_]{2,30}$
219
220 # Naming hint for attribute names
221 attr-name-hint=[a-z_][a-z0-9_]{2,30}$
222
223 # Regular expression matching correct argument names
224 argument-rgx=[a-z_][a-z0-9_]{2,30}$
225
226 # Naming hint for argument names
227 argument-name-hint=[a-z_][a-z0-9_]{2,30}$
228
229 # Regular expression matching correct class attribute names
230 class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
231
232 # Naming hint for class attribute names
233 class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
234
235 # Regular expression matching correct inline iteration names
236 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
237
238 # Naming hint for inline iteration names
239 inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
240
241 # Regular expression matching correct class names
242 class-rgx=[A-Z_][a-zA-Z0-9]+$
243
244 # Naming hint for class names
245 class-name-hint=[A-Z_][a-zA-Z0-9]+$
246
247 # Regular expression matching correct module names
248 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
249
250 # Naming hint for module names
251 module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
252
253 # Regular expression matching correct method names
254 method-rgx=[a-z_][a-z0-9_]{2,30}$
255
256 # Naming hint for method names
257 method-name-hint=[a-z_][a-z0-9_]{2,30}$
258
259 # Regular expression which should only match function or class names that do
260 # not require a docstring.
261 no-docstring-rgx=__.*__
262
263 # Minimum line length for functions/classes that require docstrings, shorter
264 # ones are exempt.
265 docstring-min-length=-1
266
267
268 [IMPORTS]
269
270 # Deprecated modules which should not be used, separated by a comma
271 deprecated-modules=regsub,TERMIOS,Bastion,rexec
272
273 # Create a graph of every (i.e. internal and external) dependencies in the
274 # given file (report RP0402 must not be disabled)
275 import-graph=
276
277 # Create a graph of external dependencies in the given file (report RP0402 must
278 # not be disabled)
279 ext-import-graph=
280
281 # Create a graph of internal dependencies in the given file (report RP0402 must
282 # not be disabled)
283 int-import-graph=
284
285
286 [CLASSES]
287
288 # List of interface methods to ignore, separated by a comma. This is used for
289 # instance to not check methods defines in Zope's Interface base class.
290 #ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
291
292 # List of method names used to declare (i.e. assign) instance attributes.
293 defining-attr-methods=__init__,__new__,setUp
294
295 # List of valid names for the first argument in a class method.
296 valid-classmethod-first-arg=cls
297
298 # List of valid names for the first argument in a metaclass class method.
299 valid-metaclass-classmethod-first-arg=mcs
300
301
302 [DESIGN]
303
304 # Maximum number of arguments for function / method
305 max-args=5
306
307 # Argument names that match this expression will be ignored. Default to name
308 # with leading underscore
309 ignored-argument-names=_.*
310
311 # Maximum number of locals for function / method body
312 max-locals=15
313
314 # Maximum number of return / yield for function / method body
315 max-returns=6
316
317 # Maximum number of branch for function / method body
318 max-branches=12
319
320 # Maximum number of statements in function / method body
321 max-statements=50
322
323 # Maximum number of parents for a class (see R0901).
324 max-parents=7
325
326 # Maximum number of attributes for a class (see R0902).
327 max-attributes=7
328
329 # Minimum number of public methods for a class (see R0903).
330 min-public-methods=2
331
332 # Maximum number of public methods for a class (see R0904).
333 max-public-methods=20
334
335
336 [EXCEPTIONS]
337
338 # Exceptions that will emit a warning when being caught. Defaults to
339 # "Exception"
340 overgeneral-exceptions=Exception