root / pylintrc @ 0dda8696
History | View | Annotate | Download (2.6 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 = 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-Z][A-Z0-9_]*)|(__.*__)|(_?[a-z_][a-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 |
|
47 |
[VARIABLES] |
48 |
init-import = no |
49 |
dummy-variables-rgx = _ |
50 |
additional-builtins = |
51 |
|
52 |
[CLASSES] |
53 |
ignore-iface-methods = |
54 |
defining-attr-methods = __init__,__new__,setUp |
55 |
|
56 |
[DESIGN] |
57 |
max-args = 15 |
58 |
max-locals = 50 |
59 |
max-returns = 10 |
60 |
max-branchs = 80 |
61 |
max-statements = 200 |
62 |
max-parents = 7 |
63 |
max-attributes = 20 |
64 |
# zero as struct-like (PODS) classes don't export any methods |
65 |
min-public-methods = 0 |
66 |
max-public-methods = 50 |
67 |
|
68 |
[IMPORTS] |
69 |
deprecated-modules = regsub,string,TERMIOS,Bastion,rexec |
70 |
import-graph = |
71 |
ext-import-graph = |
72 |
int-import-graph = |
73 |
|
74 |
[FORMAT] |
75 |
max-line-length = 80 |
76 |
max-module-lines = 10000 |
77 |
indent-string = " " |
78 |
|
79 |
[MISCELLANEOUS] |
80 |
notes = FIXME,XXX,TODO |
81 |
|
82 |
[SIMILARITIES] |
83 |
min-similarity-lines = 4 |
84 |
ignore-comments = yes |
85 |
ignore-docstrings = yes |
86 |
|
87 |
[MESSAGES CONTROL] |
88 |
|
89 |
# Enable only checker(s) with the given id(s). This option conflicts with the |
90 |
# disable-checker option |
91 |
#enable-checker= |
92 |
|
93 |
# Enable all checker(s) except those with the given id(s). This option |
94 |
# conflicts with the enable-checker option |
95 |
#disable-checker= |
96 |
disable-checker=similarities |
97 |
|
98 |
# Enable all messages in the listed categories (IRCWEF). |
99 |
#enable-msg-cat= |
100 |
|
101 |
# Disable all messages in the listed categories (IRCWEF). |
102 |
disable-msg-cat= |
103 |
|
104 |
# Enable the message(s) with the given id(s). |
105 |
#enable-msg= |
106 |
|
107 |
# Disable the message(s) with the given id(s). |
108 |
disable-msg=W0511 |