comparison contrib/pylintrc @ 19023:86531a7038ed

codingstyle: remove trailing spaces in various text files Better do it once than see random changes in diffs later.
author Mads Kiilerich <madski@unity3d.com>
date Wed, 17 Apr 2013 03:40:18 +0200
parents b8acd325773e
children
comparison
equal deleted inserted replaced
19022:cba222f01056 19023:86531a7038ed
1 # lint Python modules using external checkers. 1 # lint Python modules using external checkers.
2 # 2 #
3 # This is the main checker controlling the other ones and the reports 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 4 # generation. It is itself both a raw checker and an astng checker in order
5 # to: 5 # to:
6 # * handle message activation / deactivation at the module level 6 # * handle message activation / deactivation at the module level
7 # * handle some basic but necessary stats'data (number of classes, methods...) 7 # * handle some basic but necessary stats'data (number of classes, methods...)
8 # 8 #
9 [MASTER] 9 [MASTER]
10 10
11 # Specify a configuration file. 11 # Specify a configuration file.
12 #rcfile= 12 #rcfile=
13 13
93 # Disable the report(s) with the given id(s). 93 # Disable the report(s) with the given id(s).
94 #disable-report= 94 #disable-report=
95 95
96 96
97 # try to find bugs in the code using type inference 97 # try to find bugs in the code using type inference
98 # 98 #
99 [TYPECHECK] 99 [TYPECHECK]
100 100
101 # Tells whether missing members accessed in mixin class should be ignored. A 101 # Tells whether missing members accessed in mixin class should be ignored. A
102 # mixin class is detected if its name ends with "mixin" (case insensitive). 102 # mixin class is detected if its name ends with "mixin" (case insensitive).
103 ignore-mixin-members=yes 103 ignore-mixin-members=yes
118 # checks for 118 # checks for
119 # * unused variables / imports 119 # * unused variables / imports
120 # * undefined variables 120 # * undefined variables
121 # * redefinition of variable from builtins or from an outer scope 121 # * redefinition of variable from builtins or from an outer scope
122 # * use of variable before assignment 122 # * use of variable before assignment
123 # 123 #
124 [VARIABLES] 124 [VARIABLES]
125 125
126 # Tells whether we should check for unused import in __init__ files. 126 # Tells whether we should check for unused import in __init__ files.
127 init-import=yes 127 init-import=yes
128 128
141 # functions, methods 141 # functions, methods
142 # * required module attributes 142 # * required module attributes
143 # * dangerous default values as arguments 143 # * dangerous default values as arguments
144 # * redefinition of function / method / class 144 # * redefinition of function / method / class
145 # * uses of the global statement 145 # * uses of the global statement
146 # 146 #
147 [BASIC] 147 [BASIC]
148 148
149 # Required attributes for module, separated by a comma 149 # Required attributes for module, separated by a comma
150 required-attributes= 150 required-attributes=
151 151
195 # checks for 195 # checks for
196 # * external modules dependencies 196 # * external modules dependencies
197 # * relative / wildcard imports 197 # * relative / wildcard imports
198 # * cyclic imports 198 # * cyclic imports
199 # * uses of deprecated modules 199 # * uses of deprecated modules
200 # 200 #
201 [IMPORTS] 201 [IMPORTS]
202 202
203 # Deprecated modules which should not be used, separated by a comma 203 # Deprecated modules which should not be used, separated by a comma
204 deprecated-modules=regsub,TERMIOS,Bastion,rexec 204 deprecated-modules=regsub,TERMIOS,Bastion,rexec
205 205
217 217
218 218
219 # checks for sign of poor/misdesign: 219 # checks for sign of poor/misdesign:
220 # * number of methods, attributes, local variables... 220 # * number of methods, attributes, local variables...
221 # * size, complexity of functions, methods 221 # * size, complexity of functions, methods
222 # 222 #
223 [DESIGN] 223 [DESIGN]
224 224
225 # Maximum number of arguments for function / method 225 # Maximum number of arguments for function / method
226 max-args=5 226 max-args=5
227 227
255 # * overridden methods signature 255 # * overridden methods signature
256 # * access only to existent members via self 256 # * access only to existent members via self
257 # * attributes not defined in the __init__ method 257 # * attributes not defined in the __init__ method
258 # * supported interfaces implementation 258 # * supported interfaces implementation
259 # * unreachable code 259 # * unreachable code
260 # 260 #
261 [CLASSES] 261 [CLASSES]
262 262
263 # List of interface methods to ignore, separated by a comma. This is used for 263 # List of interface methods to ignore, separated by a comma. This is used for
264 # instance to not check methods defines in Zope's Interface base class. 264 # instance to not check methods defines in Zope's Interface base class.
265 ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by 265 ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
271 # checks for : 271 # checks for :
272 # * unauthorized constructions 272 # * unauthorized constructions
273 # * strict indentation 273 # * strict indentation
274 # * line length 274 # * line length
275 # * use of <> instead of != 275 # * use of <> instead of !=
276 # 276 #
277 [FORMAT] 277 [FORMAT]
278 278
279 # Maximum number of characters on a single line. 279 # Maximum number of characters on a single line.
280 max-line-length=80 280 max-line-length=80
281 281
288 288
289 289
290 # checks for: 290 # checks for:
291 # * warning notes in the code like FIXME, XXX 291 # * warning notes in the code like FIXME, XXX
292 # * PEP 263: source code with non ascii character but no encoding declaration 292 # * PEP 263: source code with non ascii character but no encoding declaration
293 # 293 #
294 [MISCELLANEOUS] 294 [MISCELLANEOUS]
295 295
296 # List of note tags to take in consideration, separated by a comma. 296 # List of note tags to take in consideration, separated by a comma.
297 notes=FIXME,XXX,TODO 297 notes=FIXME,XXX,TODO
298 298
299 299
300 # checks for similarities and duplicated code. This computation may be 300 # checks for similarities and duplicated code. This computation may be
301 # memory / CPU intensive, so you should disable it if you experiments some 301 # memory / CPU intensive, so you should disable it if you experiments some
302 # problems. 302 # problems.
303 # 303 #
304 [SIMILARITIES] 304 [SIMILARITIES]
305 305
306 # Minimum lines number of a similarity. 306 # Minimum lines number of a similarity.
307 min-similarity-lines=4 307 min-similarity-lines=4
308 308