~ralsina/ubuntuone-control-panel/fix-scroll

« back to all changes in this revision

Viewing changes to pylintrc

  • Committer: natalia.bidart at canonical
  • Date: 2010-09-15 21:43:48 UTC
  • Revision ID: natalia.bidart@canonical.com-20100915214348-qd7vpoj85z0jhx0m
Initial directory structure for new project.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# lint Python modules using external checkers.
 
2
#
 
3
# This is the main checker controlling the other ones and the reports
 
4
# generation. It is itself both a raw checker and an astng checker in order
 
5
# to:
 
6
# * handle message activation / deactivation at the module level
 
7
# * handle some basic but necessary stats'data (number of classes, methods...)
 
8
#
 
9
[MASTER]
 
10
 
 
11
# Specify a configuration file.
 
12
#rcfile=
 
13
 
 
14
# Python code to execute, usually for sys.path manipulation such as
 
15
# pygtk.require().
 
16
#init-hook=
 
17
 
 
18
# Profiled execution.
 
19
profile=no
 
20
 
 
21
# Add <file or directory> to the black list. It should be a base name, not a
 
22
# path. You may set this option multiple times.
 
23
#ignore=<somedir>
 
24
 
 
25
# Pickle collected data for later comparisons.
 
26
persistent=no
 
27
 
 
28
# Set the cache size for astng objects.
 
29
cache-size=500
 
30
 
 
31
# List of plugins (as comma separated values of python modules names) to load,
 
32
# usually to register additional checkers.
 
33
load-plugins=
 
34
 
 
35
 
 
36
[MESSAGES CONTROL]
 
37
 
 
38
# Enable only checker(s) with the given id(s). This option conflicts with the
 
39
# disable-checker option
 
40
#enable-checker=
 
41
 
 
42
# Enable all checker(s) except those with the given id(s). This option
 
43
# conflicts with the enable-checker option
 
44
#disable-checker=
 
45
 
 
46
# Enable all messages in the listed categories.
 
47
#enable-cat=
 
48
 
 
49
# Disable all messages in the listed categories.
 
50
#disable-cat=
 
51
 
 
52
# Disable the message(s) with the given id(s) or categories
 
53
# W0142: *Used * or ** magic*
 
54
# W0613: Unused argument 'yyy'
 
55
# C0302: Too many lines in module
 
56
disable=R,I,W0142,W0613,C0302
 
57
 
 
58
 
 
59
[REPORTS]
 
60
 
 
61
# Set the output format. Available formats are text, parseable, colorized, msvs
 
62
# (visual studio) and html
 
63
output-format=colorized
 
64
 
 
65
# Include message's id in output
 
66
include-ids=yes
 
67
 
 
68
# Put messages in a separate file for each module / package specified on the
 
69
# command line instead of printing them on stdout. Reports (if any) will be
 
70
# written in a file name "pylint_global.[txt|html]".
 
71
files-output=no
 
72
 
 
73
# Tells whether to display a full report or only the messages
 
74
reports=no
 
75
 
 
76
# Python expression which should return a note less than 10 (10 is the highest
 
77
# note). You have access to the variables errors warning, statement which
 
78
# respectively contain the number of errors / warnings messages and the total
 
79
# number of statements analyzed. This is used by the global evaluation report
 
80
# (R0004).
 
81
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
 
82
 
 
83
# Add a comment according to your evaluation note. This is used by the global
 
84
# evaluation report (R0004).
 
85
comment=no
 
86
 
 
87
# Enable the report(s) with the given id(s).
 
88
#enable-report=
 
89
 
 
90
# Disable the report(s) with the given id(s).
 
91
#disable-report=
 
92
 
 
93
 
 
94
# try to find bugs in the code using type inference
 
95
#
 
96
[TYPECHECK]
 
97
 
 
98
# Tells whether missing members accessed in mixin class should be ignored. A
 
99
# mixin class is detected if its name ends with "mixin" (case insensitive).
 
100
ignore-mixin-members=yes
 
101
 
 
102
# List of classes names for which member attributes should not be checked
 
103
# (useful for classes with attributes dynamically set).
 
104
ignored-classes=
 
105
 
 
106
# When zope mode is activated, add a predefined set of Zope acquired attributes
 
107
# to generated-members.
 
108
zope=no
 
109
 
 
110
# List of members which are set dynamically and missed by pylint inference
 
111
# system, and so shouldn't trigger E0201 when accessed.
 
112
generated-members=REQUEST,acl_users,aq_parent
 
113
 
 
114
 
 
115
# checks for
 
116
# * unused variables / imports
 
117
# * undefined variables
 
118
# * redefinition of variable from builtins or from an outer scope
 
119
# * use of variable before assignment
 
120
#
 
121
[VARIABLES]
 
122
 
 
123
# Tells whether we should check for unused import in __init__ files.
 
124
init-import=yes
 
125
 
 
126
# A regular expression matching names used for dummy variables (i.e. not used).
 
127
dummy-variables-rgx=_|dummy
 
128
 
 
129
# List of additional names supposed to be defined in builtins. Remember that
 
130
# you should avoid to define new builtins when possible.
 
131
additional-builtins=
 
132
 
 
133
 
 
134
# checks for :
 
135
# * doc strings
 
136
# * modules / classes / functions / methods / arguments / variables name
 
137
# * number of arguments, local variables, branches, returns and statements in
 
138
# functions, methods
 
139
# * required module attributes
 
140
# * dangerous default values as arguments
 
141
# * redefinition of function / method / class
 
142
# * uses of the global statement
 
143
#
 
144
[BASIC]
 
145
 
 
146
# Required attributes for module, separated by a comma
 
147
required-attributes=
 
148
 
 
149
# Regular expression which should only match functions or classes name which do
 
150
# not require a docstring
 
151
no-docstring-rgx=(__.*__|setUp|tearDown)
 
152
 
 
153
# Regular expression which should only match correct module names
 
154
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
 
155
 
 
156
# Regular expression which should only match correct module level names
 
157
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
 
158
 
 
159
# Regular expression which should only match correct class names
 
160
class-rgx=[A-Z_][a-zA-Z0-9]+$
 
161
 
 
162
# Regular expression which should only match correct function names
 
163
function-rgx=[a-z_][a-z0-9_]{2,79}$
 
164
 
 
165
# Regular expression which should only match correct method names
 
166
method-rgx=([a-z_][a-z0-9_]{2,79}$|setUp|tearDown)
 
167
 
 
168
# Regular expression which should only match correct instance attribute names
 
169
attr-rgx=[a-z_][a-z0-9_]{1,30}$
 
170
 
 
171
# Regular expression which should only match correct argument names
 
172
argument-rgx=[a-z_][a-z0-9_]{1,30}$
 
173
 
 
174
# Regular expression which should only match correct variable names
 
175
variable-rgx=[a-z_][a-z0-9_]{1,30}$
 
176
 
 
177
# Regular expression which should only match correct list comprehension /
 
178
# generator expression variable names
 
179
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
 
180
 
 
181
# Good variable names which should always be accepted, separated by a comma
 
182
good-names=d,e,f,g,i,j,k,ex,logger,Run,_
 
183
 
 
184
# Bad variable names which should always be refused, separated by a comma
 
185
bad-names=foo,bar,baz,toto,tutu,tata
 
186
 
 
187
# List of builtins function names that should not be used, separated by a comma
 
188
bad-functions=apply,input
 
189
 
 
190
 
 
191
# checks for sign of poor/misdesign:
 
192
# * number of methods, attributes, local variables...
 
193
# * size, complexity of functions, methods
 
194
#
 
195
[DESIGN]
 
196
 
 
197
# Maximum number of arguments for function / method
 
198
max-args=5
 
199
 
 
200
# Maximum number of locals for function / method body
 
201
max-locals=15
 
202
 
 
203
# Maximum number of return / yield for function / method body
 
204
max-returns=6
 
205
 
 
206
# Maximum number of branch for function / method body
 
207
max-branchs=12
 
208
 
 
209
# Maximum number of statements in function / method body
 
210
max-statements=50
 
211
 
 
212
# Maximum number of parents for a class (see R0901).
 
213
max-parents=7
 
214
 
 
215
# Maximum number of attributes for a class (see R0902).
 
216
max-attributes=7
 
217
 
 
218
# Minimum number of public methods for a class (see R0903).
 
219
min-public-methods=2
 
220
 
 
221
# Maximum number of public methods for a class (see R0904).
 
222
max-public-methods=20
 
223
 
 
224
 
 
225
# checks for :
 
226
# * methods without self as first argument
 
227
# * overridden methods signature
 
228
# * access only to existent members via self
 
229
# * attributes not defined in the __init__ method
 
230
# * supported interfaces implementation
 
231
# * unreachable code
 
232
#
 
233
[CLASSES]
 
234
 
 
235
# List of interface methods to ignore, separated by a comma. This is used for
 
236
# instance to not check methods defines in Zopes Interface base class.
 
237
#ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by,providedBy
 
238
 
 
239
# List of method names used to declare (i.e. assign) instance attributes.
 
240
defining-attr-methods=__init__,__new__,setUp
 
241
 
 
242
 
 
243
# checks for
 
244
# * external modules dependencies
 
245
# * relative / wildcard imports
 
246
# * cyclic imports
 
247
# * uses of deprecated modules
 
248
#
 
249
[IMPORTS]
 
250
 
 
251
# Deprecated modules which should not be used, separated by a comma
 
252
deprecated-modules=regsub,string,TERMIOS,Bastion,rexec
 
253
 
 
254
# Create a graph of every (i.e. internal and external) dependencies in the
 
255
# given file (report RP0402 must not be disabled)
 
256
import-graph=
 
257
 
 
258
# Create a graph of external dependencies in the given file (report RP0402 must
 
259
# not be disabled)
 
260
ext-import-graph=
 
261
 
 
262
# Create a graph of internal dependencies in the given file (report RP0402 must
 
263
# not be disabled)
 
264
int-import-graph=
 
265
 
 
266
 
 
267
# checks for :
 
268
# * unauthorized constructions
 
269
# * strict indentation
 
270
# * line length
 
271
# * use of <> instead of !=
 
272
#
 
273
[FORMAT]
 
274
 
 
275
# Maximum number of characters on a single line.
 
276
max-line-length=79
 
277
 
 
278
# Maximum number of lines in a module
 
279
max-module-lines=2000
 
280
 
 
281
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
 
282
# tab).
 
283
indent-string='    '
 
284
 
 
285
 
 
286
# checks for similarities and duplicated code. This computation may be
 
287
# memory / CPU intensive, so you should disable it if you experiments some
 
288
# problems.
 
289
#
 
290
[SIMILARITIES]
 
291
 
 
292
# Minimum lines number of a similarity.
 
293
min-similarity-lines=4
 
294
 
 
295
# Ignore comments when computing similarities.
 
296
ignore-comments=yes
 
297
 
 
298
# Ignore docstrings when computing similarities.
 
299
ignore-docstrings=yes
 
300
 
 
301
 
 
302
# checks for:
 
303
# * warning notes in the code like FIXME, XXX
 
304
# * PEP 263: source code with non ascii character but no encoding declaration
 
305
#
 
306
[MISCELLANEOUS]
 
307
 
 
308
# List of note tags to take in consideration, separated by a comma.
 
309
notes=FIXME,XXX,TODO,fixme,xxx,todo