Statistics
| Branch: | Tag: | Revision:

root / pylintrc @ af8492ff

History | View | Annotate | Download (2.9 kB)

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
ignored-classes = sha1,md5,Popen,ChildProcess
49

    
50
[VARIABLES]
51
init-import = no
52
dummy-variables-rgx = _
53
additional-builtins =
54

    
55
[CLASSES]
56
ignore-iface-methods =
57
defining-attr-methods = __init__,__new__,setUp
58
valid-classmethod-first-arg = cls,mcs
59

    
60
[DESIGN]
61
max-args = 15
62
max-locals = 50
63
max-returns = 10
64
max-branchs = 80
65
max-statements = 200
66
max-parents = 7
67
max-attributes = 20
68
# zero as struct-like (PODS) classes don't export any methods
69
min-public-methods = 0
70
max-public-methods = 50
71

    
72
[IMPORTS]
73
deprecated-modules = regsub,string,TERMIOS,Bastion,rexec
74
import-graph =
75
ext-import-graph =
76
int-import-graph =
77

    
78
[FORMAT]
79
max-line-length = 80
80
max-module-lines = 4500
81
indent-string = "  "
82

    
83
[MISCELLANEOUS]
84
notes = FIXME,XXX,TODO
85

    
86
[SIMILARITIES]
87
min-similarity-lines = 4
88
ignore-comments = yes
89
ignore-docstrings = yes
90

    
91
[MESSAGES CONTROL]
92

    
93
# Enable only checker(s) with the given id(s). This option conflicts with the
94
# disable-checker option
95
#enable-checker=
96

    
97
# Enable all checker(s) except those with the given id(s). This option
98
# conflicts with the enable-checker option
99
#disable-checker=
100
disable-checker=similarities
101

    
102
# Enable all messages in the listed categories (IRCWEF).
103
#enable-msg-cat=
104

    
105
# Disable all messages in the listed categories (IRCWEF).
106
disable-msg-cat=
107

    
108
# Enable the message(s) with the given id(s).
109
#enable-msg=
110

    
111
# Disable the message(s) with the given id(s).
112
disable-msg=W0511,R0922,W0201
113

    
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