Statistics
| Branch: | Tag: | Revision:

root / pylintrc @ cf51ea5b

History | View | Annotate | Download (2.7 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
[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 = yes
17
evaluation = 10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
18
comment = yes
19

    
20
[BASIC]
21
required-attributes =
22
no-docstring-rgx = __.*__
23
#no-docstring-rgx = .*
24
module-rgx = (([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
25
# added lower-case names
26
const-rgx = ((_{0,2}[A-Za-z][A-Za-z0-9_]*)|(__.*__))$
27
class-rgx = _?[A-Z][a-zA-Z0-9]+$
28
# added lower-case names
29
function-rgx = (_?([A-Z]+[a-z0-9]+([A-Z]+[a-z0-9]*)*)|main|([a-z_][a-z0-9_]*))$
30
# add lower-case names, since derived classes must obey method names
31
method-rgx = (_{0,2}[A-Z]+[a-z0-9]+([A-Z]+[a-z0-9]*)*|__.*__|([a-z_][a-z0-9_]*))$
32
attr-rgx = [a-z_][a-z0-9_]{1,30}$
33
argument-rgx = [a-z_][a-z0-9_]*$
34
variable-rgx = (_?([a-z_][a-z0-9_]*)|(_?[A-Z0-9_]+))$
35
inlinevar-rgx = [A-Za-z_][A-Za-z0-9_]*$
36
good-names = i,j,k,_,d
37
bad-names = foo,bar,baz,toto,tutu,tata,koko,lala,kot
38
bad-functions = xrange
39

    
40
[TYPECHECK]
41
ignore-mixin-members = yes
42
zope = no
43
acquired-members =
44

    
45
[VARIABLES]
46
init-import = no
47
dummy-variables-rgx = _
48
additional-builtins =
49

    
50
[CLASSES]
51
ignore-iface-methods =
52
defining-attr-methods = __init__,__new__,setUp
53

    
54
[DESIGN]
55
max-args = 15
56
max-locals = 50
57
max-returns = 10
58
max-branchs = 80
59
max-statements = 200
60
max-parents = 7
61
max-attributes = 20
62
# zero as struct-like (PODS) classes don't export any methods
63
min-public-methods = 0
64
max-public-methods = 50
65

    
66
[IMPORTS]
67
deprecated-modules = regsub,string,TERMIOS,Bastion,rexec
68
import-graph =
69
ext-import-graph =
70
int-import-graph =
71

    
72
[FORMAT]
73
max-line-length = 80
74
max-module-lines = 10000
75
indent-string = "    "
76

    
77
[MISCELLANEOUS]
78
notes = FIXME,XXX,TODO
79

    
80
[SIMILARITIES]
81
min-similarity-lines = 4
82
ignore-comments = yes
83
ignore-docstrings = yes
84

    
85
[MESSAGES CONTROL]
86

    
87
# Enable only checker(s) with the given id(s). This option conflicts with the
88
# disable-checker option
89
#enable-checker=
90

    
91
# Enable all checker(s) except those with the given id(s). This option
92
# conflicts with the enable-checker option
93
#disable-checker=
94
disable-checker=similarities
95

    
96
# Enable all messages in the listed categories (IRCWEF).
97
#enable-msg-cat=
98

    
99
# Disable all messages in the listed categories (IRCWEF).
100
disable-msg-cat=
101

    
102
# Enable the message(s) with the given id(s).
103
#enable-msg=
104

    
105
# Disable the message(s) with the given id(s).
106
disable-msg=W0511,R0922,W0201
107

    
108
# The new pylint 0.21+ style (plus the similarities checker, which is no longer
109
# a separate opiton, but a generic disable control)
110
disable=W0511,R0922,W0201,R0922,R0801,I0011