1 # Configuration file for pylint (http://www.logilab.org/project/pylint). See
2 # http://www.logilab.org/card/pylintfeatures for more detailed variable
13 output-format = colorized
17 evaluation = 10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
22 no-docstring-rgx = __.*__
23 #no-docstring-rgx = .*
24 module-rgx = (([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
25 # added lower-case names
26 const-rgx = ((_{0,2}[A-Za-z][A-Za-z0-9_]*)|(__.*__))$
27 class-rgx = _?[A-Z][a-zA-Z0-9]+$
28 # added lower-case names
29 function-rgx = (_?([A-Z]+[a-z0-9]+([A-Z]+[a-z0-9]*)*)|main|([a-z_][a-z0-9_]*))$
30 # add lower-case names, since derived classes must obey method names
31 method-rgx = (_{0,2}[A-Z]+[a-z0-9]+([A-Z]+[a-z0-9]*)*|__.*__|([a-z_][a-z0-9_]*))$
32 attr-rgx = [a-z_][a-z0-9_]{1,30}$
33 argument-rgx = [a-z_][a-z0-9_]*$
34 variable-rgx = (_?([a-z_][a-z0-9_]*)|(_?[A-Z0-9_]+))$
35 inlinevar-rgx = [A-Za-z_][A-Za-z0-9_]*$
36 good-names = i,j,k,_,d
37 bad-names = foo,bar,baz,toto,tutu,tata,koko,lala,kot
38 bad-functions = xrange
41 ignore-mixin-members = yes
47 dummy-variables-rgx = _
51 ignore-iface-methods =
52 defining-attr-methods = __init__,__new__,setUp
62 # zero as struct-like (PODS) classes don't export any methods
63 min-public-methods = 0
64 max-public-methods = 50
67 deprecated-modules = regsub,string,TERMIOS,Bastion,rexec
74 max-module-lines = 10000
78 notes = FIXME,XXX,TODO
81 min-similarity-lines = 4
83 ignore-docstrings = yes
87 # Enable only checker(s) with the given id(s). This option conflicts with the
88 # disable-checker option
91 # Enable all checker(s) except those with the given id(s). This option
92 # conflicts with the enable-checker option
94 disable-checker=similarities
96 # Enable all messages in the listed categories (IRCWEF).
99 # Disable all messages in the listed categories (IRCWEF).
102 # Enable the message(s) with the given id(s).
105 # Disable the message(s) with the given id(s).
106 disable-msg=W0511,R0922,W0201
108 # The new pylint 0.21+ style (plus the similarities checker, which is no longer
109 # a separate opiton, but a generic disable control)
110 disable=W0511,R0922,W0201,R0922,R0801,I0011