Statistics
| Branch: | Tag: | Revision:

root / pylintrc-test @ 56c934da

History | View | Annotate | Download (2.9 kB)

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