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