1 # Configuration file for pylint (http://www.logilab.org/project/pylint). See
2 # http://www.logilab.org/card/pylintfeatures for more detailed variable
5 # NOTE: Keep this file in sync (as much as possible) with pylintrc-test!
15 output-format = colorized
19 evaluation = 10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
24 # disabling docstring checks since we have way too many without (complex
25 # inheritance hierarchies)
26 #no-docstring-rgx = __.*__
28 module-rgx = (([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
29 # added lower-case names
30 const-rgx = ((_{0,2}[A-Za-z][A-Za-z0-9_]*)|(__.*__))$
31 class-rgx = _?[A-Z][a-zA-Z0-9]+$
32 # added lower-case names
33 function-rgx = (_?([A-Z]+[a-z0-9]+([A-Z]+[a-z0-9]*)*)|main|([a-z_][a-z0-9_]*))$
34 # add lower-case names, since derived classes must obey method names
35 method-rgx = (_{0,2}[A-Z]+[a-z0-9]+([A-Z]+[a-z0-9]*)*|__.*__|([a-z_][a-z0-9_]*))$
36 attr-rgx = [a-z_][a-z0-9_]{1,30}$
37 argument-rgx = [a-z_][a-z0-9_]*$
38 variable-rgx = (_?([a-z_][a-z0-9_]*)|(_?[A-Z0-9_]+))$
39 inlinevar-rgx = [A-Za-z_][A-Za-z0-9_]*$
41 bad-names = foo,bar,baz,toto,tutu,tata
42 bad-functions = xrange
45 ignore-mixin-members = yes
48 ignored-classes = sha1,md5,Popen,ChildProcess
52 dummy-variables-rgx = _
56 ignore-iface-methods =
57 defining-attr-methods = __init__,__new__,setUp
58 valid-classmethod-first-arg = cls,mcs
68 # zero as struct-like (PODS) classes don't export any methods
69 min-public-methods = 0
70 max-public-methods = 50
73 deprecated-modules = regsub,string,TERMIOS,Bastion,rexec
80 max-module-lines = 4500
84 notes = FIXME,XXX,TODO
87 min-similarity-lines = 4
89 ignore-docstrings = yes
93 # Enable only checker(s) with the given id(s). This option conflicts with the
94 # disable-checker option
97 # Enable all checker(s) except those with the given id(s). This option
98 # conflicts with the enable-checker option
100 disable-checker=similarities
102 # Enable all messages in the listed categories (IRCWEF).
105 # Disable all messages in the listed categories (IRCWEF).
108 # Enable the message(s) with the given id(s).
111 # Disable the message(s) with the given id(s).
112 disable-msg=W0511,R0922,W0201
114 # The new pylint 0.21+ style (plus the similarities checker, which is no longer
115 # a separate opiton, but a generic disable control)
116 disable=W0511,R0922,W0201,R0922,R0801,I0011