Handle $(python_scripts) and tools/burnin as python scripts
[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 # NOTE: Keep this file in sync (as much as possible) with pylintrc-test!
6
7 [MASTER]
8 profile = no
9 ignore =
10 persistent = no
11 cache-size = 50000
12 load-plugins =
13
14 [REPORTS]
15 output-format = colorized
16 include-ids = yes
17 files-output = no
18 reports = no
19 evaluation = 10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
20 comment = yes
21
22 [BASIC]
23 required-attributes =
24 # disabling docstring checks since we have way too many without (complex
25 # inheritance hierarchies)
26 #no-docstring-rgx = __.*__
27 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_]*$
40 good-names = i,j,k,_
41 bad-names = foo,bar,baz,toto,tutu,tata
42 bad-functions = xrange
43
44 [TYPECHECK]
45 ignore-mixin-members = yes
46 zope = no
47 acquired-members =
48
49 [VARIABLES]
50 init-import = no
51 dummy-variables-rgx = _
52 additional-builtins =
53
54 [CLASSES]
55 ignore-iface-methods =
56 defining-attr-methods = __init__,__new__,setUp
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