(grnet) Remove deprecated physical_id if found
[ganeti-local] / pylintrc-test
1 # pylint configuration file tailored to test code.
2 #
3 # NOTE: Keep in sync as much as possible with the standard pylintrc file.
4 # Only a few settings had to be adapted for the test code.
5
6 [MASTER]
7 profile = no
8 ignore =
9 persistent = no
10 cache-size = 50000
11 load-plugins =
12
13 [REPORTS]
14 output-format = colorized
15 include-ids = yes
16 files-output = no
17 reports = no
18 evaluation = 10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
19 comment = yes
20
21 [BASIC]
22 required-attributes =
23 # disabling docstring checks since we have way too many without (complex
24 # inheritance hierarchies)
25 #no-docstring-rgx = __.*__
26 no-docstring-rgx = .*
27 module-rgx = (([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
28 # added lower-case names
29 const-rgx = ((_{0,2}[A-Za-z][A-Za-z0-9_]*)|(__.*__))$
30 class-rgx = _?[A-Z][a-zA-Z0-9]+$
31 # added lower-case names
32 function-rgx = (_?((([A-Z]+[a-z0-9]+)|test|assert)([A-Z]+[a-z0-9]*)*)|main|([a-z_][a-z0-9_]*))$
33 # add lower-case names, since derived classes must obey method names
34 method-rgx = (_{0,2}(([A-Z]+[a-z0-9]+)|test|assert)([A-Z]+[a-z0-9]*)*|__.*__|runTests|setUp|tearDown|([a-z_][a-z0-9_]*))$
35 attr-rgx = [a-z_][a-z0-9_]{1,30}$
36 argument-rgx = [a-z_][a-z0-9_]*$
37 variable-rgx = (_?([a-z_][a-z0-9_]*)|(_?[A-Z0-9_]+))$
38 inlinevar-rgx = [A-Za-z_][A-Za-z0-9_]*$
39 good-names = i,j,k,_
40 bad-names = foo,bar,baz,toto,tutu,tata
41 bad-functions = xrange
42
43 [TYPECHECK]
44 ignore-mixin-members = yes
45 zope = no
46 acquired-members =
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
57 [DESIGN]
58 max-args = 15
59 max-locals = 50
60 max-returns = 10
61 max-branchs = 80
62 max-statements = 200
63 max-parents = 7
64 max-attributes = 20
65 # zero as struct-like (PODS) classes don't export any methods
66 min-public-methods = 0
67 max-public-methods = 50
68
69 [IMPORTS]
70 deprecated-modules = regsub,string,TERMIOS,Bastion,rexec
71 import-graph =
72 ext-import-graph =
73 int-import-graph =
74
75 [FORMAT]
76 max-line-length = 80
77 max-module-lines = 4500
78 indent-string = "  "
79
80 [MISCELLANEOUS]
81 notes = FIXME,XXX,TODO
82
83 [SIMILARITIES]
84 min-similarity-lines = 4
85 ignore-comments = yes
86 ignore-docstrings = yes
87
88 [MESSAGES CONTROL]
89
90 # Enable only checker(s) with the given id(s). This option conflicts with the
91 # disable-checker option
92 #enable-checker=
93
94 # Enable all checker(s) except those with the given id(s). This option
95 # conflicts with the enable-checker option
96 #disable-checker=
97 disable-checker=similarities
98
99 # Enable all messages in the listed categories (IRCWEF).
100 #enable-msg-cat=
101
102 # Disable all messages in the listed categories (IRCWEF).
103 disable-msg-cat=
104
105 # Enable the message(s) with the given id(s).
106 #enable-msg=
107
108 # Disable the message(s) with the given id(s).
109 disable-msg=W0511,R0922,W0201
110
111 # The new pylint 0.21+ style (plus the similarities checker, which is no longer
112 # a separate opiton, but a generic disable control)
113 disable=W0511,R0922,W0201,R0922,R0801,I0011,R0201