1# ========================================================================================
2# PYCHECKER CONFIGURATION
3# ========================================================================================
4# .pycheckrc file created by PyChecker v0.8.18
5# .pycheckrc file created by PyChecker v0.8.19
6#
7# It should be placed in your home directory (value of $HOME).
8# If $HOME is not set, it will look in the current directory.
9#
10# SEE ALSO:
11#  * http://pychecker.sourceforge.net/
12#  * http://sourceforge.net/projects/pychecker
13# ========================================================================================
14
15# only warn about files passed on the command line
16only = 0
17
18# the maximum number of warnings to be displayed
19limit = 100
20
21# list of evil C extensions that crash the interpreter
22evil = []
23
24# ignore import errors
25ignoreImportErrors = 0
26
27# unused imports
28importUsed = 1
29
30# unused imports from __init__.py
31packageImportUsed = 1
32
33# module imports itself
34reimportSelf = 1
35
36# reimporting a module
37moduleImportErrors = 1
38
39# module does import and from ... import
40mixImport = 1
41
42# unused local variables, except tuples
43localVariablesUsed = 1
44
45# all unused local variables, including tuples
46unusedLocalTuple = 0
47
48# all unused class data members
49membersUsed = 0
50
51# all unused module variables
52allVariablesUsed = 0
53
54# unused private module variables
55privateVariableUsed = 1
56
57# report each occurrence of global warnings
58reportAllGlobals = 0
59
60# functions called with named arguments (like keywords)
61namedArgs = 0
62
63# Attributes (members) must be defined in __init__()
64onlyCheckInitForMembers = 0
65
66# Subclass.__init__() not defined
67initDefinedInSubclass = 0
68
69# Baseclass.__init__() not called
70baseClassInitted = 1
71
72# Subclass needs to override methods that only throw exceptions
73abstractClasses = 1
74
75# Return None from __init__()
76returnNoneFromInit = 1
77
78# unreachable code
79unreachableCode = 0
80
81# a constant is used in a conditional statement
82constantConditions = 1
83
84# 1 is used in a conditional statement (if 1: or while 1:)
85constant1 = 0
86
87# check if iterating over a string
88stringIteration = 1
89
90# check improper use of string.find()
91stringFind = 1
92
93# Calling data members as functions
94callingAttribute = 0
95
96# class attribute does not exist
97classAttrExists = 1
98
99# First argument to methods
100methodArgName = 'self'
101
102# First argument to classmethods
103classmethodArgNames = ['cls', 'klass']
104
105# unused method/function arguments
106argumentsUsed = 1
107
108# unused method/function variable arguments
109varArgumentsUsed = 1
110
111# ignore if self is unused in methods
112ignoreSelfUnused = 0
113
114# check if overridden methods have the same signature
115checkOverridenMethods = 1
116
117# check if __special__ methods exist and have the correct signature
118checkSpecialMethods = 1
119
120# check if function/class/method names are reused
121redefiningFunction = 1
122
123# check if using unary positive (+) which is usually meaningless
124unaryPositive = 1
125
126# check if modify (call method) on a parameter that has a default value
127modifyDefaultValue = 1
128
129# check if variables are set to different types
130inconsistentTypes = 0
131
132# check if unpacking a non-sequence
133unpackNonSequence = 1
134
135# check if unpacking sequence with the wrong length
136unpackLength = 1
137
138# check if raising or catching bad exceptions
139badExceptions = 1
140
141# check if statement appears to have no effect
142noEffect = 1
143
144# check if using (expr % 1), it has no effect on integers and strings
145modulo1 = 1
146
147# check if using (expr is const-literal), doesn't always work on integers and strings
148isLiteral = 1
149
150# check if a constant string is passed to getattr()/setattr()
151constAttr = 1
152
153# check consistent return values
154checkReturnValues = 1
155
156# check if using implict and explicit return values
157checkImplicitReturns = 1
158
159# check that attributes of objects exist
160checkObjectAttrs = 1
161
162# various warnings about incorrect usage of __slots__
163slots = 1
164
165# using properties with classic classes
166classicProperties = 1
167
168# check if __slots__ is empty
169emptySlots = 1
170
171# check if using integer division
172intDivide = 1
173
174# check if local variable shadows a global
175shadows = 1
176
177# check if a variable shadows a builtin
178shadowBuiltins = 1
179
180# check if input() is used
181usesInput = 1
182
183# check if the exec statement is used
184usesExec = 0
185
186# ignore warnings from files under standard library
187ignoreStandardLibrary = 1
188
189# ignore warnings from the list of modules
190blacklist = ['Tkinter', 'wxPython', 'gtk', 'GTK', 'GDK']
191
192# ignore global variables not used if name is one of these values
193variablesToIgnore = ['__version__', '__warningregistry__', '__all__', '__credits__', '__test__', '__author__', '__email__', '__revision__', '__id__', '__copyright__', '__license__', '__date__']
194
195# ignore unused locals/arguments if name is one of these values
196unusedNames = ['_', 'empty', 'unused', 'dummy', 'crap']
197
198# ignore missing class attributes if name is one of these values
199missingAttrs = []
200
201# ignore use of deprecated modules/functions
202deprecated = 1
203
204# maximum lines in a function
205maxLines = 200
206
207# maximum branches in a function
208maxBranches = 50
209
210# maximum returns in a function
211maxReturns = 10
212
213# maximum # of arguments to a function
214maxArgs = 10
215
216# maximum # of locals in a function
217maxLocals = 40
218
219# maximum # of identifier references (Law of Demeter)
220maxReferences = 5
221
222# no module doc strings
223noDocModule = 0
224
225# no class doc strings
226noDocClass = 0
227
228# no function/method doc strings
229noDocFunc = 0
230
231# print internal checker parse structures
232printParse = 0
233
234# turn on debugging for checker
235debug = 0
236
237# print each class object to find one that crashes
238findEvil = 0
239
240# turn off all output except warnings
241quiet = 0
242
243