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 # disabling docstring checks since we have way too many without (complex
23 # inheritance hierarchies)
24 #no-docstring-rgx = __.*__
26 module-rgx = (([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
27 # added lower-case names
28 const-rgx = ((_{0,2}[A-Z][A-Z0-9_]*)|(__.*__)|(_?[a-z_][a-z0-9_]*))$
29 class-rgx = _?[A-Z][a-zA-Z0-9]+$
30 # added lower-case names
31 function-rgx = (_?([A-Z]+[a-z0-9]+([A-Z]+[a-z0-9]*)*)|main|([a-z_][a-z0-9_]*))$
32 # add lower-case names, since derived classes must obey method names
33 method-rgx = (_{0,2}[A-Z]+[a-z0-9]+([A-Z]+[a-z0-9]*)*|__.*__|([a-z_][a-z0-9_]*))$
34 attr-rgx = [a-z_][a-z0-9_]{1,30}$
35 argument-rgx = [a-z_][a-z0-9_]*$
36 variable-rgx = (_?([a-z_][a-z0-9_]*)|(_?[A-Z0-9_]+))$
37 inlinevar-rgx = [A-Za-z_][A-Za-z0-9_]*$
39 bad-names = foo,bar,baz,toto,tutu,tata
40 bad-functions = xrange
43 ignore-mixin-members = yes
49 dummy-variables-rgx = _
53 ignore-iface-methods =
54 defining-attr-methods = __init__,__new__,setUp
64 # zero as struct-like (PODS) classes don't export any methods
65 min-public-methods = 0
66 max-public-methods = 50
69 deprecated-modules = regsub,string,TERMIOS,Bastion,rexec
76 max-module-lines = 10000
80 notes = FIXME,XXX,TODO
83 min-similarity-lines = 4
85 ignore-docstrings = yes
89 # Enable only checker(s) with the given id(s). This option conflicts with the
90 # disable-checker option
93 # Enable all checker(s) except those with the given id(s). This option
94 # conflicts with the enable-checker option
96 disable-checker=similarities
98 # Enable all messages in the listed categories (IRCWEF).
101 # Disable all messages in the listed categories (IRCWEF).
104 # Enable the message(s) with the given id(s).
107 # Disable the message(s) with the given id(s).
108 disable-msg=W0511,R0922,W0201