source: orange/pylintrc @ 9926:6b0446e96601

Revision 9926:6b0446e96601, 6.9 KB checked in by ales_erjavec, 2 years ago (diff)

Allow single letter variable names.

Line 
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.
11profile=no
12
13# Add files or directories to the blacklist. They should be base names, not
14# paths.
15ignore=CVS
16
17# Pickle collected data for later comparisons.
18persistent=yes
19
20# List of plugins (as comma separated values of python modules names) to load,
21# usually to register additional checkers.
22load-plugins=
23
24
25[MESSAGES CONTROL]
26
27# Enable the message, report, category or checker with the given id(s). You can
28# either give multiple identifier separated by comma (,) or put this option
29# multiple time.
30#enable=
31
32# Disable the message, report, category or checker with the given id(s). You
33# can either give multiple identifier separated by comma (,) or put this option
34# multiple time (only on the command line, not in the configuration file where
35# it should appear only once).
36#disable=
37
38
39[REPORTS]
40
41# Set the output format. Available formats are text, parseable, colorized, msvs
42# (visual studio) and html
43output-format=text
44
45# Include message's id in output
46include-ids=no
47
48# Put messages in a separate file for each module / package specified on the
49# command line instead of printing them on stdout. Reports (if any) will be
50# written in a file name "pylint_global.[txt|html]".
51files-output=no
52
53# Tells whether to display a full report or only the messages
54reports=yes
55
56# Python expression which should return a note less than 10 (10 is the highest
57# note). You have access to the variables errors warning, statement which
58# respectively contain the number of errors / warnings messages and the total
59# number of statements analyzed. This is used by the global evaluation report
60# (RP0004).
61evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
62
63# Add a comment according to your evaluation note. This is used by the global
64# evaluation report (RP0004).
65comment=no
66
67
68[BASIC]
69
70# Required attributes for module, separated by a comma
71required-attributes=
72
73# List of builtins function names that should not be used, separated by a comma
74bad-functions=apply,input
75
76# Regular expression which should only match correct module names
77module-rgx=(([a-z_O][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
78
79# Regular expression which should only match correct module level names
80const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
81
82# Regular expression which should only match correct class names
83class-rgx=[A-Z_][a-zA-Z0-9]+$
84
85# Regular expression which should only match correct function names
86function-rgx=[a-z_][a-z0-9_]{2,30}$
87
88# Regular expression which should only match correct method names
89method-rgx=[a-z_][a-z0-9_]{2,30}$
90
91# Regular expression which should only match correct instance attribute names
92attr-rgx=[a-z_][a-z0-9_]{2,30}$
93
94# Regular expression which should only match correct argument names
95argument-rgx=[a-z_][a-z0-9_]{2,30}$
96
97# Regular expression which should only match correct variable names
98variable-rgx=[a-z_][a-z0-9_]{0,30}$
99
100# Regular expression which should only match correct list comprehension /
101# generator expression variable names
102inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
103
104# Good variable names which should always be accepted, separated by a comma
105good-names=i,j,k,ex,Run,_,x,y,z,X,Y,Z
106
107# Bad variable names which should always be refused, separated by a comma
108bad-names=foo,bar,baz,toto,tutu,tata
109
110# Regular expression which should only match functions or classes name which do
111# not require a docstring
112no-docstring-rgx=__.*__
113
114
115[FORMAT]
116
117# Maximum number of characters on a single line.
118max-line-length=80
119
120# Maximum number of lines in a module
121max-module-lines=1000
122
123# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
124# tab).
125indent-string='    '
126
127
128[MISCELLANEOUS]
129
130# List of note tags to take in consideration, separated by a comma.
131notes=FIXME,XXX,TODO
132
133
134[SIMILARITIES]
135
136# Minimum lines number of a similarity.
137min-similarity-lines=4
138
139# Ignore comments when computing similarities.
140ignore-comments=yes
141
142# Ignore docstrings when computing similarities.
143ignore-docstrings=yes
144
145
146[TYPECHECK]
147
148# Tells whether missing members accessed in mixin class should be ignored. A
149# mixin class is detected if its name ends with "mixin" (case insensitive).
150ignore-mixin-members=yes
151
152# List of classes names for which member attributes should not be checked
153# (useful for classes with attributes dynamically set).
154ignored-classes=SQLObject
155
156# When zope mode is activated, add a predefined set of Zope acquired attributes
157# to generated-members.
158zope=no
159
160# List of members which are set dynamically and missed by pylint inference
161# system, and so shouldn't trigger E0201 when accessed. Python regular
162# expressions are accepted.
163generated-members=REQUEST,acl_users,aq_parent
164
165
166[VARIABLES]
167
168# Tells whether we should check for unused import in __init__ files.
169init-import=no
170
171# A regular expression matching the beginning of the name of dummy variables
172# (i.e. not used).
173dummy-variables-rgx=_|dummy
174
175# List of additional names supposed to be defined in builtins. Remember that
176# you should avoid to define new builtins when possible.
177additional-builtins=
178
179
180[CLASSES]
181
182# List of interface methods to ignore, separated by a comma. This is used for
183# instance to not check methods defines in Zope's Interface base class.
184ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
185
186# List of method names used to declare (i.e. assign) instance attributes.
187defining-attr-methods=__init__,__new__,setUp
188
189
190[DESIGN]
191
192# Maximum number of arguments for function / method
193max-args=5
194
195# Argument names that match this expression will be ignored. Default to name
196# with leading underscore
197ignored-argument-names=_.*
198
199# Maximum number of locals for function / method body
200max-locals=15
201
202# Maximum number of return / yield for function / method body
203max-returns=6
204
205# Maximum number of branch for function / method body
206max-branchs=12
207
208# Maximum number of statements in function / method body
209max-statements=50
210
211# Maximum number of parents for a class (see R0901).
212max-parents=7
213
214# Maximum number of attributes for a class (see R0902).
215max-attributes=7
216
217# Minimum number of public methods for a class (see R0903).
218min-public-methods=2
219
220# Maximum number of public methods for a class (see R0904).
221max-public-methods=20
222
223
224[IMPORTS]
225
226# Deprecated modules which should not be used, separated by a comma
227deprecated-modules=regsub,string,TERMIOS,Bastion,rexec
228
229# Create a graph of every (i.e. internal and external) dependencies in the
230# given file (report RP0402 must not be disabled)
231import-graph=
232
233# Create a graph of external dependencies in the given file (report RP0402 must
234# not be disabled)
235ext-import-graph=
236
237# Create a graph of internal dependencies in the given file (report RP0402 must
238# not be disabled)
239int-import-graph=
Note: See TracBrowser for help on using the repository browser.