configure: check for hslogger
[ganeti-local] / pylintrc
1 # Configuration file for pylint (http://www.logilab.org/project/pylint). See
2 # http://www.logilab.org/card/pylintfeatures for more detailed variable
3 # descriptions.
4
5 [MASTER]
6 profile = no
7 ignore =
8 persistent = no
9 cache-size = 50000
10 load-plugins =
11
12 [REPORTS]
13 output-format = colorized
14 include-ids = yes
15 files-output = no
16 reports = no
17 evaluation = 10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
18 comment = yes
19
20 [BASIC]
21 required-attributes =
22 # disabling docstring checks since we have way too many without (complex
23 # inheritance hierarchies)
24 #no-docstring-rgx = __.*__
25 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-Za-z][A-Za-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_]*$
38 good-names = i,j,k,_
39 bad-names = foo,bar,baz,toto,tutu,tata
40 bad-functions = xrange
41
42 [TYPECHECK]
43 ignore-mixin-members = yes
44 zope = no
45 acquired-members =
46 ignored-classes = sha1,md5,Popen,ChildProcess
47
48 [VARIABLES]
49 init-import = no
50 dummy-variables-rgx = _
51 additional-builtins =
52
53 [CLASSES]
54 ignore-iface-methods =
55 defining-attr-methods = __init__,__new__,setUp
56 valid-classmethod-first-arg = cls,mcs
57
58 [DESIGN]
59 max-args = 15
60 max-locals = 50
61 max-returns = 10
62 max-branchs = 80
63 max-statements = 200
64 max-parents = 7
65 max-attributes = 20
66 # zero as struct-like (PODS) classes don't export any methods
67 min-public-methods = 0
68 max-public-methods = 50
69
70 [IMPORTS]
71 deprecated-modules = regsub,string,TERMIOS,Bastion,rexec
72 import-graph =
73 ext-import-graph =
74 int-import-graph =
75
76 [FORMAT]
77 max-line-length = 80
78 max-module-lines = 4500
79 indent-string = "  "
80
81 [MISCELLANEOUS]
82 notes = FIXME,XXX,TODO
83
84 [SIMILARITIES]
85 min-similarity-lines = 4
86 ignore-comments = yes
87 ignore-docstrings = yes
88
89 [MESSAGES CONTROL]
90
91 # Enable only checker(s) with the given id(s). This option conflicts with the
92 # disable-checker option
93 #enable-checker=
94
95 # Enable all checker(s) except those with the given id(s). This option
96 # conflicts with the enable-checker option
97 #disable-checker=
98 disable-checker=similarities
99
100 # Enable all messages in the listed categories (IRCWEF).
101 #enable-msg-cat=
102
103 # Disable all messages in the listed categories (IRCWEF).
104 disable-msg-cat=
105
106 # Enable the message(s) with the given id(s).
107 #enable-msg=
108
109 # Disable the message(s) with the given id(s).
110 disable-msg=W0511,R0922,W0201
111
112 # The new pylint 0.21+ style (plus the similarities checker, which is no longer
113 # a separate opiton, but a generic disable control)
114 disable=W0511,R0922,W0201,R0922,R0801,I0011